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
734d4e81
Commit
734d4e81
authored
1 year ago
by
Meenal Gupta
Committed by
Björn Brandenburg
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
add two utility lemmas to `util.nat`
parent
3a96532d
No related branches found
Branches containing commit
No related tags found
1 merge request
!316
utility lemmas and cleanups needed for a later ELF MR
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
util/nat.v
+12
-0
12 additions, 0 deletions
util/nat.v
with
12 additions
and
0 deletions
util/nat.v
+
12
−
0
View file @
734d4e81
...
...
@@ -32,6 +32,18 @@ Section NatLemmas.
forall
n
,
a
+
z
*
c
<>
b
+
n
*
c
.
Proof
.
move
=>
b_le_a
+
n
=>
/
(_
(
n
-
z
));
rewrite
mulnBl
;
lia
.
Qed
.
(** Next, we show that the maximum of any two natural numbers [m,n] is smaller than
the sum of the numbers [m + n]. *)
Lemma
max_leq_add
m
n
:
maxn
m
n
<=
m
+
n
.
Proof
.
by
rewrite
geq_max
?leq_addl
?leq_addr
.
Qed
.
(** For convenience, we observe that the [nat_of_bool] coercion can be dropped
when establishing equality. *)
Lemma
nat_of_bool_eq
(
b1
b2
:
bool
)
:
(
nat_of_bool
b1
==
nat_of_bool
b2
)
=
(
b1
==
b2
)
.
Proof
.
by
case
:
b1
;
case
:
b2
.
Qed
.
End
NatLemmas
.
(** In this section, we prove a lemma about intervals of natural
...
...
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