Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
Simcha van Collem
Iris
Commits
dcd28632
Commit
dcd28632
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
optimize the step_by_value proof: Determine which case we are in, and call the appropriate tactic
parent
5f8cdc5f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
channel/heap_lang.v
+17
-6
17 additions, 6 deletions
channel/heap_lang.v
with
17 additions
and
6 deletions
channel/heap_lang.v
+
17
−
6
View file @
dcd28632
...
...
@@ -320,13 +320,24 @@ Proof.
exists
K''
;
by
eauto
using
f_equal
,
f_equal2
,
f_equal3
,
v2e_inj
.
intros
Hfill
Hred
Hnval
.
revert
K'
Hfill
;
induction
K
=>
K'
/=
Hfill
;
Time
revert
K'
Hfill
;
induction
K
=>
K'
/=
Hfill
;
first
(
now
eexists
;
reflexivity
);
destruct
K'
;
simpl
;
try
discriminate
Hfill
;
try
first
[
bad_red
Hfill
e'
Hred
|
bad_fill
Hfill
|
good
Hfill
IHK
]
.
(
destruct
K'
;
simpl
;
(* The first case is: K' is EmpyCtx. *)
first
(
by
bad_red
Hfill
e'
Hred
);
(* Many of the other cases result in contradicting equalities. *)
try
discriminate
Hfill
;
(* The remaining cases are "compatible" contexts - that result in the same head symbol of the expression.
Test whether the context als has the same head, and use the appropriate tactic. *)
match
goal
with
|
[
|
-
exists
x
,
?C
_
=
?C
_
]
=>
by
good
Hfill
IHK
|
[
|
-
exists
x
,
?C
_
_
=
?C
_
_
]
=>
by
good
Hfill
IHK
|
[
|
-
exists
x
,
?C
_
_
_
=
?C
_
_
_
]
=>
by
good
Hfill
IHK
|
[
|
-
exists
x
,
?C
_
_
_
_
=
?C
_
_
_
_
]
=>
by
good
Hfill
IHK
|
[
|
-
exists
x
,
?C
_
_
_
_
_
=
?C
_
_
_
_
_
]
=>
by
good
Hfill
IHK
|
[
|
-
exists
x
,
?C
_
_
_
_
_
_
=
?C
_
_
_
_
_
_
]
=>
by
good
Hfill
IHK
|
_
=>
by
bad_fill
Hfill
end
)
.
Qed
.
End
step_by_value
.
...
...
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