scrambled
Concept

Curry howard correspondence

Modified just now
JourneyProgramming Language Theory Statuslearning Tags
  • logic
  • semantics
  • type theory

Remark. Brouwer-Heyting-Kolmogorov (BHK) interpretation makes this correspondence explicit:

  • Propositions ~ types.
  • Proofs ~ terms inhabiting those types.
LogicProgramming
Proposition AAType AA
Proof of AATerm of type AA
ABA \to BFunction type ABA \to B
ABA \land BProduct type A×BA \times B
ABA \lor BSum type A+BA + B
x. P(x)\forall x.\ P(x)Dependent function ΠxP(x)\Pi_{x} P(x)
x. P(x)\exists x.\ P(x)Dependent pair ΣxP(x)\Sigma_{x} P(x)
  • BHK: A proof of ABA \to B is a function transforming proofs of AA into proofs of BB.
  • Program: A term of type ABA\to B is a function transforming terms of type AA to terms of type BB.