Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pierre Letouzey
natded
Commits
d357b570
Commit
d357b570
authored
May 07, 2019
by
Pierre Letouzey
Browse files
Natded: nettoyage de preuves (forallb)
parent
bf5fa1c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Meta.v
View file @
d357b570
...
...
@@ -18,8 +18,7 @@ Proof.
-
destruct
funsymbs
;
auto
.
rewrite
!
lazy_andb_iff
,
map_length
.
intros
Hu
(
Hl
,
Hl
'
);
split
;
auto
.
rewrite
forallb_forall
in
*
.
intros
t
Ht
.
rewrite
in_map_iff
in
Ht
.
destruct
Ht
as
(
t
'
&
<-
&
Ht
'
);
auto
.
rewrite
forallb_map
,
forallb_forall
in
*
.
auto
.
Qed
.
Lemma
check_bsubst
sign
n
u
(
f
:
formula
)
:
...
...
@@ -31,9 +30,8 @@ Proof.
-
destruct
predsymbs
;
auto
.
rewrite
!
lazy_andb_iff
in
*
.
rewrite
map_length
.
destruct
Hf
as
(
Hl
,
Hl
'
);
split
;
auto
.
rewrite
forallb_forall
in
*
.
intros
t
Ht
.
rewrite
in_map_iff
in
Ht
.
destruct
Ht
as
(
t
'
&
<-
&
Ht
'
);
auto
using
check_bsubst_term
.
rewrite
forallb_map
,
forallb_forall
in
*
.
auto
using
check_bsubst_term
.
-
rewrite
!
lazy_andb_iff
in
*
;
intuition
.
Qed
.
...
...
@@ -1351,10 +1349,7 @@ Proof.
destruct
funsymbs
eqn
:
E
;
try
easy
.
case
eqbspec
;
cbn
;
auto
.
intros
<-
.
rewrite
E
.
rewrite
map_length
,
eqb_refl
.
rewrite
forallb_forall
.
intros
t
Ht
.
rewrite
in_map_iff
in
Ht
.
destruct
Ht
as
(
a
&
<-
&
Ha
);
auto
.
rewrite
E
,
map_length
,
eqb_refl
,
forallb_map
,
forallb_forall
;
auto
.
Qed
.
Lemma
restrict_form_check
sign
x
(
f
:
formula
)
:
...
...
@@ -1364,11 +1359,8 @@ Proof.
-
destruct
predsymbs
eqn
:
E
;
try
easy
.
case
eqbspec
;
cbn
;
auto
.
intros
<-
.
rewrite
E
.
rewrite
map_length
,
eqb_refl
.
rewrite
forallb_forall
.
intros
t
Ht
.
rewrite
in_map_iff
in
Ht
.
destruct
Ht
as
(
a
&
<-
&
Ha
);
auto
using
restrict_term_check
.
rewrite
E
,
map_length
,
eqb_refl
,
forallb_map
,
forallb_forall
;
auto
using
restrict_term_check
.
-
now
rewrite
IHf1
,
IHf2
.
Qed
.
...
...
@@ -1397,9 +1389,7 @@ Lemma restrict_deriv_check sign x (d:derivation) :
Proof
.
induction
d
as
[
r
s
ds
IH
]
using
derivation_ind
'
;
cbn
.
rewrite
restrict_rule_check
,
restrict_seq_check
.
rewrite
forallb_forall
.
intros
d
Hd
.
apply
in_map_iff
in
Hd
.
destruct
Hd
as
(
d
'
&
<-
&
Hd
'
).
rewrite
Forall_forall
in
IH
;
auto
.
rewrite
forallb_map
,
forallb_forall
,
Forall_forall
in
*
;
auto
.
Qed
.
(
**
When
a
derivation
has
some
bounded
variables
,
we
could
...
...
TODO
View file @
d357b570
...
...
@@ -18,7 +18,7 @@ General
- essayer preuves de Equiv et Equiv2 directement sur hsubst
(peut-on avoir substs simultanée que en def alternative ?)
-
unionmap_in à revoir, plus gal pourquoi autant de map
_in
_iff
(x)
unionmap_in à revoir, plus gal pourquoi autant de
in_
map_iff
PreModel : revoir a se passer de BClosed general,
maintenant que Valid impose des temoins BClosed (??)
...
...
Utils.v
View file @
d357b570
...
...
@@ -393,3 +393,9 @@ Lemma map_id_iff {A} (f : A -> A) l :
Proof
.
rewrite
<-
(
map_id
l
)
at
2.
apply
map_ext_iff
.
Qed
.
Lemma
forallb_map
{
A
B
}
(
f
:
B
->
bool
)
(
g
:
A
->
B
)
l
:
forallb
f
(
map
g
l
)
=
forallb
(
fun
x
=>
f
(
g
x
))
l
.
Proof
.
induction
l
;
simpl
;
f_equal
;
auto
.
Qed
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment