Skip to content
Snippets Groups Projects
Commit 364f5410 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Remove duplicate None decider.

parent da7a14bb
No related branches found
No related tags found
No related merge requests found
...@@ -68,8 +68,6 @@ Definition Some_dec {A} (x : option A) : { a | x = Some a } + { x = None } := ...@@ -68,8 +68,6 @@ Definition Some_dec {A} (x : option A) : { a | x = Some a } + { x = None } :=
| Some a => inleft (a eq_refl _) | Some a => inleft (a eq_refl _)
| None => inright eq_refl | None => inright eq_refl
end. 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. Lemma eq_None_not_Some {A} (x : option A) : x = None ¬is_Some x.
Proof. destruct x; unfold is_Some; naive_solver. Qed. Proof. destruct x; unfold is_Some; naive_solver. Qed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment