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
Package Registry
Model registry
Operate
Terraform modules
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
Adam
stdpp
Commits
ff8eccc6
Commit
ff8eccc6
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add notation `wn` of weakly normalizing terms; and prove some common theorems about it.
parent
087e4ccf
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
theories/relations.v
+21
-3
21 additions, 3 deletions
theories/relations.v
with
21 additions
and
3 deletions
theories/relations.v
+
21
−
3
View file @
ff8eccc6
...
@@ -57,7 +57,9 @@ End definitions.
...
@@ -57,7 +57,9 @@ End definitions.
(** The reflexive transitive symmetric closure. *)
(** The reflexive transitive symmetric closure. *)
Definition
rtsc
{
A
}
(
R
:
relation
A
)
:=
rtc
(
sc
R
)
.
Definition
rtsc
{
A
}
(
R
:
relation
A
)
:=
rtc
(
sc
R
)
.
(** Strongly normalizing elements. *)
(** Weakly and strongly normalizing elements. *)
Definition
wn
{
A
}
(
R
:
relation
A
)
(
x
:
A
)
:=
∃
y
,
rtc
R
x
y
∧
nf
R
y
.
Notation
sn
R
:=
(
Acc
(
flip
R
))
.
Notation
sn
R
:=
(
Acc
(
flip
R
))
.
(** The various kinds of "confluence" properties. Any relation that has the
(** The various kinds of "confluence" properties. Any relation that has the
...
@@ -271,8 +273,19 @@ Section properties.
...
@@ -271,8 +273,19 @@ Section properties.
Hint
Constructors
rtc
nsteps
bsteps
tc
:
core
.
Hint
Constructors
rtc
nsteps
bsteps
tc
:
core
.
Lemma
acc_not_ex_loop
x
:
Acc
(
flip
R
)
x
→
¬
ex_loop
R
x
.
Lemma
nf_wn
x
:
nf
R
x
→
wn
R
x
.
Proof
.
unfold
not
.
induction
1
;
destruct
1
;
eauto
.
Qed
.
Proof
.
intros
.
exists
x
;
eauto
.
Qed
.
Lemma
wn_step
x
y
:
wn
R
y
→
R
x
y
→
wn
R
x
.
Proof
.
intros
(
z
&
?
&
?)
?
.
exists
z
;
eauto
.
Qed
.
Lemma
wn_step_rtc
x
y
:
wn
R
y
→
rtc
R
x
y
→
wn
R
x
.
Proof
.
induction
2
;
eauto
using
wn_step
.
Qed
.
Lemma
sn_wn
`{
!∀
y
,
Decision
(
red
R
y
)}
x
:
sn
R
x
→
wn
R
x
.
Proof
.
induction
1
as
[
x
_
IH
]
.
destruct
(
decide
(
red
R
x
))
as
[[
x'
?]|?]
.
-
destruct
(
IH
x'
)
as
(
y
&
?
&
?);
eauto
using
wn_step
.
-
by
apply
nf_wf
.
Qed
.
Lemma
all_loop_red
x
:
all_loop
R
x
→
red
R
x
.
Lemma
all_loop_red
x
:
all_loop
R
x
→
red
R
x
.
Proof
.
destruct
1
;
auto
.
Qed
.
Proof
.
destruct
1
;
auto
.
Qed
.
...
@@ -288,6 +301,11 @@ Section properties.
...
@@ -288,6 +301,11 @@ Section properties.
cofix
FIX
.
constructor
;
eauto
using
rtc_r
.
cofix
FIX
.
constructor
;
eauto
using
rtc_r
.
Qed
.
Qed
.
Lemma
wn_not_all_loop
x
:
wn
R
x
→
¬
all_loop
R
x
.
Proof
.
intros
(
z
&
?
&
?)
.
rewrite
all_loop_alt
.
eauto
.
Qed
.
Lemma
sn_not_ex_loop
x
:
sn
R
x
→
¬
ex_loop
R
x
.
Proof
.
unfold
not
.
induction
1
;
destruct
1
;
eauto
.
Qed
.
(** An alternative definition of confluence; also known as the Church-Rosser
(** An alternative definition of confluence; also known as the Church-Rosser
property. *)
property. *)
Lemma
confluent_alt
:
Lemma
confluent_alt
:
...
...
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