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.AdjunctionGlobalCoordinates |
| 2 | |
| 3 | /-! # Parameter Chart -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.ParameterChart |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Actual normal equations and finite étale coordinates determine |
| 10 | a genuine projective adjunction chart, with its original degree index. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 13 | |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | universe u |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic |
| 20 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] {n c g : ℕ} |
| 21 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 22 | variable (X : Over (Spec (CommRingCat.of R))) (f : X ⟶ IntrinsicOverlap.Intrinsic.model R n) |
| 23 | [IsClosedImmersion f.left] (U : (IntrinsicOverlap.Intrinsic.space R n).Opens) (hU : IsAffineOpen U) |
| 24 | |
| 25 | local instance ambientAlgebra : Algebra R Γ(IntrinsicOverlap.Intrinsic.space R n, U) := |
| 26 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R (IntrinsicOverlap.Intrinsic.model R n) U |
| 27 | |
| 28 | variable (hc : c = n - g) |
| 29 | (s : Fin c → Γ(IntrinsicOverlap.Intrinsic.space R n, U)) |
| 30 | (hs : Koszul.OrientedTopCohomology.ideal Γ(IntrinsicOverlap.Intrinsic.space R n, U) s = LocalAdjunction.ideal X f U hU) |
| 31 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(IntrinsicOverlap.Intrinsic.space R n, U) (List.ofFn s)) |
| 32 | (bI : Module.Basis (Fin c) (LocalAdjunction.quotient X f U hU) (LocalAdjunction.ideal X f U hU).Cotangent) |
| 33 | (hI : ∀ a, bI a = (LocalAdjunction.ideal X f U hU).toCotangent |
| 34 | (ConormalKoszulPurity.conormalVectors Γ(IntrinsicOverlap.Intrinsic.space R n, U) (LocalAdjunction.ideal X f U hU) s hs a)) |
| 35 | (bQ : Module.Basis (Fin g) (LocalAdjunction.quotient X f U hU) Ω[LocalAdjunction.quotient X f U hU⁄R]) |
| 36 | (τ : Type u) [Fintype τ] |
| 37 | [Algebra (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U))] |
| 38 | [IsScalarTower R (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U))] |
| 39 | [Algebra.Etale (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U))] |
| 40 | |
| 41 | local instance coordinateOrder : LinearOrder τ := |
| 42 | LinearOrder.lift' (Fintype.equivFin τ) (Fintype.equivFin τ).injective |
| 43 | |
| 44 | def data : AdjunctionCharts.Data X f g U hU := by |
| 45 | subst c |
| 46 | exact |
| 47 | { equations := s |
| 48 | generates := hs |
| 49 | regular := hreg |
| 50 | conormalBasis := bI |
| 51 | conormalBasis_apply := hI |
| 52 | quotientBasis := bQ |
| 53 | coordinateIndex := τ |
| 54 | finiteVariables := inferInstance |
| 55 | coordinates := inferInstance |
| 56 | coordinateTower := inferInstance |
| 57 | coordinateEtale := inferInstance } |
| 58 | |
| 59 | variable [Smooth X.hom] (j : Fin (n + 1)) (B : ℕ) (hB : n + 1 ≤ B) |
| 60 | (hg : g ≤ n) (i : Fin (n + 1)) (hUi : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) |
| 61 | |
| 62 | theorem data_sectionIso : |
| 63 | (Affine.ModuleExactSections.sections U).mapIso |
| 64 | (eqToIso (congrArg (fun d => (LocalAdjunction.dual X f j B).homology d) hc)) ≪≫ |
| 65 | (data X f U hU hc s hs hreg bI hI bQ τ).sectionIso X f g i hUi j B hB hg = |
| 66 | LocalAdjunction.sectionIso X f j B hB U hU i hUi |
| 67 | ((congrArg (fun d => d + g) hc).trans (Nat.sub_add_cancel hg)) s hs hreg bI bQ τ := by |
| 68 | subst c |
| 69 | simp only [eqToIso_refl, Functor.mapIso_refl, Iso.refl_trans] |
| 70 | rfl |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.ParameterChart |