import OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.LpComponents /-! # Finite Lp -/ namespace OAI.Analysis.HodgeTheory.Decomposition.FiniteLp.Constructions noncomputable section /-! Finite families of vector-valued Lยฒ functions as actual Lยฒ functions with values in the Hilbert direct sum. -/ open _root_.MeasureTheory open OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.LpComponents.CM.Construction variable {ฮฑ ๐•œ F ฮน : Type*} [MeasurableSpace ฮฑ] [RCLike ๐•œ] [NormedAddCommGroup F] [InnerProductSpace ๐•œ F] [Fintype ฮน] {ฮผ : Measure ฮฑ} def finiteHilbertSingle [DecidableEq ฮน] (i : ฮน) : F โ†’L[๐•œ] PiLp 2 (fun _ : ฮน => F) := (PiLp.continuousLinearEquiv 2 ๐•œ (fun _ : ฮน => F)).symm.toContinuousLinearMap.comp (ContinuousLinearMap.single ๐•œ (fun _ : ฮน => F) i) omit [Fintype ฮน] in theorem finiteHilbertSingle_apply [DecidableEq ฮน] (i : ฮน) (v : F) : finiteHilbertSingle (๐•œ := ๐•œ) i v = PiLp.single 2 i v := rfl def finiteLpSynthesis : PiLp 2 (fun _ : ฮน => Lp F 2 ฮผ) โ†’L[๐•œ] Lp (PiLp 2 (fun _ : ฮน => F)) 2 ฮผ := by classical exact โˆ‘ i, ((finiteHilbertSingle (๐•œ := ๐•œ) (F := F) i).compLpL 2 ฮผ).comp ((ContinuousLinearMap.proj i).comp (PiLp.continuousLinearEquiv 2 ๐•œ (fun _ : ฮน => Lp F 2 ฮผ)).toContinuousLinearMap) theorem finiteLpSynthesis_coe (u : PiLp 2 (fun _ : ฮน => Lp F 2 ฮผ)) : โˆ€แต x โˆ‚ฮผ, finiteLpSynthesis (๐•œ := ๐•œ) (F := F) (ฮน := ฮน) (ฮผ := ฮผ) u x = WithLp.toLp 2 (fun i => u i x) := by classical have hcoe : โˆ€แต x โˆ‚ฮผ, โˆ€ i : ฮน, ((finiteHilbertSingle (๐•œ := ๐•œ) (F := F) i).compLpL 2 ฮผ (u i)) x = PiLp.single 2 i (u i x) := ae_all_iff.mpr (fun i => by have h := (finiteHilbertSingle (๐•œ := ๐•œ) i).coeFn_compLpL (u i) filter_upwards [h] with x hx exact hx.trans (finiteHilbertSingle_apply i (u i x))) have hsum := AlgebraicGeometry.ComplexMultiplication.HodgeComparison.LpComponents.CM.Construction.lp_coe_finsetSum (fun i => (finiteHilbertSingle (๐•œ := ๐•œ) (F := F) i).compLpL 2 ฮผ (u i)) Finset.univ filter_upwards [hcoe, hsum] with x hx hsumx simp only [finiteLpSynthesis, sum_apply, ContinuousLinearMap.comp_apply] change (โˆ‘ i, (finiteHilbertSingle (๐•œ := ๐•œ) i).compLpL 2 ฮผ (u i)) x = _ rw [hsumx] simp only [hx] apply PiLp.ext intro i simp theorem finiteLpSynthesis_inner (u v : PiLp 2 (fun _ : ฮน => Lp F 2 ฮผ)) : inner ๐•œ (finiteLpSynthesis (๐•œ := ๐•œ) (F := F) (ฮน := ฮน) (ฮผ := ฮผ) u) (finiteLpSynthesis (๐•œ := ๐•œ) (F := F) (ฮน := ฮน) (ฮผ := ฮผ) v) = inner ๐•œ u v := by rw [L2.inner_def] calc _ = โˆซ x, โˆ‘ i, inner ๐•œ (u i x) (v i x) โˆ‚ฮผ := by apply integral_congr_ae filter_upwards [finiteLpSynthesis_coe (๐•œ := ๐•œ) u, finiteLpSynthesis_coe (๐•œ := ๐•œ) v] with x hx hy rw [hx, hy] rfl _ = โˆ‘ i, inner ๐•œ (u i) (v i) := integral_finsetSum Finset.univ (fun i _ => L2.integrable_inner (๐•œ := ๐•œ) (u i) (v i)) _ = inner ๐•œ u v := rfl theorem finiteLpSynthesis_norm (u : PiLp 2 (fun _ : ฮน => Lp F 2 ฮผ)) : โ€–finiteLpSynthesis (๐•œ := ๐•œ) (F := F) (ฮน := ฮน) (ฮผ := ฮผ) uโ€– = โ€–uโ€– := by have h := congrArg RCLike.re (finiteLpSynthesis_inner (๐•œ := ๐•œ) u u) rw [โ† norm_sq_eq_re_inner, โ† norm_sq_eq_re_inner] at h exact (sq_eq_sqโ‚€ (norm_nonneg _) (norm_nonneg _)).mp h end end OAI.Analysis.HodgeTheory.Decomposition.FiniteLp.Constructions