lean2/tests/lean/run/n4.lean
Leonardo de Moura bbff564a1c feat(frontends/lean): persistent notation in sections
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-06 11:14:20 -07:00

20 lines
423 B
Text

definition Prop [inline] : Type.{1} := Type.{0}
context
variable N : Type.{1}
variables a b c : N
variable and : Prop → Prop → Prop
infixr `∧`:35 := and
variable le : N → N → Prop
variable lt : N → N → Prop
precedence `≤`:50
precedence `<`:50
infixl ≤ := le
infixl < := lt
check a ≤ b
definition T : Prop := a ≤ b
check T
end
check T
(*
print(get_env():find("T"):value())
*)