Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RefinedC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Iris
RefinedC
Commits
c61dc3f4
Commit
c61dc3f4
authored
4 years ago
by
Rodolphe Lepigre
Browse files
Options
Downloads
Patches
Plain Diff
Unfold instantiated evars on each liRStep.
parent
ad14d09f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!15
Unfold instantiated evars on each liRStep.
Pipeline
#40443
passed
4 years ago
Stage: build
Changes
2
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/lithium/interpreter.v
+5
-1
5 additions, 1 deletion
theories/lithium/interpreter.v
theories/typing/automation.v
+2
-2
2 additions, 2 deletions
theories/typing/automation.v
with
7 additions
and
3 deletions
theories/lithium/interpreter.v
+
5
−
1
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
:=
...
...
This diff is collapsed.
Click to expand it.
theories/typing/automation.v
+
2
−
2
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
...
...
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