chore(tests/lean): fix tests output

This commit is contained in:
Leonardo de Moura 2016-07-26 17:54:30 -07:00
parent 3fd452d1db
commit 9a98501966
8 changed files with 16 additions and 31 deletions

View file

@ -399,7 +399,7 @@ void elaborator::validate_overloads(buffer<expr> const & fns, expr const & ref)
format msg("invalid overloaded application, "
"elaborator has special support for '");
msg += pp(fn_i);
msg += format(" (it is handled as an \"eliminator\"), "
msg += format("' (it is handled as an \"eliminator\"), "
"but this kind of constant cannot be overloaded "
"(solution: use fully qualified names) ");
msg += pp_overloads(fns);

View file

@ -1,3 +1,2 @@
acc.rec :
Π {A} {R} {C},
(Π x, (∀ y, R y x → acc A R y) → (Π y, R y x → C y) → C x) → (Π {a}, acc A R a → C a)
Π {A} {R} {C}, (Π x, (∀ y, R y x → acc A R y) → (Π y, R y x → C y) → C x) → (Π {a}, acc A R a → C a)

View file

@ -1,19 +1,13 @@
bug1.lean:9:7: error: type mismatch at definition 'and_intro1', has type
∀ p q,
p → q → (∀ c, (p → q → c) → c)
∀ p q, p → q → (∀ c, (p → q → c) → c)
but is expected to have type
∀ p q,
p → q → a
∀ p q, p → q → a
bug1.lean:13:7: error: type mismatch at definition 'and_intro2', has type
∀ p q,
p → q → (∀ c, (p → q → c) → c)
∀ p q, p → q → (∀ c, (p → q → c) → c)
but is expected to have type
∀ p q,
p → q → p ∧ p
∀ p q, p → q → p ∧ p
bug1.lean:17:7: error: type mismatch at definition 'and_intro3', has type
∀ p q,
p → q → (∀ c, (p → q → c) → c)
∀ p q, p → q → (∀ c, (p → q → c) → c)
but is expected to have type
∀ p q,
p → q → q ∧ p
∀ p q, p → q → q ∧ p
and_intro4 : ∀ p q, p → q → p ∧ q

View file

@ -1,5 +1,4 @@
f a (foo1 a) = f a (foo2 a)
f a (foo1 a) = f a (foo1 a)
f a (foo2 a) = f a (foo2 a)
(λ x, f x (id (id (id (foo1 x))))) = λ x,
f x (foo2 x)
(λ x, f x (id (id (id (foo1 x))))) = λ x, f x (foo2 x)

View file

@ -1,6 +1,5 @@
error_pos_bug.lean:9:0: error: type error in placeholder assigned to
λ a b c,
a
λ a b c, a
placeholder has type
Category
but is expected to have type

View file

@ -1,3 +1,2 @@
a b c :
⊢ ∀ (y x : ),
x = y → y = x
⊢ ∀ (y x : ), x = y → y = x

View file

@ -2,14 +2,10 @@ let bool := Prop,
and := λ p q, Π c, (p → q → c) → c,
and_intro := λ p q H1 H2 c H, H H1 H2
in and_intro :
∀ p q,
p → q → (∀ c, (p → q → c) → c)
∀ p q, p → q → (∀ c, (p → q → c) → c)
let1.lean:19:19: error: type mismatch at term
λ p q H1 H2 c H,
H H1 H2
λ p q H1 H2 c H, H H1 H2
has type
∀ p q,
p → q → (∀ c, (p → q → c) → c)
∀ p q, p → q → (∀ c, (p → q → c) → c)
but is expected to have type
∀ p q,
p → q → (λ p q, ∀ c, (p → q → c) → c) q p
∀ p q, p → q → (λ p q, ∀ c, (p → q → c) → c) q p

View file

@ -1,5 +1,4 @@
3
b : ,
H : b > 0
⊢ ∀ a,
a > 0 → a > b → a = b → true
⊢ ∀ a, a > 0 → a > b → a = b → true