import OAI.Analysis.DifferentialForms.Manifold.SupportedExtension import OAI.Analysis.DifferentialForms.Manifold.ManifoldGluing /-! # Partition Patch -/ namespace OAI.Analysis.DifferentialForms.Manifold.PartitionPatch noncomputable section /-! Explicit finite partition patching of actual smooth manifold forms. The weighted extension of compatible sections is proved to recover every section. -/ open Set _root_.TopologicalSpace open scoped _root_.Manifold ContDiff BigOperators variable {E : Type*} [NormedAddCommGroup E] [NormedSpace โ„ E] {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold ๐“˜(โ„, E) โˆž M] {ฮน : Type*} [Fintype ฮน] /-- Restrict a genuine global form to every member of an open family. -/ def manifoldCoverRestriction (U : ฮน โ†’ Opens M) (p : โ„•) : Algebra.SmoothManifoldForm E M p โ†’โ‚—[โ„‚] (โˆ€ i, Open.SmoothOpenManifoldForm E (U i) p) := LinearMap.pi (fun i => Algebra.SmoothManifoldForm.onOpen (U i)) /-- Sum the actual supported extensions weighted by the partition functions. -/ def manifoldPartitionPatch (U : ฮน โ†’ Opens M) (rho : ฮน โ†’ M โ†’ โ„‚) (hrho : โˆ€ i, ContMDiff ๐“˜(โ„, E) ๐“˜(โ„, โ„‚) โˆž (rho i)) (hsupp : โˆ€ i, tsupport (rho i) โІ (U i : Set M)) (p : โ„•) : (โˆ€ i, Open.SmoothOpenManifoldForm E (U i) p) โ†’โ‚—[โ„‚] Algebra.SmoothManifoldForm E M p where toFun forms := โˆ‘ i, Open.SmoothOpenManifoldForm.supportedExtension (rho i) (hrho i).contMDiffOn (hsupp i) (forms i) map_add' forms others := by change (โˆ‘ i, Open.SmoothOpenManifoldForm.supportedExtension (rho i) (hrho i).contMDiffOn (hsupp i) (forms i + others i)) = _ simp only [map_add, Finset.sum_add_distrib] map_smul' c forms := by change (โˆ‘ i, Open.SmoothOpenManifoldForm.supportedExtension (rho i) (hrho i).contMDiffOn (hsupp i) (c โ€ข forms i)) = _ simp only [map_smul, Finset.smul_sum, RingHom.id_apply] theorem manifoldPartitionPatch_apply (U : ฮน โ†’ Opens M) (rho : ฮน โ†’ M โ†’ โ„‚) (hrho : โˆ€ i, ContMDiff ๐“˜(โ„, E) ๐“˜(โ„, โ„‚) โˆž (rho i)) (hsupp : โˆ€ i, tsupport (rho i) โІ (U i : Set M)) (p : โ„•) (forms : โˆ€ i, Open.SmoothOpenManifoldForm E (U i) p) (x : M) : manifoldPartitionPatch U rho hrho hsupp p forms x = โˆ‘ i, rho i x โ€ข (forms i).extension x := by change Algebra.SmoothManifoldForm.eval x (โˆ‘ i, Open.SmoothOpenManifoldForm.supportedExtension (rho i) (hrho i).contMDiffOn (hsupp i) (forms i)) = _ rw [map_sum] rfl /-- A finite subordinate partition gives an explicit left inverse to restriction. -/ theorem manifoldPartitionPatch_restriction (U : ฮน โ†’ Opens M) (rho : ฮน โ†’ M โ†’ โ„‚) (hrho : โˆ€ i, ContMDiff ๐“˜(โ„, E) ๐“˜(โ„, โ„‚) โˆž (rho i)) (hsupp : โˆ€ i, tsupport (rho i) โІ (U i : Set M)) (hsum : โˆ€ x, โˆ‘ i, rho i x = 1) (p : โ„•) (form : Algebra.SmoothManifoldForm E M p) : manifoldPartitionPatch U rho hrho hsupp p (manifoldCoverRestriction U p form) = form := by apply Algebra.SmoothManifoldForm.ext intro x rw [manifoldPartitionPatch_apply] have hterm : โˆ€ i, rho i x โ€ข ((manifoldCoverRestriction U p form) i).extension x = rho i x โ€ข form x := by intro i by_cases hx : x โˆˆ U i ยท exact congrArg (fun value => rho i x โ€ข value) (Open.SmoothOpenManifoldForm.extension_apply (Algebra.SmoothManifoldForm.onOpen (U i) form) โŸจx, hxโŸฉ) ยท have hzero : rho i x = 0 := image_eq_zero_of_notMem_tsupport (fun h => hx (hsupp i h)) rw [hzero] exact (zero_smul โ„‚ (((manifoldCoverRestriction U p form) i).extension x)).trans (zero_smul โ„‚ (form x)).symm simp_rw [hterm] rw [โ† Finset.sum_smul, hsum x, one_smul] /-- Compatible local forms are recovered on every open set by the weighted patch. -/ theorem manifoldPartitionPatch_restrict_compatible (U : ฮน โ†’ Opens M) (rho : ฮน โ†’ M โ†’ โ„‚) (hrho : โˆ€ i, ContMDiff ๐“˜(โ„, E) ๐“˜(โ„, โ„‚) โˆž (rho i)) (hsupp : โˆ€ i, tsupport (rho i) โІ (U i : Set M)) (hsum : โˆ€ x, โˆ‘ i, rho i x = 1) (p : โ„•) (forms : โˆ€ i, Open.SmoothOpenManifoldForm E (U i) p) (hcompat : Open.SmoothOpenManifoldForm.Compatible forms) (j : ฮน) : Algebra.SmoothManifoldForm.onOpen (U j) (manifoldPartitionPatch U rho hrho hsupp p forms) = forms j := by apply Open.SmoothOpenManifoldForm.ext intro x rw [Algebra.SmoothManifoldForm.onOpen_apply, manifoldPartitionPatch_apply] have hterm : โˆ€ i, rho i x โ€ข (forms i).extension x = rho i x โ€ข forms j x := by intro i by_cases hx : (x : M) โˆˆ U i ยท rw [Open.SmoothOpenManifoldForm.extension_apply (forms i) โŸจx, hxโŸฉ] exact congrArg (fun value => rho i x โ€ข value) (hcompat i j x hx x.property) ยท have hzero : rho i x = 0 := image_eq_zero_of_notMem_tsupport (fun h => hx (hsupp i h)) rw [hzero] exact (zero_smul โ„‚ ((forms i).extension x)).trans (zero_smul โ„‚ (forms j x)).symm simp_rw [hterm] rw [โ† Finset.sum_smul, hsum x, one_smul] theorem manifoldPartitionPatch_comp_restriction (U : ฮน โ†’ Opens M) (rho : ฮน โ†’ M โ†’ โ„‚) (hrho : โˆ€ i, ContMDiff ๐“˜(โ„, E) ๐“˜(โ„, โ„‚) โˆž (rho i)) (hsupp : โˆ€ i, tsupport (rho i) โІ (U i : Set M)) (hsum : โˆ€ x, โˆ‘ i, rho i x = 1) (p : โ„•) : (manifoldPartitionPatch U rho hrho hsupp p).comp (manifoldCoverRestriction U p) = LinearMap.id := by apply LinearMap.ext intro form exact manifoldPartitionPatch_restriction U rho hrho hsupp hsum p form end end OAI.Analysis.DifferentialForms.Manifold.PartitionPatch