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.Smooth.ProjectiveSectionClassData |
| 2 | |
| 3 | /-! # Projective Section Class -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ProjectiveSectionClass |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The scalar point class has trace one under the original proper |
| 10 | top-form trace. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 13 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.TopTracePairing OAI.NumberTheory.PadicHodge.IntegralComparison.NegativeTwistResidueNaturality |
| 14 | |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | private theorem replace_unit {A B : Type*} [One B] (F : A → B) |
| 20 | {a b : A} (h : a = b) (hF : F a = 1) : F b = 1 := h ▸ hF |
| 21 | |
| 22 | universe u |
| 23 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] [Module.Injective R R] |
| 24 | [IsArtinianRing R] [IsLocalRing R] {n : ℕ} |
| 25 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 26 | |
| 27 | variable (X : Over (Spec (CommRingCat.of R))) [Nonempty X.left] |
| 28 | (i : X ⟶ Projective.IntrinsicOverlap.Intrinsic.model R (n + 1)) [IsClosedImmersion i.left] |
| 29 | [Smooth X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] |
| 30 | (s : Spec (CommRingCat.of R) ⟶ X.left) (hs : s ≫ X.hom = 𝟙 _) |
| 31 | (B : ℕ) (hB : n + 2 ≤ B) (g : ℕ) [SmoothOfRelativeDimension g X.hom] |
| 32 | |
| 33 | attribute [local instance] ProjectiveSectionClassData.composite_smooth ProjectiveFormTrace.composite_dimension |
| 34 | ProjectiveFormTrace.composite_proper ProjectiveFormTrace.composite_connected |
| 35 | |
| 36 | local notation "M" => OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.SectionClass.scalar i.left |
| 37 | local notation "P" => OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.SectionClass.point i.left s |
| 38 | local notation "hn" => Fintype.card_fin (n + 2) |
| 39 | local notation "π" => OAI.AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n + 2)) |
| 40 | local notation "hsec" => OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ProjectiveSectionClassData.section_over X i s hs |
| 41 | |
| 42 | theorem pure_trace_one : |
| 43 | ProjectivePureTrace.trace i.left B n hn hB g |
| 44 | (ProjectiveSectionClassData.pureClass X i s hs B hB g) = 1 := by |
| 45 | let : Subsingleton (Spec (.of R)) := Ring.KrullDimLE.subsingleton_primeSpectrum R |
| 46 | let : IsClosedImmersion s := isClosedImmersion_of_comp_eq_id (i.left ≫ π) s hsec |
| 47 | let : (P).IsQuasicoherent := Finite.MapPureTrace.coefficients_quasicoherent s i.left |
| 48 | let : (P).IsFiniteType := Finite.MapPureTrace.coefficients_finiteType s i.left |
| 49 | have h := Projective.UnitPureClass.trace_one M P B n hn hB |
| 50 | (Cech.StructurePullbackUnit.sheafMap s i.left) |
| 51 | (Projective.SectionClass.scalarUnitIso i.left s hsec) |
| 52 | (Projective.SectionClass.pointUnitIso i.left s hsec) |
| 53 | (Projective.SectionClass.unit_preserved i.left s hsec) |
| 54 | (n + 1 - g) (ProjectiveSerre.exactAt i.left B n hn hB g) g (ProjectiveSectionClassData.degree X i g) |
| 55 | exact replace_unit |
| 56 | (fun v => SerreUnitTrace.trace (Projective.TopTracePairing.coefficientRing R) |
| 57 | (ProjectivePureTrace.pairing i.left B n hn hB g) v |
| 58 | (ProjectiveSectionClassData.pureClass X i s hs B hB g)) |
| 59 | (ProjectiveSectionClassData.scalarUnit_one X i s hs) h |
| 60 | |
| 61 | theorem trace_one : |
| 62 | ProjectiveFormTrace.trace X i B hB g (ProjectiveSectionClassData.sectionClass X i s hs B hB g) = 1 := by |
| 63 | let H := ProjectiveRefinement.Serre.cohomologyFunctor (R := R) (σ := Fin (n + 2)) g |
| 64 | let e := ProjectiveFormTrace.adjunctionIso X i B hB g |
| 65 | let x := ProjectiveSectionClassData.pureClass X i s hs B hB g |
| 66 | have hx := ConcreteCategory.congr_hom (H.mapIso e).hom_inv_id x |
| 67 | change H.map e.inv (H.map e.hom x) = x at hx |
| 68 | change ProjectivePureTrace.trace i.left B n hn hB g |
| 69 | (H.map e.inv (H.map e.hom x)) = 1 |
| 70 | rw [hx] |
| 71 | exact pure_trace_one X i s hs B hB g |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ProjectiveSectionClass |