Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Abel Nieto
Iris
Commits
e65f83ad
Commit
e65f83ad
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Document `ElimModal`.
parent
dcf5e561
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/proofmode/classes.v
+19
-0
19 additions, 0 deletions
theories/proofmode/classes.v
with
19 additions
and
0 deletions
theories/proofmode/classes.v
+
19
−
0
View file @
e65f83ad
...
@@ -234,6 +234,25 @@ Arguments IsExcept0 {_} _%I : simpl never.
...
@@ -234,6 +234,25 @@ Arguments IsExcept0 {_} _%I : simpl never.
Arguments
is_except_0
{_}
_
%
I
{_}
.
Arguments
is_except_0
{_}
_
%
I
{_}
.
Hint
Mode
IsExcept0
+
!
:
typeclass_instances
.
Hint
Mode
IsExcept0
+
!
:
typeclass_instances
.
(** The [ElimModal φ p p' P P' Q Q'] class is used by the [iMod] tactic.
The inputs are [p], [P] and [Q], and the outputs are [φ], [p'], [P'] and [Q'].
The class is used to transform a hypothesis [P] into a hypothesis [P'], given
a goal [Q], which is simultaniously transformed into [Q']. The Booleans [p]
and [p'] indicate whether the original, respectively, updated hypothesis reside
in the persistent context (iff [true]). The proposition [φ] can be used to
express a side-condition that [iMod] will generate (if not [True]).
An example instance is:
ElimModal True p false (|={E1,E2}=> P) P (|={E1,E3}=> Q) (|={E2,E3}=> Q).
This instance expresses that to eliminate [|={E1,E2}=> P] the goal is
transformed from [|={E1,E3}=> Q] into [|={E2,E3}=> Q], and the resulting
hypothesis is moved into the spatial context (regardless of where it was
originally). A corresponding [ElimModal] instance for the Iris 1/2-style update
modality, would have a side-condition [φ] on the masks. *)
Class
ElimModal
{
PROP
:
bi
}
(
φ
:
Prop
)
(
p
p'
:
bool
)
(
P
P'
:
PROP
)
(
Q
Q'
:
PROP
)
:=
Class
ElimModal
{
PROP
:
bi
}
(
φ
:
Prop
)
(
p
p'
:
bool
)
(
P
P'
:
PROP
)
(
Q
Q'
:
PROP
)
:=
elim_modal
:
φ
→
□
?p
P
∗
(
□
?p'
P'
-∗
Q'
)
⊢
Q
.
elim_modal
:
φ
→
□
?p
P
∗
(
□
?p'
P'
-∗
Q'
)
⊢
Q
.
Arguments
ElimModal
{_}
_
_
_
_
%
I
_
%
I
_
%
I
_
%
I
:
simpl
never
.
Arguments
ElimModal
{_}
_
_
_
_
%
I
_
%
I
_
%
I
_
%
I
:
simpl
never
.
...
...
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