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.MvPolynomial.Equiv |
| 2 | import Mathlib.Logic.Equiv.Set |
| 3 | |
| 4 | /-! # Rename Polynomial Extension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.RenamePolynomialExtension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Renaming indices along an injection is a polynomial-ring |
| 11 | extension in the complementary indices, via an explicit algebra isomorphism. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | variable {ι κ : Type} (j : ι → κ) (hj : Function.Injective j) |
| 17 | |
| 18 | def complement := {k : κ // k ∉ Set.range j} |
| 19 | |
| 20 | def indices : complement j ⊕ ι ≃ κ := by |
| 21 | classical |
| 22 | exact ((Equiv.sumCongr (Equiv.refl (complement j)) (Equiv.ofInjective j hj)).trans |
| 23 | (Equiv.sumComm (complement j) (Set.range j))).trans (Equiv.Set.sumCompl (Set.range j)) |
| 24 | |
| 25 | theorem indices_inr (i : ι) : indices j hj (Sum.inr i) = j i := rfl |
| 26 | |
| 27 | theorem indices_symm (i : ι) : (indices j hj).symm (j i) = Sum.inr i := |
| 28 | (indices j hj).symm_apply_eq.mpr (indices_inr j hj i).symm |
| 29 | |
| 30 | variable (R : Type) [CommRing R] |
| 31 | |
| 32 | def equivalence : MvPolynomial κ R ≃ₐ[R] MvPolynomial (complement j) (MvPolynomial ι R) := |
| 33 | (MvPolynomial.renameEquiv R (indices j hj).symm).trans |
| 34 | (MvPolynomial.sumAlgEquiv R (complement j) ι) |
| 35 | |
| 36 | theorem equivalence_X (i : ι) : equivalence j hj R (MvPolynomial.X (j i)) = MvPolynomial.C (MvPolynomial.X i) := by |
| 37 | change MvPolynomial.sumAlgEquiv R (complement j) ι |
| 38 | (MvPolynomial.rename (indices j hj).symm (MvPolynomial.X (j i))) = _ |
| 39 | rw [MvPolynomial.rename_X, indices_symm, MvPolynomial.sumAlgEquiv_X_inr] |
| 40 | |
| 41 | theorem equivalence_rename (p : MvPolynomial ι R) : |
| 42 | equivalence j hj R (MvPolynomial.rename j p) = MvPolynomial.C p := by |
| 43 | have he : (equivalence j hj R).toAlgHom.comp (MvPolynomial.rename j) = |
| 44 | IsScalarTower.toAlgHom R (MvPolynomial ι R) (MvPolynomial (complement j) (MvPolynomial ι R)) := by |
| 45 | apply MvPolynomial.algHom_ext |
| 46 | intro i |
| 47 | simp only [AlgHom.comp_apply, MvPolynomial.rename_X, AlgEquiv.coe_toAlgHom] |
| 48 | exact equivalence_X j hj R i |
| 49 | exact DFunLike.congr_fun he p |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.RenamePolynomialExtension |