Documentation
Atlas
.
BooleanFunctions
.
code
.
InfluenceFourier
Search
return to top
source
Imports
Init
Atlas.BooleanFunctions.code.FourierExpansion
Atlas.BooleanFunctions.code.Influence
Atlas.BooleanFunctions.code.Parseval
Mathlib.Data.Finset.SymmDiff
Mathlib.Algebra.Order.BigOperators.Group.Finset
Imported by
BooleanFourier
.
influenceReal
BooleanFourier
.
chi_flipAt_of_not_mem
BooleanFourier
.
chi_mul_chi_eq
BooleanFourier
.
sum_chi_mul_chi_x
BooleanFourier
.
influenceReal_eq_sum_fourierCoeff_sq
BooleanFourier
.
totalInfluenceReal
BooleanFourier
.
totalInfluenceReal_eq_sum_card_fourierCoeff_sq
BooleanFourier
.
varianceReal
BooleanFourier
.
totalInfluenceReal_ge_varianceReal
BooleanFourier
.
sq_eq_self_of_zero_one
BooleanFourier
.
varianceReal_eq_quarter_of_balanced
BooleanFourier
.
totalInfluenceReal_ge_quarter_of_balanced
source
noncomputable def
BooleanFourier
.
influenceReal
{
n
:
ℕ
}
(
f
:
(
Fin
n
→
Bool
)
→
ℝ
)
(
i
:
Fin
n
)
:
ℝ
Instances For
source
theorem
BooleanFourier
.
chi_flipAt_of_not_mem
{
n
:
ℕ
}
(
S
:
Finset
(
Fin
n
)
)
(
i
:
Fin
n
)
(
hi
:
i
∉
S
)
(
x
:
Fin
n
→
Bool
)
:
chi
S
(
flipAt
i
x
)
=
chi
S
x
source
theorem
BooleanFourier
.
chi_mul_chi_eq
{
n
:
ℕ
}
(
S
S'
:
Finset
(
Fin
n
)
)
(
x
:
Fin
n
→
Bool
)
:
chi
S
x
*
chi
S'
x
=
chi
(
symmDiff
S
S'
)
x
source
theorem
BooleanFourier
.
sum_chi_mul_chi_x
{
n
:
ℕ
}
(
S
S'
:
Finset
(
Fin
n
)
)
:
∑
x
:
Fin
n
→
Bool
,
chi
S
x
*
chi
S'
x
=
if
S
=
S'
then
2
^
n
else
0
source
theorem
BooleanFourier
.
influenceReal_eq_sum_fourierCoeff_sq
{
n
:
ℕ
}
(
f
:
(
Fin
n
→
Bool
)
→
ℝ
)
(
i
:
Fin
n
)
:
influenceReal
f
i
=
∑
S
:
Finset
(
Fin
n
)
with
i
∈
S
,
fourierCoeff
f
S
^
2
source
noncomputable def
BooleanFourier
.
totalInfluenceReal
{
n
:
ℕ
}
(
f
:
(
Fin
n
→
Bool
)
→
ℝ
)
:
ℝ
Instances For
source
theorem
BooleanFourier
.
totalInfluenceReal_eq_sum_card_fourierCoeff_sq
{
n
:
ℕ
}
(
f
:
(
Fin
n
→
Bool
)
→
ℝ
)
:
totalInfluenceReal
f
=
∑
S
:
Finset
(
Fin
n
)
,
↑
S
.
card
*
fourierCoeff
f
S
^
2
source
noncomputable def
BooleanFourier
.
varianceReal
{
n
:
ℕ
}
(
f
:
(
Fin
n
→
Bool
)
→
ℝ
)
:
ℝ
Instances For
source
theorem
BooleanFourier
.
totalInfluenceReal_ge_varianceReal
{
n
:
ℕ
}
(
f
:
(
Fin
n
→
Bool
)
→
ℝ
)
:
totalInfluenceReal
f
≥
varianceReal
f
source
theorem
BooleanFourier
.
sq_eq_self_of_zero_one
{
n
:
ℕ
}
(
f
:
(
Fin
n
→
Bool
)
→
ℝ
)
(
hf
:
∀ (
x
:
Fin
n
→
Bool
),
f
x
=
0
∨
f
x
=
1
)
(
x
:
Fin
n
→
Bool
)
:
f
x
^
2
=
f
x
source
theorem
BooleanFourier
.
varianceReal_eq_quarter_of_balanced
{
n
:
ℕ
}
(
f
:
(
Fin
n
→
Bool
)
→
ℝ
)
(
hf
:
∀ (
x
:
Fin
n
→
Bool
),
f
x
=
0
∨
f
x
=
1
)
(
hbal
:
fourierCoeff
f
∅
=
1
/
2
)
:
varianceReal
f
=
1
/
4
source
theorem
BooleanFourier
.
totalInfluenceReal_ge_quarter_of_balanced
{
n
:
ℕ
}
(
f
:
(
Fin
n
→
Bool
)
→
ℝ
)
(
hf
:
∀ (
x
:
Fin
n
→
Bool
),
f
x
=
0
∨
f
x
=
1
)
(
hbal
:
fourierCoeff
f
∅
=
1
/
2
)
:
totalInfluenceReal
f
≥
1
/
4