Documentation
PFR
.
Mathlib
.
Data
.
Set
.
Card
Search
return to top
source
Imports
Init
Mathlib.Data.Set.Card
PFR.Mathlib.Data.Set.Basic
PFR.Mathlib.Data.Set.Insert
Imported by
Set
.
ncard_singleton_inter'
Set
.
ncard_inter_singleton
source
theorem
Set
.
ncard_singleton_inter'
{
α
:
Type
u_1}
(
a
:
α
)
(
s
:
Set
α
)
[
Decidable
(
a
∈
s
)
]
:
(
{
a
}
∩
s
).
ncard
=
if
a
∈
s
then
1
else
0
source
theorem
Set
.
ncard_inter_singleton
{
α
:
Type
u_1}
(
a
:
α
)
(
s
:
Set
α
)
[
Decidable
(
a
∈
s
)
]
:
(
s
∩
{
a
}
).
ncard
=
if
a
∈
s
then
1
else
0