lean4-htt/old_tests/tests/lean/run/choice_ctx.lean
2018-04-10 12:56:55 -07:00

18 lines
336 B
Text

namespace test
open nat
set_option pp.coercions true
namespace foo
theorem trans {a b c : nat} (H1 : a = b) (H2 : b = c) : a = c :=
eq.trans H1 H2
end foo
open foo
theorem tst (a b : nat) (H0 : b = a) (H : b = 0) : a = 0
:= have H1 : a = b, from eq.symm H0,
foo.trans H1 H
definition f (a b : nat) :=
let x := 3 in
a + x
end test