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
Iris
RefinedC
Commits
c61dc3f4
Commit
c61dc3f4
authored
Jan 12, 2021
by
Rodolphe Lepigre
Browse files
Unfold instantiated evars on each liRStep.
parent
ad14d09f
Pipeline
#40443
passed with stage
in 33 minutes and 9 seconds
Changes
2
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
theories/lithium/interpreter.v
View file @
c61dc3f4
...
...
@@ -235,7 +235,7 @@ Local Tactic Notation "liChangeState" hyp(H) constr(Δ) :=
rename
H'
into
H
end
.
Tactic
Notation
"
liEnforceInvariant
"
:
=
Ltac
liEnforceInvariant
:
=
lazymatch
goal
with
|
|-
@
envs_entails
?PROP
?
Δ
?P
=>
let
with_H
tac
:
=
...
...
@@ -258,6 +258,7 @@ Tactic Notation "liEnforceInvariant" :=
change_no_check
(
envs_entails
H
P
)
)
end
.
Ltac
liFresh
:
=
lazymatch
goal
with
|
[
H
:
IPM_STATE
?n
|-
_
]
=>
...
...
@@ -385,6 +386,9 @@ Ltac solve_protected_eq :=
try
(
liUnfoldAllEvars
;
match
goal
with
|-
?a
=
?b
=>
unify
a
b
with
typeclass_instances
end
)
;
exact
:
eq_refl
.
Ltac
liEnforceInvariantAndUnfoldInstantiatedEvars
:
=
unfold_instantiated_evars
;
try
liEnforceInvariant
.
(** * Main lithium tactics *)
Ltac
convert_to_i2p_tac
P
:
=
fail
"No convert_to_i2p_tac provided!"
.
Ltac
convert_to_i2p
P
cont
:
=
...
...
theories/typing/automation.v
View file @
c61dc3f4
...
...
@@ -201,7 +201,7 @@ Ltac liRJudgement :=
(* This does everything *)
Ltac
liRStep
:
=
try
liEnforceInvariant
;
liEnforceInvariant
AndUnfoldInstantiatedEvars
;
try
liRIntroduceLetInGoal
;
first
[
liRInstantiateEvars
(* must be before do_side_cond and do_extensible_judgement *)
...
...
@@ -247,7 +247,7 @@ Tactic Notation "start_function" constr(fnname) "(" simple_intropattern(x) ")" :
Ltac
liRSplitBlocksIntro
:
=
repeat
(
try
liEnforceInvariant
;
liEnforceInvariant
AndUnfoldInstantiatedEvars
;
first
[
liSep
|
liWand
...
...
Write
Preview
Supports
Markdown
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