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.ProjectivePoint.ResidueCochainApply |
| 2 | |
| 3 | /-! # Residue Reference Value -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.ResidueReferenceValue.Reference |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The exact scalar expression in the original point comparison is |
| 10 | the residue of the original point class, before applying a coefficient |
| 11 | weight or a differential-symbol map. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial Opposite _root_.HomologicalComplex |
| 13 | set_option backward.defeqAttrib.useBackward true |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | universe u |
| 17 | |
| 18 | private abbrev equalityLeft {A : Sort*} {a b : A} (_ : a = b) : A := a |
| 19 | |
| 20 | private theorem normalize {A B : Type*} {f g : A → B} {x : A} {y : B} |
| 21 | (hfg : ∀ a, f a = g a) (hgy : g x = y) : f x = y := |
| 22 | (hfg x).trans hgy |
| 23 | |
| 24 | private theorem replace_lhs {A : Sort*} {a b c : A} (h : a = b) (hc : c = a) : c = b := |
| 25 | hc.trans h |
| 26 | |
| 27 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic |
| 28 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] [Module.Injective R R] |
| 29 | [IsArtinianRing R] [IsLocalRing R] {n g : ℕ} |
| 30 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 31 | variable (X : Over (Spec (CommRingCat.of R))) [Nonempty X.left] |
| 32 | (i : X ⟶ Projective.IntrinsicOverlap.Intrinsic.model R (n+1)) [IsClosedImmersion i.left] |
| 33 | [Smooth X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] |
| 34 | [SmoothOfRelativeDimension g X.hom] |
| 35 | (s₀ : Spec (CommRingCat.of R) ⟶ X.left) [IsClosedImmersion s₀] |
| 36 | (hbase : s₀ ≫ X.hom = 𝟙 _) (B : ℕ) (hB : n+2 ≤ B) |
| 37 | (U : (Projective.IntrinsicOverlap.Intrinsic.space R (n+1)).Opens) (hU : IsAffineOpen U) |
| 38 | (D : PointParameterData.Chart.Data X i s₀ g U hU) |
| 39 | attribute [local instance] IntegralComparison.Smooth.ProjectivePointTransfer.sourceSeparated |
| 40 | IntegralComparison.Smooth.ProjectiveSectionClassData.composite_smooth |
| 41 | IntegralComparison.Smooth.ProjectiveFormTrace.composite_proper |
| 42 | IntegralComparison.Smooth.ProjectiveFormTrace.composite_connected |
| 43 | ResidueClassData.Coordinates.sectionAlgebra |
| 44 | ResidueClassData.Coordinates.scalar_qc |
| 45 | ResidueClassData.Coordinates.scalar_finite |
| 46 | ResidueClassData.Coordinates.line_qc |
| 47 | |
| 48 | def value : ResidueMapData.Coordinates.output X i s₀ U hU D := |
| 49 | equalityLeft (ResidueClass.fixedPoint i.left s₀ |
| 50 | (IntegralComparison.Smooth.ProjectiveSectionClassData.section_over X i s₀ hbase) B hB U hU D.contains |
| 51 | D.coordinate D.below_coordinate (ResidueData.frame X i s₀ U hU D) |
| 52 | D.equations D.parameters D.generates D.point_generates D.regular D.point_regular D.dimension) |
| 53 | |
| 54 | attribute [local irreducible] HomologicalComplex.homology |
| 55 | |
| 56 | abbrev normalized := normalize |
| 57 | (ResidueCochainApply.comparison X i s₀ B U hU D) |
| 58 | (ResidueNormalization.comparison X i s₀ hbase B hB U hU D) |
| 59 | |
| 60 | omit [IsArtinianRing R] [IsLocalRing R] [Nonempty ↥X.left] [Smooth X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] [SmoothOfRelativeDimension g X.hom] in |
| 61 | theorem comparison : value X i s₀ hbase B hB U hU D = |
| 62 | ResidueData.residue X i s₀ hbase B hB U hU D := by |
| 63 | exact replace_lhs (normalized X i s₀ hbase B hB U hU D) (by as_aux_lemma => rfl) |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.ResidueReferenceValue.Reference |