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.AbelianModuli.HilbertConstruction.RingPushoutTensorComparison |
| 2 | import Mathlib.RingTheory.Ideal.Quotient.Operations |
| 3 | |
| 4 | /-! # Surjective Ring Pushout Quotient -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SurjectiveRingPushoutQuotient |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Pushing out a surjective ring map gives the quotient by its extended |
| 11 | kernel. The comparison preserves any compatible coefficient action. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | universe u |
| 14 | variable {R B C D : Type u} [CommRing R] [CommRing B] [CommRing C] [CommRing D] |
| 15 | |
| 16 | def pushoutQuotientEquivOfSurjective |
| 17 | (f : R →+* B) (g : R →+* C) (u : B →+* D) (v : C →+* D) |
| 18 | (H : IsPushout (CommRingCat.ofHom f) (CommRingCat.ofHom g) |
| 19 | (CommRingCat.ofHom u) (CommRingCat.ofHom v)) (hg : Function.Surjective g) : |
| 20 | (B ⧸ (RingHom.ker g).map f) ≃+* D := by |
| 21 | let I := RingHom.ker g |
| 22 | let J := I.map f |
| 23 | let κ := Ideal.Quotient.mk J |
| 24 | have hκ : I ≤ RingHom.ker (κ.comp f) := by |
| 25 | intro r hr |
| 26 | exact Ideal.Quotient.eq_zero_iff_mem.mpr (Ideal.mem_map_of_mem f hr) |
| 27 | let lC : R ⧸ I →+* B ⧸ J := Ideal.Quotient.lift I (κ.comp f) hκ |
| 28 | let eC := g.quotientKerEquivOfSurjective hg |
| 29 | let v₀ : C →+* B ⧸ J := lC.comp eC.symm.toRingHom |
| 30 | have hv₀ (r : R) : v₀ (g r) = κ (f r) := by |
| 31 | change lC (eC.symm (g r)) = κ (f r) |
| 32 | rw [RingHom.quotientKerEquivOfSurjective_symm_apply] |
| 33 | rfl |
| 34 | have hcomm : CommRingCat.ofHom f ≫ CommRingCat.ofHom κ = |
| 35 | CommRingCat.ofHom g ≫ CommRingCat.ofHom v₀ := by |
| 36 | ext r |
| 37 | exact (hv₀ r).symm |
| 38 | have hu : J ≤ RingHom.ker u := by |
| 39 | apply Ideal.map_le_iff_le_comap.mpr |
| 40 | intro r hr |
| 41 | change u (f r) = 0 |
| 42 | have h := ConcreteCategory.congr_hom H.w r |
| 43 | change u (f r) = v (g r) at h |
| 44 | exact h.trans (by rw [show g r = 0 from hr, map_zero]) |
| 45 | let l : B ⧸ J →+* D := Ideal.Quotient.lift J u hu |
| 46 | let m := (H.desc (CommRingCat.ofHom κ) (CommRingCat.ofHom v₀) hcomm).hom |
| 47 | have hm (b : B) : m (u b) = κ b := |
| 48 | ConcreteCategory.congr_hom (H.inl_desc (CommRingCat.ofHom κ) (CommRingCat.ofHom v₀) hcomm) b |
| 49 | have hn (c : C) : m (v c) = v₀ c := |
| 50 | ConcreteCategory.congr_hom (H.inr_desc (CommRingCat.ofHom κ) (CommRingCat.ofHom v₀) hcomm) c |
| 51 | have hright : CommRingCat.ofHom m ≫ CommRingCat.ofHom l = 𝟙 (CommRingCat.of D) := by |
| 52 | apply H.hom_ext |
| 53 | · ext b |
| 54 | change l (m (u b)) = u b |
| 55 | rw [hm] |
| 56 | rfl |
| 57 | · ext c |
| 58 | obtain ⟨r, rfl⟩ := hg c |
| 59 | change l (m (v (g r))) = v (g r) |
| 60 | rw [hn, hv₀] |
| 61 | exact ConcreteCategory.congr_hom H.w r |
| 62 | exact { |
| 63 | l with |
| 64 | invFun := m |
| 65 | left_inv := by |
| 66 | intro x |
| 67 | obtain ⟨b, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 68 | exact hm b |
| 69 | right_inv := fun d => ConcreteCategory.congr_hom hright d } |
| 70 | |
| 71 | theorem pushoutQuotientEquivOfSurjective_mk |
| 72 | (f : R →+* B) (g : R →+* C) (u : B →+* D) (v : C →+* D) |
| 73 | (H : IsPushout (CommRingCat.ofHom f) (CommRingCat.ofHom g) |
| 74 | (CommRingCat.ofHom u) (CommRingCat.ofHom v)) (hg : Function.Surjective g) (b : B) : |
| 75 | pushoutQuotientEquivOfSurjective f g u v H hg (Ideal.Quotient.mk _ b) = u b := rfl |
| 76 | |
| 77 | def pushoutQuotientAlgEquivOfSurjective |
| 78 | {K : Type u} [CommRing K] [Algebra K B] [Algebra K D] |
| 79 | (f : R →+* B) (g : R →+* C) (u : B →+* D) (v : C →+* D) |
| 80 | (H : IsPushout (CommRingCat.ofHom f) (CommRingCat.ofHom g) |
| 81 | (CommRingCat.ofHom u) (CommRingCat.ofHom v)) (hg : Function.Surjective g) |
| 82 | (hu : ∀ k : K, u (algebraMap K B k) = algebraMap K D k) : |
| 83 | (B ⧸ (RingHom.ker g).map f) ≃ₐ[K] D := |
| 84 | { pushoutQuotientEquivOfSurjective f g u v H hg with |
| 85 | commutes' k := hu k } |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SurjectiveRingPushoutQuotient |