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.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.ParameterQuotient |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SupportStalk |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilinearLength |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.EveryStalkOrder |
| 5 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PrimeFiltrationEuler |
| 6 | |
| 7 | /-! # Principal Base Change -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.PrincipalBaseChange |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! The generic length of a principal quotient of an affine prime |
| 16 | module is the actual divisor order on its native reduced support. -/ |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 22 | |
| 23 | namespace SupportOrder |
| 24 | |
| 25 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SupportStalk OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal |
| 26 | |
| 27 | variable (R : Type) [CommRing R] (q p : PrimeSpectrum R) (hqp : q.asIdeal ≤ p.asIdeal) |
| 28 | |
| 29 | def baseEquiv : |
| 30 | letI : Algebra R ((Spec (.of R)).presheaf.stalk p) := (StructureSheaf.toStalk R p).hom.toAlgebra |
| 31 | (Flat.Extension.baseChange R ((Spec (.of R)).presheaf.stalk p)).obj (.of R (R ⧸ q.asIdeal)) ≃ₗ[ |
| 32 | (Spec (.of R)).presheaf.stalk p] CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) (SupportStalk.support R q) p (SupportStalk.mem R q p hqp) := by |
| 33 | let : Algebra R ((Spec (.of R)).presheaf.stalk p) := (StructureSheaf.toStalk R p).hom.toAlgebra |
| 34 | exact (Ideal.qoutMapEquivTensorQout (R := R) (I := q.asIdeal) |
| 35 | ((Spec (.of R)).presheaf.stalk p)).symm.trans (SupportStalk.moduleEquiv R q p hqp).symm |
| 36 | |
| 37 | theorem length (r : R) : |
| 38 | FiltrationBaseLength.length R (Localization.AtPrime p.asIdeal) |
| 39 | (.of R (QuotSMulTop r (R ⧸ q.asIdeal))) = |
| 40 | Ring.ord ((CycleClass.Geometric.GenericPoint.reducedSupportScheme (SupportStalk.support R q)).presheaf.stalk |
| 41 | (CycleClass.Thom.IntersectionGeometry.supportPreimage (SupportStalk.support R q) p (SupportStalk.mem R q p hqp))) |
| 42 | (Local.Principal.supportStalkMap (Spec (.of R)) (SupportStalk.support R q) p (SupportStalk.mem R q p hqp) |
| 43 | (StructureSheaf.toStalk R p r)) := by |
| 44 | let S := (Spec (.of R)).presheaf.stalk p |
| 45 | let T := (CycleClass.Geometric.GenericPoint.reducedSupportScheme (SupportStalk.support R q)).presheaf.stalk |
| 46 | (CycleClass.Thom.IntersectionGeometry.supportPreimage (SupportStalk.support R q) p (SupportStalk.mem R q p hqp)) |
| 47 | let : Algebra R S := (StructureSheaf.toStalk R p).hom.toAlgebra |
| 48 | let : Algebra S T := (Local.Principal.supportStalkMap (Spec (.of R)) (SupportStalk.support R q) p (SupportStalk.mem R q p hqp)).hom.toAlgebra |
| 49 | rw [SemilinearLength.baseChange_length R (Localization.AtPrime p.asIdeal) S |
| 50 | (StructureSheaf.stalkIso R p)] |
| 51 | exact (Flat.ParameterQuotient.length R S (.of R (R ⧸ q.asIdeal)) r |
| 52 | (CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) (SupportStalk.support R q) p (SupportStalk.mem R q p hqp)) |
| 53 | (baseEquiv R q p hqp)).trans |
| 54 | (Principal.Order.quotient_length S T |
| 55 | (Local.Principal.supportStalkMap_surjective (Spec (.of R)) (SupportStalk.support R q) p (SupportStalk.mem R q p hqp)) |
| 56 | (StructureSheaf.toStalk R p r)) |
| 57 | |
| 58 | theorem image_ne_zero (r : R) (hr : r ∉ q.asIdeal) : |
| 59 | Local.Principal.supportStalkMap (Spec (.of R)) (SupportStalk.support R q) p (SupportStalk.mem R q p hqp) |
| 60 | (StructureSheaf.toStalk R p r) ≠ 0 := by |
| 61 | intro h |
| 62 | apply hr |
| 63 | rw [← SupportStalk.kernel_comap R q p hqp] |
| 64 | exact h |
| 65 | |
| 66 | theorem order [IsNoetherianRing R] (r : R) (hr : r ∉ q.asIdeal) : |
| 67 | let W := SupportStalk.support R q |
| 68 | let y := CycleClass.Thom.IntersectionGeometry.supportPreimage W p (SupportStalk.mem R q p hqp) |
| 69 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).ord |
| 70 | (algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W).presheaf.stalk y) |
| 71 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField |
| 72 | (Local.Principal.supportStalkMap (Spec (.of R)) W p (SupportStalk.mem R q p hqp) (StructureSheaf.toStalk R p r))) y = |
| 73 | ((FiltrationBaseLength.length R (Localization.AtPrime p.asIdeal) |
| 74 | (.of R (QuotSMulTop r (R ⧸ q.asIdeal))))).toNat := by |
| 75 | rw [length R q p hqp r] |
| 76 | exact EveryStalkOrder.order _ _ _ (image_ne_zero R q p hqp r hr) |
| 77 | |
| 78 | end SupportOrder |
| 79 | |
| 80 | end |
| 81 | |
| 82 | /-! Localization of an affine principal quotient is the actual |
| 83 | principal quotient of the native reduced-support stalk module. -/ |
| 84 | |
| 85 | set_option backward.isDefEq.respectTransparency false |
| 86 | set_option backward.isDefEq.respectTransparency.types false |
| 87 | |
| 88 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 89 | |
| 90 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SupportStalk |
| 91 | |
| 92 | variable (R : Type) [CommRing R] (q x : PrimeSpectrum R) (hqx : q.asIdeal ≤ x.asIdeal) (r : R) |
| 93 | |
| 94 | def equiv : |
| 95 | letI : Algebra R ((Spec (.of R)).presheaf.stalk x) := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 96 | (Flat.Extension.baseChange R ((Spec (.of R)).presheaf.stalk x)).obj |
| 97 | (.of R (QuotSMulTop r (R ⧸ q.asIdeal))) ≃ₗ[(Spec (.of R)).presheaf.stalk x] |
| 98 | QuotSMulTop (StructureSheaf.toStalk R x r) |
| 99 | (CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) (SupportStalk.support R q) x (SupportStalk.mem R q x hqx)) := by |
| 100 | let S := (Spec (.of R)).presheaf.stalk x |
| 101 | let : Algebra R S := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 102 | exact (Flat.ParameterQuotient.iso R S (.of R (R ⧸ q.asIdeal)) r).toLinearEquiv.trans |
| 103 | (QuotSMulTop.congr (StructureSheaf.toStalk R x r) |
| 104 | (SupportOrder.baseEquiv R q x hqx)) |
| 105 | |
| 106 | theorem euler (N : ModuleCat ((Spec (.of R)).presheaf.stalk x)) (d : ℕ) : |
| 107 | letI : Algebra R ((Spec (.of R)).presheaf.stalk x) := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 108 | Tor.Euler.euler ((Spec (.of R)).presheaf.stalk x) |
| 109 | ((Flat.Extension.baseChange R ((Spec (.of R)).presheaf.stalk x)).obj |
| 110 | (.of R (QuotSMulTop r (R ⧸ q.asIdeal)))) N d = |
| 111 | Tor.Euler.euler ((Spec (.of R)).presheaf.stalk x) |
| 112 | (.of _ (QuotSMulTop (StructureSheaf.toStalk R x r) |
| 113 | (CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) (SupportStalk.support R q) x (SupportStalk.mem R q x hqx)))) N d := by |
| 114 | let : Algebra R ((Spec (.of R)).presheaf.stalk x) := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 115 | exact PrimeFiltrationEuler.euler_iso_left _ (equiv R q x hqx r).toModuleIso N d |
| 116 | |
| 117 | end |
| 118 | |
| 119 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.PrincipalBaseChange |