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
a6d2be96
Commit
a6d2be96
authored
3 years ago
by
Ralf Jung
Browse files
Options
Downloads
Plain Diff
Merge branch 'ralf/relations' into 'master'
relations lemmas See merge request
!316
parents
6688588a
dbd58457
No related branches found
No related tags found
1 merge request
!316
relations lemmas
Pipeline
#51453
passed
3 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/relations.v
+28
-0
28 additions, 0 deletions
theories/relations.v
with
28 additions
and
0 deletions
theories/relations.v
+
28
−
0
View file @
a6d2be96
...
@@ -225,6 +225,13 @@ Section general.
...
@@ -225,6 +225,13 @@ Section general.
Lemma
tc_rtc
x
y
:
tc
R
x
y
→
rtc
R
x
y
.
Lemma
tc_rtc
x
y
:
tc
R
x
y
→
rtc
R
x
y
.
Proof
.
induction
1
;
eauto
.
Qed
.
Proof
.
induction
1
;
eauto
.
Qed
.
Lemma
red_tc
x
:
red
(
tc
R
)
x
↔
red
R
x
.
Proof
.
split
.
-
intros
[
y
[]];
eexists
;
eauto
.
-
intros
[
y
HR
]
.
exists
y
.
by
apply
tc_once
.
Qed
.
Lemma
tc_congruence
{
B
}
(
f
:
A
→
B
)
(
R'
:
relation
B
)
x
y
:
Lemma
tc_congruence
{
B
}
(
f
:
A
→
B
)
(
R'
:
relation
B
)
x
y
:
(
∀
x
y
,
R
x
y
→
R'
(
f
x
)
(
f
y
))
→
tc
R
x
y
→
tc
R'
(
f
x
)
(
f
y
)
.
(
∀
x
y
,
R
x
y
→
R'
(
f
x
)
(
f
y
))
→
tc
R
x
y
→
tc
R'
(
f
x
)
(
f
y
)
.
Proof
.
induction
2
;
econstructor
;
by
eauto
.
Qed
.
Proof
.
induction
2
;
econstructor
;
by
eauto
.
Qed
.
...
@@ -344,6 +351,12 @@ Section general.
...
@@ -344,6 +351,12 @@ Section general.
-
intros
(
l
&
?
&
?
&
?
&
?)
.
exists
(
pred
(
length
l
))
.
-
intros
(
l
&
?
&
?
&
?
&
?)
.
exists
(
pred
(
length
l
))
.
split
;
[
lia
|]
.
apply
nsteps_list
.
exists
l
.
eauto
with
lia
.
split
;
[
lia
|]
.
apply
nsteps_list
.
exists
l
.
eauto
with
lia
.
Qed
.
Qed
.
Lemma
ex_loop_inv
x
:
ex_loop
R
x
→
∃
x'
,
R
x
x'
∧
ex_loop
R
x'
.
Proof
.
inversion
1
;
eauto
.
Qed
.
End
general
.
End
general
.
Section
more_general
.
Section
more_general
.
...
@@ -366,6 +379,21 @@ Section more_general.
...
@@ -366,6 +379,21 @@ Section more_general.
(
∀
x
y
,
R
x
y
→
R'
(
f
x
)
(
f
y
))
→
rtsc
R
x
y
→
rtsc
R'
(
f
x
)
(
f
y
)
.
(
∀
x
y
,
R
x
y
→
R'
(
f
x
)
(
f
y
))
→
rtsc
R
x
y
→
rtsc
R'
(
f
x
)
(
f
y
)
.
Proof
.
unfold
rtsc
;
eauto
using
rtc_congruence
,
sc_congruence
.
Qed
.
Proof
.
unfold
rtsc
;
eauto
using
rtc_congruence
,
sc_congruence
.
Qed
.
Lemma
ex_loop_tc
x
:
ex_loop
(
tc
R
)
x
↔
ex_loop
R
x
.
Proof
.
split
.
-
revert
x
;
cofix
IH
.
intros
x
(
y
&
Hstep
&
Hloop'
)
%
ex_loop_inv
.
destruct
Hstep
as
[
x
y
Hstep
|
x
y
z
Hstep
Hsteps
]
.
+
econstructor
;
eauto
.
+
econstructor
;
[
by
eauto
|]
.
eapply
IH
.
econstructor
;
eauto
.
-
revert
x
;
cofix
IH
.
intros
x
(
y
&
Hstep
&
Hloop'
)
%
ex_loop_inv
.
econstructor
;
eauto
using
tc_once
.
Qed
.
End
more_general
.
End
more_general
.
Section
properties
.
Section
properties
.
...
...
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