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.Dual.Lemmas |
| 2 | |
| 3 | /-! # Linear Normal Coordinates -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.LinearNormalCoordinates.Algebra |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A left inverse and a basis of normal covectors give joint linear coordinates. -/ |
| 10 | |
| 11 | open _root_.Algebra |
| 12 | |
| 13 | variable {K V W : Type} [Field K] [AddCommGroup V] [Module K V] |
| 14 | [AddCommGroup W] [Module K W] [FiniteDimensional K V] [FiniteDimensional K W] |
| 15 | {n : ℕ} |
| 16 | |
| 17 | theorem linearNormalCoordinates_bijective |
| 18 | (L : V →ₗ[K] W) (R : W →ₗ[K] V) (hRL : R.comp L = LinearMap.id) |
| 19 | (b : Module.Basis (Fin n) K (LinearMap.range L).dualAnnihilator) : |
| 20 | Function.Bijective (R.prod (LinearMap.pi (fun i => (b i : Module.Dual K W)))) := by |
| 21 | have hleft (v : V) : R (L v) = v := congrArg (fun T : V →ₗ[K] V => T v) hRL |
| 22 | have hL : Function.Injective L := Function.LeftInverse.injective hleft |
| 23 | let T := R.prod (LinearMap.pi (fun i => (b i : Module.Dual K W))) |
| 24 | have hT : Function.Injective T := by |
| 25 | apply (injective_iff_map_eq_zero T).mpr |
| 26 | intro w hw |
| 27 | have hRw : R w = 0 := congrArg Prod.fst hw |
| 28 | have hbw (i : Fin n) : (b i : Module.Dual K W) w = 0 := |
| 29 | congrArg (fun p : V × (Fin n → K) => p.2 i) hw |
| 30 | let E : (LinearMap.range L).dualAnnihilator →ₗ[K] K := |
| 31 | (Module.Dual.eval K W w).comp (LinearMap.range L).dualAnnihilator.subtype |
| 32 | have hE : E = 0 := b.ext (fun i => hbw i) |
| 33 | have hrange : w ∈ LinearMap.range L := by |
| 34 | apply (Subspace.forall_mem_dualAnnihilator_apply_eq_zero_iff (LinearMap.range L) w).mp |
| 35 | intro φ hφ |
| 36 | exact congrArg (fun F : (LinearMap.range L).dualAnnihilator →ₗ[K] K => F ⟨φ, hφ⟩) hE |
| 37 | obtain ⟨v, rfl⟩ := hrange |
| 38 | rw [hleft] at hRw |
| 39 | rw [hRw, map_zero] |
| 40 | have hdim : Module.finrank K W = Module.finrank K (V × (Fin n → K)) := by |
| 41 | have hd := Subspace.finrank_add_finrank_dualAnnihilator_eq (LinearMap.range L) |
| 42 | rw [LinearMap.finrank_range_of_inj hL, Module.finrank_eq_card_basis b, Fintype.card_fin] at hd |
| 43 | rw [Module.finrank_prod, Module.finrank_fin_fun] |
| 44 | exact hd.symm |
| 45 | exact ⟨hT, (LinearMap.injective_iff_surjective_of_finrank_eq_finrank hdim).mp hT⟩ |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.Comparison.Betti.LinearNormalCoordinates.Algebra |