chore(tests/lean): adjust tests to recent changes

This commit is contained in:
Leonardo de Moura 2017-01-20 19:08:41 -08:00
parent 4e6ad1d34d
commit f079d05fc2
8 changed files with 154 additions and 69 deletions

View file

@ -1,4 +1,4 @@
a + of_num b = 10 : Prop
(λ (x : ), x) a + of_num b = 10 : Prop
@eq.{1} nat (@add.{1} nat nat.has_add ((λ (x : nat), x) a) (nat.of_num b))
(@bit0.{1} nat nat.has_add
(@bit1.{1} nat nat.has_one nat.has_add (@bit0.{1} nat nat.has_add (@one.{1} nat nat.has_one)))) :

View file

@ -2,6 +2,6 @@ open nat
check (λ x : nat, x) 1
set_option pp.beta false
set_option pp.beta true
check (λ x : nat, x) 1

View file

@ -1,2 +1,2 @@
1 :
(λ (x : ), x) 1 :
1 :

View file

@ -1,3 +1,3 @@
ind c ⟦a⟧ : B ⟦a⟧
ind c ⟦a⟧ : (λ (_x : quot s), B _x) ⟦a⟧
c a : B ⟦a⟧
c a

View file

@ -1,8 +1,9 @@
tactic_state_pp.lean:31:0: error: tactic failed, there are unsolved goals
state:
My custom goal visualizer
Goal: ∀ {n_1 : } (a : α) (a_1 : Vec α n_1), n = nat.succ n_1 → v == Vec.cons a a_1 → f v ≠ 2
Goal: ∀ {n_1 : } (a : α) (a_1 : Vec α n_1),
(λ (a : ) (w : Vec α a), n = a → v == w → f v ≠ 2) (nat.succ n_1) (Vec.cons a a_1)
tactic_state_pp.lean:39:0: error: tactic failed, there are unsolved goals
state:
My custom goal visualizer
Goal: ∀ (a : ), n = succ a → 0 < n → succ (pred n) = n
Goal: ∀ (a : ), (λ (w : ), n = w → 0 < n → succ (pred n) = n) (succ a)

View file

@ -2,15 +2,27 @@ succ
(prod.fst
(prod.fst
(nat.rec
(λ (a : ),
nat.cases_on 0 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (succ a_1)), succ (prod.fst (prod.fst _F) a))
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : () × nat.below a),
(λ (a_1 : ),
nat.cases_on (succ a) (λ (_F : nat.below 0), a_1)
(λ (a : ) (_F : nat.below (succ a)), succ (prod.fst (prod.fst _F) a_1))
(ih_1, poly_unit.star), ih_1, poly_unit.star))
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (succ a_1)), succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
0
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : (λ (a : ), ) a × nat.below a),
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (succ a_1)), succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
(succ a)
(ih_1, poly_unit.star), ih_1, poly_unit.star))
0, poly_unit.star))
2)
3
@ -18,15 +30,27 @@ succ
(prod.fst
(prod.fst
(nat.rec
(λ (a : ),
nat.cases_on 0 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (succ a_1)), succ (prod.fst (prod.fst _F) a))
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : () × nat.below a),
(λ (a_1 : ),
nat.cases_on (succ a) (λ (_F : nat.below 0), a_1)
(λ (a : ) (_F : nat.below (succ a)), succ (prod.fst (prod.fst _F) a_1))
(ih_1, poly_unit.star), ih_1, poly_unit.star))
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (succ a_1)), succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
0
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : (λ (a : ), ) a × nat.below a),
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (succ a_1)), succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
(succ a)
(ih_1, poly_unit.star), ih_1, poly_unit.star))
0, poly_unit.star))
a)
succ a

View file

@ -3,14 +3,26 @@ nat.succ
(prod.fst
(prod.fst
(nat.rec
(λ (a : ),
nat.cases_on 0 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : () × nat.below a),
(λ (a_1 : ),
nat.cases_on (nat.succ a) (λ (_F : nat.below 0), a_1)
(λ (a : ) (_F : nat.below (nat.succ a)), nat.succ (prod.fst (prod.fst _F) a_1))
(ih_1, poly_unit.star), ih_1, poly_unit.star))
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
0
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : (λ (a : ), ) a × nat.below a),
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
(nat.succ a)
(ih_1, poly_unit.star), ih_1, poly_unit.star))
0, poly_unit.star))
1)

View file

@ -2,27 +2,51 @@ nat.succ
(prod.fst
(prod.fst
(nat.rec
(λ (a : ),
nat.cases_on 0 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : () × nat.below a),
(λ (a_1 : ),
nat.cases_on (nat.succ a) (λ (_F : nat.below 0), a_1)
(λ (a : ) (_F : nat.below (nat.succ a)), nat.succ (prod.fst (prod.fst _F) a_1))
(ih_1, poly_unit.star), ih_1, poly_unit.star))
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
0
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : (λ (a : ), ) a × nat.below a),
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
(nat.succ a)
(ih_1, poly_unit.star), ih_1, poly_unit.star))
(prod.fst
(prod.fst
(nat.rec
(λ (a : ),
nat.cases_on 0 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : () × nat.below a),
(λ (a_1 : ),
nat.cases_on (nat.succ a) (λ (_F : nat.below 0), a_1)
(λ (a : ) (_F : nat.below (nat.succ a)), nat.succ (prod.fst (prod.fst _F) a_1))
(ih_1, poly_unit.star), ih_1, poly_unit.star))
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
0
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : (λ (a : ), ) a × nat.below a),
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
(nat.succ a)
(ih_1, poly_unit.star), ih_1, poly_unit.star))
0, poly_unit.star))
1), poly_unit.star))
a)
@ -30,27 +54,51 @@ nat.succ
(prod.fst
(prod.fst
(nat.rec
(λ (a : ),
nat.cases_on 0 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : () × nat.below a),
(λ (a_1 : ),
nat.cases_on (nat.succ a) (λ (_F : nat.below 0), a_1)
(λ (a : ) (_F : nat.below (nat.succ a)), nat.succ (prod.fst (prod.fst _F) a_1))
(ih_1, poly_unit.star), ih_1, poly_unit.star))
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
0
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : (λ (a : ), ) a × nat.below a),
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
(nat.succ a)
(ih_1, poly_unit.star), ih_1, poly_unit.star))
(prod.fst
(prod.fst
(nat.rec
(λ (a : ),
nat.cases_on 0 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : () × nat.below a),
(λ (a_1 : ),
nat.cases_on (nat.succ a) (λ (_F : nat.below 0), a_1)
(λ (a : ) (_F : nat.below (nat.succ a)), nat.succ (prod.fst (prod.fst _F) a_1))
(ih_1, poly_unit.star), ih_1, poly_unit.star))
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
0
poly_unit.star, poly_unit.star)
(λ (a : ) (ih_1 : (λ (a : ), ) a × nat.below a),
((λ (a : ) (_F : nat.below a) (a_1 : ),
(λ (a a_1 : ) (_F : nat.below a_1),
nat.cases_on a_1 (λ (_F : nat.below 0), a)
(λ (a_1 : ) (_F : nat.below (nat.succ a_1)), nat.succ (prod.fst (prod.fst _F) a))
_F)
a_1
a
_F)
(nat.succ a)
(ih_1, poly_unit.star), ih_1, poly_unit.star))
0, poly_unit.star))
1), poly_unit.star))
a)