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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
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
RT-PROOFS
PROSA - Formally Proven Schedulability Analysis
Commits
1c1a8bf9
Commit
1c1a8bf9
authored
3 years ago
by
Pierre Roux
Committed by
Björn Brandenburg
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Simplify proof of {l,}eq_sum_seq
parent
fb9eb1f3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!212
various cleanups and simplifications in util
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
util/sum.v
+5
-9
5 additions, 9 deletions
util/sum.v
with
5 additions
and
9 deletions
util/sum.v
+
5
−
9
View file @
1c1a8bf9
...
...
@@ -117,9 +117,8 @@ Section SumsOverSequences.
(
forall
i
,
i
\
in
r
->
P
i
->
E1
i
<=
E2
i
)
->
\
sum_
(
i
<-
r
|
P
i
)
E1
i
<=
\
sum_
(
i
<-
r
|
P
i
)
E2
i
.
Proof
.
intros
LE
.
rewrite
big_seq_cond
[
\
sum_
(_
<-
_|
P
_)_]
big_seq_cond
.
by
apply
leq_sum
;
move
=>
j
/
andP
[
IN
H
];
apply
LE
.
move
=>
le
;
rewrite
big_seq_cond
[
X
in
_
<=
X
]
big_seq_cond
.
apply
:
leq_sum
=>
i
/
andP
[];
exact
:
le
.
Qed
.
(** In the same way, if [E1] equals [E2] in all the points considered above, then also the two
...
...
@@ -128,13 +127,10 @@ Section SumsOverSequences.
(
forall
i
,
i
\
in
r
->
P
i
->
E1
i
==
E2
i
)
->
\
sum_
(
i
<-
r
|
P
i
)
E1
i
==
\
sum_
(
i
<-
r
|
P
i
)
E2
i
.
Proof
.
move
=>
EQ
.
rewrite
big_seq_cond
[
\
sum_
(_
<-
_|
P
_)_]
big_seq_cond
.
rewrite
eqn_leq
;
apply
/
andP
;
split
.
all
:
apply
leq_sum
;
move
=>
j
/
andP
[
IN
H
]
.
all
:
by
move
:(
EQ
j
IN
H
)
=>
LEQ
;
lia
.
move
=>
eqE
;
apply
/
eqP
;
rewrite
-
big_filter
-
[
RHS
]
big_filter
.
apply
:
eq_big_seq
=>
x
;
rewrite
mem_filter
=>
/
andP
[
Px
xr
];
exact
/
eqP
/
eqE
.
Qed
.
(** Assume that [P1] implies [P2] in all the points contained in
the set [r]. We prove that, if we sum both functions over those
points, then the sum of [E] conditioned by [P2] will dominate
...
...
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