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.RingTheory.RingHom.Smooth |
| 2 | |
| 3 | /-! # Formal Smooth Retract -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.FormalSmoothRetract.Constructions |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Formal smoothness descends to actual algebra retracts. This follows |
| 10 | directly from lifting maps through square-zero quotient rings. -/ |
| 11 | |
| 12 | theorem formallySmooth_of_retract {R A B : Type} |
| 13 | [CommRing R] [CommRing A] [CommRing B] [Algebra R A] [Algebra R B] |
| 14 | [Algebra.FormallySmooth R B] (i : A →ₐ[R] B) (r : B →ₐ[R] A) |
| 15 | (h : r.comp i = AlgHom.id R A) : Algebra.FormallySmooth R A := by |
| 16 | apply Algebra.FormallySmooth.of_comp_surjective |
| 17 | intro C _ _ I hI q |
| 18 | obtain ⟨l, hl⟩ := Algebra.FormallySmooth.comp_surjective R B I hI (q.comp r) |
| 19 | refine ⟨l.comp i, ?_⟩ |
| 20 | rw [← AlgHom.comp_assoc, hl, AlgHom.comp_assoc, h, AlgHom.comp_id] |
| 21 | |
| 22 | theorem ringHom_formallySmooth_of_retract {R A B : Type} |
| 23 | [CommRing R] [CommRing A] [CommRing B] |
| 24 | (u : R →+* A) (v : R →+* B) (i : A →+* B) (r : B →+* A) |
| 25 | (hi : i.comp u = v) (hr : r.comp v = u) (h : r.comp i = RingHom.id A) |
| 26 | (hv : v.FormallySmooth) : u.FormallySmooth := by |
| 27 | let : Algebra R A := u.toAlgebra |
| 28 | let : Algebra R B := v.toAlgebra |
| 29 | let : Algebra.FormallySmooth R B := hv |
| 30 | let ia : A →ₐ[R] B := { i with commutes' := fun x => RingHom.congr_fun hi x } |
| 31 | let ra : B →ₐ[R] A := { r with commutes' := fun x => RingHom.congr_fun hr x } |
| 32 | exact formallySmooth_of_retract ia ra (AlgHom.ext (fun x => RingHom.congr_fun h x)) |
| 33 | |
| 34 | end |
| 35 | |
| 36 | end OAI.AlgebraicGeometry.CycleClass.Thom.FormalSmoothRetract.Constructions |