lean4-htt/tests/lean/run/eq21.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

15 lines
426 B
Text

inductive formula
| eqf : nat → nat → formula
| impf : formula → formula → formula
namespace formula
definition denote : formula → Prop
| denote (eqf n1 n2) := n1 = n2
| denote (impf f1 f2) := denote f1 → denote f2
theorem denote_eqf (n1 n2 : nat) : denote (eqf n1 n2) = (n1 = n2) :=
rfl
theorem denote_impf (f1 f2 : formula) : denote (impf f1 f2) = (denote f1 → denote f2) :=
rfl
end formula