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
f6e466d1
Commit
f6e466d1
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add lemma `tc_finite_sn`.
parent
ee76981d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#31760
passed
4 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/relations.v
+17
-1
17 additions, 1 deletion
theories/relations.v
with
17 additions
and
1 deletion
theories/relations.v
+
17
−
1
View file @
f6e466d1
...
...
@@ -2,7 +2,7 @@
These are particularly useful as we define the operational semantics as a
small step semantics. *)
From
Coq
Require
Import
Wf_nat
.
From
stdpp
Require
Export
tactics
ba
se
.
From
stdpp
Require
Export
se
ts
.
Set
Default
Proof
Using
"Type"
.
(** * Definitions *)
...
...
@@ -280,6 +280,22 @@ Section properties.
Lemma
wn_step_rtc
x
y
:
wn
R
y
→
rtc
R
x
y
→
wn
R
x
.
Proof
.
induction
2
;
eauto
using
wn_step
.
Qed
.
(** An acyclic relation that can only take finitely many steps is strongly
normalizing *)
Lemma
tc_finite_sn
x
:
Irreflexive
(
tc
R
)
→
pred_finite
(
tc
R
x
)
→
sn
R
x
.
Proof
.
intros
Hirr
[
xs
Hfin
]
.
remember
(
length
xs
)
as
n
eqn
:
Hn
.
revert
x
xs
Hn
Hfin
.
induction
(
lt_wf
n
)
as
[
n
_
IH
];
intros
x
xs
->
Hfin
.
constructor
;
simpl
;
intros
x'
Hxx'
.
assert
(
x'
∈
xs
)
as
(
xs1
&
xs2
&
->
)
%
elem_of_list_split
by
eauto
using
tc_once
.
refine
(
IH
(
length
xs1
+
length
xs2
)
_
_
(
xs1
++
xs2
)
_
_);
[
rewrite
app_length
;
simpl
;
lia
..|]
.
intros
x''
Hx'x''
.
feed
pose
proof
(
Hfin
x''
)
as
Hx''
;
[
by
econstructor
|]
.
cut
(
x'
≠
x''
);
[
set_solver
|]
.
intros
->
.
by
apply
(
Hirr
x''
)
.
Qed
.
(** The following theorem requires that [red R] is decidable. The intuition
for this requirement is that [wn R] is a very "positive" statement as it
points out a particular trace. In contrast, [sn R] just says "this also holds
...
...
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