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.Order.WithBot |
| 2 | import Mathlib.RingTheory.MvPolynomial.Homogeneous |
| 3 | |
| 4 | /-! # Endpoint Substitution -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Linear.EndpointSubstitution.ProjectiveCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Explicit polynomial substitutions for prepending or appending a linear form to a cover. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial |
| 13 | |
| 14 | universe u v w |
| 15 | |
| 16 | variable {σ : Type u} {A : Type w} |
| 17 | |
| 18 | def prependFamily (a : σ → A) (x : A) : WithBot σ → A := WithBot.recBotCoe x a |
| 19 | |
| 20 | def appendFamily (a : σ → A) (x : A) : WithTop σ → A := WithTop.recTopCoe x a |
| 21 | |
| 22 | variable (R : Type v) [CommRing R] |
| 23 | |
| 24 | def prependLinearSubstitution (l : MvPolynomial σ R) : MvPolynomial (WithBot σ) R →ₐ[R] MvPolynomial σ R := |
| 25 | MvPolynomial.aeval (prependFamily (X (R := R)) l) |
| 26 | |
| 27 | def appendLinearSubstitution (l : MvPolynomial σ R) : MvPolynomial (WithTop σ) R →ₐ[R] MvPolynomial σ R := |
| 28 | MvPolynomial.aeval (appendFamily (X (R := R)) l) |
| 29 | |
| 30 | theorem prependLinearSubstitution_bot (l : MvPolynomial σ R) : prependLinearSubstitution R l (X ⊥) = l := |
| 31 | MvPolynomial.aeval_X _ _ |
| 32 | |
| 33 | theorem prependLinearSubstitution_coe (l : MvPolynomial σ R) (i : σ) : |
| 34 | prependLinearSubstitution R l (X (i : WithBot σ)) = X i := MvPolynomial.aeval_X _ _ |
| 35 | |
| 36 | theorem appendLinearSubstitution_top (l : MvPolynomial σ R) : appendLinearSubstitution R l (X ⊤) = l := |
| 37 | MvPolynomial.aeval_X _ _ |
| 38 | |
| 39 | theorem appendLinearSubstitution_coe (l : MvPolynomial σ R) (i : σ) : |
| 40 | appendLinearSubstitution R l (X (i : WithTop σ)) = X i := MvPolynomial.aeval_X _ _ |
| 41 | |
| 42 | variable [CommRing A] [Algebra R A] |
| 43 | |
| 44 | theorem aeval_prependFamily (a : σ → A) (l : MvPolynomial σ R) : |
| 45 | (MvPolynomial.aeval a).comp (prependLinearSubstitution R l) = |
| 46 | MvPolynomial.aeval (prependFamily a (MvPolynomial.aeval a l)) := by |
| 47 | apply MvPolynomial.algHom_ext |
| 48 | intro i |
| 49 | by_cases hi : i = ⊥ |
| 50 | · subst i |
| 51 | rw [AlgHom.comp_apply, prependLinearSubstitution_bot, MvPolynomial.aeval_X] |
| 52 | rfl |
| 53 | · obtain ⟨j, rfl⟩ := WithBot.ne_bot_iff_exists.mp hi |
| 54 | rw [AlgHom.comp_apply, prependLinearSubstitution_coe, MvPolynomial.aeval_X, MvPolynomial.aeval_X] |
| 55 | rfl |
| 56 | |
| 57 | theorem aeval_appendFamily (a : σ → A) (l : MvPolynomial σ R) : |
| 58 | (MvPolynomial.aeval a).comp (appendLinearSubstitution R l) = |
| 59 | MvPolynomial.aeval (appendFamily a (MvPolynomial.aeval a l)) := by |
| 60 | apply MvPolynomial.algHom_ext |
| 61 | intro i |
| 62 | by_cases hi : i = ⊤ |
| 63 | · subst i |
| 64 | rw [AlgHom.comp_apply, appendLinearSubstitution_top, MvPolynomial.aeval_X] |
| 65 | rfl |
| 66 | · obtain ⟨j, rfl⟩ := WithTop.ne_top_iff_exists.mp hi |
| 67 | rw [AlgHom.comp_apply, appendLinearSubstitution_coe, MvPolynomial.aeval_X, MvPolynomial.aeval_X] |
| 68 | rfl |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Linear.EndpointSubstitution.ProjectiveCech |