Documentation
Lean
.
Data
.
LBool
Search
Google site search
return to top
source
Imports
Init.Data.ToString.Basic
Imported by
Lean
.
LBool
Lean
.
instInhabitedLBool
Lean
.
instBEqLBool
Lean
.
LBool
.
neg
Lean
.
LBool
.
and
Lean
.
LBool
.
toString
Lean
.
LBool
.
instToString
Bool
.
toLBool
toLBoolM
source
inductive
Lean
.
LBool
:
Type
false:
Lean.LBool
true:
Lean.LBool
undef:
Lean.LBool
Instances For
source
instance
Lean
.
instInhabitedLBool
:
Inhabited
Lean.LBool
Equations
Lean.instInhabitedLBool
=
{
default
:=
Lean.LBool.false
}
source
instance
Lean
.
instBEqLBool
:
BEq
Lean.LBool
source
def
Lean
.
LBool
.
neg
:
Lean.LBool
→
Lean.LBool
Instances For
source
def
Lean
.
LBool
.
and
:
Lean.LBool
→
Lean.LBool
→
Lean.LBool
Instances For
source
def
Lean
.
LBool
.
toString
:
Lean.LBool
→
String
Instances For
source
instance
Lean
.
LBool
.
instToString
:
ToString
Lean.LBool
Equations
Lean.LBool.instToString
=
{
toString
:=
Lean.LBool.toString
}
source
def
Bool
.
toLBool
:
Bool
→
Lean.LBool
Equations
true
.toLBool
=
Lean.LBool.true
false
.toLBool
=
Lean.LBool.false
Instances For
source
@[inline]
def
toLBoolM
{m :
Type
→
Type
}
[
Monad
m
]
(x :
m
Bool
)
:
m
Lean.LBool
Equations
toLBoolM
x
=
do let
b
←
x
pure
b
.toLBool
Instances For