Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
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
Gaëtan Gilbert
Iris
Commits
329b8c2c
Verified
Commit
329b8c2c
authored
4 years ago
by
Paolo G. Giarrusso
Browse files
Options
Downloads
Patches
Plain Diff
Turn local instances ne_proper and ne_proper_2 into lemmas
parent
d80e7abf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/algebra/ofe.v
+8
-4
8 additions, 4 deletions
theories/algebra/ofe.v
with
8 additions
and
4 deletions
theories/algebra/ofe.v
+
8
−
4
View file @
329b8c2c
...
@@ -169,11 +169,15 @@ Section ofe.
...
@@ -169,11 +169,15 @@ Section ofe.
Proof
.
induction
2
;
eauto
using
dist_S
.
Qed
.
Proof
.
induction
2
;
eauto
using
dist_S
.
Qed
.
Lemma
dist_le'
n
n'
x
y
:
n'
≤
n
→
x
≡
{
n
}
≡
y
→
x
≡
{
n'
}
≡
y
.
Lemma
dist_le'
n
n'
x
y
:
n'
≤
n
→
x
≡
{
n
}
≡
y
→
x
≡
{
n'
}
≡
y
.
Proof
.
intros
;
eauto
using
dist_le
.
Qed
.
Proof
.
intros
;
eauto
using
dist_le
.
Qed
.
Instance
ne_proper
{
B
:
ofeT
}
(
f
:
A
→
B
)
`{
!
NonExpansive
f
}
:
(** [ne_proper] and [ne_proper_2] are not instances to improve efficiency of
Proper
((
≡
)
==>
(
≡
))
f
|
100
.
type class search during setoid rewriting.
Instances of [NonExpansive{,2}] are hence accompanied by instances of
[Proper] built using these lemmas. *)
Lemma
ne_proper
{
B
:
ofeT
}
(
f
:
A
→
B
)
`{
!
NonExpansive
f
}
:
Proper
((
≡
)
==>
(
≡
))
f
.
Proof
.
by
intros
x1
x2
;
rewrite
!
equiv_dist
;
intros
Hx
n
;
rewrite
(
Hx
n
)
.
Qed
.
Proof
.
by
intros
x1
x2
;
rewrite
!
equiv_dist
;
intros
Hx
n
;
rewrite
(
Hx
n
)
.
Qed
.
Instance
ne_proper_2
{
B
C
:
ofeT
}
(
f
:
A
→
B
→
C
)
`{
!
NonExpansive2
f
}
:
Lemma
ne_proper_2
{
B
C
:
ofeT
}
(
f
:
A
→
B
→
C
)
`{
!
NonExpansive2
f
}
:
Proper
((
≡
)
==>
(
≡
)
==>
(
≡
))
f
|
100
.
Proper
((
≡
)
==>
(
≡
)
==>
(
≡
))
f
.
Proof
.
Proof
.
unfold
Proper
,
respectful
;
setoid_rewrite
equiv_dist
.
unfold
Proper
,
respectful
;
setoid_rewrite
equiv_dist
.
by
intros
x1
x2
Hx
y1
y2
Hy
n
;
rewrite
(
Hx
n
)
(
Hy
n
)
.
by
intros
x1
x2
Hx
y1
y2
Hy
n
;
rewrite
(
Hx
n
)
(
Hy
n
)
.
...
...
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