The Curry-Howard Correspondence

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/14

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:14 PM on 4/3/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

15 Terms

1
New cards

Simply Typed Lambda Calculus (STLC) Definition

  • Core typed functional language

  • Variables, abstraction λ(x:τ).e, and application e u

  • Types: base types ι or function types τ → σ

  • Terminating and deterministic

2
New cards

STLC Type Rules

  • Variables: (x:τ)∈Γ implies Γ ⊢ x:τ

  • Abstraction: Γ,x:τ ⊢ e:σ implies Γ ⊢ λ(x:τ).e : τ→σ

  • Application: Γ ⊢ e:τ→σ and Γ ⊢ u:τ implies Γ ⊢ e u : σ

3
New cards

STLC Termination Property

  • STLC is terminating
  • No expression reduces indefinitely
  • Not Turing complete, unlike untyped λ-calculus
4
New cards

Recursion via fix Operator

  • Fix operator adds recursion
  • fix (λx.e) reduces to e[x := fix (λx.e)]
  • Type rule: Γ ⊢ e : τ → τ implies Γ ⊢ fix e : τ
5
New cards

isEven via fix

  • f = λ(isEven:ℕ→𝔹).λ(x:ℕ)
  • if (isZero x) then true
  • else if (isZero (x-1)) then false
  • else isEven (x-2)
  • fix f gives recursive isEven
6
New cards

Natural Deduction Rules

  • For intuitionistic logic: axioms, ⊤-I, ⊥-E, ⇒-I, ⇒-E, ∧-I, ∧-E, ∨-I, ∨-E
  • Propositions from atomic p, implication ⇒, conjunction ∧, disjunction ∨, truth ⊤, falsity ⊥
7
New cards

Curry-Howard Correspondence Core Insight

  • Proofs in intuitionistic natural deduction correspond to programs in STLC
  • Types correspond to logical propositions, terms correspond to proofs
8
New cards

Implication and Function Correspondence

  • Γ,x:τ ⊢ x:τ corresponds to Δ,A ⊢ A (axiom)
  • Γ,x:τ ⊢ e:σ implies Γ ⊢ λ(x:τ).e:τ→σ corresponds to Δ,A ⊢ B implies Δ ⊢ A⇒B (⇒-I)
  • Γ ⊢ e:τ→σ and Γ ⊢ u:τ implies Γ ⊢ e u:σ corresponds to Δ ⊢ A⇒B and Δ ⊢ A implies Δ ⊢ B (⇒-E)
9
New cards

Curry-Howard Theorem Statement

  • A proposition A₁,…,Aₙ ⊢ A derivable in intuitionistic logic
  • there exists a term t such that x₁:τ₁,…,xₙ:τₙ ⊢ t:τ
  • each proposition corresponds to a type
10
New cards

Composition as Logical Tautology

  • λ(f:σ→δ).λ(g:τ→σ).λ(x:τ).f(g x)
  • corresponds to logical tautology (B⇒C) ⇒ (A⇒B) ⇒ A ⇒ C
11
New cards

Conjunction and Product Correspondence

  • Γ ⊢ t:τ and Γ ⊢ s:σ implies Γ ⊢ (t,s):τ×σ
  • corresponds to Δ ⊢ A and Δ ⊢ B implies Δ ⊢ A∧B (∧-I)
  • Pairs correspond to conjunction introduction
12
New cards

Disjunction and Sum Correspondence

  • Γ ⊢ t:τᵢ implies Γ ⊢ inl/inr t : τ₁+τ₂
  • corresponds to Δ ⊢ Aᵢ implies Δ ⊢ A₁∨A₂ (∨-I)
  • Sum types correspond to disjunction introduction
13
New cards

Truth and Unit Correspondence

  • Γ ⊢ () : Unit corresponds to Δ ⊢ ⊤ (⊤-I)
  • Unit type with exactly one value corresponds to logical truth
14
New cards

Falsity and Void Correspondence

  • Γ ⊢ e : Void implies Γ ⊢ magic e : τ
  • corresponds to Δ ⊢ ⊥ implies Δ ⊢ A (⊥-E)
  • Empty type corresponds to logical falsity, with ex falso quodlibet
15
New cards

Beyond Intuitionistic Logic

  • Intuitionistic logic rejects the law of excluded middle (A ⇒ A)
  • Corresponds to control operators like call/cc with type ((a→b)→a)→a

Explore top notes

note
PRENATAL DEVELOPMENT
Updated 1221d ago
0.0(0)
note
CGO casus 1
Updated 444d ago
0.0(0)
note
Ancient Philosophers
Updated 1149d ago
0.0(0)
note
2.8 The Early Baroque Period
Updated 1220d ago
0.0(0)
note
Chapter 13: The Sectional Crisis
Updated 1286d ago
0.0(0)
note
Weathering, Soil, and Mass Wasting
Updated 1168d ago
0.0(0)
note
PRENATAL DEVELOPMENT
Updated 1221d ago
0.0(0)
note
CGO casus 1
Updated 444d ago
0.0(0)
note
Ancient Philosophers
Updated 1149d ago
0.0(0)
note
2.8 The Early Baroque Period
Updated 1220d ago
0.0(0)
note
Chapter 13: The Sectional Crisis
Updated 1286d ago
0.0(0)
note
Weathering, Soil, and Mass Wasting
Updated 1168d ago
0.0(0)

Explore top flashcards

flashcards
HFrEF Treatment
94
Updated 474d ago
0.0(0)
flashcards
Chapter 26
75
Updated 721d ago
0.0(0)
flashcards
Biopsychology -
62
Updated 583d ago
0.0(0)
flashcards
unit 3 ap hug
56
Updated 1211d ago
0.0(0)
flashcards
Psychology AOS Research Methods
51
Updated 303d ago
0.0(0)
flashcards
MI Quiz 1.4, 2.1, 2.2
58
Updated 1149d ago
0.0(0)
flashcards
HFrEF Treatment
94
Updated 474d ago
0.0(0)
flashcards
Chapter 26
75
Updated 721d ago
0.0(0)
flashcards
Biopsychology -
62
Updated 583d ago
0.0(0)
flashcards
unit 3 ap hug
56
Updated 1211d ago
0.0(0)
flashcards
Psychology AOS Research Methods
51
Updated 303d ago
0.0(0)
flashcards
MI Quiz 1.4, 2.1, 2.2
58
Updated 1149d ago
0.0(0)