Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BiCoq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MARCON Cecile
BiCoq
Commits
85b692b6
Commit
85b692b6
authored
5 months ago
by
MARCON Cecile
Browse files
Options
Downloads
Patches
Plain Diff
commit before putting void and epsilon in pat
parent
8d8fad02
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Sorting.v
+19
-3
19 additions, 3 deletions
src/Sorting.v
with
19 additions
and
3 deletions
src/Sorting.v
+
19
−
3
View file @
85b692b6
...
...
@@ -238,6 +238,8 @@ Definition derive (s:mysort) (p:term)
(
*
Theorem
der_in_derive
:
der
x
e
\
in
derive
s
p
.
*
)
Fixpoint
check_pattern_term
(
p
:
term
)
(
l
:
list
mysort
)
:
bool
:=
match
l
with
...
...
@@ -274,16 +276,30 @@ Fixpoint check_pattern_term_faster (p:term) (l:list mysort) : bool :=
end
end
.
Lemma
fold_left_id
{
bo
te
:
Type
}
:
forall
l
:
list
te
,
forall
t
f
f
'
,
f
=
f
'
->
@
fold_left
bo
te
f
l
t
=
fold_left
f
'
l
t
.
intros
.
subst
f
.
reflexivity
.
Qed
.
Lemma
check_pattern_term_faster_eq_check_pattern_term
(
p
:
term
)
(
l
:
list
mysort
)
:
check_pattern_term_faster
p
l
=
check_pattern_term
p
l
.
Proof
.
unfold
check_pattern_term
,
check_pattern_term_faster
.
auto
.
induction
l
.
-
auto
.
-
destruct
p
as
[
fp
op
].
simpl
.
-
auto
.
destruct
p
as
[
fp
op
].
simpl
.
destruct
fp
.
+
unfold
derive
,
derive_func
.
simpl
.
(
*
unfold
fold_left
.
auto
.
rewrite
IHl
.
simpl
.
auto
.
*
)
+
apply
fold_left_id
.
apply
functional_extensionality
.
intros
bo
.
apply
functional_extensionality
.
intros
te
.
destruct
bo
eqn
:
BI
.
++
rewrite
(
Bool
.
orb_true_r
(
check_pattern_term
te
l
)).
rewrite
(
Bool
.
orb_true_r
).
reflexivity
.
++
Search
(
orb
_
false
).
rewrite
(
Bool
.
orb_false_r
).
rewrite
(
Bool
.
orb_false_r
).
Abort
.
(
*
Fixpoint
check_pattern_term_in_dec
(
p
:
term
)
(
l
:
list
mysort
)
:
bool
:=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment