Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROSA - Formally Proven Schedulability Analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lasse Blaauwbroek
PROSA - Formally Proven Schedulability Analysis
Commits
e7d2a65b
Commit
e7d2a65b
authored
8 years ago
by
Felipe Cerqueira
Browse files
Options
Downloads
Patches
Plain Diff
Add more lemmas about min/max
parent
d73b801d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
util/minmax.v
+22
-0
22 additions, 0 deletions
util/minmax.v
with
22 additions
and
0 deletions
util/minmax.v
+
22
−
0
View file @
e7d2a65b
...
@@ -444,6 +444,17 @@ Section MinMaxSeq.
...
@@ -444,6 +444,17 @@ Section MinMaxSeq.
Definition
max_nat_cond
P
(
a
b
:
nat
)
:=
Definition
max_nat_cond
P
(
a
b
:
nat
)
:=
seq_max_nat
(
filter
P
(
values_between
a
b
))
.
seq_max_nat
(
filter
P
(
values_between
a
b
))
.
Lemma
min_nat_cond_exists
:
forall
(
P
:
nat
->
bool
)
(
a
b
:
nat
)
x
,
a
<=
x
<
b
->
P
x
->
min_nat_cond
P
a
b
!=
None
.
Proof
.
intros
P
a
b
x
LE
HOLDS
.
apply
seq_argmin_exists
with
(
x0
:=
x
)
.
by
rewrite
mem_filter
mem_values_between
HOLDS
LE
.
Qed
.
Lemma
min_nat_cond_in_seq
:
Lemma
min_nat_cond_in_seq
:
forall
P
a
b
x
,
forall
P
a
b
x
,
min_nat_cond
P
a
b
=
Some
x
->
min_nat_cond
P
a
b
=
Some
x
->
...
@@ -465,6 +476,17 @@ Section MinMaxSeq.
...
@@ -465,6 +476,17 @@ Section MinMaxSeq.
by
rewrite
mem_filter
Py
andTb
mem_values_between
.
by
rewrite
mem_filter
Py
andTb
mem_values_between
.
Qed
.
Qed
.
Lemma
max_nat_cond_exists
:
forall
(
P
:
nat
->
bool
)
(
a
b
:
nat
)
x
,
a
<=
x
<
b
->
P
x
->
max_nat_cond
P
a
b
!=
None
.
Proof
.
intros
P
a
b
x
LE
HOLDS
.
apply
seq_argmax_exists
with
(
x0
:=
x
)
.
by
rewrite
mem_filter
mem_values_between
HOLDS
LE
.
Qed
.
Lemma
max_nat_cond_in_seq
:
Lemma
max_nat_cond_in_seq
:
forall
P
a
b
x
,
forall
P
a
b
x
,
max_nat_cond
P
a
b
=
Some
x
->
max_nat_cond
P
a
b
=
Some
x
->
...
...
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