lean4-htt/tests/lean/run/ind8.lean
Daniel Selsam a9b01991c2 feat(frontends/lean/inductive_cmd): new frontend for the inductive cmd
Conflicts:
	src/frontends/lean/CMakeLists.txt
	src/frontends/lean/structure_cmd.h
2016-08-17 07:34:03 -07:00

18 lines
331 B
Text

inductive Pair1 (A B : Type)
| mk ( ) : A → B → Pair1
check Pair1.mk
check Pair1.mk Prop Prop true false
inductive Pair2 {A : Type} (B : A → Type)
| mk ( ) : Π (a : A), B a → Pair2
check @Pair2.mk
check Pair2.mk (λx, Prop) true false
inductive Pair3 (A B : Type)
| mk : A → B → Pair3
check Pair3.mk true false