Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
coqstdpp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Swasey
coqstdpp
Commits
147b2022
Commit
147b2022
authored
Jan 12, 2016
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More consistent naming.
parent
28653f29
Changes
2
Hide whitespace changes
Inline
Sidebyside
Showing
2 changed files
with
3 additions
and
3 deletions
+3
3
theories/fin_maps.v
theories/fin_maps.v
+1
1
theories/option.v
theories/option.v
+2
2
No files found.
theories/fin_maps.v
View file @
147b2022
...
@@ 1532,7 +1532,7 @@ Tactic Notation "simplify_map_equality" "by" tactic3(tac) :=
...
@@ 1532,7 +1532,7 @@ Tactic Notation "simplify_map_equality" "by" tactic3(tac) :=
repeat
match
goal
with
repeat
match
goal
with

_
=>
progress
simpl_map
by
tac

_
=>
progress
simpl_map
by
tac

_
=>
progress
simplify_equality

_
=>
progress
simplify_equality

_
=>
progress
simpl_option
_monad
by
tac

_
=>
progress
simpl_option
by
tac

H
:
{[
_
↦
_
]}
!!
_
=
None

_
=>
rewrite
lookup_singleton_None
in
H

H
:
{[
_
↦
_
]}
!!
_
=
None

_
=>
rewrite
lookup_singleton_None
in
H

H
:
{[
_
↦
_
]}
!!
_
=
Some
_

_
=>

H
:
{[
_
↦
_
]}
!!
_
=
Some
_

_
=>
rewrite
lookup_singleton_Some
in
H
;
destruct
H
rewrite
lookup_singleton_Some
in
H
;
destruct
H
...
...
theories/option.v
View file @
147b2022
...
@@ 261,7 +261,7 @@ Lemma option_guard_iff {A} P Q `{Decision P, Decision Q} (x : option A) :
...
@@ 261,7 +261,7 @@ Lemma option_guard_iff {A} P Q `{Decision P, Decision Q} (x : option A) :
(
P
↔
Q
)
→
guard
P
;
x
=
guard
Q
;
x
.
(
P
↔
Q
)
→
guard
P
;
x
=
guard
Q
;
x
.
Proof
.
intros
[??].
repeat
case_option_guard
;
intuition
.
Qed
.
Proof
.
intros
[??].
repeat
case_option_guard
;
intuition
.
Qed
.
Tactic
Notation
"simpl_option
_monad
"
"by"
tactic3
(
tac
)
:
=
Tactic
Notation
"simpl_option"
"by"
tactic3
(
tac
)
:
=
let
assert_Some_None
A
o
H
:
=
first
let
assert_Some_None
A
o
H
:
=
first
[
let
x
:
=
fresh
in
evar
(
x
:
A
)
;
let
x'
:
=
eval
unfold
x
in
x
in
clear
x
;
[
let
x
:
=
fresh
in
evar
(
x
:
A
)
;
let
x'
:
=
eval
unfold
x
in
x
in
clear
x
;
assert
(
o
=
Some
x'
)
as
H
by
tac
assert
(
o
=
Some
x'
)
as
H
by
tac
...
@@ 308,7 +308,7 @@ Tactic Notation "simpl_option_monad" "by" tactic3(tac) :=
...
@@ 308,7 +308,7 @@ Tactic Notation "simpl_option_monad" "by" tactic3(tac) :=
Tactic
Notation
"simplify_option_equality"
"by"
tactic3
(
tac
)
:
=
Tactic
Notation
"simplify_option_equality"
"by"
tactic3
(
tac
)
:
=
repeat
match
goal
with
repeat
match
goal
with

_
=>
progress
simplify_equality'

_
=>
progress
simplify_equality'

_
=>
progress
simpl_option
_monad
by
tac

_
=>
progress
simpl_option
by
tac

_
:
maybe
_
?x
=
Some
_

_
=>
is_var
x
;
destruct
x

_
:
maybe
_
?x
=
Some
_

_
=>
is_var
x
;
destruct
x

_
:
maybe2
_
?x
=
Some
_

_
=>
is_var
x
;
destruct
x

_
:
maybe2
_
?x
=
Some
_

_
=>
is_var
x
;
destruct
x

_
:
maybe3
_
?x
=
Some
_

_
=>
is_var
x
;
destruct
x

_
:
maybe3
_
?x
=
Some
_

_
=>
is_var
x
;
destruct
x
...
...
Write
Preview
Markdown
is supported
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