import OAI.AlgebraicGeometry.Comparison.Betti.HigherSmoothSymbols import OAI.AlgebraicGeometry.Comparison.Betti.AlternatingCovectors /-! # Symbol Pointwise -/ namespace OAI.AlgebraicGeometry.Comparison.Betti.Smooth.SymbolPointwise noncomputable section section /-! Pointwise exterior-covector description of every realized algebraic symbol. -/ open scoped _root_.Manifold ContDiff variable {E : Type*} [NormedAddCommGroup E] [NormedSpace โ„ E] {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold ๐“˜(โ„, E) โˆž M] {A : Type*} [CommRing A] [Algebra โ„‚ A] (ฯ† : A โ†’โ‚[โ„‚] C(M, โ„‚)) (hฯ† : โˆ€ a : A, ContMDiff ๐“˜(โ„, E) ๐“˜(โ„, โ„‚) โˆž (ฯ† a)) local instance tangentNormedGroup (x : M) : NormedAddCommGroup (TangentSpace ๐“˜(โ„, E) x) := inferInstanceAs (NormedAddCommGroup E) local instance tangentNormedSpace (x : M) : NormedSpace โ„ (TangentSpace ๐“˜(โ„, E) x) := inferInstanceAs (NormedSpace โ„ E) /-- The one-covector is the actual exterior derivative, evaluated at the given point. -/ def functionCovector (a : A) (x : M) : TangentSpace ๐“˜(โ„, E) x [โ‹€^Fin 1]โ†’L[โ„] โ„‚ := Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.d (FormRealization.zeroFormMap ฯ† hฯ† a) x theorem smoothSymbol_covectors : โˆ€ (n : โ„•) (a : Fin (n + 1) โ†’ A) (x : M), HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n a x = AlternatingCovectors.Smooth.iteratedCovectorWedge n (ฯ† (a 0) x) (fun i => functionCovector ฯ† hฯ† (a i.succ) x) := by intro n induction n with | zero => intro a x; rfl | succ n ih => intro a x change AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorWedge (HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Fin.init a) x) (functionCovector ฯ† hฯ† (a (Fin.last (n + 1))) x) = AlgebraicTopology.Kunneth.CovectorWedge.Constructions.covectorWedge (AlternatingCovectors.Smooth.iteratedCovectorWedge n (ฯ† (a 0) x) (Fin.init (fun i : Fin (n + 1) => functionCovector ฯ† hฯ† (a i.succ) x))) (functionCovector ฯ† hฯ† (a (Fin.last n).succ) x) rw [ih] have hvec : (fun i : Fin n => functionCovector ฯ† hฯ† (Fin.init a i.succ) x) = Fin.init (fun i : Fin (n + 1) => functionCovector ฯ† hฯ† (a i.succ) x) := by funext i change functionCovector ฯ† hฯ† (a i.succ.castSucc) x = functionCovector ฯ† hฯ† (a i.castSucc.succ) x rw [Fin.succ_castSucc] rw [hvec] rfl theorem functionCovector_add (a b : A) (x : M) : functionCovector ฯ† hฯ† (a + b) x = functionCovector ฯ† hฯ† a x + functionCovector ฯ† hฯ† b x := by unfold functionCovector rw [map_add, map_add] rfl theorem functionCovector_smul (c : โ„‚) (a : A) (x : M) : functionCovector ฯ† hฯ† (c โ€ข a) x = c โ€ข functionCovector ฯ† hฯ† a x := by unfold functionCovector rw [map_smul, map_smul] rfl /-- The scalar factors in Leibniz are actual evaluations at the same point. -/ theorem functionCovector_mul (a b : A) (x : M) : functionCovector ฯ† hฯ† (a * b) x = ฯ† a x โ€ข functionCovector ฯ† hฯ† b x + ฯ† b x โ€ข functionCovector ฯ† hฯ† a x := by unfold functionCovector rw [FormRealization.d_zeroFormMap_mul] rfl theorem functionCovector_constant (c : โ„‚) (x : M) : functionCovector ฯ† hฯ† (algebraMap โ„‚ A c) x = 0 := by have hc : algebraMap โ„‚ A c = c โ€ข (1 : A) := ((Algebra.smul_def c (1 : A)).trans (mul_one _)).symm rw [hc, functionCovector_smul] change c โ€ข (Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.d (FormRealization.zeroFormMap ฯ† hฯ† 1) x) = 0 rw [FormRealization.d_zeroFormMap_one] ext v exact mul_zero c /-- Every repeated algebraic differential vanishes in the actual smooth realization. -/ theorem smoothSymbol_repeated {n : โ„•} (a : Fin (n + 1) โ†’ A) (i j : Fin n) (hij : i โ‰  j) (ha : a i.succ = a j.succ) : HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n a = 0 := by apply Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.ext intro x rw [smoothSymbol_covectors] exact AlternatingCovectors.Smooth.iteratedCovectorWedge_repeated _ _ i j hij (congrArg (fun b => functionCovector ฯ† hฯ† b x) ha) end /-! Every defining algebraic form relation vanishes in genuine smooth forms. -/ open scoped _root_.Manifold ContDiff variable {E : Type*} [NormedAddCommGroup E] [NormedSpace โ„ E] {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold ๐“˜(โ„, E) โˆž M] {A : Type*} [CommRing A] [Algebra โ„‚ A] (ฯ† : A โ†’โ‚[โ„‚] C(M, โ„‚)) (hฯ† : โˆ€ a : A, ContMDiff ๐“˜(โ„, E) ๐“˜(โ„, โ„‚) โˆž (ฯ† a)) attribute [local instance] tangentNormedGroup tangentNormedSpace theorem covectors_update_zero {n : โ„•} (a : Fin (n + 1) โ†’ A) (b : A) (x : M) : (fun i : Fin n => functionCovector ฯ† hฯ† (Function.update a 0 b i.succ) x) = (fun i => functionCovector ฯ† hฯ† (a i.succ) x) := by funext i rw [Function.update_of_ne i.succ_ne_zero] theorem covectors_update_succ {n : โ„•} (a : Fin (n + 1) โ†’ A) (i : Fin n) (b : A) (x : M) : (fun j : Fin n => functionCovector ฯ† hฯ† (Function.update a i.succ b j.succ) x) = Function.update (fun j => functionCovector ฯ† hฯ† (a j.succ) x) i (functionCovector ฯ† hฯ† b x) := by change (fun b => functionCovector ฯ† hฯ† b x) โˆ˜ Fin.tail (Function.update a i.succ b) = Function.update ((fun b => functionCovector ฯ† hฯ† b x) โˆ˜ Fin.tail a) i (functionCovector ฯ† hฯ† b x) rw [Fin.tail_update_succ, Function.comp_update] theorem smoothSymbol_add {n : โ„•} (a : Fin (n + 1) โ†’ A) (i : Fin (n + 1)) (b c : A) : HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update a i (b + c)) = HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update a i b) + HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update a i c) := by apply Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.ext intro x change HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update a i (b + c)) x = HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update a i b) x + HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update a i c) x simp only [smoothSymbol_covectors] refine Fin.cases ?_ (fun j => ?_) i ยท simp only [covectors_update_zero, Function.update_self, map_add, ContinuousMap.add_apply] exact AlternatingCovectors.Smooth.iteratedCovectorWedge_add_coeff _ _ _ ยท simp only [covectors_update_succ, Function.update_of_ne (Ne.symm j.succ_ne_zero), functionCovector_add] exact AlternatingCovectors.Smooth.iteratedCovectorWedge_add_slot _ _ _ _ _ theorem smoothSymbol_smul {n : โ„•} (a : Fin (n + 1) โ†’ A) (i : Fin (n + 1)) (c : โ„‚) (b : A) : HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update a i (c โ€ข b)) = c โ€ข HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update a i b) := by apply Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.ext intro x change HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update a i (c โ€ข b)) x = c โ€ข HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update a i b) x simp only [smoothSymbol_covectors] refine Fin.cases ?_ (fun j => ?_) i ยท simp only [covectors_update_zero, Function.update_self, map_smul, ContinuousMap.smul_apply, smul_eq_mul] exact AlternatingCovectors.Smooth.iteratedCovectorWedge_smul_coeff _ _ _ ยท simp only [covectors_update_succ, Function.update_of_ne (Ne.symm j.succ_ne_zero), functionCovector_smul] exact AlternatingCovectors.Smooth.iteratedCovectorWedge_smul_slot _ _ _ _ _ theorem smoothSymbol_leibniz {n : โ„•} (a : Fin (n + 1) โ†’ A) (i : Fin n) (b c : A) : HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update a i.succ (b * c)) = HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update (Function.update a 0 (a 0 * b)) i.succ c) + HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update (Function.update a 0 (a 0 * c)) i.succ b) := by apply Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.ext intro x change HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update a i.succ (b * c)) x = HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update (Function.update a 0 (a 0 * b)) i.succ c) x + HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update (Function.update a 0 (a 0 * c)) i.succ b) x simp only [smoothSymbol_covectors, covectors_update_succ, covectors_update_zero, Function.update_of_ne (Ne.symm i.succ_ne_zero), Function.update_self, functionCovector_mul, map_mul, ContinuousMap.mul_apply] erw [AlternatingCovectors.Smooth.iteratedCovectorWedge_add_slot, AlternatingCovectors.Smooth.iteratedCovectorWedge_smul_slot, AlternatingCovectors.Smooth.iteratedCovectorWedge_smul_slot, mul_comm (ฯ† (a 0) x) (ฯ† b x), mul_comm (ฯ† (a 0) x) (ฯ† c x), AlternatingCovectors.Smooth.iteratedCovectorWedge_smul_coeff, AlternatingCovectors.Smooth.iteratedCovectorWedge_smul_coeff] rfl theorem smoothSymbol_constant {n : โ„•} (a : Fin (n + 1) โ†’ A) (i : Fin n) (c : โ„‚) : HigherSmoothSymbols.smoothSymbol ฯ† hฯ† n (Function.update a i.succ (algebraMap โ„‚ A c)) = 0 := by apply Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.ext intro x rw [smoothSymbol_covectors, covectors_update_succ, functionCovector_constant] exact AlternatingCovectors.Smooth.iteratedCovectorWedge_zero_slot _ _ _ /-- The complete presentation, including differential closure, is respected. -/ theorem rawSmoothMap_relation_zero {n : โ„•} {r : Algebraic.Forms.RawForm A n} (hr : Algebraic.Forms.FormRelation A n r) : HigherSmoothSymbols.rawSmoothMap ฯ† hฯ† n r = 0 := by induction hr with | add n a i b c => rw [map_sub, map_sub, HigherSmoothSymbols.rawSmoothMap_symbol, HigherSmoothSymbols.rawSmoothMap_symbol, HigherSmoothSymbols.rawSmoothMap_symbol, smoothSymbol_add] abel | smul n a i c b => rw [map_sub, map_smul, HigherSmoothSymbols.rawSmoothMap_symbol, HigherSmoothSymbols.rawSmoothMap_symbol, smoothSymbol_smul, sub_self] | leibniz n a i b c => rw [map_sub, map_sub, HigherSmoothSymbols.rawSmoothMap_symbol, HigherSmoothSymbols.rawSmoothMap_symbol, HigherSmoothSymbols.rawSmoothMap_symbol, smoothSymbol_leibniz] abel | constant n a i c => rw [HigherSmoothSymbols.rawSmoothMap_symbol, smoothSymbol_constant] | alternating n a i j hij ha => rw [HigherSmoothSymbols.rawSmoothMap_symbol, smoothSymbol_repeated ฯ† hฯ† a i j hij ha] | differential hr ih => rw [HigherSmoothSymbols.rawSmoothMap_d, ih, map_zero] end end OAI.AlgebraicGeometry.Comparison.Betti.Smooth.SymbolPointwise