Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
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
Operate
Environments
Monitor
Incidents
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
Dan Frumin
iris-coq
Commits
05817be7
Commit
05817be7
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
show that we can rewrite below a contractive function even if we have an equality only later
parent
b2a210fe
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
algebra/upred.v
+12
-3
12 additions, 3 deletions
algebra/upred.v
with
12 additions
and
3 deletions
algebra/upred.v
+
12
−
3
View file @
05817be7
...
@@ -497,10 +497,11 @@ Proof. unseal; intros HΦΨ; split=> n x ? [a ?]; by apply HΦΨ with a. Qed.
...
@@ -497,10 +497,11 @@ Proof. unseal; intros HΦΨ; split=> n x ? [a ?]; by apply HΦΨ with a. Qed.
Lemma
eq_refl
{
A
:
cofeT
}
(
a
:
A
)
:
True
⊢
(
a
≡
a
).
Lemma
eq_refl
{
A
:
cofeT
}
(
a
:
A
)
:
True
⊢
(
a
≡
a
).
Proof
.
unseal
;
by
split
=>
n
x
??
;
simpl
.
Qed
.
Proof
.
unseal
;
by
split
=>
n
x
??
;
simpl
.
Qed
.
Lemma
eq_rewrite
{
A
:
cofeT
}
a
b
(
Ψ
:
A
→
uPred
M
)
P
Lemma
eq_rewrite
{
A
:
cofeT
}
a
b
(
Ψ
:
A
→
uPred
M
)
P
`
{
H
Ψ
:
∀
n
,
Proper
(
dist
n
==>
dist
n
)
Ψ
}
:
P
⊢
(
a
≡
b
)
→
P
⊢
Ψ
a
→
P
⊢
Ψ
b
.
{
H
Ψ
:
∀
n
,
Proper
(
dist
n
==>
dist
n
)
Ψ
}
:
P
⊢
(
a
≡
b
)
→
P
⊢
Ψ
a
→
P
⊢
Ψ
b
.
Proof
.
Proof
.
unseal
;
intros
Hab
Ha
;
split
=>
n
x
??
.
unseal
;
intros
Hab
Ha
;
split
=>
n
x
??
.
apply
H
Ψ
with
n
a
;
auto
.
apply
H
Ψ
with
n
a
;
auto
.
by
symmetry
;
apply
Hab
with
x
.
by
apply
Ha
.
-
by
symmetry
;
apply
Hab
with
x
.
-
by
apply
Ha
.
Qed
.
Qed
.
Lemma
eq_equiv
`
{
Empty
M
,
!
CMRAUnit
M
}
{
A
:
cofeT
}
(
a
b
:
A
)
:
Lemma
eq_equiv
`
{
Empty
M
,
!
CMRAUnit
M
}
{
A
:
cofeT
}
(
a
b
:
A
)
:
True
⊢
(
a
≡
b
)
→
a
≡
b
.
True
⊢
(
a
≡
b
)
→
a
≡
b
.
...
@@ -508,6 +509,14 @@ Proof.
...
@@ -508,6 +509,14 @@ Proof.
unseal
=>
Hab
;
apply
equiv_dist
;
intros
n
;
apply
Hab
with
∅
;
last
done
.
unseal
=>
Hab
;
apply
equiv_dist
;
intros
n
;
apply
Hab
with
∅
;
last
done
.
apply
cmra_valid_validN
,
cmra_unit_valid
.
apply
cmra_valid_validN
,
cmra_unit_valid
.
Qed
.
Qed
.
Lemma
eq_rewrite_contractive
{
A
:
cofeT
}
a
b
(
Ψ
:
A
→
uPred
M
)
P
{
H
Ψ
:
Contractive
Ψ
}
:
P
⊢
▷
(
a
≡
b
)
→
P
⊢
Ψ
a
→
P
⊢
Ψ
b
.
Proof
.
unseal
;
intros
Hab
Ha
;
split
=>
n
x
??
.
apply
H
Ψ
with
n
a
;
auto
.
-
destruct
n
;
intros
m
?
;
first
omega
.
apply
(
dist_le
n
);
last
omega
.
symmetry
.
by
destruct
Hab
as
[
Hab
];
eapply
(
Hab
(
S
n
)).
-
by
apply
Ha
.
Qed
.
(
*
Derived
logical
stuff
*
)
(
*
Derived
logical
stuff
*
)
Lemma
False_elim
P
:
False
⊢
P
.
Lemma
False_elim
P
:
False
⊢
P
.
...
...
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