Propositions-as-types (Curry-Howard): proofs are programs, types are propositions
| Logic | Type Theory |
|---|---|
| Proposition A | Type A |
| Proof of A | Term : A |
| A ∧ B | A × B (product) |
| A ∨ B | A + B (sum) |
| A → B | A → B (function) |
| ¬A | A → ⊥ |
| ∀x.P(x) | Π(x:A).B(x) |
| ∃x.P(x) | Σ(x:A).B(x) |
| ⊤ (True) | Unit type |
| ⊥ (False) | Empty type |