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 OAI.AlgebraicGeometry.Picard.Homomorphisms.MvPolynomialRank |
| 2 | import OAI.AlgebraicGeometry.Picard.Homomorphisms.Affine |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 4 | |
| 5 | /-! # Affine Frobenius Rank -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.AffineFrobeniusRank |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The exact degree of relative Frobenius on affine space. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 14 | open _root_.CategoryTheory.Limits |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | namespace Construction |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | theorem finrank_comp_targetIso {X Y Z : Scheme.{u}} (f : X ⟶ Y) |
| 23 | [Flat f] [IsFinite f] (e : Y ≅ Z) (z : Z) : |
| 24 | (f ≫ e.hom).finrank z = f.finrank (e.inv z) := by |
| 25 | have h : IsPullback (𝟙 X) f (f ≫ e.hom) e.hom := |
| 26 | IsPullback.of_horiz_isIso ⟨by simp⟩ |
| 27 | have he := Scheme.Hom.finrank_of_isPullback (𝟙 X) f (f ≫ e.hom) e.hom h (e.inv z) |
| 28 | simpa [← Scheme.Hom.comp_apply] using he.symm |
| 29 | |
| 30 | theorem relativeFrobenius_polynomial_finrank |
| 31 | (p : ℕ) (hp : p.Prime) (R : Type u) [CommRing R] |
| 32 | (hR : (p : R) = 0) (σ : Type) [Finite σ] |
| 33 | (y : (Frobenius.Construction.frobeniusTwist p hp (Affine.Construction.prime_eq_zero_spec p R hR) |
| 34 | (Over.mk (Spec.map (CommRingCat.ofHom |
| 35 | (MvPolynomial.C : R →+* MvPolynomial σ R))))).left) : |
| 36 | (Frobenius.Construction.relativeFrobenius p hp (Affine.Construction.prime_eq_zero_spec p R hR) |
| 37 | (Over.mk (Spec.map (CommRingCat.ofHom |
| 38 | (MvPolynomial.C : R →+* MvPolynomial σ R))))).left.finrank y = p ^ Nat.card σ := by |
| 39 | let x : PrimeSpectrum (MvPolynomial σ R) := |
| 40 | (Affine.Construction.polynomial_frobenius_baseChange p hp R hR σ).isoPullback.inv y |
| 41 | have : Nontrivial (MvPolynomial σ R) := x.nontrivial |
| 42 | have : Nontrivial R := (MvPolynomial.C : R →+* MvPolynomial σ R).domain_nontrivial |
| 43 | have hfree := MvPolynomialRank.Construction.mvPolynomial_expand_hasFiniteBasis R p hp.ne_zero σ |
| 44 | have : IsFinite (Spec.map (CommRingCat.ofHom |
| 45 | (MvPolynomial.expand p (R := R) (σ := σ)).toRingHom)) := by |
| 46 | rw [IsFinite.SpecMap_iff] |
| 47 | exact hfree.finite |
| 48 | have : Flat (Spec.map (CommRingCat.ofHom |
| 49 | (MvPolynomial.expand p (R := R) (σ := σ)).toRingHom)) := |
| 50 | Flat.SpecMap_iff.mpr hfree.flat |
| 51 | rw [Affine.Construction.relativeFrobenius_polynomial_factorization p hp R hR σ] |
| 52 | erw [finrank_comp_targetIso, |
| 53 | Scheme.Hom.finrank_SpecMap_eq_finrank hfree.finite hfree.flat] |
| 54 | exact hfree.finrank _ |
| 55 | |
| 56 | end Construction |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.AffineFrobeniusRank |