lean2/tests/lean/sig2.lean
Leonardo de Moura 5c991f8fbf feat(frontends/lean): parse and pretty print tuples/pairs
This commit also fixes a bug in the type checker when processing dependent pairs.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-02-03 20:10:30 -08:00

12 lines
350 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

check sig x : Nat, x > 0
check tuple 10, 20, (Nat # Nat)
check tuple 10, true, (Nat # Nat)
check tuple true, 20, (Nat # Nat)
check tuple true, 20, (Bool # Nat)
check tuple true, true, (Bool # Bool)
check tuple true, true, (Bool Bool)
variable a : Nat
axiom Ha : 1 ≤ a
definition NZ : Type := sig x : Nat, 1 ≤ x
check NZ
check tuple a, Ha, NZ