2015-05-08 18:32:31 +00:00
|
|
|
finset_induction_bug.lean:30:23: error:invalid 'rewrite' tactic, step produced type incorrect term, details: type mismatch at application
|
2015-06-07 03:30:14 +00:00
|
|
|
@subtype.tag (list A) (@nodup A) x nodup_al'
|
2015-05-08 18:32:31 +00:00
|
|
|
term
|
|
|
|
nodup_al'
|
|
|
|
has type
|
|
|
|
@nodup A (@cons A a l')
|
|
|
|
but is expected to have type
|
|
|
|
@nodup A x
|
|
|
|
rewrite step failed using pattern
|
|
|
|
@cons A_1 a_1 l'_1
|
|
|
|
proof state:
|
|
|
|
A : Type,
|
|
|
|
h : decidable_eq A,
|
|
|
|
P : finset A → Prop,
|
|
|
|
H1 : P (@empty A),
|
2015-06-10 23:26:32 +00:00
|
|
|
H2 : ∀ ⦃s : finset A⦄ {a : A}, not (@mem A a s) → P s → P (@insert A h a s),
|
2015-05-08 18:32:31 +00:00
|
|
|
s : finset A,
|
|
|
|
u : nodup_list A,
|
|
|
|
l : list A,
|
|
|
|
a : A,
|
|
|
|
l' : list A,
|
2016-02-04 20:20:50 +00:00
|
|
|
IH :
|
|
|
|
∀ (has_property : @nodup A l'),
|
|
|
|
P (@quot.mk (nodup_list A) (nodup_list_setoid A) (@subtype.tag (list A) (@nodup A) l' has_property)),
|
2015-05-08 18:32:31 +00:00
|
|
|
nodup_al' : @nodup A (@cons A a l'),
|
|
|
|
anl' : not (@list.mem A a l'),
|
2015-11-03 20:42:25 +00:00
|
|
|
H3 : @eq (list A) (@list.insert A (λ (a b : A), h a b) a l') (@cons A a l'),
|
2015-05-08 18:32:31 +00:00
|
|
|
nodup_l' : @nodup A l',
|
2015-06-10 23:26:32 +00:00
|
|
|
P_l' : P (@quot.mk (nodup_list A) (nodup_list_setoid A) (@subtype.tag (list A) (@nodup A) l' nodup_l')),
|
2015-05-08 18:32:31 +00:00
|
|
|
H4 :
|
|
|
|
P
|
2015-11-03 20:42:25 +00:00
|
|
|
(@insert A (λ (a b : A), h a b) a
|
2015-06-10 23:26:32 +00:00
|
|
|
(@quot.mk (nodup_list A) (nodup_list_setoid A) (@subtype.tag (list A) (@nodup A) l' nodup_l')))
|
|
|
|
⊢ P (@quot.mk (nodup_list A) (nodup_list_setoid A) (@subtype.tag (list A) (@nodup A) (@cons A a l') nodup_al'))
|
2015-05-08 18:32:31 +00:00
|
|
|
finset_induction_bug.lean:30:45: error: don't know how to synthesize placeholder
|
|
|
|
A : Type,
|
|
|
|
h : decidable_eq A,
|
|
|
|
P : finset A → Prop,
|
|
|
|
H1 : P (@empty A),
|
2015-06-10 23:26:32 +00:00
|
|
|
H2 : ∀ ⦃s : finset A⦄ {a : A}, not (@mem A a s) → P s → P (@insert A h a s),
|
2015-05-08 18:32:31 +00:00
|
|
|
s : finset A,
|
|
|
|
u : nodup_list A,
|
|
|
|
l : list A,
|
|
|
|
a : A,
|
|
|
|
l' : list A,
|
2016-02-04 20:20:50 +00:00
|
|
|
IH :
|
|
|
|
∀ (has_property : @nodup A l'),
|
|
|
|
P (@quot.mk (nodup_list A) (nodup_list_setoid A) (@subtype.tag (list A) (@nodup A) l' has_property)),
|
2015-05-08 18:32:31 +00:00
|
|
|
nodup_al' : @nodup A (@cons A a l'),
|
|
|
|
anl' : not (@list.mem A a l'),
|
2015-11-03 20:42:25 +00:00
|
|
|
H3 : @eq (list A) (@list.insert A (λ (a b : A), h a b) a l') (@cons A a l'),
|
2015-05-08 18:32:31 +00:00
|
|
|
nodup_l' : @nodup A l',
|
2015-06-10 23:26:32 +00:00
|
|
|
P_l' : P (@quot.mk (nodup_list A) (nodup_list_setoid A) (@subtype.tag (list A) (@nodup A) l' nodup_l')),
|
2015-05-08 18:32:31 +00:00
|
|
|
H4 :
|
|
|
|
P
|
2015-11-03 20:42:25 +00:00
|
|
|
(@insert A (λ (a b : A), h a b) a
|
2015-06-10 23:26:32 +00:00
|
|
|
(@quot.mk (nodup_list A) (nodup_list_setoid A) (@subtype.tag (list A) (@nodup A) l' nodup_l')))
|
|
|
|
⊢ P (@quot.mk (nodup_list A) (nodup_list_setoid A) (@subtype.tag (list A) (@nodup A) (@cons A a l') nodup_al'))
|
2015-05-08 18:32:31 +00:00
|
|
|
finset_induction_bug.lean:16:5: error: failed to add declaration 'finset.induction₂' to environment, value has metavariables
|
|
|
|
remark: set 'formatter.hide_full_terms' to false to see the complete term
|
|
|
|
λ (A : Type) (h : …) (P : …) (H1 : …) (H2 : …) (s : …),
|
2015-06-10 23:26:32 +00:00
|
|
|
@quot.induction_on … … P s
|
2015-05-08 18:32:31 +00:00
|
|
|
(λ (u : …),
|
|
|
|
@subtype.destruct … … … u
|
|
|
|
(λ (l : …),
|
|
|
|
@list.induction_on A … l …
|
|
|
|
(λ (a : A) (l' : …) (IH : …) (nodup_al' : …),
|
|
|
|
assert anl' : …, from …,
|
|
|
|
assert H3 : …, from …,
|
|
|
|
assert nodup_l' : …, from …,
|
|
|
|
assert P_l' : …, from …,
|
2015-06-10 23:26:32 +00:00
|
|
|
?M_1 …)))
|
2015-05-08 18:32:31 +00:00
|
|
|
finset_induction_bug.lean:30:49: error: invalid end of module, expecting 'end'
|