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.HodgeConjecture.HeckeCycles.ProjectiveOrdinaryReference |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.VanishingReferenceTheta |
| 3 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.SourceGeometric.ThetaArithmetic |
| 4 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GivenActionComparison |
| 5 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceActiveIndex |
| 6 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.LabeledGoodPrime |
| 7 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.IsogenyQuotient.Intrinsic |
| 8 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ProjectiveGeometricThetaPrepared |
| 9 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.SourceGeometric.ThetaRealization |
| 10 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.ConcreteRestriction |
| 11 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.CofinalExtraction |
| 12 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ElementaryDivisors |
| 13 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Definitions |
| 14 | |
| 15 | /-! # Projective -/ |
| 16 | |
| 17 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Projective.CM |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | /-! HeckeCycles for the original source family, conditional on the complete named |
| 22 | prerequisites other than AdelicTheta. Projective openness, integral SL3 |
| 23 | perfectness and the actual reference cover supply the original source |
| 24 | stabilization. The ordinary model, actual IsogenyQuotient correspondences, source |
| 25 | GeometricTheta witness, Hecke parameters, Hodge projectors, and cofinal restrictions |
| 26 | are constructed in the proof. -/ |
| 27 | |
| 28 | open scoped Classical TensorProduct _root_.NumberField BigOperators _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 29 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 30 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum.CM |
| 31 | open OAI.RepresentationTheory.Hecke.RadialDilation.Cm |
| 32 | |
| 33 | theorem extraction_from_named_inputs |
| 34 | (E : IntermediateField ℚ ℂ) [NumberField E] [IsGalois ℚ E] [NumberField.IsCMField E] |
| 35 | (v : ComplexMultiplication.OddSignSwitch.CM.OddSignPattern (fun τ : Gal(E/ℚ) => ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ)) (hv : v.val 1 = true) |
| 36 | (d : Gal(E/ℚ) → Bool) (hd : ∀ τ, d τ = v.val τ⁻¹) |
| 37 | (Nbase : ℕ) (hNbase : 0 < Nbase) |
| 38 | (X : ℕ → Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 39 | (H : ∀ N, ComplexMultiplication.WeightOne.CM.WeightOneHodgeStructure ((X N).rationalCohomology 1)) |
| 40 | (hH : ∀ N, Albanese.Definitions.CM.HodgeComparison.IsCanonicalH1 (X N) (H N)) |
| 41 | (Θ : ∀ N, ComplexMultiplication.WeightOne.CM.Complexification ((X N).rationalCohomology 1)) |
| 42 | (hsource : GeometricSource.CM.IsSourceBallThetaFamily E d Nbase X Θ) |
| 43 | (hCongruenceLevel : ∀ s, ReferenceDatum.CM.CongruenceLevelInput E s) (hReferenceFamily : Moduli.CM.ReferenceFamilyInput) (hIntegralModel : ArithmeticModels.CM.IntegralModelInput) |
| 44 | (hNeighborCounting : Neighbor.Counting.CM.NeighborCountingInput) |
| 45 | (hFrobeniusKernel : Isogenies.NeighborCounting.Prerequisites.FullFrobeniusKernelInput) |
| 46 | (hCMPoints : AbelianScheme.FrobeniusKernel.CMPoints.Construction.CMPointsInput.{0, 0}) |
| 47 | (hCartierDuality : AbelianScheme.FrobeniusKernel.CartierDuality.Construction.FullCartierDualityInput.{0}) (hTorsionQuotient : AbelianScheme.IsogenyQuotient.Unit.Construction.TorsionQuotientInput.{0}) |
| 48 | (hLefschetzNormalization : RepresentationTheory.Hecke.RadialDilation.Prerequisites.Core.LefschetzNormalization.Proposition E) |
| 49 | (hCotangentBundle : ∀ (B A : Type) [CommSemiring B] [CommGroup A], @RepresentationTheory.Hecke.RadialDilation.Prerequisites.Core.CotangentBundle.Proposition B A _ _) |
| 50 | (hCompletedTheta : ∀ (I : Type) [Fintype I] [DecidableEq I], @RepresentationTheory.Hecke.RadialDilation.Prerequisites.Core.Theta.Proposition I _ _) |
| 51 | (hNormOneApproximation : RepresentationTheory.Hecke.RadialDilation.Prerequisites.Core.NormOneApproximation.Proposition) (hLocalWeil : RepresentationTheory.Hecke.RadialDilation.Prerequisites.Core.LocalWeil.Proposition) |
| 52 | (hPoissonAutomorphy : PoissonAutomorphy.CM.PoissonAutomorphyInput.{0, 0, 0, 0}) |
| 53 | (hTateComparison : TateComparison.CM.TateComparisonInput) (hGeometricTheta : Geometric.Theta.CM.GeometricThetaInput) |
| 54 | (hConstruction : PELModuli.IntegralModel.Albanese.ConstructionInput) (hHodgeComparison : PELModuli.IntegralModel.AlbaneseCohomology.HodgeComparisonInput) |
| 55 | (hHodgeDecomposition : CMExtraction.Mem.HodgeDecompositionInput) |
| 56 | (hElementaryDivisors : AbelianScheme.IsogenyQuotient.ElementaryDivisors.Construction.ElementaryDivisorsInput.{0}) |
| 57 | (hGeometricComparison : NumberTheory.PadicHodge.GeometricComparisonAdapter.CM.ExtremeSlopes.GeometricComparisonInput) |
| 58 | (hCMExtraction : MatchedLevelExtraction.CM.Construction.CMExtractionInput.{0, 0, 0, 0}) : |
| 59 | ∃ N₀ : ℕ, 0 < N₀ ∧ Nbase ∣ N₀ ∧ |
| 60 | ∀ N, 0 < N → N₀ ∣ N → Θ N ∈ MatchedLevelExtraction.CM.Construction.lineImageSpan E v (H N) := by |
| 61 | obtain ⟨B, places, L, φ, P, hP, hb, hμ, hzero, N, hN3, _hbaseN, _hdeep, haux, |
| 62 | F, hF, hball, _hintegral, hprepared, Yref, _component, hΛ, _hYref, ρ, formY, θY, |
| 63 | hρ, hformY, hθY, N₀, hN₀, hbase, hrestrictions⟩ := |
| 64 | ProjectiveOrdinaryReference.CM.OrdinaryReference.source_family_has_prepared_zero_reference |
| 65 | E d Nbase hNbase X H Θ hsource hCongruenceLevel hReferenceFamily hIntegralModel hNeighborCounting hFrobeniusKernel hCMPoints hCartierDuality hTorsionQuotient |
| 66 | (fun _ : Fin 0 => ℚ) ∅ 0 |
| 67 | by_cases hzeroθ : θY = 0 |
| 68 | · refine ⟨N₀, hN₀, hbase, ?_⟩ |
| 69 | intro n hn hdiv |
| 70 | obtain ⟨_π, f, _hπ, _hf, _hs, _hcomp, hθ⟩ := hrestrictions n hn hdiv |
| 71 | rw [← hθ, hzeroθ, map_zero] |
| 72 | exact Submodule.zero_mem _ |
| 73 | let : FiniteDimensional ℚ (Yref.rationalCohomology 1) := |
| 74 | (CMExtraction.Mem.canonicalH1 hHodgeDecomposition Yref.presentation).finiteDimensional |
| 75 | have hnonzero := VanishingReferenceTheta.CM.nonzero_class_detected E L φ P hΛ |
| 76 | Yref N ρ hρ formY hformY θY hθY hzeroθ |
| 77 | obtain ⟨bound, _hboundpos, hprime, Bext, V, r, components, e, hM, hgeometry, |
| 78 | bound', hbound', _hframes, hordinary⟩ := hprepared |
| 79 | let M := Ordinary.Models.CM.singletonModel P (RingHom.id E) E.val.toRingHom N |
| 80 | F Bext V r components e |
| 81 | obtain ⟨q, hq, hordinary⟩ := hordinary |
| 82 | let : Fact q.Prime := ⟨hq⟩ |
| 83 | obtain ⟨hlarge, _hexcluded, _hE, _hK, _hExt, _hfields, j, hsplit, Red, |
| 84 | hgeomRed, labels, hlabels, hactive, hgood, hreductions⟩ := hordinary |
| 85 | have hlarge' : bound < q := lt_of_le_of_lt ((le_max_right 0 bound).trans hbound') hlarge |
| 86 | have hN : 0 < N := lt_of_lt_of_le (by decide : 0 < 3) hN3 |
| 87 | let : NeZero N := ⟨Nat.ne_of_gt hN⟩ |
| 88 | obtain ⟨_, _, _, _, _, _, hsmooth, _⟩ := hM.2.2 (0 : Fin 1) |
| 89 | let : Smooth V.toOver.hom := hsmooth |
| 90 | have hpol : Nat.Coprime q (∏ i, P.polarizationType i) := |
| 91 | (Nat.coprime_pow_right_iff (by decide : 0 < 2) _ _).mp (Red.polarizationPrimeToQ (0 : Fin 1)) |
| 92 | obtain ⟨Cfine, hIsogenyQuotient⟩ := IsogenyQuotient.Intrinsic.CM.exists_paired_realization F hF E.val.toRingHom hball |
| 93 | j M.extendedEmbedding hsplit (ReferenceDatum.CM.source_degree E places).1 (ReferenceDatum.CM.source_degree E places).2 |
| 94 | (Red.levelPrimeToQ (0 : Fin 1)) hpol V components e labels hlabels |
| 95 | let C := IsogenyQuotient.Data.CM.correspondences F V Cfine |
| 96 | let HD := Witt.PELSource.CM.heckeData (q := q) M (0 : Fin 1) C |
| 97 | (fun (w : Fin places.count × Bool) => j.localCharacter M.extendedEmbedding (labels w)) |
| 98 | have hg : HD.HasIntegralModelGeometry := hgeometry q C (fun w => j.localCharacter M.extendedEmbedding (labels w)) |
| 99 | have hqD : HD.IsGoodCompletelySplitPrime := hgood (0 : Fin 1) C |
| 100 | have hc46 : HD.RealizesIsogenyQuotient := hIsogenyQuotient |
| 101 | let : Submodule.IsLattice ℚ P.lattice := ⟨hΛ.1, hΛ.2.1⟩ |
| 102 | let : Submodule.IsLattice ℚ HD.reference.lattice := |
| 103 | inferInstanceAs (Submodule.IsLattice ℚ P.lattice) |
| 104 | let basis := Module.Free.chooseBasis ℤ HD.reference.lattice |
| 105 | let T := SourceGeometric.ThetaCandidate.CM.data E L HD hb basis hN |
| 106 | have hp := ProjectiveGeometricThetaPrepared.CM.at_prime E L HD hb basis hN hμ hg hqD |
| 107 | φ haux hΛ Yref ρ hρ formY hformY hnonzero (hprime q hlarge') |
| 108 | have hstandard := Intrinsic.ReferenceFrame.CM.IntrinsicReference.standard HD (hprime q hlarge').2 |
| 109 | have hout := SourceGeometric.ThetaRealization.CM.realization E L HD hb hμ basis hN hTateComparison hGeometricTheta |
| 110 | hg hqD hc46 hConstruction (ElementaryDivisors.CM.lattices hElementaryDivisors q) hstandard |
| 111 | let W := Classical.choice (Geometric.ThetaWitness.CM.exists_witness T hg hqD hc46 hout) |
| 112 | obtain ⟨Y, Z, hreduce, _hY, _hZ⟩ := hreductions (0 : Fin 1) |
| 113 | have he46 : AbelianScheme.TateComparison.Duality.ElementaryDivisorsInput ℤ_[q] ℚ_[q] := ElementaryDivisors.CM.lattices hElementaryDivisors q |
| 114 | let : CommRing (AbelianScheme.TateComparison.HeckeKernel.Hecke places.count q) := |
| 115 | TateComparisonAction.CM.commutativeHeckeRing places.count q he46 |
| 116 | let : CommRing (AbelianScheme.TateComparison.HeckeKernel.Hecke M.s q) := |
| 117 | inferInstanceAs (CommRing (AbelianScheme.TateComparison.HeckeKernel.Hecke places.count q)) |
| 118 | have hden := LabeledGoodPrime.CM.denominator_coprime M j Red |
| 119 | let fullSide := Constructed.IntrinsicReduction.CM.Intrinsic.multiplicative M hM labels (0 : Fin 1) |
| 120 | obtain ⟨HR, _hR, hbetti, _hint, _hpoly, _hspec, hc⟩ := |
| 121 | GivenActionComparison.CM.comparison_for_given_action M hM j hsplit Red labels hlabels |
| 122 | (0 : Fin 1) hden C ⟨0, hM.1⟩ fullSide hTorsionQuotient Z Y hqD hg hc46 W.action W.realization |
| 123 | hGeometricComparison he46 (hgeomRed.1 (0 : Fin 1)).1 (hgeomRed.1 (0 : Fin 1)).2 hreduce |
| 124 | let AM := AlbaneseModel.CM.comparisonModel HD hg j hden |
| 125 | have hidx := ReferenceActiveIndex.CM.Reference.operators E HD hM.1 hzero W.action fullSide |
| 126 | have hcmp : Constructed.Comparison.CM.Conclusion AM j.fieldInClosure j.complexClosure j.iota HR |
| 127 | (fun i => W.action.basis (Neighbor.Types.CM.integralType P.distinguished fullSide i).val) := |
| 128 | (congrArg (fun idx => Constructed.Comparison.CM.Conclusion AM |
| 129 | j.fieldInClosure j.complexClosure j.iota HR idx) hidx).mpr hc |
| 130 | have hχ := ReferenceActiveIndex.CM.Reference.character E HD hM.1 hzero j labels rfl hactive |
| 131 | have hextract := SourceGeometric.ThetaArithmetic.CM.Extraction.extraction E L HD hb hμ basis hN |
| 132 | hLefschetzNormalization hCotangentBundle hCompletedTheta hNormOneApproximation hLocalWeil hPoissonAutomorphy hTateComparison hConstruction hHodgeComparison hHodgeDecomposition hg hqD hc46 W v hv hd |
| 133 | j hχ fullSide hden he46 HR hbetti hcmp hCMExtraction |
| 134 | have hactual := hextract ⟨Theta.Weil.CM.finiteWeilInput φ, hp.2.2.2.2⟩ |
| 135 | have href := Source.ConcreteRestriction.CM.reference_extraction E L HD hb hμ basis hN hΛ v |
| 136 | hHodgeDecomposition hg hqD hc46 hp.1 W φ hp.2.2.2.2 Yref ρ hρ formY hformY θY hθY |
| 137 | hactual |
| 138 | apply CofinalExtraction.CM.extraction E v hHodgeDecomposition Nbase N₀ hN₀ hbase X H |
| 139 | (fun N => (hH N).1) Θ Yref θY href |
| 140 | intro n hn hdiv |
| 141 | obtain ⟨_π, f, _hπ, hf, _hs, _hcomp, hθ⟩ := hrestrictions n hn hdiv |
| 142 | exact ⟨f, hf, hθ⟩ |
| 143 | |
| 144 | end |
| 145 | |
| 146 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Projective.CM |