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.Polynomial.Expand |
| 2 | import Mathlib.RingTheory.AdjoinRoot |
| 3 | import Mathlib.RingTheory.RingHom.Flat |
| 4 | import Mathlib.RingTheory.PolynomialAlgebra |
| 5 | import Mathlib.Tactic |
| 6 | |
| 7 | /-! # Polynomial -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.Polynomial.Construction |
| 10 | |
| 11 | open _root_.Polynomial |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable (R : Type u) [CommRing R] (n : ℕ) |
| 16 | |
| 17 | /-- A monic presentation for adjoining an n-th root of the coordinate. -/ |
| 18 | noncomputable def expansionPolynomial : Polynomial (Polynomial R) := X ^ n - C X |
| 19 | |
| 20 | noncomputable def expansionLift : AdjoinRoot (expansionPolynomial R n) →+* R[X] := |
| 21 | AdjoinRoot.lift (expand R n).toRingHom X (by |
| 22 | simp [expansionPolynomial, Polynomial.expand_X]) |
| 23 | |
| 24 | noncomputable def expansionInverse : R[X] →+* AdjoinRoot (expansionPolynomial R n) := |
| 25 | Polynomial.eval₂RingHom ((AdjoinRoot.of (expansionPolynomial R n)).comp C) |
| 26 | (AdjoinRoot.root (expansionPolynomial R n)) |
| 27 | |
| 28 | set_option backward.isDefEq.respectTransparency.types false in |
| 29 | theorem expansion_root_pow : |
| 30 | AdjoinRoot.root (expansionPolynomial R n) ^ n = |
| 31 | AdjoinRoot.of (expansionPolynomial R n) X := by |
| 32 | have h := AdjoinRoot.eval₂_root (expansionPolynomial R n) |
| 33 | apply sub_eq_zero.mp |
| 34 | unfold expansionPolynomial at h |
| 35 | erw [Polynomial.eval₂_sub, Polynomial.eval₂_pow, Polynomial.eval₂_X, |
| 36 | Polynomial.eval₂_C] at h |
| 37 | exact h |
| 38 | |
| 39 | theorem expansionLift_inverse : |
| 40 | (expansionLift R n).comp (expansionInverse R n) = RingHom.id _ := by |
| 41 | ext r <;> simp [expansionLift, expansionInverse] |
| 42 | |
| 43 | theorem expansionInverse_lift : |
| 44 | (expansionInverse R n).comp (expansionLift R n) = RingHom.id _ := by |
| 45 | apply AdjoinRoot.ringHom_ext |
| 46 | · ext r <;> simp [expansionLift, expansionInverse, Polynomial.expand_X, |
| 47 | expansion_root_pow] |
| 48 | · simp [expansionLift, expansionInverse] |
| 49 | |
| 50 | /-- The displayed monic root algebra is the polynomial ring, with its |
| 51 | coefficient map acting by expansion of the coordinate. -/ |
| 52 | noncomputable def expansionEquiv : AdjoinRoot (expansionPolynomial R n) ≃+* R[X] := |
| 53 | RingEquiv.ofRingHom (expansionLift R n) (expansionInverse R n) |
| 54 | (expansionLift_inverse R n) (expansionInverse_lift R n) |
| 55 | |
| 56 | /-- The coordinate power map on the affine line is flat over every base ring. -/ |
| 57 | theorem polynomial_expand_flat (hn : n ≠ 0) : (expand R n).toRingHom.Flat := by |
| 58 | have hmonic : (expansionPolynomial R n).Monic := monic_X_pow_sub_C X hn |
| 59 | have : Module.Free R[X] (AdjoinRoot (expansionPolynomial R n)) := hmonic.free_adjoinRoot |
| 60 | have hflat : (AdjoinRoot.of (expansionPolynomial R n)).Flat := by |
| 61 | change (algebraMap R[X] (AdjoinRoot (expansionPolynomial R n))).Flat |
| 62 | exact RingHom.flat_algebraMap_iff.mpr inferInstance |
| 63 | have hlift : (expansionLift R n).Flat := |
| 64 | RingHom.Flat.of_bijective (expansionEquiv R n).bijective |
| 65 | have hcomp := hflat.comp hlift |
| 66 | simpa only [expansionLift, AdjoinRoot.lift_comp_of] using hcomp |
| 67 | |
| 68 | /-- Extending a flat coefficient map to polynomial rings remains flat. -/ |
| 69 | theorem polynomial_map_flat {S : Type*} [CommRing S] |
| 70 | (f : R →+* S) (hf : f.Flat) : (Polynomial.mapRingHom f).Flat := by |
| 71 | algebraize [f] |
| 72 | let : Algebra R[X] S[X] := Polynomial.algebra R S |
| 73 | change (algebraMap R[X] S[X]).Flat |
| 74 | apply RingHom.flat_algebraMap_iff.mpr |
| 75 | exact Module.Flat.of_linearEquiv |
| 76 | (Algebra.IsPushout.equiv R R[X] S S[X]).toLinearEquiv.symm |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.Polynomial.Construction |