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
Environments
Terraform modules
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
Ike Mulder
Iris
Commits
965852ff
Commit
965852ff
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
derive internal_eq_rewrite_contractive inside the logic
parent
7b00cda2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
algebra/ofe.v
+7
-0
7 additions, 0 deletions
algebra/ofe.v
base_logic/derived.v
+8
-0
8 additions, 0 deletions
base_logic/derived.v
base_logic/primitive.v
+1
-9
1 addition, 9 deletions
base_logic/primitive.v
with
16 additions
and
9 deletions
algebra/ofe.v
+
7
−
0
View file @
965852ff
...
...
@@ -770,6 +770,13 @@ Section later.
Proof
.
intros
[|
n
]
x
y
Hxy
;
[
done
|];
apply
Hxy
;
lia
.
Qed
.
Global
Instance
Later_inj
n
:
Inj
(
dist
n
)
(
dist
(
S
n
))
(
@
Next
A
)
.
Proof
.
by
intros
x
y
.
Qed
.
Lemma
later_car_compose_ne
{
B
:
ofeT
}
(
f
:
A
→
B
)
:
(
Contractive
f
)
→
∀
n
,
Proper
(
dist
n
==>
dist
n
)
(
f
∘
later_car
)
.
Proof
.
move
=>
Hcont
n
[
x
]
[
y
]
/=
Hxy
.
apply
Hcont
.
intros
m
Hmn
.
destruct
n
;
first
by
(
exfalso
;
omega
)
.
eapply
dist_le'
,
Hxy
.
omega
.
Qed
.
End
later
.
Arguments
laterC
:
clear
implicits
.
...
...
This diff is collapsed.
Click to expand it.
base_logic/derived.v
+
8
−
0
View file @
965852ff
...
...
@@ -287,6 +287,14 @@ Lemma equiv_internal_eq {A : ofeT} P (a b : A) : a ≡ b → P ⊢ a ≡ b.
Proof
.
by
intros
->
.
Qed
.
Lemma
internal_eq_sym
{
A
:
ofeT
}
(
a
b
:
A
)
:
a
≡
b
⊢
b
≡
a
.
Proof
.
apply
(
internal_eq_rewrite
a
b
(
λ
b
,
b
≡
a
)
%
I
);
auto
.
solve_proper
.
Qed
.
Lemma
internal_eq_rewrite_contractive
{
A
:
ofeT
}
a
b
(
Ψ
:
A
→
uPred
M
)
P
{
HΨ
:
Contractive
Ψ
}
:
(
P
⊢
▷
(
a
≡
b
))
→
(
P
⊢
Ψ
a
)
→
P
⊢
Ψ
b
.
Proof
.
rewrite
-
later_equivI
.
intros
Heq
.
change
((
P
⊢
(
Ψ
∘
later_car
)
(
Next
a
))
→
P
⊢
(
Ψ
∘
later_car
)
(
Next
b
))
.
apply
internal_eq_rewrite
;
last
done
.
exact
:
later_car_compose_ne
.
Qed
.
Lemma
pure_impl_forall
φ
P
:
(
⌜
φ
⌝
→
P
)
⊣⊢
(
∀
_
:
φ
,
P
)
.
Proof
.
...
...
This diff is collapsed.
Click to expand it.
base_logic/primitive.v
+
1
−
9
View file @
965852ff
...
...
@@ -375,14 +375,6 @@ Proof.
-
by
symmetry
;
apply
Hab
with
x
.
-
by
apply
Ha
.
Qed
.
Lemma
internal_eq_rewrite_contractive
{
A
:
ofeT
}
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
.
(* BI connectives *)
Lemma
sep_mono
P
P'
Q
Q'
:
(
P
⊢
Q
)
→
(
P'
⊢
Q'
)
→
P
∗
P'
⊢
Q
∗
Q'
.
...
...
@@ -565,7 +557,7 @@ Proof. by unseal. Qed.
Lemma
prod_validI
{
A
B
:
cmraT
}
(
x
:
A
*
B
)
:
✓
x
⊣⊢
✓
x
.
1
∧
✓
x
.
2
.
Proof
.
by
unseal
.
Qed
.
(* Later *)
(*
Type-level
Later *)
Lemma
later_equivI
{
A
:
ofeT
}
(
x
y
:
A
)
:
Next
x
≡
Next
y
⊣⊢
▷
(
x
≡
y
)
.
Proof
.
by
unseal
.
Qed
.
...
...
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