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.Affine.SupportStalk |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.Extension |
| 3 | |
| 4 | /-! # Support Base Change -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SupportBaseChange |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Native affine support modules commute with base change whenever |
| 11 | the extended support ideal is prime. The stalk maps are the actual |
| 12 | maps induced by the affine scheme morphism. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SupportStalk OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient |
| 20 | |
| 21 | variable (R S : Type) [CommRing R] [CommRing S] (f : R →+* S) |
| 22 | (q : PrimeSpectrum R) (hq : (q.asIdeal.map f).IsPrime) (p : PrimeSpectrum S) |
| 23 | (hqp : q.asIdeal.map f ≤ p.asIdeal) |
| 24 | |
| 25 | theorem ideal : |
| 26 | (q.asIdeal.map (StructureSheaf.toStalk R (PrimeSpectrum.comap f p)).hom).map |
| 27 | ((Spec.map (CommRingCat.ofHom f)).stalkMap p).hom = |
| 28 | (q.asIdeal.map f).map (StructureSheaf.toStalk S p).hom := by |
| 29 | rw [Ideal.map_map, Ideal.map_map] |
| 30 | exact congrArg (fun g : R →+* (Spec (.of S)).presheaf.stalk p => q.asIdeal.map g) |
| 31 | (congrArg CommRingCat.Hom.hom (AlgebraicGeometry.stalkMap_toStalk (CommRingCat.ofHom f) p)) |
| 32 | |
| 33 | def equiv : |
| 34 | letI : Algebra ((Spec (.of R)).presheaf.stalk (PrimeSpectrum.comap f p)) |
| 35 | ((Spec (.of S)).presheaf.stalk p) := ((Spec.map (CommRingCat.ofHom f)).stalkMap p).hom.toAlgebra |
| 36 | (Flat.Extension.baseChange ((Spec (.of R)).presheaf.stalk (PrimeSpectrum.comap f p)) |
| 37 | ((Spec (.of S)).presheaf.stalk p)).obj |
| 38 | (CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) (SupportStalk.support R q) (PrimeSpectrum.comap f p) |
| 39 | (SupportStalk.mem R q (PrimeSpectrum.comap f p) (Ideal.map_le_iff_le_comap.mp hqp))) ≃ₗ[(Spec (.of S)).presheaf.stalk p] |
| 40 | CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of S)) (SupportStalk.support S ⟨q.asIdeal.map f, hq⟩) p |
| 41 | (SupportStalk.mem S ⟨q.asIdeal.map f, hq⟩ p hqp) := by |
| 42 | let A := (Spec (.of R)).presheaf.stalk (PrimeSpectrum.comap f p) |
| 43 | let B := (Spec (.of S)).presheaf.stalk p |
| 44 | let : Algebra A B := ((Spec.map (CommRingCat.ofHom f)).stalkMap p).hom.toAlgebra |
| 45 | let I := q.asIdeal.map (StructureSheaf.toStalk R (PrimeSpectrum.comap f p)).hom |
| 46 | let eR := SupportStalk.moduleEquiv R q (PrimeSpectrum.comap f p) (Ideal.map_le_iff_le_comap.mp hqp) |
| 47 | let eS := SupportStalk.moduleEquiv S ⟨q.asIdeal.map f, hq⟩ p hqp |
| 48 | exact ((Flat.Extension.baseChange A B).mapIso eR.toModuleIso).toLinearEquiv.trans |
| 49 | ((Ideal.qoutMapEquivTensorQout (R := A) (I := I) B).symm.trans |
| 50 | ((Submodule.quotEquivOfEq _ _ (ideal R S f q p)).trans eS.symm)) |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SupportBaseChange |