Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Numerical Analysis in Coq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Micaela Mayero
Numerical Analysis in Coq
Commits
4b220c91
Commit
4b220c91
authored
1 year ago
by
François Clément
Browse files
Options
Downloads
Patches
Plain Diff
Proof of filterP_cast_ord_incrF.
WIP: filterP_ord_incrF_S.
parent
b5cad303
No related branches found
No related tags found
No related merge requests found
Pipeline
#7077
waiting for manual action
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FEM/Algebra/ord_compl.v
+32
-6
32 additions, 6 deletions
FEM/Algebra/ord_compl.v
with
32 additions
and
6 deletions
FEM/Algebra/ord_compl.v
+
32
−
6
View file @
4b220c91
...
...
@@ -2275,14 +2275,40 @@ Lemma unfilterP_ord_inj :
unfilterP_ord
HP0
i
=
unfilterP_ord
HP0
j
->
i
=
j
.
Proof
.
move
=>>
Hi
Hj
;
apply
enum_rank_in_inj
;
apply
/
asboolP
;
easy
.
Qed
.
Lemma
filterP_ord_incrF_S
:
forall
{
n
}
(
P
:
'
I_n
->
Prop
),
incrF_S
(
fun
j
:
'
I_
(
lenPF
P
)
=>
filterP_ord
j
).
Proof
.
intros
n
P
j
Hj1
.
(
*
destruct
(
lt_eq_lt_dec
(
filterP_ord
j1
)
(
filterP_ord
j2
))
as
[[
H
|
H
]
|
H
];
[
easy
|
exfalso
..].
apply
ord_inj
,
filterP_ord_inj
in
H
;
subst
;
contradict
Hj
;
apply
Nat
.
lt_irrefl
.
*
)
(
*
enum_val
nth
sorted
mem
:
pT
->
mem_pred
T
enum_mem
:
mem_pred
T
->
seq
T
:=
filter
Finite
.
enum
mA
enum
A
:=
(
enum_mem
(
mem
A
))
enum_val
:
'
I_
#
|
[
eta
A
]
|
->
T
:=
nth
(
enum_default
i
)
(
enum
A
)
i
enum_rank
:
T
->
'
I_
#
|
[
eta
T
]
|
:=
enum_rank_in
(
erefl
true
)
x
enum_rank_in
:
x0
\
in
A
->
T
->
'
I_
#
|
[
eta
A
]
|
nth_image
:
nth
y0
[
seq
f
x
|
x
in
A
]
i
=
f
(
enum_val
i
)
enum_val_nth
:
enum_val
i
=
nth
x
(
enum
A
)
i
enum_valK
:
cancel
enum_val
enum_rank
enum_rankK
:
cancel
enum_rank
enum_val
nth_codom
:
nth
y0
(
codom
f
)
i
=
f
(
enum_val
i
)
*
)
Admitted
.
Lemma
filterP_ord_incrF
:
forall
{
n
}
(
P
:
'
I_n
->
Prop
),
incrF
(
fun
j
:
'
I_
(
lenPF
P
)
=>
filterP_ord
j
).
Proof
.
intros
n
P
j1
j2
Hj
.
Admitted
.
Proof
.
intros
;
apply
incrF_equiv
,
filterP_ord_incrF_S
.
Qed
.
Lemma
filterP_cast_ord_incrF
:
forall
{
n1
n2
}
{
P1
:
'
I_n1
->
Prop
}
{
P2
:
'
I_n2
->
Prop
}
...
...
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