Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simon Spies
Iris
Commits
31bf88ff
Commit
31bf88ff
authored
Jun 09, 2019
by
Ralf Jung
Browse files
Merge branch 'joe/fix_iSpecialize_regression' into 'master'
Fix regression with iSpecialize errors. See merge request
iris/iris!262
parents
b7c688d0
6a468eca
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/proofmode.ref
View file @
31bf88ff
...
...
@@ -576,6 +576,26 @@ In nested Ltac calls to "iPoseProof (open_constr) as (constr)",
"iPoseProofCore (open_constr) as (constr) (constr) (tactic)" and
"iPoseProofCoreHyp (constr) as (constr)", last call failed.
Tactic failure: iPoseProof: "Hx" not found.
"iPoseProof_not_found_fail2"
: string
The command has indeed failed with message:
In nested Ltac calls to "iPoseProof (open_constr) as (constr)",
"iPoseProofCore (open_constr) as (constr) (constr) (tactic)",
"iPoseProofCoreLem (constr) as (constr) before_tc (tactic)",
"tac" (bound to spec_tac ltac:(()); [ .. | tac Htmp ]),
"tac" (bound to spec_tac ltac:(()); [ .. | tac Htmp ]),
"spec_tac" (bound to
fun _ =>
lazymatch lem with
| {| itrm := _; itrm_vars := ?xs; itrm_hyps := ?pat |} => iSpecializeCore
{| itrm := Htmp; itrm_vars := xs; itrm_hyps := pat |} as p
| _ => idtac
end), "iSpecializeCore (open_constr) as (constr)",
"iSpecializeCore (open_constr) as (constr)",
"iSpecializeCore (open_constr) with (open_constr) (open_constr) as (constr)",
"iSpecializePat (open_constr) (constr)" and "iSpecializePat_go", last call
failed.
Tactic failure: iSpecialize: hypotheses ["HQ"] not found.
"iPoseProofCoreHyp_not_found_fail"
: string
The command has indeed failed with message:
...
...
tests/proofmode.v
View file @
31bf88ff
...
...
@@ -859,6 +859,12 @@ Proof.
iIntros
"H"
.
Fail
iPoseProof
"Hx"
as
"H1"
.
Abort
.
Check
"iPoseProof_not_found_fail2"
.
Lemma
iPoseProof_not_found_fail2
P
Q
(
H
:
P
-
∗
Q
)
:
P
-
∗
Q
.
Proof
.
iIntros
"HP"
.
Fail
iPoseProof
(
H
with
"[HQ]"
)
as
"H"
.
Abort
.
Check
"iPoseProofCoreHyp_not_found_fail"
.
Lemma
iPoseProofCoreHyp_not_found_fail
P
:
P
-
∗
P
-
∗
P
.
Proof
.
...
...
theories/proofmode/ltac_tactics.v
View file @
31bf88ff
...
...
@@ -777,6 +777,7 @@ Ltac iSpecializePat_go H1 pats :=
fail
"iSpecialize: cannot solve"
Q
"using done"
|
false
=>
idtac
end
in
let
Δ
:
=
iGetCtx
in
lazymatch
pats
with
|
[]
=>
idtac
|
SForall
::
?pats
=>
...
...
@@ -864,7 +865,7 @@ Ltac iSpecializePat_go H1 pats :=
|
pm_reduce
;
lazymatch
goal
with
|
|-
False
=>
let
Hs'
:
=
iMissingHyps
Hs'
in
let
Hs'
:
=
iMissingHyps
Core
Δ
Hs'
in
fail
"iSpecialize: hypotheses"
Hs'
"not found"
|
_
=>
notypeclasses
refine
(
conj
_
_
)
;
...
...
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