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.EtalePointPairingCoordinates |
| 2 | |
| 3 | /-! # Etale Point Pairing Aligned -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.EtalePointPairingAligned |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The coefficient pairing, joined through its separately checked native residue coordinates. -/ |
| 10 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial _root_.Module Opposite _root_.HomologicalComplex |
| 11 | set_option backward.defeqAttrib.useBackward true |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | set_option backward.isDefEq.respectTransparency.types false |
| 14 | universe u |
| 15 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveCoefficient.HomLocal OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 17 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] [Module.Injective R R] |
| 18 | [IsArtinianRing R] [IsLocalRing R] {n c g : ℕ} (hcg : c+g=n+1) |
| 19 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 20 | Projective.LocalAdjunction.ambientAlgebra Projective.ParameterChart.coordinateOrder |
| 21 | attribute [local instance] Finite.FlatCoefficientSections.quotientAlgebra |
| 22 | Finite.FlatCoefficientSections.coefficientAlgebra Finite.FlatCoefficientSections.ambientAlgebra |
| 23 | variable (X Y : Over (Spec (CommRingCat.of R))) [Nonempty X.left] (f : Y ⟶ X) |
| 24 | [IsFinite f.left] [Etale f.left] |
| 25 | (i : X ⟶ Projective.IntrinsicOverlap.Intrinsic.model R (n+1)) [IsClosedImmersion i.left] |
| 26 | [Smooth X.hom] [IsProper X.hom] [GeometricallyConnected X.hom] |
| 27 | [Smooth Y.hom] [IsProper Y.hom] [GeometricallyConnected Y.hom] |
| 28 | [SmoothOfRelativeDimension g X.hom] |
| 29 | (s₀ : Spec (CommRingCat.of R) ⟶ Y.left) (hbase : s₀ ≫ Y.hom = 𝟙 _) |
| 30 | (B : ℕ) (hB : n+2≤B) |
| 31 | (U : (Projective.IntrinsicOverlap.Intrinsic.space R (n+1)).Opens) (hU : IsAffineOpen U) |
| 32 | (hcontains : ⊤ ≤ ((s₀ ≫ f.left) ≫ i.left) ⁻¹ᵁ U) |
| 33 | (k : Fin (n+2)) (hUk : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) k) |
| 34 | (s : Fin c → Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U)) |
| 35 | (hs : Koszul.OrientedTopCohomology.ideal Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) s = Projective.LocalAdjunction.ideal X i U hU) |
| 36 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) (List.ofFn s)) |
| 37 | (bI : Basis (Fin c) (Projective.LocalAdjunction.quotient X i U hU) (Projective.LocalAdjunction.ideal X i U hU).Cotangent) |
| 38 | (hI : ∀ a, bI a = (Projective.LocalAdjunction.ideal X i U hU).toCotangent |
| 39 | (ConormalKoszulPurity.conormalVectors Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) (Projective.LocalAdjunction.ideal X i U hU) s hs a)) |
| 40 | (bQ : Basis (Fin g) (Projective.LocalAdjunction.quotient X i U hU) Ω[Projective.LocalAdjunction.quotient X i U hU⁄R]) |
| 41 | (t : Fin g → Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U)) |
| 42 | (ht : ∀ a, bQ a = KaehlerDifferential.D R (Projective.LocalAdjunction.quotient X i U hU) |
| 43 | (Ideal.Quotient.mk (Projective.LocalAdjunction.ideal X i U hU) (t a))) |
| 44 | (hst : KoszulPartial.Resolution.pointIdeal Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) s t = |
| 45 | ((s₀ ≫ f.left) ≫ i.left).ker.ideal ⟨U,hU⟩) |
| 46 | (hregst : RingTheory.Sequence.IsWeaklyRegular Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) (List.ofFn (Fin.append s t))) |
| 47 | (b : Basis (Fin (n+1)) Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) Ω[Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U)⁄R]) |
| 48 | (hb : (fun a : Fin (c+g) => b (Fin.cast hcg a)) = |
| 49 | Fin.append (fun a => KaehlerDifferential.D R Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) (s a)) |
| 50 | (fun a => KaehlerDifferential.D R Γ(Projective.IntrinsicOverlap.Intrinsic.space R (n+1), U) (t a))) |
| 51 | (τ : Type u) [Fintype τ] |
| 52 | [Algebra (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 53 | [IsScalarTower R (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 54 | [Algebra.Etale (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 55 | |
| 56 | attribute [local instance] EtalePointPairingData.composite_smooth |
| 57 | EtalePointPairingData.composite_proper EtalePointPairingData.composite_connected |
| 58 | open OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.EtalePointPairingData |
| 59 | |
| 60 | private theorem join {A : Type*} {a b c d e f : A} |
| 61 | (hab : a = b) (hcd : c = d) (hef : e = f) (hbc : b = c) (hde : d = e) : a = f := |
| 62 | hab.trans (hbc.trans (hcd.trans (hde.trans hef))) |
| 63 | |
| 64 | abbrev comparison (x : Finite.FlatCoefficientSections.coefficientRing f.left i.left U) := by |
| 65 | have hp := EtalePointPairingData.pairingPoint (hcg := hcg) (X := X) (Y := Y) (f := f) (i := i) |
| 66 | (s₀ := s₀) (hbase := hbase) (B := B) (hB := hB) (U := U) (hU := hU) |
| 67 | (k := k) (hUk := hUk) (s := s) (hs := hs) (hreg := hreg) |
| 68 | (bI := bI) (hI := hI) (bQ := bQ) (t := t) (ht := ht) (hst := hst) |
| 69 | (b := b) (hb := hb) (τ := τ) x |
| 70 | have hr := EtalePointPairingData.weightedResidue (hcg := hcg) (X := X) (Y := Y) (f := f) (i := i) |
| 71 | (s₀ := s₀) (hbase := hbase) (B := B) (hB := hB) (U := U) (hU := hU) |
| 72 | (hcontains := hcontains) (k := k) (hUk := hUk) (s := s) (hs := hs) (hreg := hreg) |
| 73 | (t := t) (hst := hst) (hregst := hregst) (b := b) x |
| 74 | have hm := EtalePointPairingCoordinates.image (hcg := hcg) (X := X) (Y := Y) (f := f) (i := i) |
| 75 | (s₀ := s₀) (hbase := hbase) (B := B) (hB := hB) (U := U) (hU := hU) |
| 76 | (k := k) (hUk := hUk) (s := s) (hs := hs) (hreg := hreg) (t := t) (hst := hst) (b := b) x |
| 77 | exact join hp hm hr (by as_aux_lemma => rfl) (by as_aux_lemma => rfl) |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.EtalePointPairingAligned |