Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jonas Kastberg
iris
Commits
9af0d884
Commit
9af0d884
authored
Jun 10, 2018
by
Ralf Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make the way iMod solves side-conditions consistent with iInv
parent
28e01a7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
theories/proofmode/ltac_tactics.v
theories/proofmode/ltac_tactics.v
+7
-2
No files found.
theories/proofmode/ltac_tactics.v
View file @
9af0d884
...
...
@@ -41,6 +41,11 @@ performance and horrible error messages, so we wrap it in a [once]. *)
Ltac
iSolveTC
:
=
solve
[
once
(
typeclasses
eauto
)].
(** Tactic used for solving side-conditions arising from TC resolution in iMod
and iInv. *)
Ltac
iSolveSideCondition
:
=
try
(
split_and
?
;
solve
[
fast_done
|
solve_ndisj
]).
(** * Misc *)
Ltac
iMissingHyps
Hs
:
=
...
...
@@ -1005,7 +1010,7 @@ Tactic Notation "iModCore" constr(H) :=
let
P
:
=
match
goal
with
|-
ElimModal
_
_
_
?P
_
_
_
=>
P
end
in
let
Q
:
=
match
goal
with
|-
ElimModal
_
_
_
_
_
?Q
_
=>
Q
end
in
fail
"iMod: cannot eliminate modality "
P
"in"
Q
|
try
fast_done
(* optional s
ide
-c
ondition
*)
|
iSolveS
ide
C
ondition
|
env_reflexivity
|].
(** * Basic destruct tactic *)
...
...
@@ -1920,7 +1925,7 @@ Tactic Notation "iInvCore" constr(select) "with" constr(pats) "as" open_constr(H
[
iSolveTC
||
let
I
:
=
match
goal
with
|-
ElimInv
_
?I
_
_
_
_
_
=>
I
end
in
fail
"iInv: cannot eliminate invariant "
I
|
try
(
split_and
?
;
solve
[
fast_done
|
solve_ndisj
])
|
iSolveSideCondition
|
let
R
:
=
fresh
in
intros
R
;
eexists
;
split
;
[
env_reflexivity
|]
;
(* Now we are left proving [envs_entails Δ'' R]. *)
iSpecializePat
H
pats
;
last
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment