import OAI.AlgebraicTopology.FundamentalClass.AffineCycle import OAI.AlgebraicTopology.FundamentalClass.ChartIntegral import OAI.AlgebraicTopology.FundamentalClass.FundamentalRestriction import OAI.AlgebraicTopology.FundamentalClass.RelativeSimplexEvaluation import OAI.AlgebraicTopology.FundamentalClass.TopEvaluation /-! # Chart Local Evaluation -/ namespace OAI.AlgebraicTopology.FundamentalClass.ChartLocalEvaluation.IntegrationConstruction noncomputable section section /-! Fundamental-class evaluation equals the chart Lebesgue integral for forms supported in a single small oriented affine chart simplex. -/ open _root_.CategoryTheory Opposite Set _root_.MeasureTheory _root_.TopologicalSpace open scoped Simplicial _root_.Manifold ContDiff set_option backward.isDefEq.respectTransparency false set_option backward.isDefEq.respectTransparency.types false variable {d : β„•} {M : Type} [TopologicalSpace M] [ChartedSpace (Fin d β†’ ℝ) M] [IsManifold π“˜(ℝ, Fin d β†’ ℝ) ∞ M] [T2Space M] [CompactSpace M] theorem fundamentalEvaluation_small_chart (o : IntegrationOrientation.Orientation d M) (center : M) (K : Set M) (hK : IsCompact K) (hKs : K βŠ† (chartAt (Fin d β†’ ℝ) center).source) (sign : β„€Λ£) (hsign : βˆ€ x (hx : x ∈ K), o.chartSign center ⟨x, hKs hx⟩ = sign) (a : Fin d β†’ ℝ) (r : ℝ) (hr : 0 < r) (hKi : (chartAt (Fin d β†’ ℝ) center) '' K βŠ† AffineOrientation.IntegrationConstruction.affineInterior d a r) (g : (Fin d β†’ ℝ) β†’ M) (hg : ContMDiff π“˜(ℝ, Fin d β†’ ℝ) π“˜(ℝ, Fin d β†’ ℝ) ∞ g) (hsource : βˆ€ x, x + SimplexGeometry.IntegrationConstruction.simplexBarycenter d ∈ DeRham.Comparison.StokesF.SingularCubeStokes.unitCube d β†’ g x ∈ (chartAt (Fin d β†’ ℝ) center).source) (hcoords : βˆ€ x, x + SimplexGeometry.IntegrationConstruction.simplexBarycenter d ∈ DeRham.Comparison.StokesF.SingularCubeStokes.unitCube d β†’ (chartAt (Fin d β†’ ℝ) center) (g x) = AffineOrientation.IntegrationConstruction.positiveAffine (Fin d β†’ ℝ) a r x) (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm (Fin d β†’ ℝ) M d) (hform : βˆ€ x, x βˆ‰ K β†’ form.val x = 0) : TopEvaluation.IntegrationConstruction.fundamentalEvaluation d M o form = (sign : β„€) β€’ ∫ y in AffineOrientation.IntegrationConstruction.affineInterior d a r, form.val.inChart (chartAt (Fin d β†’ ℝ) center) y (Pi.basisFun ℝ (Fin d)) := by let e := chartAt (Fin d β†’ ℝ) center let Οƒ : (Cohomology.Singular.ManifoldSmooth.manifoldSmoothSingularSubcomplex (Fin d β†’ ℝ) M).toSSet _⦋d⦌ := (Cohomology.Singular.ManifoldSmoothFunctor.manifoldSmoothSingularMap (Fin d β†’ ℝ) (Fin d β†’ ℝ) g hg).app _ (SimplexGeometry.IntegrationConstruction.positiveSmoothSimplex d) have hΟƒsource : βˆ€ t, (TopCat.of M).toSSetObjEquiv (op ⦋d⦌) Οƒ.val t ∈ e.source := by intro t exact hsource (LocalSimplex.IntegrationGeometry.positiveSimplex d t) (ChartIntegral.IntegrationConstruction.positiveSimplex_shift_mem_cube d t) have hΟƒcoords : βˆ€ t, e ((TopCat.of M).toSSetObjEquiv (op ⦋d⦌) Οƒ.val t) = AffineOrientation.IntegrationConstruction.positiveAffine (Fin d β†’ ℝ) a r (LocalSimplex.IntegrationGeometry.positiveSimplex d t) := by intro t exact hcoords (LocalSimplex.IntegrationGeometry.positiveSimplex d t) (ChartIntegral.IntegrationConstruction.positiveSimplex_shift_mem_cube d t) have hfaces := AffineCycle.IntegrationConstruction.chartSimplex_faces_avoid (X := TopCat.of M) e K a r hr hKi Οƒ.val hΟƒcoords let U : Opens M := ⟨Kᢜ, hK.isClosed.isOpen_compl⟩ have hclass : (sign : β„€) β€’ ProjectedClasses.IntegrationConstruction.projectedClass (TopCat.of M) U d (Cohomology.Singular.ChainDual.simplexChain (R := β„€) (TopCat.toSSet.obj (TopCat.of M)) Οƒ.val) (SimplexCycles.IntegrationConstruction.integralSimplex_relative_cycle _ _ d Οƒ.val hfaces) = HomologicalComplex.homologyMap (AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeChainProjection (TopCat.of M) U) d (IntegrationOrientation.integralFundamentalClass o) := by exact (congrArg (fun z : AlgebraicGeometry.CycleClass.Geometric.LocalHomology.Cycles.relativeSingularHomology (TopCat.of M) Kᢜ d => (sign : β„€) β€’ z) (AffineCycle.IntegrationConstruction.chartProjectedSimplex_eq_chartCompactClass (X := TopCat.of M) e K hK hKs a r hr hKi Οƒ.val hΟƒsource hΟƒcoords)).trans (FundamentalRestriction.IntegrationConstruction.integralFundamentalClass_restrict_chart o center K hK hKs sign hsign).symm have heval := RelativeSimplexEvaluation.IntegrationConstruction.evaluation_on_integral_relative_simplex (Fin d β†’ ℝ) M U d (TopEvaluation.IntegrationConstruction.closedTopForm d M form) (fun x => hform x x.property) (TopEvaluation.IntegrationConstruction.topIntegrationClass d M form) (TopEvaluation.IntegrationConstruction.topIntegrationClass_restriction d M form) (IntegrationOrientation.integralFundamentalClass o) Οƒ hfaces (sign : β„€) hclass change TopEvaluation.IntegrationConstruction.fundamentalEvaluation d M o form = (sign : β„€) β€’ DeRham.Comparison.SmoothSimplexIntegration.smoothSimplexIntegration Οƒ form at heval rw [heval] congr 1 exact ChartIntegral.IntegrationConstruction.smoothSimplexIntegration_affine_chart g hg e (chart_mem_atlas (Fin d β†’ ℝ) center) a r hr (fun x hx => hsource x (ChartIntegral.IntegrationConstruction.positiveInterior_shift_mem_cube d x hx)) (fun x hx => hcoords x (ChartIntegral.IntegrationConstruction.positiveInterior_shift_mem_cube d x hx)) form end open _root_.CategoryTheory Set _root_.TopologicalSpace open scoped _root_.Manifold ContDiff set_option backward.isDefEq.respectTransparency false theorem affineInterior_isOpen (d : β„•) (a : Fin d β†’ ℝ) (r : ℝ) (hr : 0 < r) : IsOpen (AffineOrientation.IntegrationConstruction.affineInterior d a r) := by have heq : AffineOrientation.IntegrationConstruction.affineInterior d a r = (fun y => r⁻¹ β€’ (y - a)) ⁻¹' SimplexGeometry.IntegrationConstruction.positiveInterior d := by ext y constructor Β· rintro ⟨x, hx, rfl⟩ change r⁻¹ β€’ (a + r β€’ x - a) ∈ SimplexGeometry.IntegrationConstruction.positiveInterior d simpa only [add_sub_cancel_left, smul_smul, inv_mul_cancelβ‚€ hr.ne', one_smul] using hx Β· intro hy refine ⟨r⁻¹ β€’ (y - a), hy, ?_⟩ change a + r β€’ (r⁻¹ β€’ (y - a)) = y rw [smul_smul, mul_inv_cancelβ‚€ hr.ne', one_smul] abel rw [heq] exact (SimplexGeometry.IntegrationConstruction.positiveInterior_isOpen d).preimage (by fun_prop) theorem affineCenter_mem (d : β„•) (a : Fin d β†’ ℝ) (r : ℝ) : a ∈ AffineOrientation.IntegrationConstruction.affineInterior d a r := ⟨0, SimplexGeometry.IntegrationConstruction.zero_mem_positiveInterior d, by simp [AffineOrientation.IntegrationConstruction.positiveAffine]⟩ variable {d : β„•} {M : Type} [TopologicalSpace M] [ChartedSpace (Fin d β†’ ℝ) M] [IsManifold π“˜(ℝ, Fin d β†’ ℝ) ∞ M] [T2Space M] [CompactSpace M] structure SmallChartRegion (o : IntegrationOrientation.Orientation d M) (center : M) where domain : Opens M sign : β„€Λ£ a : Fin d β†’ ℝ r : ℝ positive : 0 < r parameter : (Fin d β†’ ℝ) β†’ M smooth : ContMDiff π“˜(ℝ, Fin d β†’ ℝ) π“˜(ℝ, Fin d β†’ ℝ) ∞ parameter source : βˆ€ x, x + SimplexGeometry.IntegrationConstruction.simplexBarycenter d ∈ DeRham.Comparison.StokesF.SingularCubeStokes.unitCube d β†’ parameter x ∈ (chartAt (Fin d β†’ ℝ) center).source coordinates : βˆ€ x, x + SimplexGeometry.IntegrationConstruction.simplexBarycenter d ∈ DeRham.Comparison.StokesF.SingularCubeStokes.unitCube d β†’ (chartAt (Fin d β†’ ℝ) center) (parameter x) = AffineOrientation.IntegrationConstruction.positiveAffine (Fin d β†’ ℝ) a r x domain_source : (domain : Set M) βŠ† (chartAt (Fin d β†’ ℝ) center).source domain_image : (chartAt (Fin d β†’ ℝ) center) '' (domain : Set M) βŠ† AffineOrientation.IntegrationConstruction.affineInterior d a r domain_sign : βˆ€ x (hx : x ∈ domain), o.chartSign center ⟨x, domain_source hx⟩ = sign omit [CompactSpace M] in theorem exists_smallChartRegion (o : IntegrationOrientation.Orientation d M) (center x : M) (hx : x ∈ (chartAt (Fin d β†’ ℝ) center).source) : βˆƒ D : SmallChartRegion o center, x ∈ D.domain := by let e := chartAt (Fin d β†’ ℝ) center obtain ⟨r, hr, hcube⟩ := ChartIntegral.IntegrationConstruction.exists_small_affine_cube d e.target e.open_target (e x) (e.map_source hx) obtain ⟨g, hg, hagree⟩ := ChartIntegral.IntegrationConstruction.exists_smooth_chart_simplex_parameter e (chart_mem_atlas (Fin d β†’ ℝ) center) (e x) r hcube let sign := o.chartSign center ⟨x, hx⟩ let S : Set M := Subtype.val '' {y : e.source | o.chartSign center y = sign} have hS : IsOpen S := e.open_source.isOpenMap_subtype_val _ ((o.chartSign center).isLocallyConstant.isOpen_fiber sign) let V : Opens M := ⟨S ∩ (e.source ∩ e ⁻¹' AffineOrientation.IntegrationConstruction.affineInterior d (e x) r), hS.inter (e.isOpen_inter_preimage (affineInterior_isOpen d (e x) r hr))⟩ have hVs : (V : Set M) βŠ† e.source := fun _ hy => hy.2.1 refine ⟨⟨V, sign, e x, r, hr, g, hg, ?_, ?_, hVs, ?_, ?_⟩, ?_⟩ Β· intro y hy exact (hagree y hy).2 Β· intro y hy have htarget : AffineOrientation.IntegrationConstruction.positiveAffine (Fin d β†’ ℝ) (e x) r y ∈ e.target := by simpa only [add_sub_cancel_right] using hcube (y + SimplexGeometry.IntegrationConstruction.simplexBarycenter d) hy rw [(hagree y hy).1, e.right_inv htarget] Β· rintro _ ⟨y, hy, rfl⟩ exact hy.2.2 Β· intro y hy obtain ⟨z, hz, rfl⟩ := hy.1 exact hz Β· exact ⟨⟨⟨x, hx⟩, rfl, rfl⟩, hx, affineCenter_mem d (e x) r⟩ theorem SmallChartRegion.evaluation (o : IntegrationOrientation.Orientation d M) (center : M) (D : SmallChartRegion o center) (K : Set M) (hK : IsCompact K) (hKD : K βŠ† D.domain) (form : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm (Fin d β†’ ℝ) M d) (hform : βˆ€ x, x βˆ‰ K β†’ form.val x = 0) : TopEvaluation.IntegrationConstruction.fundamentalEvaluation d M o form = (D.sign : β„€) β€’ ∫ y in AffineOrientation.IntegrationConstruction.affineInterior d D.a D.r, form.val.inChart (chartAt (Fin d β†’ ℝ) center) y (Pi.basisFun ℝ (Fin d)) := fundamentalEvaluation_small_chart o center K hK (hKD.trans D.domain_source) D.sign (fun x hx => D.domain_sign x (hKD hx)) D.a D.r D.positive ((image_mono hKD).trans D.domain_image) D.parameter D.smooth D.source D.coordinates form hform end end OAI.AlgebraicTopology.FundamentalClass.ChartLocalEvaluation.IntegrationConstruction