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.NumberTheory.PadicHodge.IntegralComparison.Projective.LocalAdjunction |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.ComplementAdjunction |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ClosedCoordinateNeighborhood |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Closed.ComplementNeighborhood |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.RelativeDimension |
| 6 | |
| 7 | /-! # Adjunction Charts -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.AdjunctionCharts |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Genuine affine charts for the adjunction map, including the |
| 14 | complement of the closed subscheme. Smooth projective geometry supplies |
| 15 | a basis of these charts. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 18 | |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.LocalAdjunction |
| 20 | |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | set_option backward.defeqAttrib.useBackward true |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] {n : ℕ} |
| 28 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 29 | |
| 30 | variable (X : Over (Spec (CommRingCat.of R))) (f : X ⟶ IntrinsicOverlap.Intrinsic.model R n) |
| 31 | [IsClosedImmersion f.left] (g : ℕ) |
| 32 | |
| 33 | local instance ambientAlgebra (U : (IntrinsicOverlap.Intrinsic.space R n).Opens) : Algebra R Γ(IntrinsicOverlap.Intrinsic.space R n, U) := |
| 34 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R (IntrinsicOverlap.Intrinsic.model R n) U |
| 35 | |
| 36 | structure Data (U : (IntrinsicOverlap.Intrinsic.space R n).Opens) (hU : IsAffineOpen U) where |
| 37 | equations : Fin (n - g) → Γ(IntrinsicOverlap.Intrinsic.space R n, U) |
| 38 | generates : Koszul.OrientedTopCohomology.ideal Γ(IntrinsicOverlap.Intrinsic.space R n, U) equations = LocalAdjunction.ideal X f U hU |
| 39 | regular : RingTheory.Sequence.IsWeaklyRegular Γ(IntrinsicOverlap.Intrinsic.space R n, U) (List.ofFn equations) |
| 40 | conormalBasis : Module.Basis (Fin (n - g)) (LocalAdjunction.quotient X f U hU) (LocalAdjunction.ideal X f U hU).Cotangent |
| 41 | conormalBasis_apply : ∀ a, conormalBasis a = (LocalAdjunction.ideal X f U hU).toCotangent |
| 42 | (ConormalKoszulPurity.conormalVectors Γ(IntrinsicOverlap.Intrinsic.space R n, U) (LocalAdjunction.ideal X f U hU) equations generates a) |
| 43 | quotientBasis : Module.Basis (Fin g) (LocalAdjunction.quotient X f U hU) Ω[LocalAdjunction.quotient X f U hU⁄R] |
| 44 | coordinateIndex : Type u |
| 45 | finiteVariables : Fintype coordinateIndex |
| 46 | coordinates : Algebra (MvPolynomial coordinateIndex R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U)) |
| 47 | coordinateTower : letI := coordinates |
| 48 | IsScalarTower R (MvPolynomial coordinateIndex R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U)) |
| 49 | coordinateEtale : letI := coordinates |
| 50 | Algebra.Etale (MvPolynomial coordinateIndex R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U)) |
| 51 | |
| 52 | structure Chart (U : (IntrinsicOverlap.Intrinsic.space R n).Opens) where |
| 53 | affine : IsAffineOpen U |
| 54 | coordinate : Fin (n + 1) |
| 55 | le_coordinate : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) coordinate |
| 56 | description : Sum (PLift (RingHom.ker (f.left.app U).hom = ⊤)) (Data X f g U affine) |
| 57 | |
| 58 | def Good (U : (IntrinsicOverlap.Intrinsic.space R n).Opens) : Prop := Nonempty (Chart X f g U) |
| 59 | |
| 60 | variable [Smooth X.hom] |
| 61 | |
| 62 | def Data.sectionIso {U : (IntrinsicOverlap.Intrinsic.space R n).Opens} {hU : IsAffineOpen U} (D : Data X f g U hU) |
| 63 | (i : Fin (n + 1)) (hUi : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) |
| 64 | (j : Fin (n + 1)) (B : ℕ) (hB : n + 1 ≤ B) (hg : g ≤ n) : |
| 65 | (Affine.ModuleExactSections.sections U).obj ((LocalAdjunction.dual X f j B).homology (n - g)) ≅ |
| 66 | (Affine.ModuleExactSections.sections U).obj |
| 67 | (Intrinsic.ClosedFormSections.directImage R X (IntrinsicOverlap.Intrinsic.model R n) f g) := by |
| 68 | let := D.finiteVariables |
| 69 | let : LinearOrder D.coordinateIndex := |
| 70 | LinearOrder.lift' (Fintype.equivFin D.coordinateIndex) (Fintype.equivFin D.coordinateIndex).injective |
| 71 | let := D.coordinates |
| 72 | let := D.coordinateTower |
| 73 | let := D.coordinateEtale |
| 74 | exact LocalAdjunction.sectionIso X f j B hB U hU i hUi |
| 75 | (Nat.sub_add_cancel hg) D.equations D.generates D.regular D.conormalBasis D.quotientBasis D.coordinateIndex |
| 76 | |
| 77 | def Chart.sectionIso {U : (IntrinsicOverlap.Intrinsic.space R n).Opens} (C : Chart X f g U) |
| 78 | (j : Fin (n + 1)) (B : ℕ) (hB : n + 1 ≤ B) (hg : g ≤ n) : |
| 79 | (Affine.ModuleExactSections.sections U).obj ((LocalAdjunction.dual X f j B).homology (n - g)) ≅ |
| 80 | (Affine.ModuleExactSections.sections U).obj |
| 81 | (Intrinsic.ClosedFormSections.directImage R X (IntrinsicOverlap.Intrinsic.model R n) f g) := |
| 82 | match C.description with |
| 83 | | Sum.inl h => ComplementAdjunction.sectionIso f.left j B (n + 1) hB |
| 84 | U C.affine C.coordinate C.le_coordinate h.down (n - g) (GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R X g) |
| 85 | | Sum.inr D => D.sectionIso X f g C.coordinate C.le_coordinate j B hB hg |
| 86 | |
| 87 | omit [Smooth X.hom] in |
| 88 | theorem exists_neighborhood [IsProper X.hom] [SmoothOfRelativeDimension g X.hom] |
| 89 | (U : (IntrinsicOverlap.Intrinsic.space R n).Opens) (y : IntrinsicOverlap.Intrinsic.space R n) (hy : y ∈ U) : |
| 90 | ∃ (V : (IntrinsicOverlap.Intrinsic.space R n).Opens), IsAffineOpen V ∧ Good X f g V ∧ y ∈ V ∧ V ≤ U := by |
| 91 | classical |
| 92 | let : Smooth X.hom := SmoothOfRelativeDimension.smooth g X.hom |
| 93 | let : SmoothOfRelativeDimension n (IntrinsicOverlap.Intrinsic.model R n).hom := by |
| 94 | change SmoothOfRelativeDimension n (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n + 1))) |
| 95 | simpa only [Fintype.card_fin, Nat.add_sub_cancel] using |
| 96 | (RelativeDimension.smooth (R := R) (σ := Fin (n + 1))) |
| 97 | let : LocallyOfFiniteType (IntrinsicOverlap.Intrinsic.model R n).hom := AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ_locallyOfFiniteType |
| 98 | let : IsLocallyNoetherian (IntrinsicOverlap.Intrinsic.model R n).left := LocallyOfFiniteType.isLocallyNoetherian (IntrinsicOverlap.Intrinsic.model R n).hom |
| 99 | have hcover : y ∈ ⨆ i : Fin (n + 1), AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i := by |
| 100 | rw [AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.iSup_coordinateOpen_eq_top] |
| 101 | trivial |
| 102 | obtain ⟨i, hyi⟩ := TopologicalSpace.Opens.mem_iSup.mp hcover |
| 103 | by_cases himage : y ∈ Set.range f.left |
| 104 | · obtain ⟨x, rfl⟩ := himage |
| 105 | obtain ⟨V, hV, hVU, hxV, τ, hτ, a, hcoords, c, s, hs, hr, bI, hbI, hc, ⟨bQ⟩⟩ := |
| 106 | IntegralComparison.Smooth.ClosedCoordinateNeighborhood.exists_neighborhood R X (IntrinsicOverlap.Intrinsic.model R n) f n g |
| 107 | (U ⊓ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) x ⟨hy, hyi⟩ |
| 108 | subst c |
| 109 | let D : Data X f g V hV := |
| 110 | { equations := s |
| 111 | generates := hs |
| 112 | regular := hr.toIsWeaklyRegular |
| 113 | conormalBasis := bI |
| 114 | conormalBasis_apply := hbI |
| 115 | quotientBasis := bQ |
| 116 | coordinateIndex := τ |
| 117 | finiteVariables := hτ |
| 118 | coordinates := a |
| 119 | coordinateTower := hcoords.1 |
| 120 | coordinateEtale := hcoords.2 } |
| 121 | exact ⟨V, hV, ⟨⟨hV, i, hVU.trans inf_le_right, Sum.inr D⟩⟩, hxV, hVU.trans inf_le_left⟩ |
| 122 | · obtain ⟨V, hV, hVU, hyV, hunit⟩ := Closed.ComplementNeighborhood.exists_affine f.left |
| 123 | (U ⊓ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) y ⟨hy, hyi⟩ himage |
| 124 | exact ⟨V, hV, ⟨⟨hV, i, hVU.trans inf_le_right, Sum.inl ⟨hunit⟩⟩⟩, hyV, hVU.trans inf_le_left⟩ |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.AdjunctionCharts |