import OAI.Analysis.DifferentialForms.Manifold.SupportedExtension /-! # Relative Extension -/ namespace OAI.Analysis.DifferentialForms.Manifold noncomputable section /-! # Supported extension inside an open manifold domain For a scalar supported in `U`, a form on `U ∩ V` extends after multiplication to a form on `V`. This is the relative version required for partition operators on intersections of an open cover. -/ open Set _root_.TopologicalSpace open scoped _root_.Manifold ContDiff variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold π“˜(ℝ, E) ∞ M] {n : β„•} section /-- Only support inside the target domain matters for relative extension. -/ theorem Algebra.IsSmoothManifoldFormOn.smulFunction_on_of_tsupport_inter_subset {f : M β†’ β„‚} {form : Algebra.RawManifoldForm E M n} {W V : Set M} (hform : Algebra.IsSmoothManifoldFormOn form W) (hW : IsOpen W) (hV : IsOpen V) (hf : ContMDiffOn π“˜(ℝ, E) π“˜(ℝ, β„‚) ∞ f V) (hsupp : tsupport f ∩ V βŠ† W) : Algebra.IsSmoothManifoldFormOn (Algebra.RawManifoldForm.smulFunction f form) V := by let domains : Bool β†’ Set M := fun b => if b then W ∩ V else (tsupport f)ᢜ ∩ V have hlocal : βˆ€ b, Algebra.IsSmoothManifoldFormOn (Algebra.RawManifoldForm.smulFunction f form) (domains b) := by intro b cases b Β· apply (Algebra.IsSmoothManifoldFormOn.zero (E := E) (n := n) (domains false)).congr intro x hx have hx' : x βˆ‰ tsupport f := hx.1 change 0 = f x β€’ form x rw [image_eq_zero_of_notMem_tsupport hx'] exact (zero_smul β„‚ (form x)).symm Β· exact (hform.mono inter_subset_left).smulFunction (hf.mono inter_subset_right) have hopen : βˆ€ b, IsOpen (domains b) := by intro b cases b Β· exact (isClosed_tsupport f).isOpen_compl.inter hV Β· exact hW.inter hV have hcover : (⋃ b, domains b) = V := by ext x constructor Β· intro hx obtain ⟨b, hb⟩ := mem_iUnion.mp hx cases b <;> exact hb.2 Β· intro hx by_cases hs : x ∈ tsupport f Β· exact mem_iUnion.mpr ⟨true, hsupp ⟨hs, hx⟩, hx⟩ Β· exact mem_iUnion.mpr ⟨false, hs, hx⟩ rw [← hcover] exact Algebra.IsSmoothManifoldFormOn.iUnion hlocal hopen end /-- Multiply on `U ∩ V` by a scalar supported in `U` and extend to `V`. -/ def Open.SmoothOpenManifoldForm.supportedExtensionTo (U V : Opens M) (f : M β†’ β„‚) (hf : ContMDiffOn π“˜(ℝ, E) π“˜(ℝ, β„‚) ∞ f (V : Set M)) (hsupp : tsupport f βŠ† (U : Set M)) : Open.SmoothOpenManifoldForm E (U βŠ“ V) n β†’β‚—[β„‚] Open.SmoothOpenManifoldForm E V n where toFun form := Open.SmoothOpenManifoldForm.ofRaw V (Algebra.RawManifoldForm.smulFunction f form.extension) (form.smooth.smulFunction_on_of_tsupport_inter_subset (U βŠ“ V).isOpen V.isOpen hf (fun _ hx => ⟨hsupp hx.1, hx.2⟩)) map_add' form other := by apply Open.SmoothOpenManifoldForm.ext intro x change f x β€’ (form + other).extension x = f x β€’ form.extension x + f x β€’ other.extension x rw [Open.SmoothOpenManifoldForm.extension_add] exact smul_add (f x) (form.extension x) (other.extension x) map_smul' c form := by apply Open.SmoothOpenManifoldForm.ext intro x change f x β€’ (c β€’ form).extension x = c β€’ (f x β€’ form.extension x) rw [Open.SmoothOpenManifoldForm.extension_smul] exact smul_comm (f x) c (form.extension x) @[simp] theorem Open.SmoothOpenManifoldForm.supportedExtensionTo_apply (U V : Opens M) (f : M β†’ β„‚) (hf : ContMDiffOn π“˜(ℝ, E) π“˜(ℝ, β„‚) ∞ f (V : Set M)) (hsupp : tsupport f βŠ† (U : Set M)) (form : Open.SmoothOpenManifoldForm E (U βŠ“ V) n) (x : V) : Open.SmoothOpenManifoldForm.supportedExtensionTo U V f hf hsupp form x = f x β€’ form.extension x := rfl /-- On the original intersection this is pointwise scalar multiplication. -/ theorem Open.SmoothOpenManifoldForm.supportedExtensionTo_apply_mem (U V : Opens M) (f : M β†’ β„‚) (hf : ContMDiffOn π“˜(ℝ, E) π“˜(ℝ, β„‚) ∞ f (V : Set M)) (hsupp : tsupport f βŠ† (U : Set M)) (form : Open.SmoothOpenManifoldForm E (U βŠ“ V) n) (x : V) (hx : (x : M) ∈ U) : Open.SmoothOpenManifoldForm.supportedExtensionTo U V f hf hsupp form x = f x β€’ form ⟨x, hx, x.property⟩ := by rw [Open.SmoothOpenManifoldForm.supportedExtensionTo_apply] exact congrArg (fun z => f x β€’ z) (Open.SmoothOpenManifoldForm.extension_apply form ⟨x, hx, x.property⟩) /-- The relative extension is zero off the scalar's topological support. -/ theorem Open.SmoothOpenManifoldForm.supportedExtensionTo_eq_zero_of_notMem_tsupport (U V : Opens M) (f : M β†’ β„‚) (hf : ContMDiffOn π“˜(ℝ, E) π“˜(ℝ, β„‚) ∞ f (V : Set M)) (hsupp : tsupport f βŠ† (U : Set M)) (form : Open.SmoothOpenManifoldForm E (U βŠ“ V) n) (x : V) (hx : (x : M) βˆ‰ tsupport f) : Open.SmoothOpenManifoldForm.supportedExtensionTo U V f hf hsupp form x = 0 := by rw [Open.SmoothOpenManifoldForm.supportedExtensionTo_apply, image_eq_zero_of_notMem_tsupport hx] exact zero_smul β„‚ (form.extension x) /-- Extending inside an open domain commutes with restricting that domain. -/ theorem Open.SmoothOpenManifoldForm.restrict_supportedExtensionTo (U : Opens M) {V W : Opens M} (h : W ≀ V) (f : M β†’ β„‚) (hf : ContMDiffOn π“˜(ℝ, E) π“˜(ℝ, β„‚) ∞ f (V : Set M)) (hsupp : tsupport f βŠ† (U : Set M)) (form : Open.SmoothOpenManifoldForm E (U βŠ“ V) n) : Open.SmoothOpenManifoldForm.restrict h (Open.SmoothOpenManifoldForm.supportedExtensionTo U V f hf hsupp form) = Open.SmoothOpenManifoldForm.supportedExtensionTo U W f (hf.mono h) hsupp (Open.SmoothOpenManifoldForm.restrict (inf_le_inf_left U h) form) := by apply Open.SmoothOpenManifoldForm.ext intro x rw [Open.SmoothOpenManifoldForm.restrict_apply] by_cases hx : (x : M) ∈ U Β· rw [Open.SmoothOpenManifoldForm.supportedExtensionTo_apply_mem U V f hf hsupp form ⟨x, h x.property⟩ hx, Open.SmoothOpenManifoldForm.supportedExtensionTo_apply_mem U W f (hf.mono h) hsupp (Open.SmoothOpenManifoldForm.restrict (inf_le_inf_left U h) form) x hx, Open.SmoothOpenManifoldForm.restrict_apply] Β· have hnot : (x : M) βˆ‰ tsupport f := fun hs => hx (hsupp hs) rw [Open.SmoothOpenManifoldForm.supportedExtensionTo_eq_zero_of_notMem_tsupport U V f hf hsupp form ⟨x, h x.property⟩ hnot, Open.SmoothOpenManifoldForm.supportedExtensionTo_eq_zero_of_notMem_tsupport U W f (hf.mono h) hsupp (Open.SmoothOpenManifoldForm.restrict (inf_le_inf_left U h) form) x hnot] end end OAI.Analysis.DifferentialForms.Manifold