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
bab52efb
Commit
bab52efb
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add `unseal` tactic for `siProp`.
parent
69e13d1f
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
iris/si_logic/bi.v
+38
-0
38 additions, 0 deletions
iris/si_logic/bi.v
with
38 additions
and
0 deletions
iris/si_logic/bi.v
+
38
−
0
View file @
bab52efb
...
...
@@ -185,5 +185,43 @@ Section restate.
Lemma
later_soundness
(
P
:
siProp
)
:
(
⊢
▷
P
)
→
⊢
P
.
Proof
.
apply
later_soundness
.
Qed
.
(** All of these sealing lemmas are partially applied so that they also rewrite
under binders. *)
Local
Lemma
siProp_emp_unseal
:
bi_emp
=
@
siprop
.
siProp_pure_def
True
.
Proof
.
by
rewrite
-
siprop
.
siProp_pure_unseal
.
Qed
.
Local
Lemma
siProp_pure_unseal
:
bi_pure
=
@
siprop
.
siProp_pure_def
.
Proof
.
by
rewrite
-
siprop
.
siProp_pure_unseal
.
Qed
.
Local
Lemma
siProp_and_unseal
:
bi_and
=
@
siprop
.
siProp_and_def
.
Proof
.
by
rewrite
-
siprop
.
siProp_and_unseal
.
Qed
.
Local
Lemma
siProp_or_unseal
:
bi_or
=
@
siprop
.
siProp_or_def
.
Proof
.
by
rewrite
-
siprop
.
siProp_or_unseal
.
Qed
.
Local
Lemma
siProp_impl_unseal
:
bi_impl
=
@
siprop
.
siProp_impl_def
.
Proof
.
by
rewrite
-
siprop
.
siProp_impl_unseal
.
Qed
.
Local
Lemma
siProp_forall_unseal
:
@
bi_forall
_
=
@
siprop
.
siProp_forall_def
.
Proof
.
by
rewrite
-
siprop
.
siProp_forall_unseal
.
Qed
.
Local
Lemma
siProp_exist_unseal
:
@
bi_exist
_
=
@
siprop
.
siProp_exist_def
.
Proof
.
by
rewrite
-
siprop
.
siProp_exist_unseal
.
Qed
.
Local
Lemma
siProp_internal_eq_unseal
:
@
internal_eq
_
_
=
@
siprop
.
siProp_internal_eq_def
.
Proof
.
by
rewrite
-
siprop
.
siProp_internal_eq_unseal
.
Qed
.
Local
Lemma
siProp_sep_unseal
:
bi_sep
=
@
siprop
.
siProp_and_def
.
Proof
.
by
rewrite
-
siprop
.
siProp_and_unseal
.
Qed
.
Local
Lemma
siProp_wand_unseal
:
bi_wand
=
@
siprop
.
siProp_impl_def
.
Proof
.
by
rewrite
-
siprop
.
siProp_impl_unseal
.
Qed
.
Local
Lemma
siProp_plainly_unseal
:
plainly
=
@
id
siProp
.
Proof
.
done
.
Qed
.
Local
Lemma
siProp_persistently_unseal
:
bi_persistently
=
@
id
siProp
.
Proof
.
done
.
Qed
.
Local
Lemma
siProp_later_unseal
:
bi_later
=
@
siprop
.
siProp_later_def
.
Proof
.
by
rewrite
-
siprop
.
siProp_later_unseal
.
Qed
.
Local
Definition
siProp_unseal
:=
(
siProp_emp_unseal
,
siProp_pure_unseal
,
siProp_and_unseal
,
siProp_or_unseal
,
siProp_impl_unseal
,
siProp_forall_unseal
,
siProp_exist_unseal
,
siProp_internal_eq_unseal
,
siProp_sep_unseal
,
siProp_wand_unseal
,
siProp_plainly_unseal
,
siProp_persistently_unseal
,
siProp_later_unseal
)
.
End
restate
.
Ltac
unseal
:=
rewrite
!
siProp_unseal
/=.
End
siProp
.
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