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
Abhishek Anand
Iris
Commits
418f57db
Commit
418f57db
authored
7 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
More doc about FromPure.
parent
6a086fc6
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/proofmode/classes.v
+13
-0
13 additions, 0 deletions
theories/proofmode/classes.v
with
13 additions
and
0 deletions
theories/proofmode/classes.v
+
13
−
0
View file @
418f57db
...
...
@@ -43,6 +43,19 @@ Proof. by exists φ. Qed.
Hint
Extern
0
(
IntoPureT
_
_)
=>
notypeclasses
refine
(
into_pureT_hint
_
_
_)
:
typeclass_instances
.
(* [FromPure] is used when introducing a pure assertion. It is used by
iPure, the "[%]" specialization pattern, and the [with "[%]"]
pattern when using [iAssert].
The [a] Boolean asserts whether we introduce the pure assertion in
an affine way or in an absorbing way. When [FromPure true P φ] is
derived, then [FromPure false P φ] can always be derived too. We
use [true] for specialization patterns and [false] for the [iPure]
tactic.
This Boolean is not needed for [IntoPure], because in the case of
[IntoPure], we can have the same behavior by asking that [P] be
[Affine]. *)
Class
FromPure
{
PROP
:
bi
}
(
a
:
bool
)
(
P
:
PROP
)
(
φ
:
Prop
)
:=
from_pure
:
bi_affinely_if
a
⌜
φ
⌝
⊢
P
.
Arguments
FromPure
{_}
_
_
%
I
_
%
type_scope
:
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