lean2/tests/lean/t6.lean
Leonardo de Moura a65c43c0db feat(frontends/lean/builtin_cmds): add definition command family
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-13 17:30:35 -07:00

11 lines
294 B
Text

section
{parameter} A : Type -- Mark A as implicit parameter
parameter R : A → A → Bool
definition id (a : A) : A := a
definition refl : Bool := forall (a : A), R a a
definition symm : Bool := forall (a b : A), R a b -> R b a
end
check id.{2}
check refl.{1}
check symm.{1}