The Logic of Rocq

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

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:10 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

12 Terms

1
New cards

Curry-Howard Correspondence

  • Propositions as Types correspondence

  • Formulas correspond to types

  • Proofs correspond to terms

  • Formula true iff type inhabited

  • Discovered by Haskell Curry and William Howard

2
New cards

Rocq Has-Type Relation

  • t : τ means term t has type τ

  • Rocq's kernel checks this relation

  • All terms are typed

  • Types are terms

3
New cards

Simple Typing Rules

  • lam: x:S ⊢ e:T implies ⊢ (λ(x:S).e) : (S → T)
  • app: ⊢ e1:S→T and ⊢ e2:S implies ⊢ (e1 e2) : T
  • Minimal core of type system
4
New cards

Dependent Function Types

  • lam: x:S ⊢ e:T[x] implies ⊢ (λ(x:S).e) : (∀(x:S), T[x])
  • app: e1:∀(x:S),T[x] and e2:S implies (e1 e2):T[e2]
  • Types can depend on terms
5
New cards

Implication as Function Type

  • P ⇒ Q corresponds to function type P → Q
  • Proof transforms proof of P to proof of Q
  • Modus ponens corresponds to function application
6
New cards

Conjunction as Product Type

  • P ∧ Q corresponds to product type (P,Q)
  • Proof is pair (p,q)
  • Projections correspond to conjunction elimination
7
New cards

Disjunction as Sum Type

  • P ∨ Q corresponds to sum type P + Q (Either)
  • Constructors inl and inr for disjunction introduction
  • Case analysis corresponds to disjunction elimination
8
New cards

Truth as Unit Type

  • ⊤ corresponds to unit type with single constructor
  • Always inhabited
  • Represents trivially true proposition
9
New cards

Falsity as Empty Type

  • ⊥ corresponds to empty type with no constructors
  • No proof exists
  • Uninhabited type represents contradiction
10
New cards

Law of Excluded Middle in Rocq

  • Rocq does not assume P ∨ ¬P by default
  • Constructive logic
  • Axiom for decidable propositions
11
New cards

Constructive Logic

  • Proofs must be constructive
  • Existence proved by explicit construction
  • Rocq implements intuitionistic logic
12
New cards

Logic vs Types in Rocq

  • Rocq doesn't need separate logic
  • Type system provides logical reasoning
  • Propositions are types, proofs are terms

Explore top flashcards

flashcards
Astronomy Science
63
Updated 934d ago
0.0(0)
flashcards
Fr. 4: Les Vêtements
35
Updated 1056d ago
0.0(0)
flashcards
PID Part 1
69
Updated 472d ago
0.0(0)
flashcards
AP Biology Unit 6
79
Updated 202d ago
0.0(0)
flashcards
ASD4 Cap 3
35
Updated 1154d ago
0.0(0)
flashcards
World History - Imperialism Test
53
Updated 1101d ago
0.0(0)
flashcards
Cerebellum
46
Updated 1032d ago
0.0(0)
flashcards
Astronomy Science
63
Updated 934d ago
0.0(0)
flashcards
Fr. 4: Les Vêtements
35
Updated 1056d ago
0.0(0)
flashcards
PID Part 1
69
Updated 472d ago
0.0(0)
flashcards
AP Biology Unit 6
79
Updated 202d ago
0.0(0)
flashcards
ASD4 Cap 3
35
Updated 1154d ago
0.0(0)
flashcards
World History - Imperialism Test
53
Updated 1101d ago
0.0(0)
flashcards
Cerebellum
46
Updated 1032d ago
0.0(0)