Buckets:
| import Mathlib | |
| import OAI.Computability.DirectedFeedback.Games.A5Scalar | |
| namespace OAI | |
| namespace DFVSGames.Appendix.SubmoduleInterval | |
| open Module | |
| variable {๐ V : Type*} [Field ๐] [AddCommGroup V] [Module ๐ V] | |
| def lowerIntervalEquiv (I : Submodule ๐ V) : | |
| {A : Submodule ๐ V // A โค I} โ Submodule ๐ I where | |
| toFun A := A.val.comap I.subtype | |
| invFun B := โจB.map I.subtype, by | |
| intro x hx | |
| rcases Submodule.mem_map.mp hx with โจb, hb, rflโฉ | |
| exact b.propertyโฉ | |
| left_inv A := by | |
| apply Subtype.ext | |
| change (A.val.comap I.subtype).map I.subtype = A.val | |
| ext x | |
| constructor | |
| ยท intro hx | |
| rcases Submodule.mem_map.mp hx with โจb, hb, rflโฉ | |
| exact hb | |
| ยท intro hx | |
| exact Submodule.mem_map.mpr โจโจx, A.property hxโฉ, hx, rflโฉ | |
| right_inv B := by | |
| change (B.map I.subtype).comap I.subtype = B | |
| ext b | |
| constructor | |
| ยท intro hb | |
| change (b : V) โ B.map I.subtype at hb | |
| rcases Submodule.mem_map.mp hb with โจc, hc, hcbโฉ | |
| have h : c = b := Subtype.ext hcb | |
| simpa only [h] using hc | |
| ยท intro hb | |
| exact Submodule.mem_map.mpr โจb, hb, rflโฉ | |
| def lowerIntervalSpaceEquiv (I : Submodule ๐ V) | |
| (A : {A : Submodule ๐ V // A โค I}) : | |
| A.val โโ[๐] A.val.comap I.subtype where | |
| toFun a := โจโจa.val, A.property a.propertyโฉ, a.propertyโฉ | |
| invFun b := โจb.val.val, b.propertyโฉ | |
| left_inv _a := Subtype.ext rfl | |
| right_inv _b := Subtype.ext (Subtype.ext rfl) | |
| map_add' _a _b := Subtype.ext (Subtype.ext rfl) | |
| map_smul' _c _a := Subtype.ext (Subtype.ext rfl) | |
| theorem lowerInterval_finrank (I : Submodule ๐ V) | |
| (A : {A : Submodule ๐ V // A โค I}) : | |
| finrank ๐ (lowerIntervalEquiv I A) = finrank ๐ A.val := | |
| (lowerIntervalSpaceEquiv I A).finrank_eq.symm | |
| open scoped BigOperators | |
| attribute [local instance] Classical.propDecidable | |
| theorem sum_lowerInterval {R : Type*} [AddCommMonoid R] | |
| (I : Submodule ๐ V) [Fintype {A : Submodule ๐ V // A โค I}] | |
| [Fintype (Submodule ๐ I)] (weight : Nat โ R) : | |
| (โ A : {A : Submodule ๐ V // A โค I}, weight (finrank ๐ A.val)) = | |
| โ B : Submodule ๐ I, weight (finrank ๐ B) := by | |
| apply Fintype.sum_equiv (lowerIntervalEquiv I) | |
| intro A | |
| rw [lowerInterval_finrank] | |
| local instance submoduleFinite [Finite V] : Finite (Submodule ๐ V) := | |
| Finite.of_injective (fun S : Submodule ๐ V => (S : Set V)) SetLike.coe_injective | |
| noncomputable def lowerWeightedTotal [Finite V] (I : Submodule ๐ V) (w : Nat โ โค) : โค := by | |
| classical | |
| letI := Fintype.ofFinite {A : Submodule ๐ V // A โค I} | |
| exact โ A : {A : Submodule ๐ V // A โค I}, w (finrank ๐ A.val) | |
| theorem lowerWeightedTotal_eq [Finite V] (I : Submodule ๐ V) (w : Nat โ โค) : | |
| lowerWeightedTotal I w = SubspaceExtensions.weightedTotal (K := ๐) (V := I) w := by | |
| classical | |
| let := Fintype.ofFinite {A : Submodule ๐ V // A โค I} | |
| let := SubspaceExtensions.subspaceFintype (K := ๐) (V := I) | |
| unfold lowerWeightedTotal SubspaceExtensions.weightedTotal | |
| exact Fintype.sum_equiv (lowerIntervalEquiv I) | |
| (fun A : {A : Submodule ๐ V // A โค I} => w (finrank ๐ A.val)) | |
| (fun B : Submodule ๐ I => w (finrank ๐ B)) | |
| (fun A => congrArg w (lowerInterval_finrank I A).symm) | |
| theorem binary_lower_interval_mobius {E : Type*} [AddCommGroup E] [Module (ZMod 2) E] | |
| [Finite E] [FiniteDimensional (ZMod 2) E] (I : Submodule (ZMod 2) E) : | |
| lowerWeightedTotal I (fun r => (-1 : โค)^r * 2^(r.choose 2)) = | |
| if I = โฅ then 1 else 0 := by | |
| rw [lowerWeightedTotal_eq, SubspaceExtensions.binary_subspace_mobius] | |
| simp only [Submodule.finrank_eq_zero] | |
| end DFVSGames.Appendix.SubmoduleInterval | |
| noncomputable section | |
| namespace DFVSGames.Appendix.A13Index | |
| open Module | |
| open DFVSGames.Integration.BinaryLinear (F2) | |
| open DFVSGames.Fourier.MatrixRestrictions (order) | |
| variable {E F : Type*} [AddCommGroup E] [Module F2 E] | |
| [AddCommGroup F] [Module F2 F] | |
| abbrev Triple := LinearIdentities.A4Index (K := F2) (W := F) (V := E) | |
| def weakA (q : Triple (E := E) (F := F)) : Submodule F2 E := | |
| q.2.2.range.comap q.1.mkQ | |
| def weakB (q : Triple (E := E) (F := F)) : Submodule F2 F := | |
| q.2.2.ker.map q.2.1.subtype | |
| theorem recover_weakA {A : Submodule F2 E} {B : Submodule F2 F} | |
| (p : A4IndexCount.Index A B) : weakA p.val = A := by | |
| rcases p with โจโจA0, B0, Xโฉ, hA, hB, hK, hRโฉ | |
| change X.range.comap A0.mkQ = A | |
| rw [hR] | |
| ext a | |
| change A0.mkQ a โ A.map A0.mkQ โ a โ A | |
| constructor | |
| ยท intro ha | |
| rcases Submodule.mem_map.mp ha with โจv, hv, heโฉ | |
| have hm : a - v โ A0 := by | |
| apply (Submodule.Quotient.mk_eq_zero A0).mp | |
| change A0.mkQ (a - v) = 0 | |
| rw [map_sub, he, sub_self] | |
| simpa only [sub_add_cancel] using A.add_mem (hA hm) hv | |
| ยท intro ha | |
| exact Submodule.mem_map.mpr โจa, ha, rflโฉ | |
| theorem recover_weakB {A : Submodule F2 E} {B : Submodule F2 F} | |
| (p : A4IndexCount.Index A B) : weakB p.val = B := by | |
| rcases p with โจโจA0, B0, Xโฉ, hA, hB, hK, hRโฉ | |
| change X.ker.map B0.subtype = B | |
| rw [hK] | |
| ext b | |
| constructor | |
| ยท intro hb | |
| rcases Submodule.mem_map.mp hb with โจv, hv, rflโฉ | |
| exact hv | |
| ยท intro hb | |
| exact Submodule.mem_map.mpr โจโจb, hB hbโฉ, hb, rflโฉ | |
| theorem canonicalValid (q : Triple (E := E) (F := F)) : | |
| A4IndexCount.Valid (weakA q) (weakB q) q := by | |
| rcases q with โจA0, B0, Xโฉ | |
| change A0 โค X.range.comap A0.mkQ โง X.ker.map B0.subtype โค B0 โง | |
| X.ker = (X.ker.map B0.subtype).comap B0.subtype โง | |
| X.range = (X.range.comap A0.mkQ).map A0.mkQ | |
| refine โจ?_, ?_, ?_, ?_โฉ | |
| ยท intro a ha | |
| change A0.mkQ a โ X.range | |
| have hz : A0.mkQ a = 0 := (Submodule.Quotient.mk_eq_zero A0).mpr ha | |
| rw [hz] | |
| exact X.range.zero_mem | |
| ยท intro b hb | |
| rcases Submodule.mem_map.mp hb with โจv, hv, rflโฉ | |
| exact v.property | |
| ยท ext b | |
| constructor | |
| ยท intro hb | |
| exact Submodule.mem_map.mpr โจb, hb, rflโฉ | |
| ยท intro hb | |
| change (b : F) โ X.ker.map B0.subtype at hb | |
| rcases Submodule.mem_map.mp hb with โจv, hv, heโฉ | |
| have h : v = b := Subtype.ext he | |
| simpa only [h] using hv | |
| ยท ext z | |
| constructor | |
| ยท intro hz | |
| obtain โจv, rflโฉ := A0.mkQ_surjective z | |
| exact Submodule.mem_map.mpr โจv, hz, rflโฉ | |
| ยท intro hz | |
| rcases Submodule.mem_map.mp hz with โจv, hv, rflโฉ | |
| exact hv | |
| variable [FiniteDimensional F2 E] [FiniteDimensional F2 F] | |
| omit [FiniteDimensional F2 F] in | |
| theorem dim_weakA {A : Submodule F2 E} {B : Submodule F2 F} | |
| (p : A4IndexCount.Index A B) : | |
| finrank F2 A = finrank F2 p.val.1 + finrank F2 p.val.2.2.range := by | |
| rcases p with โจโจA0, B0, Xโฉ, hA, hB, hK, hRโฉ | |
| change finrank F2 A = finrank F2 A0 + finrank F2 X.range | |
| let Q := A4IndexCount.quotientRestriction A0 A | |
| have hQR : Q.range = X.range := by | |
| rw [hR] | |
| ext z | |
| constructor | |
| ยท rintro โจa, rflโฉ | |
| exact Submodule.mem_map.mpr โจa.val, a.property, rflโฉ | |
| ยท intro hz | |
| rcases Submodule.mem_map.mp hz with โจa, ha, heโฉ | |
| exact โจโจa, haโฉ, heโฉ | |
| have hQK : finrank F2 Q.ker = finrank F2 A0 := by | |
| rw [A4IndexCount.ker_quotientRestriction] | |
| exact (SubmoduleInterval.lowerIntervalSpaceEquiv A โจA0, hAโฉ).finrank_eq.symm | |
| have h := Q.finrank_range_add_finrank_ker | |
| rw [hQR, hQK] at h | |
| omega | |
| omit [FiniteDimensional F2 E] in | |
| theorem codim_weakB {A : Submodule F2 E} {B : Submodule F2 F} | |
| (p : A4IndexCount.Index A B) : | |
| finrank F2 (F โงธ B) = | |
| finrank F2 (F โงธ p.val.2.1) + finrank F2 p.val.2.2.range := by | |
| rcases p with โจโจA0, B0, Xโฉ, hA, hB, hK, hRโฉ | |
| change finrank F2 (F โงธ B) = finrank F2 (F โงธ B0) + finrank F2 X.range | |
| have hKB : finrank F2 X.ker = finrank F2 B := by | |
| rw [hK] | |
| exact (SubmoduleInterval.lowerIntervalSpaceEquiv B0 โจB, hBโฉ).finrank_eq.symm | |
| have h := X.finrank_range_add_finrank_ker | |
| rw [hKB] at h | |
| have hBdim := B.finrank_quotient_add_finrank | |
| have hB0dim := B0.finrank_quotient_add_finrank | |
| omega | |
| def size (q : Triple (E := E) (F := F)) : Nat := | |
| order q.1 q.2.1 + finrank F2 q.2.2.range | |
| theorem weak_order {A : Submodule F2 E} {B : Submodule F2 F} | |
| (p : A4IndexCount.Index A B) : | |
| order A B = order p.val.1 p.val.2.1 + 2 * finrank F2 p.val.2.2.range := by | |
| have ha := dim_weakA p | |
| have hb := codim_weakB p | |
| dsimp only [order] | |
| omega | |
| theorem order_eq_zero_iff (A : Submodule F2 E) (B : Submodule F2 F) : | |
| order A B = 0 โ A = โฅ โง B = โค := by | |
| constructor | |
| ยท intro h | |
| change finrank F2 A + finrank F2 (F โงธ B) = 0 at h | |
| have ha : finrank F2 A = 0 := by omega | |
| have hb : finrank F2 (F โงธ B) = 0 := by omega | |
| refine โจSubmodule.finrank_eq_zero.mp ha, ?_โฉ | |
| apply Submodule.eq_top_iff_finrank_eq.mpr | |
| have hq := B.finrank_quotient_add_finrank | |
| omega | |
| ยท rintro โจrfl, rflโฉ | |
| simpa [order] using | |
| (Module.finrank_eq_zero_of_subsingleton F2 (F โงธ (โค : Submodule F2 F))) | |
| theorem valid_positive_iff {A : Submodule F2 E} {B : Submodule F2 F} | |
| (p : A4IndexCount.Index A B) : | |
| (A, B) โ (โฅ, โค) โ 0 < size p.val := by | |
| have h := weak_order p | |
| constructor | |
| ยท intro hp | |
| by_contra ht | |
| have hz : order A B = 0 := by | |
| dsimp only [size] at ht | |
| omega | |
| rcases (order_eq_zero_iff A B).mp hz with โจhA, hBโฉ | |
| exact hp (Prod.ext hA hB) | |
| ยท intro ht hp | |
| have hAB : A = โฅ โง B = โค := Prod.mk.inj hp | |
| have hz := (order_eq_zero_iff A B).mpr hAB | |
| dsimp only [size] at ht | |
| omega | |
| abbrev WeakPositive := | |
| {p : Submodule F2 E ร Submodule F2 F // p โ (โฅ, โค)} | |
| abbrev PositiveWitness := | |
| ฮฃ p : WeakPositive (E := E) (F := F), A4IndexCount.Index p.val.1 p.val.2 | |
| abbrev PositiveTriple := {q : Triple (E := E) (F := F) // 0 < size q} | |
| abbrev BoundedPositiveTriple (d : Nat) := | |
| {q : Triple (E := E) (F := F) // 0 < size q โง size q โค d} | |
| def positiveMap (p : PositiveWitness (E := E) (F := F)) : | |
| PositiveTriple (E := E) (F := F) := | |
| โจp.2.val, (valid_positive_iff p.2).mp p.1.propertyโฉ | |
| theorem positiveMap_injective : | |
| Function.Injective (positiveMap (E := E) (F := F)) := by | |
| rintro โจโจโจA, Bโฉ, hpโฉ, pโฉ โจโจโจA', B'โฉ, hp'โฉ, p'โฉ he | |
| have hraw : p.val = p'.val := congrArg Subtype.val he | |
| have hA : A = A' := by | |
| calc | |
| A = weakA p.val := (recover_weakA p).symm | |
| _ = weakA p'.val := congrArg weakA hraw | |
| _ = A' := recover_weakA p' | |
| have hB : B = B' := by | |
| calc | |
| B = weakB p.val := (recover_weakB p).symm | |
| _ = weakB p'.val := congrArg weakB hraw | |
| _ = B' := recover_weakB p' | |
| cases hA | |
| cases hB | |
| have hpp : p = p' := Subtype.ext hraw | |
| cases hpp | |
| rfl | |
| def positiveInverse (q : PositiveTriple (E := E) (F := F)) : | |
| PositiveWitness (E := E) (F := F) := | |
| โจโจ(weakA q.val, weakB q.val), | |
| (valid_positive_iff โจq.val, canonicalValid q.valโฉ).mpr q.propertyโฉ, | |
| โจq.val, canonicalValid q.valโฉโฉ | |
| def positiveEquiv : PositiveWitness (E := E) (F := F) โ | |
| PositiveTriple (E := E) (F := F) := | |
| Equiv.ofBijective positiveMap โจpositiveMap_injective, by | |
| intro q | |
| refine โจpositiveInverse q, ?_โฉ | |
| exact Subtype.ext rflโฉ | |
| @[simp] theorem positiveMap_val (p : PositiveWitness (E := E) (F := F)) : | |
| (positiveMap p).val = p.2.val := rfl | |
| @[simp] theorem positiveEquiv_val (p : PositiveWitness (E := E) (F := F)) : | |
| (positiveEquiv p).val = p.2.val := rfl | |
| @[instance_reducible] | |
| def tripleFintype [Finite E] [Finite F] : | |
| Fintype (Triple (E := E) (F := F)) := by | |
| classical | |
| letI : Fintype (Submodule F2 E) := SubspaceExtensions.subspaceFintype | |
| letI : Fintype (Submodule F2 F) := SubspaceExtensions.subspaceFintype | |
| letI (A : Submodule F2 E) : Finite (E โงธ A) := | |
| Finite.of_surjective A.mkQ A.mkQ_surjective | |
| letI (A : Submodule F2 E) (B : Submodule F2 F) : | |
| Fintype (B โโ[F2] (E โงธ A)) := by | |
| letI : Fintype B := Fintype.ofFinite _ | |
| letI : Fintype (E โงธ A) := Fintype.ofFinite _ | |
| exact Fintype.ofInjective (fun L : B โโ[F2] (E โงธ A) => | |
| (L : B โ E โงธ A)) DFunLike.coe_injective | |
| exact inferInstance | |
| @[instance_reducible] | |
| def weakPositiveFintype [Finite E] [Finite F] : | |
| Fintype (WeakPositive (E := E) (F := F)) := by | |
| classical | |
| letI : Fintype (Submodule F2 E) := SubspaceExtensions.subspaceFintype | |
| letI : Fintype (Submodule F2 F) := SubspaceExtensions.subspaceFintype | |
| exact inferInstance | |
| @[instance_reducible] | |
| def geometricIndexFintype [Finite E] [Finite F] | |
| (A : Submodule F2 E) (B : Submodule F2 F) : | |
| Fintype (A4IndexCount.Index A B) := by | |
| classical | |
| letI := tripleFintype (E := E) (F := F) | |
| exact inferInstance | |
| @[instance_reducible] | |
| def positiveWitnessFintype [Finite E] [Finite F] : | |
| Fintype (PositiveWitness (E := E) (F := F)) := by | |
| classical | |
| letI := weakPositiveFintype (E := E) (F := F) | |
| letI (A : Submodule F2 E) (B : Submodule F2 F) := geometricIndexFintype A B | |
| exact inferInstance | |
| @[instance_reducible] | |
| def positiveTripleFintype [Finite E] [Finite F] : | |
| Fintype (PositiveTriple (E := E) (F := F)) := by | |
| classical | |
| letI := tripleFintype (E := E) (F := F) | |
| exact inferInstance | |
| @[instance_reducible] | |
| def boundedPositiveTripleFintype [Finite E] [Finite F] (d : Nat) : | |
| Fintype (BoundedPositiveTriple (E := E) (F := F) d) := by | |
| classical | |
| letI := tripleFintype (E := E) (F := F) | |
| exact inferInstance | |
| end DFVSGames.Appendix.A13Index | |
| end | |
| namespace DFVSGames.Appendix.TotalPredecessorCount | |
| open Module | |
| open DFVSGames.Integration.BinaryLinear (F2) | |
| open DFVSGames.Appendix.RankAdditivity | |
| variable {E F : Type*} [AddCommGroup E] [Module F2 E] [AddCommGroup F] [Module F2 F] | |
| variable [FiniteDimensional F2 E] [FiniteDimensional F2 F] | |
| noncomputable def predecessorEnd (Y : E โโ[F2] F) | |
| (R : {R : E โโ[F2] F // RankBelow R Y}) : Y.range โโ[F2] Y.range := | |
| let R' : E โโ[F2] Y.range := R.val.codRestrict Y.range | |
| (fun x => range_le_of_rankBelow R.val Y R.property โจx,rflโฉ) | |
| let hker : Y.ker โค R'.ker := by | |
| intro x hx | |
| exact Subtype.ext (ker_le_of_rankBelow R.val Y R.property hx) | |
| (Y.ker.liftQ R' hker).comp Y.quotKerEquivRange.symm.toLinearMap | |
| omit [FiniteDimensional F2 F] in | |
| theorem predecessorEnd_recovery (Y : E โโ[F2] F) | |
| (R : {R : E โโ[F2] F // RankBelow R Y}) (x : E) : | |
| ((predecessorEnd Y R (Y.rangeRestrict x) : Y.range) : F) = R.val x := by | |
| have hq : Y.quotKerEquivRange.symm (Y.rangeRestrict x) = Y.ker.mkQ x := | |
| Y.quotKerEquivRange.symm_apply_apply (Y.ker.mkQ x) | |
| dsimp only [predecessorEnd,LinearMap.comp_apply,LinearEquiv.coe_coe] | |
| rw [hq] | |
| rfl | |
| omit [FiniteDimensional F2 F] in | |
| theorem predecessorEnd_injective (Y : E โโ[F2] F) : | |
| Function.Injective (predecessorEnd Y) := by | |
| intro R S h | |
| apply Subtype.ext | |
| apply LinearMap.ext | |
| intro x | |
| calc | |
| R.val x = ((predecessorEnd Y R (Y.rangeRestrict x) : Y.range) : F) := | |
| (predecessorEnd_recovery Y R x).symm | |
| _ = ((predecessorEnd Y S (Y.rangeRestrict x) : Y.range) : F) := | |
| congrArg (fun P : Y.range โโ[F2] Y.range => (P (Y.rangeRestrict x) : F)) h | |
| _ = S.val x := predecessorEnd_recovery Y S x | |
| omit [FiniteDimensional F2 F] in | |
| theorem card_predecessors_le [Finite E] [Finite F] (Y : E โโ[F2] F) : | |
| Nat.card {R : E โโ[F2] F // RankBelow R Y} โค | |
| 2 ^ (finrank F2 Y.range ^ 2) := by | |
| classical | |
| let : Finite (Y.range โโ[F2] Y.range) := | |
| Finite.of_injective (fun f : Y.range โโ[F2] Y.range => (f : Y.range โ Y.range)) | |
| DFunLike.coe_injective | |
| have h := Nat.card_le_card_of_injective (predecessorEnd Y) | |
| (predecessorEnd_injective Y) | |
| rw [CompressionCount.natCard_linearMap] at h | |
| simpa only [pow_two] using h | |
| end DFVSGames.Appendix.TotalPredecessorCount | |
| noncomputable section | |
| namespace DFVSGames.Fourier.MatrixProducts | |
| open scoped BigOperators | |
| open MatrixCharacters MatrixFourier | |
| variable {E F : Type*} | |
| variable [AddCommGroup E] [Module F2 E] [AddCommGroup F] [Module F2 F] | |
| theorem linearTraceCharacter_re_add (S T : F โโ[F2] E) (X : E โโ[F2] F) : | |
| (linearTraceCharacter (S + T) X).re = | |
| (linearTraceCharacter S X).re * (linearTraceCharacter T X).re := by | |
| rw [linearTraceCharacter_add, AddChar.add_apply] | |
| rw [โ linearTraceCharacter_real S X, โ linearTraceCharacter_real T X] | |
| simp | |
| variable [Fintype (E โโ[F2] F)] | |
| theorem linearCoeff_mul_character (f : (E โโ[F2] F) โ โ) | |
| (S T : F โโ[F2] E) : | |
| linearCoeff (fun X => f X * (linearTraceCharacter T X).re) S = | |
| linearCoeff f (S + T) := by | |
| simp only [linearCoeff] | |
| apply Finset.expect_congr rfl | |
| intro X _ | |
| rw [linearTraceCharacter_re_add] | |
| ac_rfl | |
| variable [FiniteDimensional F2 E] [FiniteDimensional F2 F] | |
| variable [Fintype (F โโ[F2] E)] | |
| theorem linearCoeff_mul (f g : (E โโ[F2] F) โ โ) (S : F โโ[F2] E) : | |
| linearCoeff (fun X => f X * g X) S = | |
| โ T : F โโ[F2] E, linearCoeff f T * linearCoeff g (S + T) := by | |
| have hexpand : (fun X : E โโ[F2] F => f X * g X) = | |
| โ T : F โโ[F2] E, linearCoeff f T โข | |
| (fun X => g X * (linearTraceCharacter T X).re) := by | |
| funext X | |
| simp only [Finset.sum_apply, Pi.smul_apply, smul_eq_mul] | |
| calc | |
| f X * g X = | |
| (โ T : F โโ[F2] E, linearCoeff f T * (linearTraceCharacter T X).re) * g X := by | |
| rw [linear_fourier_inversion] | |
| _ = โ T : F โโ[F2] E, | |
| linearCoeff f T * (g X * (linearTraceCharacter T X).re) := by | |
| rw [Finset.sum_mul] | |
| apply Finset.sum_congr rfl | |
| intro T _ | |
| ac_rfl | |
| rw [hexpand, linearCoeff_sum] | |
| simp only [linearCoeff_smul, linearCoeff_mul_character] | |
| def coefficientConvolution (f g : (E โโ[F2] F) โ โ) (S : F โโ[F2] E) : โ := | |
| โ T : F โโ[F2] E, linearCoeff f T * linearCoeff g (S + T) | |
| theorem expect_fourth_eq_sum_convolution_sq (f : (E โโ[F2] F) โ โ) : | |
| (๐ผ X, f X ^ 4) = | |
| โ S : F โโ[F2] E, coefficientConvolution f f S ^ 2 := by | |
| calc | |
| (๐ผ X, f X ^ 4) = ๐ผ X, (f X * f X) ^ 2 := by | |
| apply Finset.expect_congr rfl | |
| intro X _ | |
| rw [โ pow_two, โ pow_mul] | |
| _ = โ S : F โโ[F2] E, linearCoeff (fun X => f X * f X) S ^ 2 := | |
| (linear_parseval (fun X => f X * f X)).symm | |
| _ = โ S : F โโ[F2] E, coefficientConvolution f f S ^ 2 := by | |
| simp only [linearCoeff_mul, coefficientConvolution] | |
| end DFVSGames.Fourier.MatrixProducts | |
| end | |
| noncomputable section | |
| namespace DFVSGames.Appendix.F1Energy | |
| open scoped BigOperators | |
| open DFVSGames.Integration.BinaryLinear (F2) | |
| open DFVSGames.Appendix.RankAdditivity | |
| variable {E F : Type*} [AddCommGroup E] [Module F2 E] [AddCommGroup F] [Module F2 F] | |
| local notation "G" => (E โโ[F2] F) | |
| attribute [local instance] Classical.propDecidable | |
| def rank (Y : G) : โ := Module.finrank F2 Y.range | |
| def Good (X Y : G) : Prop := | |
| โ R : G, RankBelow R X โง RankBelow R Y โง RankBelow (X + R) (X + Y) | |
| abbrev BoundedSplit (d : โ) (X : G) := | |
| {R : G // RankBelow R X โง rank R โค d โง rank (X + R) โค d} | |
| theorem add_self_cancel (X R : G) : (X + R) + R = X := by | |
| rw [add_assoc, DegreeCover.binary_add_self, add_zero] | |
| def translate (R : G) : G โ G where | |
| toFun X := X + R | |
| invFun X := X + R | |
| left_inv X := add_self_cancel X R | |
| right_inv X := add_self_cancel X R | |
| theorem rank_le_of_rankBelow {R Y : G} (h : RankBelow R Y) : rank R โค rank Y := by | |
| change rank Y = rank R + rank (Y - R) at h | |
| omega | |
| theorem boundedSplit_rank (d : โ) (X : G) (R : BoundedSplit d X) : rank X โค 2*d := by | |
| have h := R.property.1 | |
| change rank X = rank R.val + rank (X - R.val) at h | |
| simp only [sub_eq_add_neg, DegreeCover.binary_neg] at h | |
| have hR := R.property.2.1 | |
| have hS := R.property.2.2 | |
| omega | |
| variable [FiniteDimensional F2 E] [FiniteDimensional F2 F] | |
| omit [FiniteDimensional F2 E] in | |
| theorem good_of_trivial_intersections (X Y : G) | |
| (hi : (X.range โ Y.range) โ (X+Y).range = โฅ) | |
| (hk : X.ker โ Y.ker โ (X+Y).ker = โค) : Good X Y := by | |
| have hc : Y + (X+Y) = X := by | |
| calc | |
| _ = X + (Y+Y) := by abel | |
| _ = X := by rw [DegreeCover.binary_add_self, add_zero] | |
| obtain โจR,S,C,hX,hY,hZ,hrX,hrY,hrZโฉ := | |
| DegreeCover.outside_bad_rank_cover Y (X+Y) | |
| (by simpa only [hc] using hi) (by simpa only [hc] using hk) | |
| have hXS : X = R+S := hc.symm.trans hX | |
| have hXR : X-R = S := by rw [hXS]; abel | |
| have hYR : Y-R = C := by rw [hY]; abel | |
| have hZS : (X+Y)-S = C := by rw [hZ]; abel | |
| have hSR : X+R = S := by simpa only [sub_eq_add_neg, DegreeCover.binary_neg] using hXR | |
| change rank (Y+(X+Y)) = rank R + rank S at hrX | |
| rw [hc] at hrX | |
| change rank Y = rank R + rank C at hrY | |
| change rank (X+Y) = rank S + rank C at hrZ | |
| refine โจR, ?_, ?_, ?_โฉ | |
| ยท change rank X = rank R + rank (X-R) | |
| rw [hXR] | |
| exact hrX | |
| ยท change rank Y = rank R + rank (Y-R) | |
| rw [hYR] | |
| exact hrY | |
| ยท rw [hSR] | |
| change rank (X+Y) = rank S + rank ((X+Y)-S) | |
| rw [hZS] | |
| exact hrZ | |
| variable [Finite E] [Finite F] [Fintype (E โโ[F2] F)] | |
| omit [FiniteDimensional F2 E] [FiniteDimensional F2 F] [Finite E] [Finite F] in | |
| theorem sum_translate (R : G) (f : G โ โ) : | |
| (โ X, f (X+R)) = โ X, f X := Equiv.sum_comp (translate R) f | |
| omit [FiniteDimensional F2 F] in | |
| theorem card_bounded_splits_le (d : โ) (X : G) : | |
| Nat.card (BoundedSplit d X) โค 2^(4*d^2) := by | |
| classical | |
| by_cases h : Nonempty (BoundedSplit d X) | |
| ยท have hr := boundedSplit_rank d X (Classical.choice h) | |
| let inc : BoundedSplit d X โ {R : G // RankBelow R X} := | |
| fun R => โจR.val, R.property.1โฉ | |
| have hinj : Function.Injective inc := by | |
| intro R S hRS | |
| exact Subtype.ext (congrArg (fun T : {R : G // RankBelow R X} => T.val) hRS) | |
| have hc := Nat.card_le_card_of_injective inc hinj | |
| have hp := TotalPredecessorCount.card_predecessors_le X | |
| change Nat.card {R : G // RankBelow R X} โค 2^(rank X^2) at hp | |
| have hs : rank X^2 โค 4*d^2 := by nlinarith | |
| exact hc.trans (hp.trans (Nat.pow_le_pow_right (by decide) hs)) | |
| ยท have hz : Fintype.card (BoundedSplit d X) = 0 := | |
| Fintype.card_eq_zero_iff.mpr โจfun R => h โจRโฉโฉ | |
| simp only [Nat.card_eq_fintype_card, hz, zero_le] | |
| omit [FiniteDimensional F2 F] in | |
| theorem card_predecessors_cast_le (d : โ) (Y : G) (hy : rank Y โค d) : | |
| (Fintype.card {R : G // RankBelow R Y} : โ) โค (2:โ)^(d^2) := by | |
| have h := TotalPredecessorCount.card_predecessors_le Y | |
| change Nat.card {R : G // RankBelow R Y} โค 2^(rank Y^2) at h | |
| have hs : rank Y^2 โค d^2 := by nlinarith | |
| have hp := h.trans (Nat.pow_le_pow_right (by decide) hs) | |
| rw [Nat.card_eq_fintype_card] at hp | |
| exact_mod_cast hp | |
| def predecessorCoefficient (a : G โ โ) (R C : G) : โ := | |
| if RankBelow R (R+C) then |a (R+C)| else 0 | |
| def gram (a : G โ โ) (R S : G) : โ := | |
| โ C, predecessorCoefficient a R C * predecessorCoefficient a S C | |
| def predecessorEnergy (a : G โ โ) : โ := | |
| โ R, โ C, predecessorCoefficient a R C ^ 2 | |
| def goodConvolution (a : G โ โ) (X : G) : โ := | |
| โ Y, if Good X Y then |a Y| * |a (X+Y)| else 0 | |
| omit [FiniteDimensional F2 E] [FiniteDimensional F2 F] [Finite E] [Finite F] [Fintype (E โโ[F2] F)] in | |
| theorem predecessorCoefficient_nonneg (a : G โ โ) (R C : G) : | |
| 0 โค predecessorCoefficient a R C := by | |
| unfold predecessorCoefficient | |
| split <;> positivity | |
| omit [FiniteDimensional F2 E] [FiniteDimensional F2 F] [Finite E] [Finite F] in | |
| theorem gram_nonneg (a : G โ โ) (R S : G) : 0 โค gram a R S := | |
| Finset.sum_nonneg (fun C _ => mul_nonneg | |
| (predecessorCoefficient_nonneg a R C) (predecessorCoefficient_nonneg a S C)) | |
| omit [FiniteDimensional F2 E] [FiniteDimensional F2 F] [Finite E] [Finite F] [Fintype (E โโ[F2] F)] in | |
| theorem predecessorCoefficient_sq (a : G โ โ) (R C : G) : | |
| predecessorCoefficient a R C ^ 2 = | |
| if RankBelow R (R+C) then a (R+C)^2 else 0 := by | |
| unfold predecessorCoefficient | |
| split <;> simp only [sq_abs, zero_pow, ne_eq, OfNat.ofNat_ne_zero, not_false_eq_true] | |
| omit [FiniteDimensional F2 E] [FiniteDimensional F2 F] [Finite E] [Finite F] in | |
| theorem predecessor_energy_eq (a : G โ โ) : | |
| predecessorEnergy a = | |
| โ Y, (Fintype.card {R : G // RankBelow R Y} : โ) * a Y^2 := by | |
| unfold predecessorEnergy | |
| calc | |
| _ = โ R, โ Y, if RankBelow R Y then a Y^2 else 0 := by | |
| apply Finset.sum_congr rfl | |
| intro R _ | |
| simp only [predecessorCoefficient_sq] | |
| simpa only [add_comm] using | |
| sum_translate R (fun Y => if RankBelow R Y then a Y^2 else 0) | |
| _ = โ Y, โ R, if RankBelow R Y then a Y^2 else 0 := Finset.sum_comm | |
| _ = _ := by | |
| apply Finset.sum_congr rfl | |
| intro Y _ | |
| rw [โ F1Gram.sum_subtype_eq (fun R => RankBelow R Y) (fun _ => a Y^2)] | |
| simp only [Finset.sum_const, Finset.card_univ, nsmul_eq_mul] | |
| omit [FiniteDimensional F2 E] [FiniteDimensional F2 F] [Finite E] [Finite F] in | |
| theorem predecessor_energy_nonneg (a : G โ โ) : 0 โค predecessorEnergy a := | |
| Finset.sum_nonneg (fun _ _ => Finset.sum_nonneg (fun _ _ => sq_nonneg _)) | |
| omit [FiniteDimensional F2 F] in | |
| theorem predecessor_energy_le (a : G โ โ) (d : โ) | |
| (hdegree : โ Y, d < rank Y โ a Y = 0) : | |
| predecessorEnergy a โค (2:โ)^(d^2) * โ Y, a Y^2 := by | |
| rw [predecessor_energy_eq, Finset.mul_sum] | |
| apply Finset.sum_le_sum | |
| intro Y _ | |
| by_cases hY : rank Y โค d | |
| ยท exact mul_le_mul_of_nonneg_right (card_predecessors_cast_le d Y hY) (sq_nonneg _) | |
| ยท rw [hdegree Y (Nat.lt_of_not_ge hY)] | |
| simp | |
| omit [FiniteDimensional F2 E] [FiniteDimensional F2 F] [Finite E] [Finite F] in | |
| theorem goodConvolution_nonneg (a : G โ โ) (X : G) : 0 โค goodConvolution a X := by | |
| apply Finset.sum_nonneg | |
| intro Y _ | |
| split <;> positivity | |
| omit [FiniteDimensional F2 E] [FiniteDimensional F2 F] [Finite E] [Finite F] in | |
| theorem good_term_le (a : G โ โ) (d : โ) | |
| (hdegree : โ Y, d < rank Y โ a Y = 0) (X Y : G) : | |
| (if Good X Y then |a Y| * |a (X+Y)| else 0) โค | |
| โ R : BoundedSplit d X, | |
| predecessorCoefficient a R.val (Y+R.val) * | |
| predecessorCoefficient a (X+R.val) (Y+R.val) := by | |
| have hnonneg : 0 โค โ R : BoundedSplit d X, | |
| predecessorCoefficient a R.val (Y+R.val) * | |
| predecessorCoefficient a (X+R.val) (Y+R.val) := | |
| Finset.sum_nonneg (fun R _ => mul_nonneg | |
| (predecessorCoefficient_nonneg a _ _) (predecessorCoefficient_nonneg a _ _)) | |
| by_cases hg : Good X Y | |
| ยท rw [ite_eq_left hg] | |
| by_cases ha : a Y = 0 | |
| ยท simpa only [ha, abs_zero, zero_mul] using hnonneg | |
| by_cases hb : a (X+Y) = 0 | |
| ยท simpa only [hb, abs_zero, mul_zero] using hnonneg | |
| have hY : rank Y โค d := by | |
| by_contra hn | |
| exact ha (hdegree Y (Nat.lt_of_not_ge hn)) | |
| have hZ : rank (X+Y) โค d := by | |
| by_contra hn | |
| exact hb (hdegree (X+Y) (Nat.lt_of_not_ge hn)) | |
| obtain โจR,hRX,hRY,hSZโฉ := hg | |
| let r : BoundedSplit d X := โจR,hRX, | |
| (rank_le_of_rankBelow hRY).trans hY, (rank_le_of_rankBelow hSZ).trans hZโฉ | |
| have h1 : R+(Y+R) = Y := by | |
| calc | |
| _ = (Y+R)+R := by abel | |
| _ = Y := add_self_cancel Y R | |
| have h2 : (X+R)+(Y+R) = X+Y := by | |
| calc | |
| _ = (X+Y)+(R+R) := by abel | |
| _ = X+Y := by rw [DegreeCover.binary_add_self, add_zero] | |
| have heq : predecessorCoefficient a r.val (Y+r.val) * | |
| predecessorCoefficient a (X+r.val) (Y+r.val) = |a Y| * |a (X+Y)| := by | |
| change predecessorCoefficient a R (Y+R) * | |
| predecessorCoefficient a (X+R) (Y+R) = _ | |
| simp only [predecessorCoefficient, h1, h2, ite_eq_left hRY, ite_eq_left hSZ] | |
| rw [โ heq] | |
| exact Finset.single_le_sum (fun (s : BoundedSplit d X) _ => mul_nonneg | |
| (predecessorCoefficient_nonneg a s.val (Y+s.val)) | |
| (predecessorCoefficient_nonneg a (X+s.val) (Y+s.val))) | |
| (Finset.mem_univ r) | |
| ยท rw [ite_eq_right hg] | |
| exact hnonneg | |
| omit [FiniteDimensional F2 E] [FiniteDimensional F2 F] [Finite E] [Finite F] in | |
| theorem goodConvolution_le_gram (a : G โ โ) (d : โ) | |
| (hdegree : โ Y, d < rank Y โ a Y = 0) (X : G) : | |
| goodConvolution a X โค โ R : BoundedSplit d X, gram a R.val (X+R.val) := by | |
| calc | |
| _ โค โ Y, โ R : BoundedSplit d X, | |
| predecessorCoefficient a R.val (Y+R.val) * | |
| predecessorCoefficient a (X+R.val) (Y+R.val) := | |
| Finset.sum_le_sum (fun Y _ => good_term_le a d hdegree X Y) | |
| _ = _ := by | |
| rw [Finset.sum_comm] | |
| apply Finset.sum_congr rfl | |
| intro R _ | |
| exact sum_translate R.val (fun C => | |
| predecessorCoefficient a R.val C * predecessorCoefficient a (X+R.val) C) | |
| omit [FiniteDimensional F2 F] in | |
| theorem goodConvolution_sq_le (a : G โ โ) (d : โ) | |
| (hdegree : โ Y, d < rank Y โ a Y = 0) (X : G) : | |
| goodConvolution a X ^ 2 โค (2:โ)^(4*d^2) * | |
| โ R : BoundedSplit d X, gram a R.val (X+R.val)^2 := by | |
| have hg := goodConvolution_le_gram a d hdegree X | |
| have hn := goodConvolution_nonneg a X | |
| have hs : 0 โค โ R : BoundedSplit d X, gram a R.val (X+R.val) := | |
| Finset.sum_nonneg (fun _ _ => gram_nonneg a _ _) | |
| have hc := Finset.sum_mul_sq_le_sq_mul_sq Finset.univ | |
| (fun _ : BoundedSplit d X => (1:โ)) (fun R => gram a R.val (X+R.val)) | |
| have hcard : (Fintype.card (BoundedSplit d X) : โ) โค (2:โ)^(4*d^2) := by | |
| have h := card_bounded_splits_le d X | |
| rw [Nat.card_eq_fintype_card] at h | |
| exact_mod_cast h | |
| calc | |
| _ โค (โ R : BoundedSplit d X, gram a R.val (X+R.val))^2 := by nlinarith | |
| _ โค (Fintype.card (BoundedSplit d X):โ) * | |
| โ R : BoundedSplit d X, gram a R.val (X+R.val)^2 := by simpa using hc | |
| _ โค _ := mul_le_mul_of_nonneg_right hcard | |
| (Finset.sum_nonneg (fun _ _ => sq_nonneg _)) | |
| omit [FiniteDimensional F2 E] [FiniteDimensional F2 F] [Finite E] [Finite F] in | |
| theorem split_gram_energy_le (a : G โ โ) (d : โ) : | |
| (โ X, โ R : BoundedSplit d X, gram a R.val (X+R.val)^2) โค | |
| predecessorEnergy a ^ 2 := by | |
| calc | |
| _ โค โ X, โ R : G, gram a R (X+R)^2 := by | |
| apply Finset.sum_le_sum | |
| intro X _ | |
| exact F1Gram.sum_comp_le (fun R : BoundedSplit d X => R.val) | |
| Subtype.val_injective (fun R => gram a R (X+R)^2) (fun _ => sq_nonneg _) | |
| _ = โ R, โ S, gram a R S^2 := by | |
| rw [Finset.sum_comm] | |
| apply Finset.sum_congr rfl | |
| intro R _ | |
| exact sum_translate R (fun S => gram a R S^2) | |
| _ โค predecessorEnergy a ^ 2 := F1Gram.gram_energy_le (predecessorCoefficient a) | |
| omit [FiniteDimensional F2 F] in | |
| theorem goodConvolution_energy_le (a : G โ โ) (d : โ) | |
| (hdegree : โ Y, d < rank Y โ a Y = 0) : | |
| (โ X, goodConvolution a X^2) โค (2:โ)^(6*d^2) * (โ Y, a Y^2)^2 := by | |
| have he := predecessor_energy_le a d hdegree | |
| have hn := predecessor_energy_nonneg a | |
| have hb : 0 โค (2:โ)^(d^2) * โ Y, a Y^2 := by positivity | |
| calc | |
| _ โค (2:โ)^(4*d^2) * | |
| โ X, โ R : BoundedSplit d X, gram a R.val (X+R.val)^2 := by | |
| rw [Finset.mul_sum] | |
| exact Finset.sum_le_sum (fun X _ => goodConvolution_sq_le a d hdegree X) | |
| _ โค (2:โ)^(4*d^2) * predecessorEnergy a^2 := | |
| mul_le_mul_of_nonneg_left (split_gram_energy_le a d) (by positivity) | |
| _ โค (2:โ)^(4*d^2) * ((2:โ)^(d^2) * โ Y, a Y^2)^2 := by | |
| apply mul_le_mul_of_nonneg_left _ (by positivity) | |
| nlinarith | |
| _ = (2:โ)^(6*d^2) * (โ Y, a Y^2)^2 := by | |
| rw [mul_pow, โ pow_mul, โ mul_assoc, โ pow_add] | |
| congr 2 | |
| omega | |
| omit [FiniteDimensional F2 E] [FiniteDimensional F2 F] [Finite E] [Finite F] in | |
| theorem abs_complement_sum_le (a : G โ โ) (X : G) (bad : G โ Prop) | |
| (hcover : โ Y, ยฌ bad Y โ Good X Y) : | |
| |โ Y, if bad Y then 0 else a Y * a (X+Y)| โค goodConvolution a X := by | |
| calc | |
| _ โค โ Y, |if bad Y then 0 else a Y * a (X+Y)| := | |
| Finset.abs_sum_le_sum_abs _ _ | |
| _ โค goodConvolution a X := by | |
| apply Finset.sum_le_sum | |
| intro Y _ | |
| by_cases hb : bad Y | |
| ยท simp only [ite_eq_left hb, abs_zero] | |
| split <;> positivity | |
| ยท simp only [ite_eq_right hb, ite_eq_left (hcover Y hb), abs_mul, le_refl] | |
| omit [FiniteDimensional F2 E] [FiniteDimensional F2 F] [Finite E] [Finite F] in | |
| theorem convolution_split_square_le (a : G โ โ) (X : G) (bad : G โ Prop) | |
| (hcover : โ Y, ยฌ bad Y โ Good X Y) : | |
| (โ Y, a Y * a (X+Y))^2 โค 2 * goodConvolution a X^2 + | |
| 2 * (โ Y, if bad Y then a Y * a (X+Y) else 0)^2 := by | |
| let u : โ := โ Y, if bad Y then 0 else a Y * a (X+Y) | |
| let v : โ := โ Y, if bad Y then a Y * a (X+Y) else 0 | |
| have hs : (โ Y, a Y * a (X+Y)) = u+v := by | |
| dsimp only [u,v] | |
| rw [โ Finset.sum_add_distrib] | |
| apply Finset.sum_congr rfl | |
| intro Y _ | |
| by_cases hb : bad Y <;> simp only [hb, ite_true, ite_false, add_zero, zero_add] | |
| have hu : |u| โค goodConvolution a X := abs_complement_sum_le a X bad hcover | |
| have hp := mul_nonneg (sub_nonneg.mpr hu) | |
| (add_nonneg (goodConvolution_nonneg a X) (abs_nonneg u)) | |
| have hu2 : u^2 โค goodConvolution a X^2 := by nlinarith [sq_abs u] | |
| change (โ Y, a Y * a (X+Y))^2 โค 2 * goodConvolution a X^2 + 2*v^2 | |
| rw [hs] | |
| nlinarith [sq_nonneg (u-v)] | |
| omit [FiniteDimensional F2 F] in | |
| theorem convolution_energy_le (a : G โ โ) (d : โ) | |
| (hdegree : โ Y, d < rank Y โ a Y = 0) (bad : G โ G โ Prop) | |
| (hcover : โ X Y, ยฌ bad X Y โ Good X Y) : | |
| (โ X, (โ Y, a Y * a (X+Y))^2) โค | |
| 2 * ((2:โ)^(6*d^2) * (โ Y, a Y^2)^2) + | |
| 2 * โ X, (โ Y, if bad X Y then a Y * a (X+Y) else 0)^2 := by | |
| calc | |
| _ โค โ X, (2 * goodConvolution a X^2 + | |
| 2 * (โ Y, if bad X Y then a Y * a (X+Y) else 0)^2) := | |
| Finset.sum_le_sum (fun X _ => convolution_split_square_le a X (bad X) (hcover X)) | |
| _ = 2 * (โ X, goodConvolution a X^2) + | |
| 2 * โ X, (โ Y, if bad X Y then a Y * a (X+Y) else 0)^2 := by | |
| rw [Finset.sum_add_distrib, โ Finset.mul_sum, โ Finset.mul_sum] | |
| _ โค _ := add_le_add | |
| (mul_le_mul_of_nonneg_left (goodConvolution_energy_le a d hdegree) | |
| (show (0:โ) โค 2 by norm_num)) le_rfl | |
| variable [Fintype (F โโ[F2] E)] | |
| open DFVSGames.Fourier.MatrixFourier DFVSGames.Fourier.MatrixProducts | |
| theorem fourier_goodConvolution_energy_le (f : (E โโ[F2] F) โ โ) (d : โ) | |
| (hdegree : โ Y : F โโ[F2] E, d < rank Y โ linearCoeff f Y = 0) : | |
| (โ X : F โโ[F2] E, goodConvolution (linearCoeff f) X^2) โค | |
| (2:โ)^(6*d^2) * (๐ผ X, f X^2)^2 := by | |
| simpa only [linear_parseval] using goodConvolution_energy_le (linearCoeff f) d hdegree | |
| theorem fourth_moment_le_good_bad (f : (E โโ[F2] F) โ โ) (d : โ) | |
| (hdegree : โ Y : F โโ[F2] E, d < rank Y โ linearCoeff f Y = 0) | |
| (bad : (F โโ[F2] E) โ (F โโ[F2] E) โ Prop) | |
| (hcover : โ X Y, ยฌ bad X Y โ Good X Y) : | |
| (๐ผ X, f X^4) โค 2 * ((2:โ)^(6*d^2) * (๐ผ X, f X^2)^2) + | |
| 2 * โ X, (โ Y, if bad X Y then linearCoeff f Y * linearCoeff f (X+Y) else 0)^2 := by | |
| rw [expect_fourth_eq_sum_convolution_sq] | |
| unfold coefficientConvolution | |
| simpa only [linear_parseval] using | |
| convolution_energy_le (linearCoeff f) d hdegree bad hcover | |
| end DFVSGames.Appendix.F1Energy | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 35 kB
- Xet hash:
- 4e6a54ad267a4de4a26bf72546c8eed0f335246ce83e323295a511546ffff6b7
ยท
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.