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 Mathlib.AlgebraicGeometry.Morphisms.Affine |
| 2 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 3 | import Mathlib.CategoryTheory.Comma.Over.Pullback |
| 4 | |
| 5 | /-! # Cover Unit Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.CoverUnitBaseChange |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A cover and its invariance equations valid away from a coefficient |
| 12 | become an actual invariant affine cover after that coefficient maps to a unit. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | |
| 16 | theorem invariant_affine_cover_baseChange_of_unit |
| 17 | {R R' : Type} [CommRing R] [CommRing R'] {I G : Type} |
| 18 | (Y : Over (Spec (.of R))) (V : I → Y.left.Opens) (a : G → (Y ⟶ Y)) (r : R) |
| 19 | (hV : ∀ i, IsAffineOpen (V i)) |
| 20 | (hcover : ∀ x : Y.left, r ∉ (Y.hom x).asIdeal → ∃ i, x ∈ V i) |
| 21 | (hInv : ∀ g i (x : Y.left), r ∉ (Y.hom x).asIdeal → ((a g).left x ∈ V i ↔ x ∈ V i)) |
| 22 | (φ : R →+* R') (hunit : IsUnit (φ r)) : |
| 23 | let b := Spec.map (CommRingCat.ofHom φ) |
| 24 | let q := pullback.fst Y.hom b |
| 25 | (∀ i, IsAffineOpen (q ⁻¹ᵁ V i)) ∧ (⨆ i, q ⁻¹ᵁ V i) = ⊤ ∧ |
| 26 | (∀ g i, ((Over.pullback b).map (a g)).left ⁻¹ᵁ (q ⁻¹ᵁ V i) = q ⁻¹ᵁ V i) := by |
| 27 | let b := Spec.map (CommRingCat.ofHom φ) |
| 28 | let Z : Over (Spec (.of R')) := (Over.pullback b).obj Y |
| 29 | let q := pullback.fst Y.hom b |
| 30 | have : IsAffineHom b := inferInstance |
| 31 | have : IsAffineHom q := MorphismProperty.of_isPullback |
| 32 | (IsPullback.of_hasPullback Y.hom b).flip (inferInstanceAs (IsAffineHom b)) |
| 33 | have hr (x : Z.left) : r ∉ (Y.hom (q x)).asIdeal := by |
| 34 | intro h |
| 35 | have he : Y.hom (q x) = b (pullback.snd Y.hom b x) := |
| 36 | congrArg (fun f : Z.left ⟶ Spec (.of R) => f x) pullback.condition |
| 37 | have h' : φ r ∈ (pullback.snd Y.hom b x).asIdeal := |
| 38 | (congrArg (fun p : Spec (.of R) => r ∈ p.asIdeal) he).mp h |
| 39 | exact (pullback.snd Y.hom b x).isPrime.ne_top |
| 40 | ((pullback.snd Y.hom b x).asIdeal.eq_top_of_isUnit_mem h' hunit) |
| 41 | refine ⟨fun i => (hV i).preimage q, ?_, ?_⟩ |
| 42 | · apply top_le_iff.mp |
| 43 | intro x _ |
| 44 | obtain ⟨i, hi⟩ := hcover (q x) (hr x) |
| 45 | exact Opens.mem_iSup.mpr ⟨i, hi⟩ |
| 46 | · intro g i |
| 47 | ext x |
| 48 | have he : q (((Over.pullback b).map (a g)).left x) = (a g).left (q x) := |
| 49 | congrArg (fun f : Z.left ⟶ Y.left => f x) (pullback.lift_fst _ _ _) |
| 50 | change q (((Over.pullback b).map (a g)).left x) ∈ V i ↔ q x ∈ V i |
| 51 | rw [he] |
| 52 | exact hInv g i (q x) (hr x) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.CoverUnitBaseChange |