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.IntegralComparison.Etale.ConnectedComponents |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Interfaces |
| 3 | |
| 4 | /-! # Etale Degree Zero -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SmoothProper.EtaleDegreeZero |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An unconditional integral Frobenius polynomial for the original geometric étale cohomology in degree zero. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Frobenius.Geometry |
| 17 | |
| 18 | section Geometry |
| 19 | |
| 20 | variable (k L : Type u) [Field k] [Field L] [Algebra k L] |
| 21 | variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of k)) |
| 22 | [LocallyOfFiniteType f] [QuasiCompact f] |
| 23 | |
| 24 | instance geometric_noetherian : IsNoetherian (Frobenius.Geometry.geometricFiber (L := L) f) := by |
| 25 | let g : Frobenius.Geometry.geometricFiber (L := L) f ⟶ Spec (CommRingCat.of L) := |
| 26 | pullback.snd f (Spec.map (CommRingCat.ofHom (algebraMap k L))) |
| 27 | let : IsLocallyNoetherian (Frobenius.Geometry.geometricFiber (L := L) f) := |
| 28 | LocallyOfFiniteType.isLocallyNoetherian g |
| 29 | let : CompactSpace (Frobenius.Geometry.geometricFiber (L := L) f) := |
| 30 | QuasiCompact.compactSpace_of_compactSpace g |
| 31 | exact {} |
| 32 | |
| 33 | end Geometry |
| 34 | |
| 35 | variable (p a : ℕ) [Fact p.Prime] |
| 36 | variable (k : Type u) [Field k] [Fintype k] [CharP k p] |
| 37 | variable (hcard : Fintype.card k = p ^ a) |
| 38 | variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of k)) [IsProper f] |
| 39 | |
| 40 | def permutation : Equiv.Perm (_root_.ConnectedComponents (Frobenius.Geometry.geometricFiber (L := AlgebraicClosure k) f)) := |
| 41 | Etale.ConnectedComponents.permutation _ |
| 42 | (Frobenius.Geometry.geometricFiberIso f (Frobenius.Geometry.geometricFrobenius p a k hcard)) |
| 43 | |
| 44 | def polynomial : Polynomial ℤ := |
| 45 | Etale.ConnectedComponents.polynomial _ |
| 46 | (Frobenius.Geometry.geometricFiberIso f (Frobenius.Geometry.geometricFrobenius p a k hcard)) |
| 47 | |
| 48 | theorem polynomial_monic : (polynomial p a k hcard f).Monic := |
| 49 | Etale.ConnectedComponents.polynomial_monic _ _ |
| 50 | |
| 51 | variable (ℓ : ℕ) [Fact ℓ.Prime] |
| 52 | |
| 53 | omit p a [Fact p.Prime] [Fintype k] [CharP k p] hcard in |
| 54 | instance finite : FiniteDimensional ℚ_[ℓ] (Interfaces.EtaleCohomology ℓ k f 0) := |
| 55 | PeriodInvariants.EtaleDegreeZero.degreeZero_finite ℓ _ |
| 56 | |
| 57 | theorem charpoly : |
| 58 | (Interfaces.etaleGeometricFrobenius ℓ p a k hcard f 0).charpoly = |
| 59 | (polynomial p a k hcard f).map (Int.castRingHom ℚ_[ℓ]) := |
| 60 | Etale.ConnectedComponents.charpoly ℓ _ _ |
| 61 | |
| 62 | omit p a [Fact p.Prime] [Fintype k] [CharP k p] hcard in |
| 63 | theorem finrank : Module.finrank ℚ_[ℓ] (Interfaces.EtaleCohomology ℓ k f 0) = |
| 64 | Nat.card (_root_.ConnectedComponents (Frobenius.Geometry.geometricFiber (L := AlgebraicClosure k) f)) := |
| 65 | Etale.ConnectedComponents.finrank ℓ _ |
| 66 | |
| 67 | theorem trace_pow (n : ℕ) : |
| 68 | LinearMap.trace ℚ_[ℓ] (Interfaces.EtaleCohomology ℓ k f 0) |
| 69 | (Interfaces.etaleGeometricFrobenius ℓ p a k hcard f 0 ^ n) = |
| 70 | (Nat.card {c // (permutation p a k hcard f ^ n) c = c} : ℚ_[ℓ]) := by |
| 71 | classical |
| 72 | let : Fintype (_root_.ConnectedComponents (Frobenius.Geometry.geometricFiber (L := AlgebraicClosure k) f)) := |
| 73 | Fintype.ofFinite _ |
| 74 | exact (Etale.ConnectedComponents.trace_pow ℓ _ |
| 75 | (Frobenius.Geometry.geometricFiberIso f (Frobenius.Geometry.geometricFrobenius p a k hcard)) n).trans |
| 76 | (by rw [Nat.card_eq_fintype_card, Fintype.card_subtype]; rfl) |
| 77 | |
| 78 | theorem exists_monic : |
| 79 | ∃ hfin : FiniteDimensional ℚ_[ℓ] (Interfaces.EtaleCohomology ℓ k f 0), |
| 80 | letI := hfin |
| 81 | ∃ P : Polynomial ℤ, P.Monic ∧ |
| 82 | (Interfaces.etaleGeometricFrobenius ℓ p a k hcard f 0).charpoly = |
| 83 | P.map (Int.castRingHom ℚ_[ℓ]) := |
| 84 | ⟨finite k f ℓ, polynomial p a k hcard f, polynomial_monic p a k hcard f, |
| 85 | EtaleDegreeZero.charpoly p a k hcard f ℓ⟩ |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SmoothProper.EtaleDegreeZero |