Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SourceFamilyFiberCoefficient |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SourceHorizontalCycle |
| 3 | |
| 4 | /-! # Source Fiber Contributing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SourceFiberContributing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Every nonzero endpoint intersection contribution comes from the |
| 11 | finite native fiber-prime expansion. This rules out missing original |
| 12 | cycle coefficients when reindexing the local formula. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | open scoped Classical |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.FamilyOnSource.Family OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SourceFamilyFiberCoefficient.Family |
| 21 | |
| 22 | theorem exists_prime (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 23 | (A : (Matrix (Fin (X.ambientDimension + 1)) (Fin (X.ambientDimension + 1)) ℂ)ˣ) |
| 24 | (m p : ℕ) [SmoothOfRelativeDimension m X.structureMap] |
| 25 | (D : IrreducibleCloseds (Projective.FamilyOnSource.Family.space X A)) |
| 26 | (hη : ((CycleClass.Geometric.GenericPoint.reducedSupportι D ≫ CompactHorizontalFamilyFiber.Family.parameter X A) ≫ Projective.FamilyIs.MatrixParameterOpen.affine) |
| 27 | (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme D)) = genericPoint (Foundations.Scheme.ProjectiveSpace.projectiveSpace 1)) |
| 28 | (hDdim : Foundations.Scheme.SupportDimension.supportTranscendenceDimension D (SourceConstantFamily.FamilyRegularity.base X A) + p = m + 1) |
| 29 | (a : ℂ) (ha : (Polynomial.MatrixPath.determinant A).eval a ≠ 0) |
| 30 | (B C : IrreducibleCloseds X.carrier) |
| 31 | (hxD : Projective.FamilyOnSource.Family.specialization X A a ha (CycleClass.Thom.IntersectionGeometry.supportPoint C) ∈ (D : Set (Projective.FamilyOnSource.Family.space X A))) |
| 32 | (F : Finset (PrimeSpectrum ((Projective.FamilyOnSource.Family.space X A).presheaf.stalk (Projective.FamilyOnSource.Family.specialization X A a ha (CycleClass.Thom.IntersectionGeometry.supportPoint C))))) |
| 33 | (hout : ∀ v, Foundations.Scheme.SupportDimension.supportTranscendenceDimension |
| 34 | (Stalk.DivisorSupport.primeClosure (Projective.FamilyOnSource.Family.space X A) (Projective.FamilyOnSource.Family.specialization X A a ha (CycleClass.Thom.IntersectionGeometry.supportPoint C)) v) |
| 35 | (SourceConstantFamily.FamilyRegularity.base X A) = Foundations.Scheme.SupportDimension.supportTranscendenceDimension D (SourceConstantFamily.FamilyRegularity.base X A) - 1 → |
| 36 | v ∉ F → FiltrationBaseLength.length |
| 37 | ((Projective.FamilyOnSource.Family.space X A).presheaf.stalk (Projective.FamilyOnSource.Family.specialization X A a ha (CycleClass.Thom.IntersectionGeometry.supportPoint C))) (Localization.AtPrime v.asIdeal) |
| 38 | (.of _ (QuotSMulTop (Affine.ParameterFiber.germ ℂ (CompactHorizontalFamilyFiber.Family.parameter X A) |
| 39 | (Projective.FamilyOnSource.Family.specialization X A a ha (CycleClass.Thom.IntersectionGeometry.supportPoint C)) a) |
| 40 | (CycleClass.Thom.IntersectionGeometry.localSupportModule (Projective.FamilyOnSource.Family.space X A) D (Projective.FamilyOnSource.Family.specialization X A a ha (CycleClass.Thom.IntersectionGeometry.supportPoint C)) hxD))) = 0) |
| 41 | (W : X.DimensionCycleSupport p) (hW : SourceHorizontalCycle.cycle X A D hη p a W ≠ 0) |
| 42 | (hI : CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X W.val B C ≠ 0) : |
| 43 | ∃ v ∈ F, SourceFamilyFiberCoefficient.Family.fiberSupport X A a ha (CycleClass.Thom.IntersectionGeometry.supportPoint C) v = W.val := by |
| 44 | let Z := Projective.FamilyOnSource.Family.space X A |
| 45 | let x := CycleClass.Thom.IntersectionGeometry.supportPoint C |
| 46 | let y := Projective.FamilyOnSource.Family.specialization X A a ha x |
| 47 | let t := CompactHorizontalFamilyFiber.Family.parameter X A |
| 48 | let r := Affine.ParameterFiber.germ ℂ t y a |
| 49 | have hxW : x ∈ (W.val : Set X.carrier) := by |
| 50 | by_contra hn |
| 51 | apply hI |
| 52 | exact dite_eq_right (fun h => hn h.1) |
| 53 | let v := SourceFamilyFiberCoefficient.Primes.lift X A a ha x W.val hxW |
| 54 | have hvW : SourceFamilyFiberCoefficient.Family.fiberSupport X A a ha x v = W.val := SourceFamilyFiberCoefficient.Primes.lift_support X A a ha x W.val hxW |
| 55 | have hvim : Z.fromSpecStalk y v = Projective.FamilyOnSource.Family.specialization X A a ha (CycleClass.Thom.IntersectionGeometry.supportPoint W.val) := |
| 56 | SourceFamilyFiberCoefficient.Primes.lift_image X A a ha x W.val hxW |
| 57 | have hweight : GlobalParameterSum.Weights.weight Z (Projective.FamilyOnSource.Family.specialization X A a ha (CycleClass.Thom.IntersectionGeometry.supportPoint W.val)) |
| 58 | (Affine.ParameterFiber.germ ℂ t (Projective.FamilyOnSource.Family.specialization X A a ha (CycleClass.Thom.IntersectionGeometry.supportPoint W.val)) a) D ≠ 0 := by |
| 59 | rw [← SourceHorizontalCycle.coefficient X A D hη p a ha W] |
| 60 | exact hW |
| 61 | have hWD : Projective.FamilyOnSource.Family.specialization X A a ha (CycleClass.Thom.IntersectionGeometry.supportPoint W.val) ∈ (D : Set Z) := by |
| 62 | by_contra hn |
| 63 | exact hweight (dite_eq_right hn) |
| 64 | have hvD : v ∈ Module.support (Z.presheaf.stalk y) (CycleClass.Thom.IntersectionGeometry.localSupportModule Z D y hxD) := by |
| 65 | apply (GeometricSupportLocalization.mem_iff Z D y hxD v).mpr |
| 66 | rw [hvim] |
| 67 | exact hWD |
| 68 | have hdim := SourceFamilyFiberCoefficient.Primes.dimension X A a ha x v (SourceFamilyFiberCoefficient.Primes.lift_kernel X A a ha x W.val hxW) |
| 69 | rw [hvW] at hdim |
| 70 | change Foundations.Scheme.SupportDimension.supportTranscendenceDimension W.val X.structureMap = |
| 71 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure Z y v) |
| 72 | (SourceConstantFamily.FamilyRegularity.base X A) at hdim |
| 73 | have hWdim := Grading.supportDimension_add_codimension X m W.val |
| 74 | rw [W.property] at hWdim |
| 75 | have hvdim : Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure Z y v) |
| 76 | (SourceConstantFamily.FamilyRegularity.base X A) = Foundations.Scheme.SupportDimension.supportTranscendenceDimension D (SourceConstantFamily.FamilyRegularity.base X A) - 1 := by |
| 77 | omega |
| 78 | refine ⟨v, ?_, hvW⟩ |
| 79 | by_contra hvF |
| 80 | have hz := hout v hvdim hvF |
| 81 | have hr := SourceFamilyFiberCoefficient.Family.horizontal_nonzero Z D t hη y hxD a |
| 82 | have he := IntrinsicParameterLength.Intrinsic.weight Z D t y hxD a v hvD hr |
| 83 | rw [hz, ENat.toNat_zero, Nat.cast_zero] at he |
| 84 | rw [hvim] at he |
| 85 | exact hweight he.symm |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SourceFiberContributing |