Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
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
Model registry
Monitor
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
Iris
stdpp
Commits
5f2a6b77
Commit
5f2a6b77
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Some results about `app` and `StronglySorted`.
parent
348cf509
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#18220
passed
5 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/sorting.v
+20
-0
20 additions, 0 deletions
theories/sorting.v
with
20 additions
and
0 deletions
theories/sorting.v
+
20
−
0
View file @
5f2a6b77
...
@@ -50,6 +50,26 @@ Inductive TlRel {A} (R : relation A) (a : A) : list A → Prop :=
...
@@ -50,6 +50,26 @@ Inductive TlRel {A} (R : relation A) (a : A) : list A → Prop :=
Section
sorted
.
Section
sorted
.
Context
{
A
}
(
R
:
relation
A
)
.
Context
{
A
}
(
R
:
relation
A
)
.
Lemma
elem_of_StronglySorted_app
l1
l2
x1
x2
:
StronglySorted
R
(
l1
++
l2
)
→
x1
∈
l1
→
x2
∈
l2
→
R
x1
x2
.
Proof
.
induction
l1
as
[|
x1'
l1
IH
];
simpl
;
[
by
rewrite
elem_of_nil
|]
.
intros
[?
Hall
]
%
StronglySorted_inv
[
->
|?]
%
elem_of_cons
?;
[|
by
auto
]
.
rewrite
Forall_app
,
!
Forall_forall
in
Hall
.
naive_solver
.
Qed
.
Lemma
StronglySorted_app_inv_l
l1
l2
:
StronglySorted
R
(
l1
++
l2
)
→
StronglySorted
R
l1
.
Proof
.
induction
l1
as
[|
x1'
l1
IH
];
simpl
;
[|
inversion_clear
1
];
decompose_Forall
;
constructor
;
auto
.
Qed
.
Lemma
StronglySorted_app_inv_r
l1
l2
:
StronglySorted
R
(
l1
++
l2
)
→
StronglySorted
R
l2
.
Proof
.
induction
l1
as
[|
x1'
l1
IH
];
simpl
;
[|
inversion_clear
1
];
decompose_Forall
;
auto
.
Qed
.
Lemma
Sorted_StronglySorted
`{
!
Transitive
R
}
l
:
Lemma
Sorted_StronglySorted
`{
!
Transitive
R
}
l
:
Sorted
R
l
→
StronglySorted
R
l
.
Sorted
R
l
→
StronglySorted
R
l
.
Proof
.
by
apply
Sorted
.
Sorted_StronglySorted
.
Qed
.
Proof
.
by
apply
Sorted
.
Sorted_StronglySorted
.
Qed
.
...
...
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