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
2a1af810
Commit
2a1af810
authored
7 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
saved predicates: use ofe_fun, not ofe_mor
parent
c800ca9c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/base_logic/lib/saved_prop.v
+8
-8
8 additions, 8 deletions
theories/base_logic/lib/saved_prop.v
with
8 additions
and
8 deletions
theories/base_logic/lib/saved_prop.v
+
8
−
8
View file @
2a1af810
...
@@ -87,22 +87,22 @@ Proof.
...
@@ -87,22 +87,22 @@ Proof.
Qed
.
Qed
.
(* Saved predicates. *)
(* Saved predicates. *)
Notation
savedPredG
Σ
A
:=
(
savedAnythingG
Σ
(
constCF
A
-
n
>
▶
∙
))
.
Notation
savedPredG
Σ
A
:=
(
savedAnythingG
Σ
(
A
-
c
>
▶
∙
))
.
Notation
savedPredΣ
A
:=
(
savedAnythingΣ
(
constCF
A
-
n
>
▶
∙
))
.
Notation
savedPredΣ
A
:=
(
savedAnythingΣ
(
A
-
c
>
▶
∙
))
.
Definition
saved_pred_own
`{
savedPredG
Σ
A
}
(
γ
:
gname
)
(
Φ
:
A
-
n
>
iProp
Σ
)
:=
Definition
saved_pred_own
`{
savedPredG
Σ
A
}
(
γ
:
gname
)
(
Φ
:
A
-
c
>
iProp
Σ
)
:=
saved_anything_own
(
F
:=
A
-
n
>
▶
∙
)
γ
(
CofeMor
Next
◎
Φ
)
.
saved_anything_own
(
F
:=
A
-
c
>
▶
∙
)
γ
(
CofeMor
Next
∘
Φ
)
.
Instance
saved_pred_own_contractive
`{
savedPredG
Σ
A
}
γ
:
Contractive
(
saved_pred_own
γ
)
.
Instance
saved_pred_own_contractive
`{
savedPredG
Σ
A
}
γ
:
Contractive
(
saved_pred_own
γ
)
.
Proof
.
Proof
.
solve_proper_core
ltac
:(
fun
_
=>
first
[
intros
?;
progress
simpl
|
f_contractive
|
f_equiv
])
.
solve_proper_core
ltac
:(
fun
_
=>
first
[
intros
?;
progress
simpl
|
by
auto
|
f_contractive
|
f_equiv
])
.
Qed
.
Qed
.
Lemma
saved_pred_alloc_strong
`{
savedPredG
Σ
A
}
(
G
:
gset
gname
)
(
Φ
:
A
-
n
>
iProp
Σ
)
:
Lemma
saved_pred_alloc_strong
`{
savedPredG
Σ
A
}
(
G
:
gset
gname
)
(
Φ
:
A
-
c
>
iProp
Σ
)
:
(|
==>
∃
γ
,
⌜
γ
∉
G
⌝
∧
saved_pred_own
γ
Φ
)
%
I
.
(|
==>
∃
γ
,
⌜
γ
∉
G
⌝
∧
saved_pred_own
γ
Φ
)
%
I
.
Proof
.
iApply
saved_anything_alloc_strong
.
Qed
.
Proof
.
iApply
saved_anything_alloc_strong
.
Qed
.
Lemma
saved_pred_alloc
`{
savedPredG
Σ
A
}
(
Φ
:
A
-
n
>
iProp
Σ
)
:
Lemma
saved_pred_alloc
`{
savedPredG
Σ
A
}
(
Φ
:
A
-
c
>
iProp
Σ
)
:
(|
==>
∃
γ
,
saved_pred_own
γ
Φ
)
%
I
.
(|
==>
∃
γ
,
saved_pred_own
γ
Φ
)
%
I
.
Proof
.
iApply
saved_anything_alloc
.
Qed
.
Proof
.
iApply
saved_anything_alloc
.
Qed
.
...
@@ -111,7 +111,7 @@ Lemma saved_pred_agree `{savedPredG Σ A} γ Φ Ψ x :
...
@@ -111,7 +111,7 @@ Lemma saved_pred_agree `{savedPredG Σ A} γ Φ Ψ x :
saved_pred_own
γ
Φ
-∗
saved_pred_own
γ
Ψ
-∗
▷
(
Φ
x
≡
Ψ
x
)
.
saved_pred_own
γ
Φ
-∗
saved_pred_own
γ
Ψ
-∗
▷
(
Φ
x
≡
Ψ
x
)
.
Proof
.
Proof
.
iIntros
"HΦ HΨ"
.
unfold
saved_pred_own
.
iApply
later_equivI
.
iIntros
"HΦ HΨ"
.
unfold
saved_pred_own
.
iApply
later_equivI
.
iDestruct
(
ofe_
mor
C_equivI
(
CofeMor
Next
◎
Φ
)
(
CofeMor
Next
◎
Ψ
))
as
"[FE _]"
.
iDestruct
(
ofe_
fun
C_equivI
(
CofeMor
Next
∘
Φ
)
(
CofeMor
Next
∘
Ψ
))
as
"[FE _]"
.
simpl
.
iApply
(
"FE"
with
"[-]"
)
.
simpl
.
iApply
(
"FE"
with
"[-]"
)
.
iApply
(
saved_anything_agree
with
"HΦ HΨ"
)
.
iApply
(
saved_anything_agree
with
"HΦ HΨ"
)
.
Qed
.
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