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 |
| 2 | |
| 3 | /-! # Quotient Pullback -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Quotient.QuotientPullback |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: base change of an affine closed subscheme |
| 11 | |
| 12 | For an arbitrary ring map A → S, the closed subscheme defined by the |
| 13 | extended ideal IS is the scheme-theoretic pullback of Spec(A/I). |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {A S : Type u} [CommRing A] [CommRing S] (I : Ideal A) (f : A →+* S) |
| 21 | |
| 22 | def residueMap : A ⧸ I →+* S ⧸ I.map f := |
| 23 | Ideal.quotientMap (I.map f) f (Ideal.le_comap_map) |
| 24 | |
| 25 | lemma residueMap_comp : (residueMap I f).comp (Ideal.Quotient.mk I) = |
| 26 | (Ideal.Quotient.mk (I.map f)).comp f := rfl |
| 27 | |
| 28 | def quotientCocone : PushoutCocone (CommRingCat.ofHom f) |
| 29 | (CommRingCat.ofHom (Ideal.Quotient.mk I)) := |
| 30 | PushoutCocone.mk (CommRingCat.ofHom (Ideal.Quotient.mk (I.map f))) |
| 31 | (CommRingCat.ofHom (residueMap I f)) rfl |
| 32 | |
| 33 | private lemma cocone_kills (s : PushoutCocone (CommRingCat.ofHom f) |
| 34 | (CommRingCat.ofHom (Ideal.Quotient.mk I))) : I.map f ≤ RingHom.ker s.inl.hom := by |
| 35 | rw [Ideal.map_le_iff_le_comap] |
| 36 | intro a ha |
| 37 | change s.inl.hom (f a) = 0 |
| 38 | have he := congrArg (fun t : CommRingCat.of A ⟶ s.pt => t.hom a) s.condition |
| 39 | change s.inl.hom (f a) = s.inr.hom (Ideal.Quotient.mk I a) at he |
| 40 | rw [he, Ideal.Quotient.eq_zero_iff_mem.mpr ha, map_zero] |
| 41 | |
| 42 | def quotientCoconeIsColimit : IsColimit (quotientCocone I f) := |
| 43 | PushoutCocone.isColimitAux' _ fun s => by |
| 44 | let d := CommRingCat.ofHom (Ideal.Quotient.lift (I.map f) s.inl.hom (cocone_kills I f s)) |
| 45 | refine ⟨d, ?_, ?_, ?_⟩ |
| 46 | · apply CommRingCat.hom_ext |
| 47 | apply RingHom.ext |
| 48 | intro a |
| 49 | rfl |
| 50 | · apply CommRingCat.hom_ext |
| 51 | apply RingHom.ext |
| 52 | intro x |
| 53 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 54 | exact congrArg (fun t : CommRingCat.of A ⟶ s.pt => t.hom a) s.condition |
| 55 | · intro m hm _ |
| 56 | apply CommRingCat.hom_ext |
| 57 | apply RingHom.ext |
| 58 | intro x |
| 59 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 60 | exact congrArg (fun t : CommRingCat.of S ⟶ s.pt => t.hom a) hm |
| 61 | |
| 62 | lemma ringPushout : IsPushout (CommRingCat.ofHom f) |
| 63 | (CommRingCat.ofHom (Ideal.Quotient.mk I)) |
| 64 | (CommRingCat.ofHom (Ideal.Quotient.mk (I.map f))) (CommRingCat.ofHom (residueMap I f)) where |
| 65 | w := rfl |
| 66 | isColimit' := ⟨quotientCoconeIsColimit I f⟩ |
| 67 | |
| 68 | lemma schemePullback : |
| 69 | IsPullback (Spec.map (CommRingCat.ofHom (residueMap I f))) |
| 70 | (Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk (I.map f)))) |
| 71 | (Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk I))) (Spec.map (CommRingCat.ofHom f)) := |
| 72 | (ringPushout I f).op.map Scheme.Spec |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Quotient.QuotientPullback |