import OAI.AlgebraicGeometry.ComplexPoints.Analytic.IntrinsicSmoothImmersion import OAI.AlgebraicGeometry.ComplexPoints.Analytic.IntrinsicDerivativeScalars import OAI.AlgebraicGeometry.ComplexPoints.Analytic.CycleStratumRealization import OAI.AlgebraicGeometry.CycleClass.Geometric.ComplexNormalEq /-! # Stratum Normal Space -/ namespace OAI.AlgebraicGeometry.ComplexPoints.Analytic.StratumNormalSpace noncomputable section /-! # Actual normal spaces of smooth complex strata The normal space is the quotient of the target's native tangent space by the image of the actual manifold differential. Injectivity for algebraic immersions computes its dimension. Its complex vector-space structure gives the canonical orientation of its underlying real vector space. -/ open _root_.CategoryTheory _root_.AlgebraicGeometry open scoped ContDiff _root_.Manifold section /-- The actual tangent space of the proved native complex manifold. -/ abbrev NativeComplexTangent (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) [IsIntegral X.left] [Smooth X.hom] (x : SchemePointHomeomorphs.schemeComplexPoints X) := TangentSpace (π“˜(β„‚, Fin (Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) β†’ β„‚)) x instance nativeComplexTangent_finiteDimensional (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) [IsIntegral X.left] [Smooth X.hom] (x : SchemePointHomeomorphs.schemeComplexPoints X) : FiniteDimensional β„‚ (NativeComplexTangent X x) := by change FiniteDimensional β„‚ (Fin (Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) β†’ β„‚) infer_instance theorem nativeComplexTangent_finrank (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) [IsIntegral X.left] [Smooth X.hom] (x : SchemePointHomeomorphs.schemeComplexPoints X) : Module.finrank β„‚ (NativeComplexTangent X x) = Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom := by change Module.finrank β„‚ (Fin (Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) β†’ β„‚) = _ rw [Module.finrank_pi, Fintype.card_fin] variable {X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase} [IsIntegral X.left] [Smooth X.hom] [IsIntegral Y.left] [Smooth Y.hom] /-- The existing complex manifold differential of the genuine point map. -/ abbrev nativeSchemeDifferential (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) : NativeComplexTangent X x β†’L[β„‚] NativeComplexTangent Y (SchemePointHomeomorphs.schemeComplexPoints.map Ο† x) := mfderiv (π“˜(β„‚, Fin (Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) β†’ β„‚)) (π“˜(β„‚, Fin (Betti.AffineDimension.Realization.functionFieldDifferentialDimension Y.hom) β†’ β„‚)) (SchemePointHomeomorphs.schemeComplexPoints.map Ο†) x /-- The actual image tangent subspace in the target tangent space. -/ def nativeSchemeTangentRange (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) : Submodule β„‚ (NativeComplexTangent Y (SchemePointHomeomorphs.schemeComplexPoints.map Ο† x)) := LinearMap.range (nativeSchemeDifferential Ο† x).toLinearMap @[simp] theorem mem_nativeSchemeTangentRange (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) (v : NativeComplexTangent Y (SchemePointHomeomorphs.schemeComplexPoints.map Ο† x)) : v ∈ nativeSchemeTangentRange Ο† x ↔ βˆƒ w : NativeComplexTangent X x, nativeSchemeDifferential Ο† x w = v := Iff.rfl /-- The normal vector space is the actual quotient by the differential image. -/ abbrev NativeSchemeNormal (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) := CycleClass.Geometric.ComplexNormalEq.Cycles.ComplexNormal (nativeSchemeTangentRange Ο† x) abbrev nativeSchemeNormalProjection (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) : NativeComplexTangent Y (SchemePointHomeomorphs.schemeComplexPoints.map Ο† x) β†’β‚—[β„‚] NativeSchemeNormal Ο† x := CycleClass.Geometric.ComplexNormalEq.Cycles.normalProjection (nativeSchemeTangentRange Ο† x) /-- A target tangent vector is zero in the normal space exactly when it is the image of a source tangent vector under the actual differential. -/ @[simp] theorem nativeSchemeNormalProjection_eq_zero (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) (v : NativeComplexTangent Y (SchemePointHomeomorphs.schemeComplexPoints.map Ο† x)) : nativeSchemeNormalProjection Ο† x v = 0 ↔ βˆƒ w : NativeComplexTangent X x, nativeSchemeDifferential Ο† x w = v := by exact (CycleClass.Geometric.ComplexNormalEq.Cycles.normalProjection_eq_zero (nativeSchemeTangentRange Ο† x) v).trans (mem_nativeSchemeTangentRange Ο† x v) theorem nativeSchemeTangentRange_finrank (Ο† : X ⟢ Y) [IsImmersion Ο†.left] (x : SchemePointHomeomorphs.schemeComplexPoints X) : Module.finrank β„‚ (nativeSchemeTangentRange Ο† x) = Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom := by exact (LinearMap.finrank_range_of_inj (IntrinsicSmoothImmersion.mfderiv_nativeScheme_immersion_injective Ο† x)).trans (nativeComplexTangent_finrank X x) /-- Rank-nullity for the actual normal quotient of an algebraic immersion. -/ theorem nativeSchemeNormal_finrank_add (Ο† : X ⟢ Y) [IsImmersion Ο†.left] (x : SchemePointHomeomorphs.schemeComplexPoints X) : Module.finrank β„‚ (NativeSchemeNormal Ο† x) + Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom = Betti.AffineDimension.Realization.functionFieldDifferentialDimension Y.hom := by have h := (nativeSchemeTangentRange Ο† x).finrank_quotient_add_finrank rw [nativeSchemeTangentRange_finrank Ο† x, nativeComplexTangent_finrank Y (SchemePointHomeomorphs.schemeComplexPoints.map Ο† x)] at h exact h theorem nativeSchemeNormal_complex_finrank (Ο† : X ⟢ Y) [IsImmersion Ο†.left] (x : SchemePointHomeomorphs.schemeComplexPoints X) : Module.finrank β„‚ (NativeSchemeNormal Ο† x) = Betti.AffineDimension.Realization.functionFieldDifferentialDimension Y.hom - Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom := by have h := nativeSchemeNormal_finrank_add Ο† x omega theorem nativeSchemeNormal_real_finrank (Ο† : X ⟢ Y) [IsImmersion Ο†.left] (x : SchemePointHomeomorphs.schemeComplexPoints X) : Module.finrank ℝ (NativeSchemeNormal Ο† x) = 2 * (Betti.AffineDimension.Realization.functionFieldDifferentialDimension Y.hom - Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) := by rw [finrank_real_of_complex, nativeSchemeNormal_complex_finrank Ο† x] /-- The existing complex orientation, applied to the actual normal quotient. -/ def nativeSchemeNormalOrientation (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) : Orientation ℝ (NativeSchemeNormal Ο† x) (Fin (Module.finrank β„‚ (NativeSchemeNormal Ο† x)) Γ— Fin 2) := CycleClass.Geometric.ComplexNormalEq.Cycles.complexNormalOrientation (nativeSchemeTangentRange Ο† x) theorem nativeSchemeNormalOrientation_eq_basis (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) (b : Module.Basis (Fin (Module.finrank β„‚ (NativeSchemeNormal Ο† x))) β„‚ (NativeSchemeNormal Ο† x)) : nativeSchemeNormalOrientation Ο† x = CycleClass.Geometric.ComplexOrientation.complexOrientationOfBasis b := CycleClass.Geometric.ComplexNormalEq.Cycles.complexNormalOrientation_eq_basis (nativeSchemeTangentRange Ο† x) b set_option backward.isDefEq.respectTransparency false in /-- The actual real differential, with both native tangent-space type synonyms identified with their common underlying model vector spaces. -/ abbrev nativeSchemeRealDifferential (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) : NativeComplexTangent X x β†’L[ℝ] NativeComplexTangent Y (SchemePointHomeomorphs.schemeComplexPoints.map Ο† x) := show (Fin (Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) β†’ β„‚) β†’L[ℝ] (Fin (Betti.AffineDimension.Realization.functionFieldDifferentialDimension Y.hom) β†’ β„‚) from mfderiv (π“˜(ℝ, Fin (Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) β†’ β„‚)) (π“˜(ℝ, Fin (Betti.AffineDimension.Realization.functionFieldDifferentialDimension Y.hom) β†’ β„‚)) (SchemePointHomeomorphs.schemeComplexPoints.map Ο†) x set_option backward.isDefEq.respectTransparency false in theorem nativeSchemeRealDifferential_eq_restrictScalars (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) : nativeSchemeRealDifferential Ο† x = (nativeSchemeDifferential Ο† x).restrictScalars ℝ := IntrinsicDerivativeScalars.real_mfderiv_nativeScheme_map_eq_restrictScalars Ο† x /-- The range of the actual real manifold differential. -/ def nativeSchemeRealTangentRange (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) : Submodule ℝ (NativeComplexTangent Y (SchemePointHomeomorphs.schemeComplexPoints.map Ο† x)) := LinearMap.range (nativeSchemeRealDifferential Ο† x).toLinearMap theorem nativeSchemeRealTangentRange_eq_restrictScalars (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) : nativeSchemeRealTangentRange Ο† x = (nativeSchemeTangentRange Ο† x).restrictScalars ℝ := by unfold nativeSchemeRealTangentRange rw [nativeSchemeRealDifferential_eq_restrictScalars] rfl /-- The real normal quotient uses the actual real differential image. -/ abbrev NativeSchemeRealNormal (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) := NativeComplexTangent Y (SchemePointHomeomorphs.schemeComplexPoints.map Ο† x) β§Έ nativeSchemeRealTangentRange Ο† x /-- The actual real normal quotient is canonically the underlying real vector space of the actual complex normal quotient. -/ def nativeSchemeRealNormalEquiv (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) : NativeSchemeRealNormal Ο† x ≃ₗ[ℝ] NativeSchemeNormal Ο† x := (Submodule.quotEquivOfEq (nativeSchemeRealTangentRange Ο† x) ((nativeSchemeTangentRange Ο† x).restrictScalars ℝ) (nativeSchemeRealTangentRange_eq_restrictScalars Ο† x)).trans (CycleClass.Geometric.ComplexNormalEq.Cycles.realNormalEquiv (nativeSchemeTangentRange Ο† x)) @[simp] theorem nativeSchemeRealNormalEquiv_projection (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) (v : NativeComplexTangent Y (SchemePointHomeomorphs.schemeComplexPoints.map Ο† x)) : nativeSchemeRealNormalEquiv Ο† x ((nativeSchemeRealTangentRange Ο† x).mkQ v) = nativeSchemeNormalProjection Ο† x v := by change (CycleClass.Geometric.ComplexNormalEq.Cycles.realNormalEquiv (nativeSchemeTangentRange Ο† x)) ((Submodule.quotEquivOfEq (nativeSchemeRealTangentRange Ο† x) ((nativeSchemeTangentRange Ο† x).restrictScalars ℝ) (nativeSchemeRealTangentRange_eq_restrictScalars Ο† x)) (Submodule.Quotient.mk v)) = _ rw [Submodule.quotEquivOfEq_mk] rfl theorem nativeSchemeRealNormal_finrank (Ο† : X ⟢ Y) [IsImmersion Ο†.left] (x : SchemePointHomeomorphs.schemeComplexPoints X) : Module.finrank ℝ (NativeSchemeRealNormal Ο† x) = 2 * (Betti.AffineDimension.Realization.functionFieldDifferentialDimension Y.hom - Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) := by rw [(nativeSchemeRealNormalEquiv Ο† x).finrank_eq, nativeSchemeNormal_real_finrank Ο† x] /-- Transport of the complex orientation gives the orientation of the actual real differential normal quotient. -/ def nativeSchemeRealNormalOrientation (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) : Orientation ℝ (NativeSchemeRealNormal Ο† x) (Fin (Module.finrank β„‚ (NativeSchemeNormal Ο† x)) Γ— Fin 2) := (Orientation.map _ (nativeSchemeRealNormalEquiv Ο† x)).symm (nativeSchemeNormalOrientation Ο† x) @[simp] theorem nativeSchemeRealNormalOrientation_map (Ο† : X ⟢ Y) (x : SchemePointHomeomorphs.schemeComplexPoints X) : Orientation.map _ (nativeSchemeRealNormalEquiv Ο† x) (nativeSchemeRealNormalOrientation Ο† x) = nativeSchemeNormalOrientation Ο† x := (Orientation.map _ (nativeSchemeRealNormalEquiv Ο† x)).apply_symm_apply _ end namespace DimensionCycleSupport variable {V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {p : β„•} local instance (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) : IsIntegral Z.regularOver.left := inferInstanceAs (IsIntegral Z.regularScheme) local instance (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) : Smooth Z.regularOver.hom := inferInstanceAs (Smooth Z.regularToBase) local instance : IsIntegral V.toOver.left := V.property local instance : Smooth V.toOver.hom := V.presentation.smooth /-- The genuine inclusion of the support's smooth locus into the ambient variety. -/ def _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.regularToAmbient (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) : Z.regularOver ⟢ V.toOver := Z.regularToSupport ≫ Z.toAmbient instance _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.regularToAmbient_isImmersion (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) : IsImmersion Z.regularToAmbient.left := by change IsImmersion (CycleClass.Geometric.SmoothStratum.smoothStratumΞΉ Z.structureMap ≫ Z.inclusion) infer_instance abbrev _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.regularAmbientInclusion (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) : Z.regularAnalyticSpace β†’ V.analyticSpace := SchemePointHomeomorphs.schemeComplexPoints.map Z.regularToAmbient /-- The normal space of the actual smooth-locus inclusion at a native complex point. -/ abbrev _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.RegularNormalSpace (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) (x : Z.regularAnalyticSpace) := NativeSchemeNormal Z.regularToAmbient x /-- The dimension-defined cycle grading is exactly the complex normal dimension. -/ theorem _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.regularNormalSpace_complex_finrank (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) (x : Z.regularAnalyticSpace) : Module.finrank β„‚ (Z.RegularNormalSpace x) = p := by have h := nativeSchemeNormal_finrank_add Z.regularToAmbient x change Module.finrank β„‚ (Z.RegularNormalSpace x) + Z.regularComplexDimension = V.complexDimension at h have hdim := Z.regularComplexDimension_add_codimension omega theorem _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.regularNormalSpace_real_finrank (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) (x : Z.regularAnalyticSpace) : Module.finrank ℝ (Z.RegularNormalSpace x) = 2 * p := by rw [finrank_real_of_complex, CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.regularNormalSpace_complex_finrank] /-- A complex basis indexed by the actual cycle codimension, used only to present the canonical orientation; the orientation is basis-independent. -/ def _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.regularNormalBasis (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) (x : Z.regularAnalyticSpace) : Module.Basis (Fin p) β„‚ (Z.RegularNormalSpace x) := (Module.finBasis β„‚ (Z.RegularNormalSpace x)).reindex (finCongr (Z.regularNormalSpace_complex_finrank x)) def _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.regularNormalOrientation (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) (x : Z.regularAnalyticSpace) : Orientation ℝ (Z.RegularNormalSpace x) (Fin p Γ— Fin 2) := CycleClass.Geometric.ComplexOrientation.complexOrientationOfBasis (Z.regularNormalBasis x) /-- The real orientation does not depend on the chosen complex normal basis. -/ theorem _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.regularNormalOrientation_eq_basis (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) (x : Z.regularAnalyticSpace) (b : Module.Basis (Fin p) β„‚ (Z.RegularNormalSpace x)) : Z.regularNormalOrientation x = CycleClass.Geometric.ComplexOrientation.complexOrientationOfBasis b := CycleClass.Geometric.ComplexOrientation.complexOrientationOfBasis_eq (Z.regularNormalBasis x) b /-- The quotient by the actual real differential of the smooth-locus inclusion. -/ abbrev _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.RegularRealNormalSpace (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) (x : Z.regularAnalyticSpace) := NativeSchemeRealNormal Z.regularToAmbient x def _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.regularRealNormalEquiv (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) (x : Z.regularAnalyticSpace) : Z.RegularRealNormalSpace x ≃ₗ[ℝ] Z.RegularNormalSpace x := nativeSchemeRealNormalEquiv Z.regularToAmbient x theorem _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.regularRealNormalSpace_finrank (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) (x : Z.regularAnalyticSpace) : Module.finrank ℝ (Z.RegularRealNormalSpace x) = 2 * p := by rw [(Z.regularRealNormalEquiv x).finrank_eq, Z.regularNormalSpace_real_finrank x] def _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.regularRealNormalOrientation (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) (x : Z.regularAnalyticSpace) : Orientation ℝ (Z.RegularRealNormalSpace x) (Fin p Γ— Fin 2) := (Orientation.map _ (Z.regularRealNormalEquiv x)).symm (Z.regularNormalOrientation x) @[simp] theorem _root_.OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.regularRealNormalOrientation_map (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) (x : Z.regularAnalyticSpace) : Orientation.map _ (Z.regularRealNormalEquiv x) (Z.regularRealNormalOrientation x) = Z.regularNormalOrientation x := (Orientation.map _ (Z.regularRealNormalEquiv x)).apply_symm_apply _ end DimensionCycleSupport end end OAI.AlgebraicGeometry.ComplexPoints.Analytic.StratumNormalSpace