Add [iSelect], and various tactics based on it
This MR adds the following tactics:
-
iSelect (pat)%I tac
calls the tactictac
with the name of the last hypothesis of the Iris context matchingpat
, -
iRename select (pat)%I into name
renames the last hypothesis of the Iris context matchingpat
intoname
, -
iDestruct select (pat)%I as ...
is similar toiDestruct
but it acts on the last hypothesis of the Iris context matchingpat
, -
iClear select (pat)%I
clears the last hypothesis of the Iris context matchingpat
, -
iRevert select (pat)%I
reverts the last hypothesis of the Iris context matchingpat
, -
iFrame select (pat)%I
cancels the last hypothesis of the Iris context matchingpat
.
Edited by Ralf Jung
Merge request reports
Activity
Filter activity
added 1 commit
- 866559f4 - Add doc for [iRename select] and [iDestruct select].
- Resolved by Rodolphe Lepigre
- Resolved by Rodolphe Lepigre
- Resolved by Rodolphe Lepigre
In the future, we might want to have more
select
tactics. For which other tactics would this be useful?
- Resolved by Rodolphe Lepigre
- Resolved by Rodolphe Lepigre
added 1 commit
- f8732094 - Tweak docs of [iRename select] and [iDestruct select].
added 1 commit
- 36aedc11 - Add [(...)%I] around the first argument of [iAssert] in doc.
- Resolved by Rodolphe Lepigre
- Resolved by Robbert Krebbers
What's the intended backtracking behavior for
iSelect
?@lepigre could you add a test for
iSelect
where the pattern matches multiple hypotheses and one where it fails? If you do want to exploit backtracking something likeiDestruct select _ as "#H"
which will only work on the last persistent hypothesis would be a cool test.
added 1 commit
- 54eb2d1c - Tweak the backtracking behaviour to match stdpp.
added 1 commit
- 3bdf8aac - Add [iClear select], [iRevert select] and [iFrame select].
Please register or sign in to reply