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
a7b8df6f
Commit
a7b8df6f
authored
7 years ago
by
Joseph Tassarotti
Committed by
Robbert Krebbers
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
More comments about iInv tactics.
parent
5a545315
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ProofMode.md
+5
-2
5 additions, 2 deletions
ProofMode.md
theories/proofmode/classes.v
+9
-8
9 additions, 8 deletions
theories/proofmode/classes.v
theories/proofmode/tactics.v
+5
-0
5 additions, 0 deletions
theories/proofmode/tactics.v
with
19 additions
and
10 deletions
ProofMode.md
+
5
−
2
View file @
a7b8df6f
...
@@ -170,8 +170,11 @@ Rewriting / simplification
...
@@ -170,8 +170,11 @@ Rewriting / simplification
Iris
Iris
----
----
-
`iInv N as (x1 ... xn) "ipat" "Hclose"`
: open the invariant
`N`
, the update
-
`iInv (N with "selpat") as (x1 ... xn) "ipat" "Hclose"`
: open the invariant
for closing the invariant is put in a hypothesis named
`Hclose`
.
`N`
. The selection pattern
`selpat`
is used for any auxiliary assertions
needed to open the invariant (e.g. for cancelable or non-atomic
invariants). The update for closing the invariant is put in a hypothesis named
`Hclose`
.
Miscellaneous
Miscellaneous
-------------
-------------
...
...
This diff is collapsed.
Click to expand it.
theories/proofmode/classes.v
+
9
−
8
View file @
a7b8df6f
...
@@ -468,18 +468,19 @@ Proof. by apply as_valid. Qed.
...
@@ -468,18 +468,19 @@ Proof. by apply as_valid. Qed.
Lemma
as_valid_2
(
φ
:
Prop
)
{
PROP
:
bi
}
(
P
:
PROP
)
`{
!
AsValid
φ
P
}
:
P
→
φ
.
Lemma
as_valid_2
(
φ
:
Prop
)
{
PROP
:
bi
}
(
P
:
PROP
)
`{
!
AsValid
φ
P
}
:
P
→
φ
.
Proof
.
by
apply
as_valid
.
Qed
.
Proof
.
by
apply
as_valid
.
Qed
.
(* Input:
`P`
; Outputs:
`N`
,
(* Input:
[P]
; Outputs:
[N]
,
Extracts the namespace associated with an invariant assertion. Used for
`
iInv
`
. *)
Extracts the namespace associated with an invariant assertion. Used for
[
iInv
]
. *)
Class
IntoInv
{
PROP
:
bi
}
(
P
:
PROP
)
(
N
:
namespace
)
.
Class
IntoInv
{
PROP
:
bi
}
(
P
:
PROP
)
(
N
:
namespace
)
.
Arguments
IntoInv
{_}
_
%
I
_
.
Arguments
IntoInv
{_}
_
%
I
_
.
Hint
Mode
IntoInv
+
!
-
:
typeclass_instances
.
Hint
Mode
IntoInv
+
!
-
:
typeclass_instances
.
(* Input: `Pinv`;
(* Input: [Pinv]
- `Pinv`, an invariant assertion
Arguments:
- `Pin` the additional assertions needed for opening an invariant;
- [Pinv] is an invariant assertion
- `Pout` is the assertion obtained by opening the invariant;
- [Pin] is an additional assertion needed for opening an invariant
- `Q` is a goal on which iInv may be invoked;
- [Pout] is the assertion obtained by opening the invariant
- `Q'` is the transformed goal that must be proved after opening the invariant.
- [Q] is a goal on which iInv may be invoked
- [Q'] is the transformed goal that must be proved after opening the invariant.
There are similarities to the definition of ElimModal, however we
There are similarities to the definition of ElimModal, however we
want to be general enough to support uses in settings where there
want to be general enough to support uses in settings where there
...
...
This diff is collapsed.
Click to expand it.
theories/proofmode/tactics.v
+
5
−
0
View file @
a7b8df6f
...
@@ -1865,6 +1865,11 @@ Tactic Notation "iMod" open_constr(lem) "as" "(" simple_intropattern(x1)
...
@@ -1865,6 +1865,11 @@ Tactic Notation "iMod" open_constr(lem) "as" "(" simple_intropattern(x1)
Tactic
Notation
"iMod"
open_constr
(
lem
)
"as"
"%"
simple_intropattern
(
pat
)
:=
Tactic
Notation
"iMod"
open_constr
(
lem
)
"as"
"%"
simple_intropattern
(
pat
)
:=
iDestructCore
lem
as
false
(
fun
H
=>
iModCore
H
;
iPure
H
as
pat
)
.
iDestructCore
lem
as
false
(
fun
H
=>
iModCore
H
;
iPure
H
as
pat
)
.
(** * Assert *)
(* Finds a hypothesis in the context that is an invariant with
namespace [N]. To do so, we check whether for each hypothesis
["H":P] we can find an instance of [IntoInv P N] *)
Tactic
Notation
"iAssumptionInv"
constr
(
N
)
:=
Tactic
Notation
"iAssumptionInv"
constr
(
N
)
:=
let
rec
find
Γ
i
P
:=
let
rec
find
Γ
i
P
:=
lazymatch
Γ
with
lazymatch
Γ
with
...
...
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