lean2/tests/lean/run/alias2.lean
Leonardo de Moura 364bba2129 feat(frontends/lean/inductive_cmd): prefix introduction rules with the name of the inductive datatype
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-04 17:26:36 -07:00

22 lines
337 B
Text

import logic
namespace N1
variable num : Type.{1}
variable foo : num → num → num
end N1
namespace N2
variable val : Type.{1}
variable foo : val → val → val
end N2
open N1
open N2
variables a b : num
variable f : num → val
coercion f
definition aux2 := foo a b
check aux2
theorem T3 : aux2 = N1.foo a b
:= eq.refl _