cfahlgren1's picture
download
raw
3.92 kB
import Mathlib.LinearAlgebra.DFinsupp
import OAI.Computability.PerfectCompleteness.Algebra.UniformLinearImage
import OAI.Computability.PerfectCompleteness.Foundations.RecursiveSpaces
namespace OAI
namespace PerfectCompleteness.UniformChildSum
open scoped BigOperators
open PointwiseSpaces RecursiveSpaces UniformLinearImage
open UniqueGamesTheorem.Foundations.Games
noncomputable section
variable {π•œ X J : Type*} [Field π•œ] [Fintype J]
{D : J β†’ Type*}
def childSum (r : βˆ€ i, X β†’ D i) (H : βˆ€ i, Submodule π•œ (D i β†’ π•œ)) :
(βˆ€ i, squareSpace (H i)) β†’β‚—[π•œ] childSpace r H where
toFun f := βŸ¨βˆ‘ i, pullback π•œ (r i) (f i),
Submodule.sum_mem_iSup (fun i => Submodule.mem_map_of_mem (f i).property)⟩
map_add' f g := by
apply Subtype.ext
simp only [Pi.add_apply, Submodule.coe_add, map_add, Finset.sum_add_distrib]
map_smul' c f := by
apply Subtype.ext
simp only [Pi.smul_apply, Submodule.coe_smul, map_smul, Finset.smul_sum,
RingHom.id_apply]
@[simp] theorem childSum_apply (r : βˆ€ i, X β†’ D i)
(H : βˆ€ i, Submodule π•œ (D i β†’ π•œ)) (f : βˆ€ i, squareSpace (H i)) :
(childSum r H f).val = βˆ‘ i, pullback π•œ (r i) (f i) := rfl
theorem childSum_surjective (r : βˆ€ i, X β†’ D i)
(H : βˆ€ i, Submodule π•œ (D i β†’ π•œ)) : Function.Surjective (childSum r H) := by
classical
intro u
let p : J β†’ Submodule π•œ (X β†’ π•œ) :=
fun i => (squareSpace (H i)).map (pullback π•œ (r i))
have hu : (u : X β†’ π•œ) ∈ ⨆ i ∈ (Finset.univ : Finset J), p i := by
simpa [p, childSpace] using u.property
obtain ⟨v, hv⟩ := (Submodule.mem_iSup_finset_iff_exists_sum
(s := Finset.univ) p (u : X β†’ π•œ)).mp hu
have hx : βˆ€ i, βˆƒ w : squareSpace (H i),
pullback π•œ (r i) (w : D i β†’ π•œ) = (v i : X β†’ π•œ) := by
intro i
obtain ⟨w, hw, heq⟩ := Submodule.mem_map.mp (v i).property
exact ⟨⟨w, hw⟩, heq⟩
choose w hw using hx
refine ⟨w, ?_⟩
apply Subtype.ext
change (βˆ‘ i, pullback π•œ (r i) (w i : D i β†’ π•œ)) = (u : X β†’ π•œ)
calc
_ = βˆ‘ i, (v i : X β†’ π•œ) := Finset.sum_congr rfl (fun i _ => hw i)
_ = _ := hv
theorem uniform_childSum [DecidableEq J] (r : βˆ€ i, X β†’ D i)
(H : βˆ€ i, Submodule π•œ (D i β†’ π•œ))
[βˆ€ i, Fintype (squareSpace (H i))] [Fintype (childSpace r H)] :
(FiniteProduct.law (fun i => FiniteDistribution.uniform (squareSpace (H i)))).pushforward
(childSum r H) = FiniteDistribution.uniform (childSpace r H) :=
product_uniform_linear_image (childSum r H) (childSum_surjective r H)
variable {branch : Nat β†’ Nat} {n : Nat}
def recursiveSum (A : Slots branch (n + 1) β†’ Type*) :
(βˆ€ i : Fin (branch n), squareSpace (space π•œ branch n (childFamily A i))) β†’β‚—[π•œ]
space π•œ branch (n + 1) A :=
childSum (childRestriction A) (fun i => space π•œ branch n (childFamily A i))
theorem recursiveSum_surjective (A : Slots branch (n + 1) β†’ Type*) :
Function.Surjective (recursiveSum (π•œ := π•œ) A) :=
childSum_surjective (childRestriction A) (fun i => space π•œ branch n (childFamily A i))
theorem uniform_recursiveSum (A : Slots branch (n + 1) β†’ Type*)
[βˆ€ i : Fin (branch n), Fintype (squareSpace (space π•œ branch n (childFamily A i)))]
[Fintype (space π•œ branch (n + 1) A)] :
(FiniteProduct.law (fun i : Fin (branch n) =>
FiniteDistribution.uniform (squareSpace (space π•œ branch n (childFamily A i))))).pushforward
(recursiveSum (π•œ := π•œ) A) = FiniteDistribution.uniform (space π•œ branch (n + 1) A) :=
product_uniform_linear_image
(I := Fin (branch n))
(Ξ© := fun i => squareSpace (space π•œ branch n (childFamily A i)))
(R := π•œ) (V := space π•œ branch (n + 1) A)
(recursiveSum (π•œ := π•œ) A) (recursiveSum_surjective (π•œ := π•œ) A)
end
end PerfectCompleteness.UniformChildSum
end OAI

Xet Storage Details

Size:
3.92 kB
Β·
Xet hash:
c7daa555e60ab1f8a9f189ee85677e949bc29932545e8fe4ec64b0cd6b856f6e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.