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.Koszul.CoefficientResidueClass |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.FractionQuotient |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechSingleTopCoordinates |
| 4 | import Mathlib.Data.Int.Order.Units |
| 5 | |
| 6 | /-! # Fraction Ordinary Quotient -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.FractionOrdinaryQuotient.Ordinary |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The ordinary full-intersection fraction depends only on its |
| 13 | numerator modulo the point ideal. The proof passes through the original |
| 14 | Koszul residue and retains its signed single-total coordinates. -/ |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.HomologicalComplex |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | universe u |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Fractions OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Components |
| 20 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 21 | (R : Type u) [CommRing R] (P : Cᵒᵖ ⥤ CommAlgCat.{u} R) |
| 22 | {c m : ℕ} (U : ULift.{u} (Fin m) → C) (s : Fin c → R) (t : Fin m → R) |
| 23 | (ht : ∀ i, IsUnit (algebraMap R (P.obj (op (U i))) (t i.down))) |
| 24 | (N : Cᵒᵖ ⥤ ModuleCat.{u} R) (α : KoszulPartial.Fractions.modules R P ⟶ N) |
| 25 | (hN : ∀ (v : Cᵒᵖ) (i : Fin c) (x : N.obj v), s i • x = 0) |
| 26 | |
| 27 | private theorem cardinal : Fintype.card (ULift.{u} (Fin m)) = m := by simp |
| 28 | |
| 29 | abbrev numerator := α.app (op (AugmentedOrdered.CechCoordinates.topObject U m (cardinal (m := m)))) |
| 30 | (KoszulPartial.Fractions.reciprocal R P U t ht (AugmentedOrdered.CechCoordinates.topIndex m (cardinal (m := m)))) |
| 31 | |
| 32 | abbrev fractionClass := AugmentedOrdered.CechTopClass.topClass U N m (cardinal (m := m)) (numerator R P U t ht N α) |
| 33 | |
| 34 | def comparisonMap : ((AugmentedOrdered.CechFunctor.bicomplex U (KoszulPartial.Components.coefficient R P s)).total (.up ℕ)).homology (c+m) ⟶ |
| 35 | (AugmentedOrdered.Cech.complex U N).homology m := |
| 36 | homologyMap (AugmentedOrdered.CechTopNaturality.totalMap U (CoefficientResidue.complexMap R P s N α hN)) (c+m) ≫ |
| 37 | eqToHom (congrArg (fun j => |
| 38 | ((AugmentedOrdered.CechFunctor.bicomplex U (CoefficientResidueClass.residueTarget R (c := c) N)).total |
| 39 | (.up ℕ)).homology j) (Nat.add_comm c m)) ≫ |
| 40 | (Functor.SingleTotal.homologyIso (AugmentedOrdered.CechFunctor.functor U) N c m).hom |
| 41 | |
| 42 | theorem residueValue : |
| 43 | CoefficientResidueClass.residueValue R P U t ht N α |
| 44 | (KoszulPartial.TopResidue.functional R (c := c) (m := m)) = |
| 45 | AugmentedOrdered.CechSingleTopCoordinates.singleValue U N m (cardinal (m := m)) c |
| 46 | (numerator R P U t ht N α) := by |
| 47 | simp only [CoefficientResidueClass.residueValue, |
| 48 | KoszulPartial.TopResidue.functional, TopExteriorCoordinates.coordinate_generator, |
| 49 | map_one, mul_one, AugmentedOrdered.CechSingleTopCoordinates.singleValue, numerator] |
| 50 | |
| 51 | include hN in |
| 52 | theorem comparison_class : |
| 53 | comparisonMap R P U s N α hN |
| 54 | (KoszulPartial.PartialClass.supportedClass R P U s t ht |
| 55 | (KoszulPartial.TopResidue.functional R)) = |
| 56 | ComplexShape.σ (.up ℕ) (.up ℕ) (.up ℕ) c m • fractionClass R P U t ht N α := by |
| 57 | change (Functor.SingleTotal.homologyIso (AugmentedOrdered.CechFunctor.functor U) N c m).hom |
| 58 | ((eqToHom (congrArg (fun j => |
| 59 | ((AugmentedOrdered.CechFunctor.bicomplex U (CoefficientResidueClass.residueTarget R (c := c) N)).total |
| 60 | (.up ℕ)).homology j) (Nat.add_comm c m))) |
| 61 | (homologyMap (AugmentedOrdered.CechTopNaturality.totalMap U (CoefficientResidue.complexMap R P s N α hN)) (c+m) |
| 62 | (KoszulPartial.PartialClass.supportedClass R P U s t ht |
| 63 | (KoszulPartial.TopResidue.functional R)))) = _ |
| 64 | rw [CoefficientResidueClass.supportedClass_residue R P U s t ht N α hN] |
| 65 | have hv := residueValue R P U t ht N α (c := c) |
| 66 | rw [hv] |
| 67 | exact AugmentedOrdered.CechSingleTopCoordinates.topTotalClass_coordinates U N m |
| 68 | (cardinal (m := m)) c (numerator R P U t ht N α) _ |
| 69 | |
| 70 | include hN in |
| 71 | theorem weighted_eq (a b : R) |
| 72 | (h : Ideal.Quotient.mk (OrientedTopCohomology.ideal R (Fin.append s t)) a = |
| 73 | Ideal.Quotient.mk (OrientedTopCohomology.ideal R (Fin.append s t)) b) : |
| 74 | a • fractionClass R P U t ht N α = b • fractionClass R P U t ht N α := by |
| 75 | have h' := congrArg (comparisonMap R P U s N α hN) |
| 76 | (FractionQuotient.weighted_eq R s t P U ht a b h) |
| 77 | simp only [map_smul, comparison_class] at h' |
| 78 | rw [smul_comm a, smul_comm b] at h' |
| 79 | have h'' := congrArg (fun x => ComplexShape.σ (.up ℕ) (.up ℕ) (.up ℕ) c m • x) h' |
| 80 | simpa only [smul_smul, Int.units_mul_self, one_smul] using h'' |
| 81 | |
| 82 | include hN in |
| 83 | theorem weighted_of_kernel {k : Type u} [CommRing k] (η : R →+* k) |
| 84 | (hk : OrientedTopCohomology.ideal R (Fin.append s t) = RingHom.ker η) |
| 85 | (z : R) (hz : η z=1) (a : R) : |
| 86 | (z*a) • fractionClass R P U t ht N α = a • fractionClass R P U t ht N α := by |
| 87 | apply weighted_eq R P U s t ht N α hN |
| 88 | apply Ideal.Quotient.eq.mpr |
| 89 | rw [hk] |
| 90 | change η (z*a-a)=0 |
| 91 | rw [map_sub, map_mul, hz, one_mul, sub_self] |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.FractionOrdinaryQuotient.Ordinary |