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.NumberTheory.PadicHodge.PeriodInvariants.FrobeniusBasis |
| 2 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteFreeFiberSurjectivity |
| 3 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteEtalePerfectField |
| 4 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.PerfectQuotient |
| 5 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.EtaleDomainReduced |
| 6 | import Mathlib.RingTheory.Flat.FaithfullyFlat.Basic |
| 7 | |
| 8 | /-! # Finite Etale Perfect Algebra -/ |
| 9 | |
| 10 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteEtalePerfectAlgebra |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! # Finite free étale algebras over a perfect domain are perfect |
| 15 | |
| 16 | The target may be disconnected. Its reducedness is derived from étaleness. |
| 17 | -/ |
| 18 | |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | universe u |
| 22 | variable (p : ℕ) [Fact p.Prime] (R S : Type u) [CommRing R] [IsDomain R] |
| 23 | [CommRing S] [Nontrivial S] [Algebra R S] [CharP R p] [CharP S p] [PerfectRing R p] |
| 24 | [Module.Free R S] [Module.Finite R S] [Algebra.Etale R S] |
| 25 | |
| 26 | include R in |
| 27 | theorem perfectRing : PerfectRing S p := by |
| 28 | classical |
| 29 | have : IsReduced S := EtaleDomainReduced.reduced R S |
| 30 | let ι := Module.Free.ChooseBasisIndex R S |
| 31 | let : Fintype ι := Fintype.ofFinite ι |
| 32 | let b : Module.Basis ι R S := Module.Free.chooseBasis R S |
| 33 | apply PerfectRing.ofSurjective S p |
| 34 | apply FrobeniusBasis.frobenius_surjective p b |
| 35 | apply (FiniteFreeFiberSurjectivity.bijective (FrobeniusBasis.linear p b) ?_).surjective |
| 36 | intro m hm |
| 37 | let F := R ⧸ m |
| 38 | let : Field F := Ideal.Quotient.field m |
| 39 | have : CharP F p := CharP.of_ringHom_of_ne_zero (Ideal.Quotient.mk m) p (Fact.out : p.Prime).ne_zero |
| 40 | have : PerfectRing F p := PerfectQuotient.perfectRing p R m |
| 41 | have : CharP (F ⊗[R] S) p := CharP.of_ringHom_of_ne_zero |
| 42 | (algebraMap F (F ⊗[R] S)) p (Fact.out : p.Prime).ne_zero |
| 43 | have : PerfectRing (F ⊗[R] S) p := FiniteEtalePerfectField.perfectRing p F (F ⊗[R] S) |
| 44 | rw [FrobeniusBasis.baseChange] |
| 45 | exact FrobeniusBasis.surjective_of_perfect p (b.baseChange F) |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteEtalePerfectAlgebra |