Professional Documents
Culture Documents
Slides
Slides
Slides
28th International Conference on Types for Proofs and Programs (TYPES 2022)
20-25 June 2022 – Nantes, France
Motivation
Linear Logic ←→ Linear Algebra
But, how?
Linear in the algebraic sense. . .
f (v + w ) = f (v ) + f (w )
f (a.v ) = a.f (v )
Mult Add PL
Truth 1 ⊤ ⊤
Falsehood − 0 ⊥
Implication ⊸ − ⇒
Conjunction ⊗ & ∧
Disjunction − ⊕ ∨
Example
1 2
a b
c d −→ λx.(δ∧ (x, y .δ⊤ ∗ (y , ⟨a.⋆, b.⋆⟩)) + δ∧ (x, z.δ⊤ ∗ ( ⟨c.⋆, d.⋆⟩)))
Alejandro Díaz-Caro and Gilles Dowek Linear lambda-calculus is linear 4/6
Linearity
The main theorem
Theorem (Linearity)
Let A be any proposition, B ∈ V, ⊢ t : A ⇒ B, and
u, v ∈ A, then
Theorem (Linearity)
Let A be any proposition, B ∈ V, ⊢ t : A ⇒ B, and
u, v ∈ A, then
Theorem (Linearity)
Let A be any proposition, B ∈ V, ⊢ t : A ⇒ B, and
u, v ∈ A, then
Corollary
Let A, B ∈ V with d(A) = m, d(B) = n and ⊢ t : A ⇒ B.
Then, the map F from S m to S n , defined as F (u) = tu A is linear.
Alejandro Díaz-Caro and Gilles Dowek Linear lambda-calculus is linear 5/6
Summarizing
▶ Moreover, we have shown that every term of type A ⇒ B, with B ∈ V is linear in the
algebraic sense.