lean2/tests/lean/cast2.lean
Leonardo de Moura c0c2f52087 Add Cast, DomInj and RanInj. Improve operator << for lean_frontend objects.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-09-06 18:32:15 -07:00

11 lines
221 B
Text

Variable A : Type
Variable B : Type
Variable A' : Type
Variable B' : Type
Axiom H : A -> B = A' -> B'
Variable a : A
Check DomInj H
Theorem BeqB' : B = B' := RanInj H a
Set pp::implicit true
Show DomInj H
Show RanInj H a