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.ArithmeticGeometry.OrdinaryLocus.Openness.UnitEndPullback |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ModuleIso |
| 3 | import Mathlib.AlgebraicGeometry.ResidueField |
| 4 | |
| 5 | /-! # Unit End Iso -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.UnitEndIso.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A structure-sheaf endomorphism is locally invertible exactly where its scalar is a unit. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem isIso_pullback_unitEnd_basicOpen (X : Scheme.{u}) (q : End (LineBundle.Construction.structureSheafModule X)) : |
| 18 | IsIso ((Scheme.Modules.pullback (X.basicOpen (ModuleSections.Construction.structureSheafEndRingEquiv X q)).ι).map q) := by |
| 19 | apply (UnitEndPullback.Construction.isIso_pullback_unitEnd_iff _ q).mpr |
| 20 | let U := X.basicOpen (ModuleSections.Construction.structureSheafEndRingEquiv X q) |
| 21 | have hU : U.ι ''ᵁ ⊤ ≤ U := by simp |
| 22 | have hu := (X.toRingedSpace.isUnit_res_basicOpen (ModuleSections.Construction.structureSheafEndRingEquiv X q)).map |
| 23 | (X.presheaf.map (homOfLE hU).op).hom |
| 24 | change IsUnit (X.presheaf.map (homOfLE hU).op |
| 25 | (X.presheaf.map (homOfLE (show U ≤ ⊤ from le_top)).op (ModuleSections.Construction.structureSheafEndRingEquiv X q))) at hu |
| 26 | rw [← CommRingCat.comp_apply, ← X.presheaf.map_comp] at hu |
| 27 | rw [Scheme.Opens.ι_appTop] |
| 28 | exact hu |
| 29 | |
| 30 | theorem mem_basicOpen_of_isIso_pullback_unitEnd {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 31 | (q : End (LineBundle.Construction.structureSheafModule Y)) [IsIso ((Scheme.Modules.pullback f).map q)] (x : X) : |
| 32 | f x ∈ Y.basicOpen (ModuleSections.Construction.structureSheafEndRingEquiv Y q) := by |
| 33 | have hu := (UnitEndPullback.Construction.isIso_pullback_unitEnd_iff f q).mp inferInstance |
| 34 | have he : f ⁻¹ᵁ Y.basicOpen (ModuleSections.Construction.structureSheafEndRingEquiv Y q) = ⊤ := |
| 35 | (f.preimage_basicOpen_top _).trans (X.basicOpen_of_isUnit hu) |
| 36 | have hx : x ∈ f ⁻¹ᵁ Y.basicOpen (ModuleSections.Construction.structureSheafEndRingEquiv Y q) := by rw [he]; trivial |
| 37 | exact hx |
| 38 | |
| 39 | theorem unitEnd_mem_isoLocus_of_isIso_residueFiber (X : Scheme.{u}) |
| 40 | (q : End (LineBundle.Construction.structureSheafModule X)) (x : X) |
| 41 | [IsIso ((Scheme.Modules.pullback (X.fromSpecResidueField x)).map q)] : x ∈ ModuleIso.Construction.moduleIsoLocus q := by |
| 42 | apply (ModuleIso.Construction.mem_moduleIsoLocus_iff q x).mpr |
| 43 | refine ⟨X.basicOpen (ModuleSections.Construction.structureSheafEndRingEquiv X q), ?_, isIso_pullback_unitEnd_basicOpen X q⟩ |
| 44 | have hx := mem_basicOpen_of_isIso_pullback_unitEnd (X.fromSpecResidueField x) q |
| 45 | (IsLocalRing.closedPoint (X.residueField x)) |
| 46 | exact (congrArg (fun y : X ↦ y ∈ X.basicOpen (ModuleSections.Construction.structureSheafEndRingEquiv X q)) |
| 47 | (X.fromSpecResidueField_apply x (IsLocalRing.closedPoint (X.residueField x)))).mp hx |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.UnitEndIso.Construction |