Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David Swasey
coq-stdpp
Commits
364f5410
Commit
364f5410
authored
Nov 23, 2014
by
Robbert Krebbers
Browse files
Remove duplicate None decider.
parent
da7a14bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/option.v
View file @
364f5410
...
...
@@ -68,8 +68,6 @@ Definition Some_dec {A} (x : option A) : { a | x = Some a } + { x = None } :=
|
Some
a
=>
inleft
(
a
↾
eq_refl
_
)
|
None
=>
inright
eq_refl
end
.
Instance
None_dec
{
A
}
(
x
:
option
A
)
:
Decision
(
x
=
None
)
:
=
match
x
with
Some
x
=>
right
(
Some_ne_None
x
)
|
None
=>
left
eq_refl
end
.
Lemma
eq_None_not_Some
{
A
}
(
x
:
option
A
)
:
x
=
None
↔
¬
is_Some
x
.
Proof
.
destruct
x
;
unfold
is_Some
;
naive_solver
.
Qed
.
...
...
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