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.RingTheory.Smooth.Fiber |
| 2 | import Mathlib.Algebra.CharP.Reduced |
| 3 | import Mathlib.RingTheory.FinitePresentation |
| 4 | |
| 5 | /-! # Reduced Etale -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.ReducedEtale |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Finite reduced algebras in positive characteristic have zero differentials and are étale over a field. -/ |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable (p : ℕ) [Fact p.Prime] (R : Type u) (A : Type v) [CommRing R] [CommRing A] |
| 16 | [Algebra R A] [Finite A] [IsReduced A] [CharP A p] |
| 17 | |
| 18 | include p in |
| 19 | theorem differential_zero (a : A) : KaehlerDifferential.D R A a = 0 := by |
| 20 | obtain ⟨b, hb⟩ := Finite.surjective_of_injective (frobenius_inj A p) a |
| 21 | change b ^ p = a at hb |
| 22 | rw [← hb, Derivation.leibniz_pow, ← Nat.cast_smul_eq_nsmul A, CharP.cast_eq_zero A p, zero_smul] |
| 23 | |
| 24 | include p in |
| 25 | theorem formallyUnramified : Algebra.FormallyUnramified R A := by |
| 26 | constructor |
| 27 | suffices (⊤ : Submodule A (KaehlerDifferential R A)) ≤ ⊥ from |
| 28 | (subsingleton_iff_forall_eq 0).mpr (fun x => this trivial) |
| 29 | rw [← KaehlerDifferential.span_range_derivation, Submodule.span_le] |
| 30 | rintro _ ⟨a, rfl⟩ |
| 31 | exact differential_zero p R A a |
| 32 | |
| 33 | include p in |
| 34 | theorem etale (k : Type u) [Field k] [Algebra k A] : Algebra.Etale k A := by |
| 35 | let : Module.Finite k A := inferInstance |
| 36 | let : Algebra.FinitePresentation k A := Algebra.FinitePresentation.of_finiteType.mp inferInstance |
| 37 | let : Algebra.FormallyUnramified k A := formallyUnramified p k A |
| 38 | exact Algebra.Etale.of_formallyUnramified_of_flat |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.ReducedEtale |