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
6eb9b908
Commit
6eb9b908
authored
3 years ago
by
Pierre Roux
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused section
parent
d4e42003
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/nat.v
+11
-21
11 additions, 21 deletions
util/nat.v
with
11 additions
and
21 deletions
util/nat.v
+
11
−
21
View file @
6eb9b908
...
@@ -115,26 +115,16 @@ Section Interval.
...
@@ -115,26 +115,16 @@ Section Interval.
End
Interval
.
End
Interval
.
(** In the section, we introduce an additional lemma about relation
(* [ltn_leq_trans]: Establish that [m < p] if [m < n] and [n <= p], to mirror the
[<] over natural numbers. *)
lemma [leq_ltn_trans] in [ssrnat].
Section
NatOrderLemmas
.
(* Mimic the way implicit arguments are used in [ssreflect]. *)
NB: There is a good reason for this lemma to be "missing" in [ssrnat] --
Set
Implicit
Arguments
.
since [m < n] is defined as [m.+1 <= n], [ltn_leq_trans] is just
Unset
Strict
Implicit
.
[m.+1 <= n -> n <= p -> m.+1 <= p], that is [@leq_trans n m.+1 p]
.
(* [ltn_leq_trans]: Establish that [m < p] if [m < n] and [n <= p], to mirror the
Nonetheless we introduce it here because an additional (even though
lemma [leq_ltn_trans] in [ssrnat].
arguably redundant) lemma doesn't hurt, and for newcomers the apparent
absence of the mirror case of [leq_ltn_trans] can be somewhat confusing. *)
NB: There is a good reason for this lemma to be "missing" in [ssrnat] --
#[
deprecated
(
since
=
"0.4"
,
note
=
"Use leq_trans instead since n < m is just a notation for n.+1 <= m (c.f., comment in util/nat.v)."
)]
since [m < n] is defined as [m.+1 <= n], [ltn_leq_trans] is just
Lemma
ltn_leq_trans
[
n
m
p
]
:
m
<
n
->
n
<=
p
->
m
<
p
.
[m.+1 <= n -> n <= p -> m.+1 <= p], that is [@leq_trans n m.+1 p].
Proof
.
exact
:
leq_trans
.
Qed
.
Nonetheless we introduce it here because an additional (even though
arguably redundant) lemma doesn't hurt, and for newcomers the apparent
absence of the mirror case of [leq_ltn_trans] can be somewhat confusing. *)
#[
deprecated
(
since
=
"0.4"
,
note
=
"Use leq_trans instead since n < m is just a notation for n.+1 <= m (c.f., comment in util/nat.v)."
)]
Lemma
ltn_leq_trans
n
m
p
:
m
<
n
->
n
<=
p
->
m
<
p
.
Proof
.
exact
(
@
leq_trans
n
m
.
+
1
p
)
.
Qed
.
End
NatOrderLemmas
.
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