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.Quotient.Basic |
| 2 | import Mathlib.RingTheory.Coprime.Basic |
| 3 | |
| 4 | /-! # Scalar Quotient Mk -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.CMPoints.ScalarQuotientMk |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An isogeny of modules whose scalar degree is coprime to the modulus |
| 11 | induces an actual linear equivalence on the quotient modules. The maps |
| 12 | and inverse are constructed from a Bezout identity. -/ |
| 13 | |
| 14 | variable {R M P : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 15 | [AddCommGroup P] [Module R P] |
| 16 | |
| 17 | def scalarMultiples (n : R) : Submodule R M := |
| 18 | LinearMap.range (n • (LinearMap.id : M →ₗ[R] M)) |
| 19 | |
| 20 | abbrev ScalarQuotient (R M : Type*) [CommRing R] [AddCommGroup M] [Module R M] |
| 21 | (n : R) := M ⧸ scalarMultiples (M := M) n |
| 22 | |
| 23 | theorem scalarQuotient_killed (n : R) (x : ScalarQuotientMk.ScalarQuotient R M n) : n • x = 0 := by |
| 24 | induction x using Submodule.Quotient.induction_on with |
| 25 | | _ x => |
| 26 | change (scalarMultiples (M := M) n).mkQ (n • x) = 0 |
| 27 | exact (Submodule.Quotient.mk_eq_zero _).mpr ⟨x, rfl⟩ |
| 28 | |
| 29 | def scalarQuotientMap (n : R) (f : M →ₗ[R] P) : |
| 30 | ScalarQuotientMk.ScalarQuotient R M n →ₗ[R] ScalarQuotientMk.ScalarQuotient R P n := |
| 31 | (scalarMultiples n).mapQ (scalarMultiples n) f (by |
| 32 | rintro _ ⟨x, rfl⟩ |
| 33 | exact ⟨f x, (f.map_smul n x).symm⟩) |
| 34 | |
| 35 | @[simp] theorem scalarQuotientMap_mk (n : R) (f : M →ₗ[R] P) (x : M) : |
| 36 | scalarQuotientMap n f (Submodule.Quotient.mk x) = Submodule.Quotient.mk (f x) := rfl |
| 37 | |
| 38 | theorem scalarQuotientMap_composite (n c : R) (f : M →ₗ[R] P) (g : P →ₗ[R] M) |
| 39 | (h : ∀ x, g (f x) = c • x) (x : ScalarQuotientMk.ScalarQuotient R M n) : |
| 40 | scalarQuotientMap n g (scalarQuotientMap n f x) = c • x := by |
| 41 | induction x using Submodule.Quotient.induction_on with |
| 42 | | _ x => |
| 43 | change (scalarMultiples (M := M) n).mkQ (g (f x)) = |
| 44 | c • (scalarMultiples (M := M) n).mkQ x |
| 45 | rw [h, map_smul] |
| 46 | |
| 47 | theorem bezout_smul_identity (n c a b : R) (h : a * c + b * n = 1) |
| 48 | (x : M) (hx : n • x = 0) : a • (c • x) = x := by |
| 49 | have he := congrArg (fun r : R => r • x) h |
| 50 | simpa only [add_smul, mul_smul, hx, smul_zero, add_zero, one_smul] using he |
| 51 | |
| 52 | /-- A pair of maps with both composites equal to a scalar gives an |
| 53 | equivalence modulo every modulus coprime to that scalar. -/ |
| 54 | def scalarQuotientEquiv (n c : R) (hc : IsCoprime c n) |
| 55 | (f : M →ₗ[R] P) (g : P →ₗ[R] M) |
| 56 | (hgf : ∀ x, g (f x) = c • x) (hfg : ∀ x, f (g x) = c • x) : |
| 57 | ScalarQuotientMk.ScalarQuotient R M n ≃ₗ[R] ScalarQuotientMk.ScalarQuotient R P n := by |
| 58 | let a := hc.choose |
| 59 | let b := hc.choose_spec.choose |
| 60 | have hab : a * c + b * n = 1 := hc.choose_spec.choose_spec |
| 61 | exact |
| 62 | { scalarQuotientMap n f with |
| 63 | invFun := fun y => a • scalarQuotientMap n g y |
| 64 | left_inv := fun x => by |
| 65 | change a • scalarQuotientMap n g (scalarQuotientMap n f x) = x |
| 66 | rw [scalarQuotientMap_composite n c f g hgf] |
| 67 | exact bezout_smul_identity n c a b hab x (scalarQuotient_killed n x) |
| 68 | right_inv := fun y => by |
| 69 | change scalarQuotientMap n f (a • scalarQuotientMap n g y) = y |
| 70 | rw [map_smul, scalarQuotientMap_composite n c g f hfg] |
| 71 | exact bezout_smul_identity n c a b hab y (scalarQuotient_killed n y) } |
| 72 | |
| 73 | def scalarQuotientCongr (e : M ≃ₗ[R] P) (n : R) : |
| 74 | ScalarQuotientMk.ScalarQuotient R M n ≃ₗ[R] ScalarQuotientMk.ScalarQuotient R P n := |
| 75 | scalarQuotientEquiv n 1 isCoprime_one_left e.toLinearMap e.symm.toLinearMap |
| 76 | (fun x => (e.symm_apply_apply x).trans (one_smul R x).symm) |
| 77 | (fun x => (e.apply_symm_apply x).trans (one_smul R x).symm) |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.PELModuli.CMPoints.ScalarQuotientMk |