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
c95907b9
Commit
c95907b9
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Simplify solve_to_val.
parent
7ed067a9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/heap_lang/tactics.v
+1
-3
1 addition, 3 deletions
theories/heap_lang/tactics.v
with
1 addition
and
3 deletions
theories/heap_lang/tactics.v
+
1
−
3
View file @
c95907b9
...
...
@@ -210,6 +210,7 @@ Ltac solve_closed :=
Hint
Extern
0
(
Closed
_
_)
=>
solve_closed
:
typeclass_instances
.
Ltac
solve_to_val
:=
rewrite
/
IntoVal
;
try
match
goal
with
|
|
-
context
E
[
language
.
to_val
?e
]
=>
let
X
:=
context
E
[
to_val
e
]
in
change
X
...
...
@@ -218,9 +219,6 @@ Ltac solve_to_val :=
|
|
-
to_val
?e
=
Some
?v
=>
let
e'
:=
W
.
of_expr
e
in
change
(
to_val
(
W
.
to_expr
e'
)
=
Some
v
);
apply
W
.
to_val_Some
;
simpl
;
unfold
W
.
to_expr
;
reflexivity
|
|
-
IntoVal
?e
?v
=>
let
e'
:=
W
.
of_expr
e
in
change
(
to_val
(
W
.
to_expr
e'
)
=
Some
v
);
apply
W
.
to_val_Some
;
simpl
;
unfold
W
.
to_expr
;
reflexivity
|
|
-
is_Some
(
to_val
?e
)
=>
let
e'
:=
W
.
of_expr
e
in
change
(
is_Some
(
to_val
(
W
.
to_expr
e'
)));
apply
W
.
to_val_is_Some
,
(
bool_decide_unpack
_);
vm_compute
;
exact
I
...
...
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