lean2/tests/lean/run/ctx.lean
2014-10-02 17:55:34 -07:00

22 lines
384 B
Text

import data.nat logic.core.inhabited
open nat inhabited
constant N : Type.{1}
constant a : N
section s1
set_option pp.implicit true
definition f (a b : nat) := a
theorem nat_inhabited [instance] : inhabited nat :=
inhabited.mk zero
definition to_N [coercion] (n : nat) : N := a
infixl `$$`:65 := f
end s1
theorem tst : inhabited nat
constants n m : nat
check n = a