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 |
| 2 | |
| 3 | /-! # Reduced Fiber Algebra -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.CentralAction.ReducedFiberAlgebra.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A finite algebra with as many geometric points as its dimension is |
| 10 | the product of its residue-field points. This detects the absence of |
| 11 | nilpotents in the finite polarization fibers. -/ |
| 12 | |
| 13 | variable (k A : Type*) [Field k] [CommRing A] [Algebra k A] [Module.Finite k A] |
| 14 | |
| 15 | def algebraPointEvaluation : A →ₐ[k] ((A →ₐ[k] k) → k) := AlgHom.pi fun f => f |
| 16 | |
| 17 | theorem algebraPointEvaluation_injective |
| 18 | (hcard : Nat.card (A →ₐ[k] k) = Module.finrank k A) : |
| 19 | Function.Injective (algebraPointEvaluation k A) := by |
| 20 | let : Fintype (A →ₐ[k] k) := Fintype.ofFinite _ |
| 21 | let b := basisOfLinearIndependentOfCardEqFinrank' |
| 22 | (AlgHom.toLinearMap : (A →ₐ[k] k) → A →ₗ[k] k) |
| 23 | (linearIndependent_algHom_toLinearMap k A k) |
| 24 | (by simpa only [Fintype.card_eq_nat_card, Subspace.dual_finrank_eq] using hcard) |
| 25 | intro x y hxy |
| 26 | apply Module.eval_apply_injective k |
| 27 | apply b.ext |
| 28 | intro f |
| 29 | simp only [b, coe_basisOfLinearIndependentOfCardEqFinrank'] |
| 30 | change f x = f y |
| 31 | exact congrFun hxy f |
| 32 | |
| 33 | /-- The actual evaluation map is an algebra isomorphism, not just an |
| 34 | equality of point counts. It will be used on finite geometric fibers. -/ |
| 35 | def algebraPointEvaluationEquiv |
| 36 | (hcard : Nat.card (A →ₐ[k] k) = Module.finrank k A) : |
| 37 | A ≃ₐ[k] ((A →ₐ[k] k) → k) := by |
| 38 | let : Fintype (A →ₐ[k] k) := Fintype.ofFinite _ |
| 39 | have hd : Module.finrank k A = Module.finrank k ((A →ₐ[k] k) → k) := by |
| 40 | rw [Module.finrank_fintype_fun_eq_card, Fintype.card_eq_nat_card, hcard] |
| 41 | have hi := algebraPointEvaluation_injective k A hcard |
| 42 | exact AlgEquiv.ofBijective (algebraPointEvaluation k A) |
| 43 | ⟨hi, (LinearMap.injective_iff_surjective_of_finrank_eq_finrank |
| 44 | (f := (algebraPointEvaluation k A).toLinearMap) hd).mp hi⟩ |
| 45 | |
| 46 | theorem finite_algebra_etale_of_point_count |
| 47 | (hcard : Nat.card (A →ₐ[k] k) = Module.finrank k A) : Algebra.Etale k A := by |
| 48 | exact Algebra.Etale.of_equiv (algebraPointEvaluationEquiv k A hcard).symm |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.AbelianScheme.CentralAction.ReducedFiberAlgebra.Construction |