add a small demo for lean mode
This commit is contained in:
parent
9654382294
commit
8f49d3d897
1 changed files with 9 additions and 0 deletions
9
demo/kitchen-sink/docs/lean.lean
Normal file
9
demo/kitchen-sink/docs/lean.lean
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
import logic
|
||||||
|
section
|
||||||
|
variables (A : Type) (p q : A → Prop)
|
||||||
|
|
||||||
|
example : (∀x : A, p x ∧ q x) → ∀y : A, p y :=
|
||||||
|
assume H : ∀x : A, p x ∧ q x,
|
||||||
|
take y : A,
|
||||||
|
show p y, from and.elim_left (H y)
|
||||||
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue