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 | /-! # Frame Bilinear Ext -/ |
| 4 | |
| 5 | namespace OAI |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.Rational.FrameBilinearExt.CM |
| 10 | |
| 11 | /-! Complex bilinear forms are determined on a specified rational frame. |
| 12 | The frame is an actual coordinate equivalence, with no density assumption. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | variable {I U V : Type*} [Fintype I] [DecidableEq I] |
| 17 | [AddCommGroup U] [Module ℚ U] [AddCommGroup V] [Module ℂ V] |
| 18 | (q : U ≃ₗ[ℚ] (I → ℚ)) (e : V ≃ₗ[ℂ] (I → ℂ)) (r : U → V) |
| 19 | (hr : ∀ x, e (r x) = fun i => (q x i : ℂ)) |
| 20 | |
| 21 | include hr |
| 22 | |
| 23 | omit [Fintype I] [DecidableEq I] in |
| 24 | theorem inverse_rational (x : I → ℚ) : |
| 25 | e.symm (fun i => (x i : ℂ)) = r (q.symm x) := by |
| 26 | apply e.injective |
| 27 | rw [LinearEquiv.apply_symm_apply, hr, LinearEquiv.apply_symm_apply] |
| 28 | |
| 29 | theorem ext (B D : LinearMap.BilinForm ℂ V) |
| 30 | (h : ∀ x y, B (r x) (r y) = D (r x) (r y)) : B = D := by |
| 31 | have hs (i : I) : (Pi.single i (1 : ℂ) : I → ℂ) = |
| 32 | fun j => ((Pi.single i (1 : ℚ) : I → ℚ) j : ℂ) := by |
| 33 | funext j |
| 34 | simp only [Pi.single_apply] |
| 35 | split_ifs <;> norm_num |
| 36 | have heq : B.compl₁₂ e.symm.toLinearMap e.symm.toLinearMap = |
| 37 | D.compl₁₂ e.symm.toLinearMap e.symm.toLinearMap := by |
| 38 | apply (Pi.basisFun ℂ I).ext |
| 39 | intro i |
| 40 | apply (Pi.basisFun ℂ I).ext |
| 41 | intro j |
| 42 | simp only [LinearMap.compl₁₂_apply, LinearEquiv.coe_coe, Pi.basisFun_apply, hs, |
| 43 | inverse_rational q e r hr] |
| 44 | exact h _ _ |
| 45 | apply LinearMap.ext |
| 46 | intro x |
| 47 | apply LinearMap.ext |
| 48 | intro y |
| 49 | have hxy := LinearMap.congr_fun (LinearMap.congr_fun heq (e x)) (e y) |
| 50 | simpa only [LinearMap.compl₁₂_apply, LinearEquiv.coe_coe, LinearEquiv.symm_apply_apply] using hxy |
| 51 | |
| 52 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.Rational.FrameBilinearExt.CM |
| 53 | |
| 54 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.Rational.FrameBilinearExt.CM.Linear |
| 55 | |
| 56 | /-! Complex linear maps are determined on an actual rational frame. -/ |
| 57 | |
| 58 | open scoped Classical |
| 59 | |
| 60 | variable {I U V W : Type*} [Fintype I] [DecidableEq I] |
| 61 | [AddCommGroup U] [Module ℚ U] [AddCommGroup V] [Module ℂ V] |
| 62 | [AddCommGroup W] [Module ℂ W] |
| 63 | (q : U ≃ₗ[ℚ] (I → ℚ)) (e : V ≃ₗ[ℂ] (I → ℂ)) (r : U → V) |
| 64 | (hr : ∀ x, e (r x) = fun i => (q x i : ℂ)) |
| 65 | |
| 66 | include hr in |
| 67 | theorem ext (A B : V →ₗ[ℂ] W) (h : ∀ x, A (r x) = B (r x)) : A = B := by |
| 68 | have hs (i : I) : (Pi.single i (1 : ℂ) : I → ℂ) = |
| 69 | fun j => ((Pi.single i (1 : ℚ) : I → ℚ) j : ℂ) := by |
| 70 | funext j |
| 71 | simp only [Pi.single_apply] |
| 72 | split_ifs <;> norm_num |
| 73 | have heq : A.comp e.symm.toLinearMap = B.comp e.symm.toLinearMap := by |
| 74 | apply (Pi.basisFun ℂ I).ext |
| 75 | intro i |
| 76 | simp only [LinearMap.comp_apply, LinearEquiv.coe_coe, Pi.basisFun_apply, hs, |
| 77 | inverse_rational q e r hr] |
| 78 | exact h _ |
| 79 | apply LinearMap.ext |
| 80 | intro x |
| 81 | simpa only [LinearMap.comp_apply, LinearEquiv.coe_coe, LinearEquiv.symm_apply_apply] using |
| 82 | LinearMap.congr_fun heq (e x) |
| 83 | |
| 84 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.Rational.FrameBilinearExt.CM.Linear |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI |