import PoincareLib.Geometry.Riemannian.Measure.Green.Partition /-! # Finite spatial-chart decomposition of spacetime tests -/ noncomputable section set_option autoImplicit false open Set open scoped Manifold ContDiff Topology namespace PoincareMT variable {n : β„•} {M : Type*} [TopologicalSpace M] [T3Space M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] [SigmaCompactSpace M] /-- A compact spacetime test is a finite sum of tests supported in spatial charts. The summands preserve nonnegativity and the original spacetime support. -/ theorem exists_finite_spacetime_chart_decomposition {Ο† : M Γ— ℝ β†’ ℝ} (hΟ† : ContMDiff ((𝓑 n).prod π“˜(ℝ, ℝ)) π“˜(ℝ, ℝ) ∞ Ο†) (hΟ†c : HasCompactSupport Ο†) : βˆƒ (s : Finset M) (w : M β†’ M Γ— ℝ β†’ ℝ), (βˆ€ i, ContMDiff ((𝓑 n).prod π“˜(ℝ, ℝ)) π“˜(ℝ, ℝ) ∞ (w i)) ∧ (βˆ€ i, HasCompactSupport (w i)) ∧ (βˆ€ i, tsupport (w i) βŠ† tsupport Ο†) ∧ (βˆ€ i, tsupport (w i) βŠ† (chartAt (EuclideanSpace ℝ (Fin n)) i).source Γ—Λ’ univ) ∧ (βˆ€ i z, 0 ≀ Ο† z β†’ 0 ≀ w i z) ∧ βˆ€ z, βˆ‘ i ∈ s, w i z = Ο† z := by classical obtain ⟨ρ, hρ⟩ := SmoothPartitionOfUnity.exists_isSubordinate_chartAt_source (𝓑 n) M have hfinite := ρ.locallyFinite.finite_nonempty_inter_compact (hΟ†c.isCompact.image continuous_fst) refine ⟨hfinite.toFinset, fun i z => ρ i z.1 * Ο† z, (fun i => ((ρ i).contMDiff.comp contMDiff_fst).mul hΟ†), (fun _ => hΟ†c.mul_left), (fun _ => tsupport_mul_subset_right), ?_, (fun i z hz => mul_nonneg (ρ.nonneg i z.1) hz), ?_⟩ Β· intro i have hs : tsupport (fun z : M Γ— ℝ => ρ i z.1 * Ο† z) βŠ† Prod.fst ⁻¹' tsupport (ρ i) := by apply closure_minimal ?_ ((isClosed_tsupport _).preimage continuous_fst) intro z hz exact subset_tsupport _ (mul_ne_zero_iff.mp hz).1 intro z hz exact ⟨hρ i (hs hz), mem_univ _⟩ Β· intro z have hs : Function.support (fun i => ρ i z.1 * Ο† z) βŠ† hfinite.toFinset := by intro i hi apply hfinite.mem_toFinset.mpr refine ⟨z.1, (mul_ne_zero_iff.mp hi).1, ?_⟩ exact mem_image_of_mem Prod.fst (subset_tsupport Ο† (mul_ne_zero_iff.mp hi).2) rw [← finsum_eq_sum_of_support_subset _ hs, ← finsum_mul, ρ.sum_eq_one (mem_univ z.1), one_mul] end PoincareMT