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
William Mansky
Iris
Commits
473087eb
Commit
473087eb
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
fix IntoAnd/IntoSep docs
parent
5e5446b0
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
iris/proofmode/classes.v
+10
-4
10 additions, 4 deletions
iris/proofmode/classes.v
with
10 additions
and
4 deletions
iris/proofmode/classes.v
+
10
−
4
View file @
473087eb
...
...
@@ -176,9 +176,12 @@ Global Arguments from_and {_} _%I _%I _%I {_}.
Global
Hint
Mode
FromAnd
+
!
-
-
:
typeclass_instances
.
Global
Hint
Mode
FromAnd
+
-
!
!
:
typeclass_instances
.
(* For iCombine *)
(** The [IntoAnd p P Q1 Q2] class is used to handle [[H1 H2]] intro patterns in
the intuitionistic context ([p = true]) and patterns where one of the two sides
is discarded ([p = false]).
(** The [IntoAnd p P Q1 Q2] class is used to handle some [[H1 H2]] intro
patterns:
- [IntoAnd true] is used for such patterns in the intuitionistic context
- [IntoAnd false] is used for such patterns where one of the two sides is
discarded (e.g. [[_ H]]) or where the left-hand side is pure as in [[% H]]
(via an [IntoExist] fallback).
The inputs are [p P] and the outputs are [Q1 Q2]. *)
Class
IntoAnd
{
PROP
:
bi
}
(
p
:
bool
)
(
P
Q1
Q2
:
PROP
)
:=
...
...
@@ -188,7 +191,10 @@ Global Arguments into_and {_} _ _%I _%I _%I {_}.
Global
Hint
Mode
IntoAnd
+
+
!
-
-
:
typeclass_instances
.
(** The [IntoSep P Q1 Q2] class is used to handle [[H1 H2]] intro patterns in
the spatial context (except when one side is [_], then [IntoAnd] is used).
the spatial context, except:
- when one side is [_], then [IntoAnd] is tried first (but [IntoSep] is used as
fallback)
- when the left-hand side is [%], then [IntoExist] is used)
The input is [P] and the outputs are [Q1 Q2]. *)
Class
IntoSep
{
PROP
:
bi
}
(
P
Q1
Q2
:
PROP
)
:=
...
...
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