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.ProjectiveFinite.CoefficientResidueConcentration |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.CoefficientResidueConcentration |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.CoefficientPurity |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveCoefficient.HomDegreeCoordinates |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.ResidueLocalAdjunction |
| 6 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.FormCoherence |
| 7 | |
| 8 | /-! # Coefficient Residue Total -/ |
| 9 | |
| 10 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.CoefficientResidueTotal |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! The actual finite-coefficient adjunction on the supported total is |
| 15 | its original coefficient residue followed by the same differential symbol. |
| 16 | All purity comes from the finite flat projective geometry. -/ |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial _root_.Module Opposite _root_.HomologicalComplex |
| 18 | |
| 19 | private theorem residue_factor {A : Type*} [Category A] |
| 20 | {P Q S T V W : A} {r : P ⟶ T} {a : P ⟶ Q} {b : Q ⟶ S} |
| 21 | {u : S ⟶ T} {v : T ⟶ W} {d : S ⟶ V} {e : V ⟶ W} |
| 22 | (hr : r = a ≫ b ≫ u) (he : d ≫ e = u ≫ v) : |
| 23 | r ≫ v = a ≫ b ≫ d ≫ e := by |
| 24 | rw [hr] |
| 25 | simp only [Category.assoc] |
| 26 | rw [← he] |
| 27 | |
| 28 | private theorem map_pairing {A B C : Type*} [Category A] [Category B] [Category C] |
| 29 | (S : A ⥤ B) (F : B ⥤ C) {L M N Q : A} |
| 30 | {a : L ⟶ N} {e : N ⟶ Q} {u : L ⟶ M} {v : M ⟶ Q} |
| 31 | (h : a ≫ e = u ≫ v) : |
| 32 | F.map (S.map a) ≫ F.map (S.map e) = F.map (S.map u) ≫ F.map (S.map v) := by |
| 33 | simpa only [Functor.map_comp] using congrArg (fun f => F.map (S.map f)) h |
| 34 | |
| 35 | set_option backward.defeqAttrib.useBackward true |
| 36 | set_option backward.isDefEq.respectTransparency false |
| 37 | set_option backward.isDefEq.respectTransparency.types false |
| 38 | universe u |
| 39 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic |
| 40 | open OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveCoefficient.HomLocal OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 41 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] {c g : ℕ} |
| 42 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 43 | Projective.LocalAdjunction.ambientAlgebra Projective.ParameterChart.coordinateOrder |
| 44 | attribute [local instance] Finite.FlatCoefficientSections.quotientAlgebra |
| 45 | Finite.FlatCoefficientSections.coefficientAlgebra Finite.FlatCoefficientSections.ambientAlgebra |
| 46 | attribute [local instance] ProjectiveCoefficient.HomLocal.scalar_terms |
| 47 | ProjectiveCoefficient.HomLocal.coefficient_terms |
| 48 | variable (X : Over (Spec (CommRingCat.of R))) {Y : Scheme.{u}} |
| 49 | (f : Y ⟶ X.left) [IsFinite f] [Flat f] |
| 50 | (i : X ⟶ Projective.IntrinsicOverlap.Intrinsic.model R (c+g)) [IsClosedImmersion i.left] |
| 51 | [Smooth X.hom] [IsProper X.hom] [SmoothOfRelativeDimension g X.hom] |
| 52 | (j : Fin (c+g+1)) (B : ℕ) (hB : c+g+1≤B) |
| 53 | (U : (Projective.IntrinsicOverlap.Intrinsic.space R (c+g)).Opens) (hU : IsAffineOpen U) |
| 54 | (k : Fin (c+g+1)) (hUk : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) k) |
| 55 | (s : Fin c → Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U)) |
| 56 | (hs : Koszul.OrientedTopCohomology.ideal Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U) s = Projective.LocalAdjunction.ideal X i U hU) |
| 57 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U) (List.ofFn s)) |
| 58 | (bI : Basis (Fin c) (Projective.LocalAdjunction.quotient X i U hU) (Projective.LocalAdjunction.ideal X i U hU).Cotangent) |
| 59 | (hI : ∀ a, bI a = (Projective.LocalAdjunction.ideal X i U hU).toCotangent |
| 60 | (ConormalKoszulPurity.conormalVectors Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U) (Projective.LocalAdjunction.ideal X i U hU) s hs a)) |
| 61 | (bQ : Basis (Fin g) (Projective.LocalAdjunction.quotient X i U hU) Ω[Projective.LocalAdjunction.quotient X i U hU⁄R]) |
| 62 | (t : Fin g → Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U)) |
| 63 | (ht : ∀ a, bQ a = KaehlerDifferential.D R (Projective.LocalAdjunction.quotient X i U hU) |
| 64 | (Ideal.Quotient.mk (Projective.LocalAdjunction.ideal X i U hU) (t a))) |
| 65 | (b : Basis (Fin (c+g)) Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U) Ω[Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U)⁄R]) |
| 66 | (hb : (b : Fin (c+g) → Ω[Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U)⁄R]) = |
| 67 | Fin.append (fun a => KaehlerDifferential.D R Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U) (s a)) |
| 68 | (fun a => KaehlerDifferential.D R Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U) (t a))) |
| 69 | (τ : Type u) [Fintype τ] |
| 70 | [Algebra (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 71 | [IsScalarTower R (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 72 | [Algebra.Etale (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 73 | |
| 74 | variable {ι : Type u} [LinearOrder ι] |
| 75 | (W : ι → Principal.SectionPresheaf.Index U) (q : ℕ) |
| 76 | |
| 77 | include hI ht hb τ in |
| 78 | abbrev mappedAdjunction (x : Finite.FlatCoefficientSections.coefficientRing f i.left U) := |
| 79 | map_pairing |
| 80 | (single ((Principal.SectionPresheaf.Index U)ᵒᵖ ⥤ ModuleCat Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g),U)) (.up ℕ) c) |
| 81 | (Supported.CechHomotopyEquivalence.functor (R := Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g),U)) W q) |
| 82 | (CoefficientResidueAdjunction.comparison |
| 83 | X f i j B hB U hU k hUk s hs hreg bI hI bQ t ht b hb τ x) |
| 84 | |
| 85 | include hI ht hb τ in |
| 86 | abbrev rawComparison (x : Finite.FlatCoefficientSections.coefficientRing f i.left U) := |
| 87 | residue_factor |
| 88 | (CoefficientResidueConcentration.concentration |
| 89 | X f i j B hB U hU k hUk s hs hreg b W q x) |
| 90 | (mappedAdjunction X f i j B hB U hU k hUk s hs hreg bI hI bQ t ht b hb τ W q x) |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.CoefficientResidueTotal |