lean2/tests/lean/cast2.lean
Leonardo de Moura 00e89190c2 refactor(library/cast): use .lean file instead of .cpp file to define casting library
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-23 22:04:19 -08:00

12 lines
250 B
Text

Import "cast.lean"
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
SetOption pp::implicit true
Show DomInj H
Show RanInj H a