lean2/tests/lean/run/alias2.lean
Leonardo de Moura b956ce68d2 feat(frontends/lean/elaborator): keep postponing delayed coercions until the type can be inferred
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-07-07 12:50:43 -07:00

23 lines
331 B
Text

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