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.ArithmeticGeometry.OrdinaryLocus.Openness.FiniteRationalPoints |
| 2 | import Mathlib.LinearAlgebra.LinearIndependent.Lemmas |
| 3 | import Mathlib.LinearAlgebra.Dual.Lemmas |
| 4 | |
| 5 | /-! # Affine Point Card -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffinePointCard.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Bounding rational point counts by the rank of an affine coordinate algebra. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | def specPointsEquivAlgHom |
| 18 | (R B C : Type u) [CommRing R] [CommRing B] [CommRing C] |
| 19 | [Algebra R B] [Algebra R C] : |
| 20 | (Over.mk (Spec.map (CommRingCat.ofHom (algebraMap R C))) ⟶ |
| 21 | Over.mk (Spec.map (CommRingCat.ofHom (algebraMap R B)))) ≃ (B →ₐ[R] C) where |
| 22 | toFun f := |
| 23 | { toRingHom := (Spec.preimage f.left).hom |
| 24 | commutes' := fun r => by |
| 25 | have hw : f.left ≫ Spec.map (CommRingCat.ofHom (algebraMap R B)) = |
| 26 | Spec.map (CommRingCat.ofHom (algebraMap R C)) := f.w |
| 27 | have h := congrArg Spec.preimage hw |
| 28 | simp only [Spec.preimage_comp, Spec.preimage_map] at h |
| 29 | exact congrArg (fun f => f.hom r) h } |
| 30 | invFun f := Over.homMk (Spec.map (CommRingCat.ofHom f.toRingHom)) (by |
| 31 | change Spec.map (CommRingCat.ofHom f.toRingHom) ≫ |
| 32 | Spec.map (CommRingCat.ofHom (algebraMap R B)) = |
| 33 | Spec.map (CommRingCat.ofHom (algebraMap R C)) |
| 34 | rw [← Spec.map_comp] |
| 35 | congr 1 |
| 36 | ext r |
| 37 | exact f.commutes r) |
| 38 | left_inv f := by |
| 39 | apply Over.OverMorphism.ext |
| 40 | exact Spec.map_preimage f.left |
| 41 | right_inv f := by |
| 42 | apply AlgHom.ext |
| 43 | intro x |
| 44 | change (Spec.preimage (Spec.map (CommRingCat.ofHom f.toRingHom))) x = f x |
| 45 | rw [Spec.preimage_map] |
| 46 | rfl |
| 47 | |
| 48 | def specRationalPointsEquivAlgHom |
| 49 | (R B : Type u) [CommRing R] [CommRing B] [Algebra R B] : |
| 50 | (Over.mk (𝟙 (Spec (.of R))) ⟶ |
| 51 | Over.mk (Spec.map (CommRingCat.ofHom (algebraMap R B)))) ≃ (B →ₐ[R] R) := by |
| 52 | simpa only [Algebra.algebraMap_self, CommRingCat.ofHom_id, Spec.map_id] using |
| 53 | specPointsEquivAlgHom R B R |
| 54 | |
| 55 | /-- Distinct algebra characters are linearly independent, so their number |
| 56 | cannot exceed the coordinate algebra's dimension. -/ |
| 57 | theorem card_algHom_le_finrank |
| 58 | (K B : Type*) [Field K] [CommRing B] [Algebra K B] [Module.Finite K B] : |
| 59 | Nat.card (B →ₐ[K] K) ≤ Module.finrank K B := by |
| 60 | cases finite_or_infinite (B →ₐ[K] K) with |
| 61 | | inl h => |
| 62 | let := Fintype.ofFinite (B →ₐ[K] K) |
| 63 | have hcard := (linearIndependent_algHom_toLinearMap K B K).fintype_card_le_finrank |
| 64 | simpa only [Subspace.dual_finrank_eq, Nat.card_eq_fintype_card] using hcard |
| 65 | | inr h => simp only [Nat.card_eq_zero_of_infinite, Nat.zero_le] |
| 66 | |
| 67 | theorem card_specRationalPoints_le_finrank |
| 68 | (K B : Type u) [Field K] [CommRing B] [Algebra K B] [Module.Finite K B] : |
| 69 | Nat.card (Over.mk (𝟙 (Spec (.of K))) ⟶ |
| 70 | Over.mk (Spec.map (CommRingCat.ofHom (algebraMap K B)))) ≤ Module.finrank K B := |
| 71 | (Nat.card_congr (specRationalPointsEquivAlgHom K B)).trans_le (card_algHom_le_finrank K B) |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffinePointCard.Construction |