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.NumberTheory.PadicHodge.IntegralComparison.Etale.NilLifting |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 3 | |
| 4 | /-! # Affine Nil Lift -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.AffineNilLift |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Unique lifting of an actual affine-scheme map into a native etale |
| 11 | chart through any surjective nilpotent ring reduction. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | universe u |
| 15 | variable (R A B C : Type u) [CommRing R] [CommRing A] [CommRing B] [CommRing C] |
| 16 | [Algebra R A] [Algebra.Etale R A] |
| 17 | (ρ : B →+* C) (hρ : Function.Surjective ρ) |
| 18 | (hnil : ∀ x ∈ RingHom.ker ρ, IsNilpotent x) |
| 19 | (z : Spec (.of B) ⟶ Spec (.of R)) (a : Spec (.of C) ⟶ Spec (.of A)) |
| 20 | (ha : a ≫ Spec.map (CommRingCat.ofHom (algebraMap R A)) = |
| 21 | Spec.map (CommRingCat.ofHom ρ) ≫ z) |
| 22 | |
| 23 | include hρ hnil ha in |
| 24 | theorem existsUnique_lift : ∃! l : Spec (.of B) ⟶ Spec (.of A), |
| 25 | Spec.map (CommRingCat.ofHom ρ) ≫ l = a ∧ |
| 26 | l ≫ Spec.map (CommRingCat.ofHom (algebraMap R A)) = z := by |
| 27 | let : Algebra R B := (Spec.preimage z).hom.toAlgebra |
| 28 | let : Algebra R C := (ρ.comp (Spec.preimage z).hom).toAlgebra |
| 29 | let π : B →ₐ[R] C := { ρ with commutes' := fun _ => rfl } |
| 30 | let u : A →ₐ[R] C := { (Spec.preimage a).hom with |
| 31 | commutes' := fun r => by |
| 32 | have h := congrArg Spec.preimage ha |
| 33 | simp only [Spec.preimage_comp, Spec.preimage_map] at h |
| 34 | exact ConcreteCategory.congr_hom h r } |
| 35 | obtain ⟨v, hv, huniq⟩ := NilLifting.existsUnique_lift u π hρ hnil |
| 36 | refine ⟨Spec.map (CommRingCat.ofHom v.toRingHom), ⟨?_, ?_⟩, ?_⟩ |
| 37 | · rw [← Spec.map_comp, ← Spec.map_preimage a] |
| 38 | exact congrArg (fun f : A →ₐ[R] C => Spec.map (CommRingCat.ofHom f.toRingHom)) hv |
| 39 | · rw [← Spec.map_comp, ← Spec.map_preimage z] |
| 40 | apply congrArg (fun f : R →+* B => Spec.map (CommRingCat.ofHom f)) |
| 41 | exact v.comp_algebraMap |
| 42 | · intro l hl |
| 43 | let w : A →ₐ[R] B := { (Spec.preimage l).hom with |
| 44 | commutes' := fun r => by |
| 45 | have h := congrArg Spec.preimage hl.2 |
| 46 | simp only [Spec.preimage_comp, Spec.preimage_map] at h |
| 47 | exact ConcreteCategory.congr_hom h r } |
| 48 | have hw : π.comp w = u := by |
| 49 | ext x |
| 50 | have h := congrArg Spec.preimage hl.1 |
| 51 | simp only [Spec.preimage_comp, Spec.preimage_map] at h |
| 52 | exact ConcreteCategory.congr_hom h x |
| 53 | have he := huniq w hw |
| 54 | rw [← Spec.map_preimage l] |
| 55 | exact congrArg (fun f : A →ₐ[R] B => Spec.map (CommRingCat.ofHom f.toRingHom)) he |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.AffineNilLift |