lean2/tests/lean/tst7.lean
Leonardo de Moura 9f08156a73 feat(frontends/lean/parser): combine Echo and Show commands into the 'print' command
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 11:03:35 -08:00

17 lines
595 B
Text

Variable f : Pi (A : Type), A -> Bool
print fun (A B : Type) (a : _), f B a
-- The following one should produce an error
print fun (A : Type) (a : _) (B : Type), f B a
Variable myeq : Pi A : (Type U), A -> A -> Bool
print myeq _ (fun (A : Type) (a : _), a) (fun (B : Type) (b : B), b)
Check myeq _ (fun (A : Type) (a : _), a) (fun (B : Type) (b : B), b)
Variable R : Type -> Bool
Variable h : (Pi (A : Type), R A) -> Bool
Check (fun (H : Bool)
(f1 : Pi (A : Type), R _)
(g1 : Pi (A : Type), R A)
(G : Pi (A : Type), myeq _ (f1 _) (g1 A)),
h f1)