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.Pi |
| 2 | import Mathlib.Algebra.Module.Equiv.Basic |
| 3 | |
| 4 | /-! # Scalar Linear Components -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Product.ScalarLinearComponents |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An equivalence linear over a product of fields acts separately |
| 11 | and linearly on each vector-space factor. The component maps and their |
| 12 | inverses are constructed from the actual equivalence. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | variable {k I U : Type*} [Field k] [AddCommGroup U] [Module k U] |
| 17 | |
| 18 | local notation "S" => I → k |
| 19 | local notation "W" => I → U |
| 20 | |
| 21 | theorem piScalarLinear_coordinate_eq (f : W →ₗ[S] W) (p : I) |
| 22 | (x y : W) (hxy : x p = y p) : f x p = f y p := by |
| 23 | let e : S := Pi.single p 1 |
| 24 | have he : e • x = e • y := by |
| 25 | ext q |
| 26 | by_cases h : q = p |
| 27 | · subst q |
| 28 | simpa only [Pi.smul_apply', e, Pi.single_eq_same, one_smul] using hxy |
| 29 | · simp only [Pi.smul_apply', e, Pi.single_eq_of_ne h, zero_smul] |
| 30 | have h := congrArg (fun v : W => v p) (congrArg f he) |
| 31 | rw [f.map_smul, f.map_smul] at h |
| 32 | simpa only [Pi.smul_apply', e, Pi.single_eq_same, one_smul] using h |
| 33 | |
| 34 | def piScalarLinearComponent (f : W ≃ₗ[S] W) (p : I) : U ≃ₗ[k] U where |
| 35 | toFun x := f (fun _ => x) p |
| 36 | invFun x := f.symm (fun _ => x) p |
| 37 | left_inv x := |
| 38 | (piScalarLinear_coordinate_eq f.symm.toLinearMap p |
| 39 | (fun _ => f (fun _ => x) p) (f (fun _ => x)) rfl).trans |
| 40 | (congrArg (fun v : W => v p) (f.symm_apply_apply (fun _ => x))) |
| 41 | right_inv x := |
| 42 | (piScalarLinear_coordinate_eq f.toLinearMap p |
| 43 | (fun _ => f.symm (fun _ => x) p) (f.symm (fun _ => x)) rfl).trans |
| 44 | (congrArg (fun v : W => v p) (f.apply_symm_apply (fun _ => x))) |
| 45 | map_add' x y := congrArg (fun v : W => v p) (f.map_add (fun _ => x) (fun _ => y)) |
| 46 | map_smul' a x := |
| 47 | congrArg (fun v : W => v p) ((f.restrictScalars k).map_smul a (fun _ => x)) |
| 48 | |
| 49 | theorem piScalarLinearComponent_apply (f : W ≃ₗ[S] W) (p : I) (x : W) : |
| 50 | f x p = piScalarLinearComponent f p (x p) := |
| 51 | piScalarLinear_coordinate_eq f.toLinearMap p x (fun _ => x p) rfl |
| 52 | |
| 53 | def piComponentsScalarLinearEquiv (q : I → U ≃ₗ[k] U) : W ≃ₗ[S] W where |
| 54 | toFun x p := q p (x p) |
| 55 | invFun x p := (q p).symm (x p) |
| 56 | left_inv x := by ext p; exact (q p).symm_apply_apply (x p) |
| 57 | right_inv x := by ext p; exact (q p).apply_symm_apply (x p) |
| 58 | map_add' x y := by ext p; exact (q p).map_add (x p) (y p) |
| 59 | map_smul' a x := by ext p; exact (q p).map_smul (a p) (x p) |
| 60 | |
| 61 | theorem piComponentsScalarLinearEquiv_components (f : W ≃ₗ[S] W) : |
| 62 | piComponentsScalarLinearEquiv (piScalarLinearComponent f) = f := by |
| 63 | ext x p |
| 64 | exact (piScalarLinearComponent_apply f p x).symm |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Product.ScalarLinearComponents |