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.LinearAlgebra.FreeModule.Finite.Matrix |
| 2 | import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas |
| 3 | import Mathlib.LinearAlgebra.Dual.Lemmas |
| 4 | import Mathlib.RingTheory.Nilpotent.Basic |
| 5 | import Mathlib.RingTheory.Etale.Pi |
| 6 | |
| 7 | /-! # Algebra Point Rank -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.AlgebraPointRank |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A finite algebra whose field-valued point count equals its vector-space dimension is the product of those copies of the field. This detects the absence of infinitesimal length in finite geometric fibers. -/ |
| 14 | universe u v |
| 15 | |
| 16 | def algebraPointEvaluation (K : Type u) [Field K] (B : Type v) [CommRing B] [Algebra K B] : |
| 17 | B →ₐ[K] ((B →ₐ[K] K) → K) where |
| 18 | toFun x φ := φ x |
| 19 | map_one' := by ext φ; exact map_one φ |
| 20 | map_mul' x y := by ext φ; exact map_mul φ x y |
| 21 | map_zero' := by ext φ; exact map_zero φ |
| 22 | map_add' x y := by ext φ; exact map_add φ x y |
| 23 | commutes' x := by ext φ; exact φ.commutes x |
| 24 | |
| 25 | theorem algebraPointEvaluation_injective_of_card_eq |
| 26 | (K : Type u) [Field K] (B : Type v) [CommRing B] [Algebra K B] [Module.Finite K B] |
| 27 | (hcard : Nat.card (B →ₐ[K] K) = Module.finrank K B) : |
| 28 | Function.Injective (algebraPointEvaluation K B) := by |
| 29 | classical |
| 30 | let : Fintype (B →ₐ[K] K) := Fintype.ofFinite _ |
| 31 | have hdim : Fintype.card (B →ₐ[K] K) = Module.finrank K (B →ₗ[K] K) := |
| 32 | (Nat.card_eq_fintype_card.symm.trans hcard).trans (Module.finrank_linearMap_self (R := K) (S := K) (M := B)).symm |
| 33 | have hspan := (linearIndependent_algHom_toLinearMap K B K).span_eq_top_of_card_eq_finrank' hdim |
| 34 | intro x y hxy |
| 35 | apply sub_eq_zero.mp |
| 36 | apply (Module.forall_dual_apply_eq_zero_iff K (x - y)).mp |
| 37 | intro φ |
| 38 | have hφ : φ ∈ Submodule.span K (Set.range (AlgHom.toLinearMap : (B →ₐ[K] K) → B →ₗ[K] K)) := |
| 39 | hspan.symm ▸ Submodule.mem_top |
| 40 | induction hφ using Submodule.span_induction with |
| 41 | | mem z hz => |
| 42 | obtain ⟨a, rfl⟩ := hz |
| 43 | change a (x - y) = 0 |
| 44 | rw [map_sub] |
| 45 | exact sub_eq_zero.mpr (congrFun hxy a) |
| 46 | | zero => rfl |
| 47 | | add a b _ _ ha hb => exact (congrArg₂ (· + ·) ha hb).trans (zero_add 0) |
| 48 | | smul r a _ ha => exact (congrArg (r • ·) ha).trans (smul_zero r) |
| 49 | |
| 50 | theorem algebraPointEvaluation_bijective_of_card_eq |
| 51 | (K : Type u) [Field K] (B : Type v) [CommRing B] [Algebra K B] [Module.Finite K B] |
| 52 | (hcard : Nat.card (B →ₐ[K] K) = Module.finrank K B) : |
| 53 | Function.Bijective (algebraPointEvaluation K B) := by |
| 54 | classical |
| 55 | let : Fintype (B →ₐ[K] K) := Fintype.ofFinite _ |
| 56 | have hi := algebraPointEvaluation_injective_of_card_eq K B hcard |
| 57 | have hdim : Module.finrank K B = Module.finrank K ((B →ₐ[K] K) → K) := by |
| 58 | rw [Module.finrank_fintype_fun_eq_card, ← Nat.card_eq_fintype_card, hcard] |
| 59 | exact ⟨hi, (LinearMap.injective_iff_surjective_of_finrank_eq_finrank |
| 60 | (f := (algebraPointEvaluation K B).toLinearMap) hdim).mp hi⟩ |
| 61 | |
| 62 | def finiteAlgebraPointEquiv |
| 63 | (K : Type u) [Field K] (B : Type v) [CommRing B] [Algebra K B] [Module.Finite K B] |
| 64 | (hcard : Nat.card (B →ₐ[K] K) = Module.finrank K B) : B ≃ₐ[K] ((B →ₐ[K] K) → K) := |
| 65 | AlgEquiv.ofBijective (algebraPointEvaluation K B) (algebraPointEvaluation_bijective_of_card_eq K B hcard) |
| 66 | |
| 67 | theorem finiteAlgebra_reduced_of_point_card_eq |
| 68 | (K : Type u) [Field K] (B : Type v) [CommRing B] [Algebra K B] [Module.Finite K B] |
| 69 | (hcard : Nat.card (B →ₐ[K] K) = Module.finrank K B) : IsReduced B := |
| 70 | isReduced_of_injective (algebraPointEvaluation K B) |
| 71 | (algebraPointEvaluation_injective_of_card_eq K B hcard) |
| 72 | |
| 73 | theorem finiteAlgebra_etale_of_point_card_eq |
| 74 | (K : Type u) [Field K] (B : Type v) [CommRing B] [Algebra K B] [Module.Finite K B] |
| 75 | (hcard : Nat.card (B →ₐ[K] K) = Module.finrank K B) : Algebra.Etale K B := by |
| 76 | classical |
| 77 | let : Fintype (B →ₐ[K] K) := Fintype.ofFinite _ |
| 78 | exact Algebra.Etale.of_equiv (finiteAlgebraPointEquiv K B hcard).symm |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.AlgebraPointRank |