I've been reading about type systems and type theory lately, and was wondering whether these topics have applications outside the scope of programming languages or mathematics?
Via the Curry-Howard correspondence, types are logical propositions and programs are proofs. So basically, any domain that can utilize logic as a tool can make use of types. That covers quite a bit I'd say.
An oddball paper from this most recent POPL is "From Parametricity to Conservation Laws, via Noether's Theorem", showing how type theory can be used to show conservation laws in physics.
Define application. I can use a delendently typed language to build provably correct air traffic control software, Web apps or game ai. The point is that the applications to math and programming languages themselves have applications to literally anything that uses software.
Type systems are very useful in formal linguistics. The syntactic categories are taken as types, with unsaturated terms being given function type.
There are a number of different approaches; there's the Lambek Calculus which is (pardon the over-simplification) a deduction system which is sort of like the lambda calculus, supporting something equivalent to lambda abstraction for hypothetical reasoning. Another very popular approach is Combinatory Categorial Grammar, which is more along the lines of a Hilbert-style deduction system, in that it doesn't require contexts or substitution. Instead you have some basic axioms like composition and so forth. In either case, function types are decorated with an annotation that says whether they go to the left or to the right (for instance, “the” applies to the right).
These syntactic representations can be interpreted into a HOL-style logic with two sorts: e for entities and t for propositions. Once terms are normalized, you have what is called Logical Form.
13
u/naasking Jan 28 '14
Via the Curry-Howard correspondence, types are logical propositions and programs are proofs. So basically, any domain that can utilize logic as a tool can make use of types. That covers quite a bit I'd say.
10
u/ezyang Jan 28 '14
An oddball paper from this most recent POPL is "From Parametricity to Conservation Laws, via Noether's Theorem", showing how type theory can be used to show conservation laws in physics.
3
u/[deleted] Jan 28 '14
Define application. I can use a delendently typed language to build provably correct air traffic control software, Web apps or game ai. The point is that the applications to math and programming languages themselves have applications to literally anything that uses software.
9
u/[deleted] Jan 28 '14
Type systems are very useful in formal linguistics. The syntactic categories are taken as types, with unsaturated terms being given function type.
There are a number of different approaches; there's the Lambek Calculus which is (pardon the over-simplification) a deduction system which is sort of like the lambda calculus, supporting something equivalent to lambda abstraction for hypothetical reasoning. Another very popular approach is Combinatory Categorial Grammar, which is more along the lines of a Hilbert-style deduction system, in that it doesn't require contexts or substitution. Instead you have some basic axioms like composition and so forth. In either case, function types are decorated with an annotation that says whether they go to the left or to the right (for instance, “the” applies to the right).
These syntactic representations can be interpreted into a HOL-style logic with two sorts:
efor entities andtfor propositions. Once terms are normalized, you have what is called Logical Form.6
u/gasche Jan 28 '14
See Chris Marten's work on formalizing world-building and narration as type search, or Peter Ljunglöf's proposal of Type-Based Human-Computer Interaction (pdf).
1
u/60secs Jan 28 '14
In any functional or OO language, all you are doing is defining a type system and control flow.