math / data /lean /ComparatorChallenges /LogKodairaFiberNegative.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
9.88 kB
import Mathlib
namespace OAI
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped TensorProduct
namespace ReverseLogKodaira
attribute [local instance] MvPolynomial.gradedAlgebra
abbrev complexBase : Scheme := Spec (CommRingCat.of β„‚)
abbrev projectiveGrading (N : β„•) := MvPolynomial.homogeneousSubmodule (Fin (N + 1)) β„‚
abbrev complexProjectiveSpace (N : β„•) : Scheme := Proj (projectiveGrading N)
def projectiveConstants (N : β„•) : β„‚ β†’+* projectiveGrading N 0 where
toFun r := ⟨MvPolynomial.C r, MvPolynomial.isHomogeneous_C (Fin (N + 1)) r⟩
map_zero' := Subtype.ext (map_zero MvPolynomial.C)
map_one' := Subtype.ext (map_one MvPolynomial.C)
map_add' x y := Subtype.ext (map_add MvPolynomial.C x y)
map_mul' x y := Subtype.ext (map_mul MvPolynomial.C x y)
def complexProjectiveStructure (N : β„•) : complexProjectiveSpace N ⟢ complexBase :=
Proj.toSpecZero (projectiveGrading N) ≫ Spec.map (CommRingCat.ofHom (projectiveConstants N))
structure SmoothProjectiveVariety where
scheme : Scheme
structural : scheme ⟢ complexBase
dimension : β„•
integral : IsIntegral scheme
smooth : SmoothOfRelativeDimension dimension structural
projective : βˆƒ (N : β„•) (i : scheme ⟢ complexProjectiveSpace N),
IsClosedImmersion i ∧ i ≫ complexProjectiveStructure N = structural
attribute [instance] SmoothProjectiveVariety.integral SmoothProjectiveVariety.smooth
namespace SmoothProjectiveVariety
instance (X : SmoothProjectiveVariety) : Smooth X.structural :=
SmoothOfRelativeDimension.smooth X.dimension X.structural
def globalConstants (X : SmoothProjectiveVariety) : β„‚ β†’+* Ξ“(X.scheme, ⊀) :=
X.structural.appTop.hom.comp (Scheme.Ξ“SpecIso (CommRingCat.of β„‚)).inv.hom
def constants (X : SmoothProjectiveVariety) (U : X.scheme.Opens) : β„‚ β†’+* Ξ“(X.scheme, U) :=
(X.scheme.presheaf.map (homOfLE (le_top (a := U))).op).hom.comp X.globalConstants
instance (X : SmoothProjectiveVariety) (U : X.scheme.Opens) : Algebra β„‚ Ξ“(X.scheme, U) :=
(X.constants U).toAlgebra
instance (X : SmoothProjectiveVariety) : Nonempty (⊀ : X.scheme.Opens) :=
⟨⟨genericPoint X.scheme, by trivial⟩⟩
def functionFieldConstants (X : SmoothProjectiveVariety) : β„‚ β†’+* X.scheme.functionField :=
(X.scheme.germToFunctionField ⊀).hom.comp X.globalConstants
instance (X : SmoothProjectiveVariety) : Algebra β„‚ X.scheme.functionField :=
X.functionFieldConstants.toAlgebra
lemma germ_constants (X : SmoothProjectiveVariety) (U : X.scheme.Opens) [Nonempty U] (c : β„‚) :
algebraMap Ξ“(X.scheme, U) X.scheme.functionField (algebraMap β„‚ Ξ“(X.scheme, U) c) =
algebraMap β„‚ X.scheme.functionField c := by
change X.scheme.presheaf.germ U (genericPoint X.scheme) _
(X.scheme.presheaf.map (homOfLE (le_top (a := U))).op (X.globalConstants c)) =
X.scheme.presheaf.germ ⊀ (genericPoint X.scheme) _ (X.globalConstants c)
exact X.scheme.presheaf.germ_res_apply (homOfLE le_top) (genericPoint X.scheme) _ _
instance (X : SmoothProjectiveVariety) (U : X.scheme.Opens) [Nonempty U] :
IsScalarTower β„‚ Ξ“(X.scheme, U) X.scheme.functionField :=
IsScalarTower.of_algebraMap_eq fun c => (X.germ_constants U c).symm
abbrev RationalCanonical (X : SmoothProjectiveVariety) :=
β‹€[X.scheme.functionField]^X.dimension (KaehlerDifferential β„‚ X.scheme.functionField)
abbrev RationalPluriform (X : SmoothProjectiveVariety) (m : β„•) :=
⨂[X.scheme.functionField]^m X.RationalCanonical
instance (X : SmoothProjectiveVariety) (m : β„•) : AddCommGroup (X.RationalPluriform m) :=
Module.addCommMonoidToAddCommGroup X.scheme.functionField
def regularPluriformLattice (X : SmoothProjectiveVariety) (U : X.scheme.affineOpens)
[Nonempty U.1] (m : β„•) : Submodule Ξ“(X.scheme, U.1) (X.RationalPluriform m) :=
Submodule.span Ξ“(X.scheme, U.1) <| Set.range fun a : Fin m β†’ Fin X.dimension β†’ Ξ“(X.scheme, U.1) =>
PiTensorProduct.tprod X.scheme.functionField fun j =>
exteriorPower.ΞΉMulti X.scheme.functionField X.dimension fun i =>
KaehlerDifferential.D β„‚ X.scheme.functionField (algebraMap _ _ (a j i))
def IsCartierIdeal (X : SmoothProjectiveVariety) (I : X.scheme.IdealSheafData) : Prop :=
βˆ€ x : X.scheme, βˆƒ (U : X.scheme.affineOpens), x ∈ U.1 ∧
βˆƒ t : Ξ“(X.scheme, U.1), t β‰  0 ∧ I.ideal U = Ideal.span {t}
structure ReducedSNCBoundary (X : SmoothProjectiveVariety) where
count : β„•
components : Fin count β†’ X.scheme.IdealSheafData
cartier : βˆ€ i, X.IsCartierIdeal (components i)
transverse : βˆ€ S : Finset (Fin count), S.Nonempty β†’
IsEmpty ((S.sup components).subscheme) ∨
(S.card ≀ X.dimension ∧ SmoothOfRelativeDimension (X.dimension - S.card)
((S.sup components).subschemeΞΉ ≫ X.structural))
union_cartier : X.IsCartierIdeal (∏ i, components i)
namespace ReducedSNCBoundary
def ideal {X : SmoothProjectiveVariety} (E : X.ReducedSNCBoundary) : X.scheme.IdealSheafData :=
∏ i, E.components i
def support {X : SmoothProjectiveVariety} (E : X.ReducedSNCBoundary) : Set X.scheme :=
E.ideal.support
def IsLogPluriform {X : SmoothProjectiveVariety} (E : X.ReducedSNCBoundary)
(m : β„•) (s : X.RationalPluriform m) : Prop :=
βˆ€ (U : X.scheme.affineOpens) (_ : Nonempty U.1) (t : Ξ“(X.scheme, U.1)),
t β‰  0 β†’ E.ideal.ideal U = Ideal.span {t} β†’
(algebraMap Ξ“(X.scheme, U.1) X.scheme.functionField t)^m β€’ s ∈
X.regularPluriformLattice U m
lemma isLogPluriform_zero {X : SmoothProjectiveVariety} (E : X.ReducedSNCBoundary) (m : β„•) :
E.IsLogPluriform m 0 := by
intro U hU t ht hI
simp only [smul_zero, Submodule.zero_mem]
lemma isLogPluriform_add {X : SmoothProjectiveVariety} (E : X.ReducedSNCBoundary) (m : β„•)
{s r : X.RationalPluriform m} (hs : E.IsLogPluriform m s) (hr : E.IsLogPluriform m r) :
E.IsLogPluriform m (s + r) := by
intro U hU t ht hI
simpa only [smul_add] using (X.regularPluriformLattice U m).add_mem
(hs U hU t ht hI) (hr U hU t ht hI)
lemma isLogPluriform_smul {X : SmoothProjectiveVariety} (E : X.ReducedSNCBoundary) (m : β„•)
(c : β„‚) {s : X.RationalPluriform m} (hs : E.IsLogPluriform m s) :
E.IsLogPluriform m (c β€’ s) := by
intro U hU t ht hI
have h := (X.regularPluriformLattice U m).smul_mem
(algebraMap β„‚ Ξ“(X.scheme, U.1) c) (hs U hU t ht hI)
rw [IsScalarTower.algebraMap_smul Ξ“(X.scheme, U.1)] at h
rwa [smul_comm c] at h
def sections {X : SmoothProjectiveVariety} (E : X.ReducedSNCBoundary) (m : β„•) :
Submodule β„‚ (X.RationalPluriform m) where
carrier := E.IsLogPluriform m
zero_mem' := E.isLogPluriform_zero m
add_mem' := E.isLogPluriform_add m
smul_mem' := E.isLogPluriform_smul m
def HasImageDimensionAtLeast {X : SmoothProjectiveVariety}
(E : X.ReducedSNCBoundary) (k : β„•) : Prop :=
βˆƒ (m : β„•), 0 < m ∧ βˆƒ s : X.RationalPluriform m,
s ∈ E.sections m ∧ s β‰  0 ∧ βˆƒ r : Fin k β†’ X.scheme.functionField,
AlgebraicIndependent β„‚ r ∧ βˆ€ i, r i β€’ s ∈ E.sections m
def kodaira {X : SmoothProjectiveVariety} (E : X.ReducedSNCBoundary) : WithBot β„•βˆž :=
⨆ (k : β„•) (_ : E.HasImageDimensionAtLeast k), ((k : β„•βˆž) : WithBot β„•βˆž)
end ReducedSNCBoundary
structure ComplexPoint (X : SmoothProjectiveVariety) where
hom : complexBase ⟢ X.scheme
over_base : hom ≫ X.structural = πŸ™ complexBase
def complexBasePoint : complexBase := ⟨βŠ₯, Ideal.isPrime_bot⟩
def ComplexPoint.point {X : SmoothProjectiveVariety} (y : X.ComplexPoint) : X.scheme :=
y.hom complexBasePoint
def ReducedSNCBoundary.complement {X : SmoothProjectiveVariety} (E : X.ReducedSNCBoundary) :
X.scheme.Opens := E.ideal.support.compl
structure BoundaryFibration (X Y : SmoothProjectiveVariety)
(E : X.ReducedSNCBoundary) (D : Y.ReducedSNCBoundary) where
hom : X.scheme ⟢ Y.scheme
over_base : hom ≫ Y.structural = X.structural
surjective : Surjective hom
connected : βˆ€ y : Y.ComplexPoint, ConnectedSpace β†₯(CategoryTheory.Limits.pullback hom y.hom)
support : hom ⁻¹' D.support βŠ† E.support
structure StratumSmoothFibration (X Y : SmoothProjectiveVariety)
(E : X.ReducedSNCBoundary) (D : Y.ReducedSNCBoundary)
extends BoundaryFibration X Y E D where
smooth : Smooth (hom.resLE D.complement (hom ⁻¹ᡁ D.complement) le_rfl)
strata : βˆ€ (S : Finset (Fin E.count)), S.Nonempty β†’
Smooth (((S.sup E.components).subschemeΞΉ ≫ hom).resLE D.complement
(((S.sup E.components).subschemeΞΉ ≫ hom) ⁻¹ᡁ D.complement) le_rfl)
structure FiberModel {X Y : SmoothProjectiveVariety} {E : X.ReducedSNCBoundary}
{D : Y.ReducedSNCBoundary} (f : BoundaryFibration X Y E D) (y : Y.ComplexPoint) where
variety : SmoothProjectiveVariety
inclusion : variety.scheme ⟢ X.scheme
square : IsPullback inclusion variety.structural f.hom y.hom
boundary : variety.ReducedSNCBoundary
boundary_pullback : boundary.ideal = E.ideal.comap inclusion
def VeryGenerally (Y : SmoothProjectiveVariety) (P : Y.ComplexPoint β†’ Prop) : Prop :=
βˆƒ Z : β„• β†’ TopologicalSpace.Closeds Y.scheme,
(βˆ€ n, Z n β‰  ⊀) ∧ βˆ€ y : Y.ComplexPoint, (βˆ€ n, y.point βˆ‰ Z n) β†’ P y
end SmoothProjectiveVariety
end ReverseLogKodaira
namespace ReverseLogKodaira.SmoothProjectiveVariety
theorem veryGenerally_fiber_negative_branch
{X Y : SmoothProjectiveVariety} {E : X.ReducedSNCBoundary} {D : Y.ReducedSNCBoundary}
(f : StratumSmoothFibration X Y E D) :
VeryGenerally Y fun y => y.point ∈ D.complement ∧
βˆ€ F : FiberModel f.toBoundaryFibration y, F.boundary.kodaira = βŠ₯ β†’
E.kodaira = D.kodaira + F.boundary.kodaira ∧
βˆ€ (m : β„•), 0 < m β†’ βˆ€ s : X.RationalPluriform m, s ∈ E.sections m β†’ s = 0 := by sorry
end ReverseLogKodaira.SmoothProjectiveVariety
end
end OAI