Download data/lean/ComparatorChallenges/LogKodairaFiberNegative.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 9.88 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/ComparatorChallenges/LogKodairaFiberNegative.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/ComparatorChallenges/LogKodairaFiberNegative.lean
-
curl -L -o LogKodairaFiberNegative.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/ComparatorChallenges/LogKodairaFiberNegative.lean
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 | |