refactor(library/data/option): move 'option' declaration to init.datatypes
This commit is contained in:
parent
0f854f592c
commit
af978e40e8
2 changed files with 4 additions and 4 deletions
|
|
@ -4,10 +4,6 @@
|
|||
import logic.eq
|
||||
open eq.ops decidable
|
||||
|
||||
inductive option (A : Type) : Type :=
|
||||
none {} : option A,
|
||||
some : A → option A
|
||||
|
||||
namespace option
|
||||
definition is_none {A : Type} (o : option A) : Prop :=
|
||||
rec true (λ a, false) o
|
||||
|
|
|
|||
|
|
@ -76,3 +76,7 @@ str : char → string → string
|
|||
inductive nat :=
|
||||
zero : nat,
|
||||
succ : nat → nat
|
||||
|
||||
inductive option (A : Type) : Type :=
|
||||
none {} : option A,
|
||||
some : A → option A
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue