curry-howard

Slides of a (very) informal lecture of mine on the Curry-Howard correspondence

Commit
f8e84114c03abad5a851e93458687d8583cae978
Parent
a8575ed6bb2b61c341159bdca7d19016d02a9cb3
Author
Pablo <pablo-escobar@riseup.net>
Date

Made the Lean code more idiomatic

Diffstat

2 files changed, 4 insertions, 4 deletions

Status File Name N° Changes Insertions Deletions
Modified examples/eq.lean 2 1 1
Modified examples/types.lean 6 3 3
diff --git a/examples/eq.lean b/examples/eq.lean
@@ -1,4 +1,4 @@
-inductive eq (x : t) (y : t) : Prop
+inductive eq (x y : t) : Prop
 | rfl : eq x x
 
 infix = := eq
diff --git a/examples/types.lean b/examples/types.lean
@@ -1,7 +1,7 @@
--- a e b <-> And a b
-inductive and (a : Prop) (b : Prop) : Prop
+-- a e b <-> and a b
+inductive and (a b : Prop) : Prop
 | intro : a → b → and a b
 
-inductive or (a : Prop) (b : Prop) : Prop
+inductive or (a b : Prop) : Prop
 | inl : a → or a b
 | inr : b → or a b