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
Pierre Roux
Iris
Commits
6fa72b41
Commit
6fa72b41
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add simpler ghost_var_agree lemma
parent
f66d2618
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/base_logic/lib/ghost_var.v
+7
-0
7 additions, 0 deletions
theories/base_logic/lib/ghost_var.v
with
7 additions
and
0 deletions
theories/base_logic/lib/ghost_var.v
+
7
−
0
View file @
6fa72b41
...
@@ -50,6 +50,13 @@ Section lemmas.
...
@@ -50,6 +50,13 @@ Section lemmas.
iDestruct
(
own_valid_2
with
"Hvar1 Hvar2"
)
as
%
[
Hq
Ha
]
%
frac_agree_op_valid
.
iDestruct
(
own_valid_2
with
"Hvar1 Hvar2"
)
as
%
[
Hq
Ha
]
%
frac_agree_op_valid
.
done
.
done
.
Qed
.
Qed
.
(** Almost all the time, this is all you really need. *)
Lemma
ghost_var_agree
γ
a1
q1
a2
q2
:
ghost_var
γ
q1
a1
-∗
ghost_var
γ
q2
a2
-∗
⌜
a1
=
a2
⌝.
Proof
.
iIntros
"Hvar1 Hvar2"
.
iDestruct
(
ghost_var_valid_2
with
"Hvar1 Hvar2"
)
as
%
[_
?]
.
done
.
Qed
.
(** This is just an instance of fractionality above, but that can be hard to find. *)
(** This is just an instance of fractionality above, but that can be hard to find. *)
Lemma
ghost_var_split
γ
a
q1
q2
:
Lemma
ghost_var_split
γ
a
q1
q2
:
...
...
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