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.Algebra.Category.CommAlgCat.Basic |
| 2 | |
| 3 | /-! # Algebraic Conjugate By Generators -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.AlgebraicConjugateByGenerators.CommAlgebraicConjugateByGenerators |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Conjugated algebra maps are determined by their values on a surjective presentation. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory |
| 12 | |
| 13 | universe u v a b t |
| 14 | variable {R : Type u} [CommRing R] {A B : CommAlgCat.{v} R} |
| 15 | {F : Type a} [CommRing F] {G : Type b} [CommRing G] {T : Type t} [CommRing T] |
| 16 | |
| 17 | theorem on_generator (c d : A ⟶ B) (i : A →+* F) (r : F →+* G) (o : G →+* B) |
| 18 | (s : T →+* A) (h : c.hom.toRingHom = o.comp (r.comp i)) (k : T → G) |
| 19 | (hk : ∀ a, r (i (s a)) = k a) (hd : ∀ a, o (k a) = d.hom.toRingHom (s a)) (a : T) : |
| 20 | c.hom.toRingHom (s a) = d.hom.toRingHom (s a) := |
| 21 | (RingHom.congr_fun h (s a)).trans ((congrArg o (hk a)).trans (hd a)) |
| 22 | |
| 23 | theorem eq (c d : A ⟶ B) (i : A →+* F) (r : F →+* G) (o : G →+* B) |
| 24 | (s : T →+* A) (hs : Function.Surjective s) |
| 25 | (h : c.hom.toRingHom = o.comp (r.comp i)) (k : T → G) |
| 26 | (hk : ∀ a, r (i (s a)) = k a) |
| 27 | (hd : ∀ a, o (k a) = d.hom.toRingHom (s a)) : c = d := by |
| 28 | apply CommAlgCat.hom_ext |
| 29 | apply AlgHom.ext |
| 30 | intro x |
| 31 | obtain ⟨a, rfl⟩ := hs x |
| 32 | exact (RingHom.congr_fun h (s a)).trans ((congrArg o (hk a)).trans (hd a)) |
| 33 | |
| 34 | end |
| 35 | |
| 36 | end OAI.NumberTheory.PadicHodge.GeometricComparison.AlgebraicConjugateByGenerators.CommAlgebraicConjugateByGenerators |