A fixed-coordinate first moment factors into marginal mass and free average
ProvedNarrowDNF.ConditionalExpectation.moment_restrictioncombinatoricsnarrow-dnf-authors-importprobabilitystoc-2027
Let be finite, , , , and . Write for the product weight on coordinates . The unnormalized first moment over the restriction fiber is
Here merges the fixed and free assignments. Thus the fiber moment is exactly its marginal assignment weight times an average over the complementary cube. The equality is algebraic and requires no restriction on the real parameter .
Preamble
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Algebra.Order.BigOperators.Ring.Finset
import Mathlib.Data.Bool.Basic
import Mathlib.Data.Finset.Lattice.Fold
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Fintype.Pi
import Mathlib.Data.Real.Basic
import Mathlib.Logic.Equiv.Prod
import Mathlib.Order.Monotone.Basic
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.Ring
import Definitions.Def_NarrowDNF_Adaptive
import Definitions.Def_NarrowDNF_ConditionalExpectation
import Definitions.Def_NarrowDNF_ProductMeasure
namespace NarrowDNF.ConditionalExpectation
end NarrowDNF.ConditionalExpectation
namespace NarrowDNF.ProductMeasure
end NarrowDNF.ProductMeasure
noncomputable section
open scoped BigOperators
open NarrowDNF
open NarrowDNF.ConditionalExpectation
variable {α β : Type*} [Fintype α] [Fintype β] [DecidableEq β]
section CoordinatePartition
variable {ι : Type*} [Fintype ι] [DecidableEq ι]
Formal statement
theorem NarrowDNF.ConditionalExpectation.moment_restriction (p : ℝ) (P : ι → Prop) [DecidablePred P]
(F : Cube ι → ℝ) (z : {i // P i} → Bool) :
moment (fun x : Cube ι => fun i : {i // P i} => x i) (ProductMeasure.weight p) F z =
ProductMeasure.weight p z * ProductMeasure.expectation p (fun y => F (merge P z y)) := by sorrySource