Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
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
Maxime Dénès
stdpp
Commits
85aa93d4
Commit
85aa93d4
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Replace deprecated appcontext -> context.
parent
8d7683ba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/option.v
+4
-4
4 additions, 4 deletions
theories/option.v
theories/tactics.v
+2
-2
2 additions, 2 deletions
theories/tactics.v
with
6 additions
and
6 deletions
theories/option.v
+
4
−
4
View file @
85aa93d4
...
...
@@ -298,11 +298,11 @@ End union_intersection_difference.
(** * Tactics *)
Tactic
Notation
"case_option_guard"
"as"
ident
(
Hx
)
:=
match
goal
with
|
H
:
app
context
C
[
@
mguard
option
_
?P
?dec
]
|
-
_
=>
|
H
:
context
C
[
@
mguard
option
_
?P
?dec
]
|
-
_
=>
change
(
@
mguard
option
_
P
dec
)
with
(
λ
A
(
f
:
P
→
option
A
),
match
@
decide
P
dec
with
left
H'
=>
f
H'
|
_
=>
None
end
)
in
*
;
destruct_decide
(
@
decide
P
dec
)
as
Hx
|
|
-
app
context
C
[
@
mguard
option
_
?P
?dec
]
=>
|
|
-
context
C
[
@
mguard
option
_
?P
?dec
]
=>
change
(
@
mguard
option
_
P
dec
)
with
(
λ
A
(
f
:
P
→
option
A
),
match
@
decide
P
dec
with
left
H'
=>
f
H'
|
_
=>
None
end
)
in
*
;
destruct_decide
(
@
decide
P
dec
)
as
Hx
...
...
@@ -326,9 +326,9 @@ Tactic Notation "simpl_option" "by" tactic3(tac) :=
assert
(
mx
=
Some
x'
)
as
H
by
tac
|
assert
(
mx
=
None
)
as
H
by
tac
]
in
repeat
match
goal
with
|
H
:
app
context
[
@
mret
_
_
?A
]
|
-
_
=>
|
H
:
context
[
@
mret
_
_
?A
]
|
-
_
=>
change
(
@
mret
_
_
A
)
with
(
@
Some
A
)
in
H
|
|
-
app
context
[
@
mret
_
_
?A
]
=>
change
(
@
mret
_
_
A
)
with
(
@
Some
A
)
|
|
-
context
[
@
mret
_
_
?A
]
=>
change
(
@
mret
_
_
A
)
with
(
@
Some
A
)
|
H
:
context
[
mbind
(
M
:=
option
)
(
A
:=
?A
)
?f
?mx
]
|
-
_
=>
let
Hx
:=
fresh
in
assert_Some_None
A
mx
Hx
;
rewrite
Hx
in
H
;
clear
Hx
|
H
:
context
[
fmap
(
M
:=
option
)
(
A
:=
?A
)
?f
?mx
]
|
-
_
=>
...
...
This diff is collapsed.
Click to expand it.
theories/tactics.v
+
2
−
2
View file @
85aa93d4
...
...
@@ -158,7 +158,7 @@ Coq-club message:
https://sympa.inria.fr/sympa/arc/coq-club/2012-10/msg00147.html *)
Ltac
fold_classes
:=
repeat
match
goal
with
|
|
-
app
context
[
?F
]
=>
|
|
-
context
[
?F
]
=>
progress
match
type
of
F
with
|
FMap
_
=>
change
F
with
(
@
fmap
_
F
);
...
...
@@ -176,7 +176,7 @@ Ltac fold_classes :=
end
.
Ltac
fold_classes_hyps
H
:=
repeat
match
type
of
H
with
|
app
context
[
?F
]
=>
|
context
[
?F
]
=>
progress
match
type
of
F
with
|
FMap
_
=>
change
F
with
(
@
fmap
_
F
)
in
H
;
...
...
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