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 | |
| 3 | /-! # Pi Restriction Equiv -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.PiRestrictionEquiv |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Restricting a dependent product along an embedding discards only zero modules. -/ |
| 10 | |
| 11 | universe u v w t z |
| 12 | |
| 13 | variable {R : Type u} [CommRing R] {ι : Type v} [Nonempty ι] {κ : Type w} |
| 14 | variable (A : ι → Type t) (B : κ → Type z) |
| 15 | variable [∀ i, AddCommGroup (A i)] [∀ i, Module R (A i)] |
| 16 | variable [∀ j, AddCommGroup (B j)] [∀ j, Module R (B j)] |
| 17 | |
| 18 | def piRestrictionLinear (e : ι ↪ κ) (E : ∀ i, B (e i) ≃ₗ[R] A i) : |
| 19 | (∀ j, B j) →ₗ[R] ∀ i, A i where |
| 20 | toFun x i := E i (x (e i)) |
| 21 | map_add' x y := by funext i; exact map_add (E i) (x (e i)) (y (e i)) |
| 22 | map_smul' r x := by funext i; exact map_smul (E i) r (x (e i)) |
| 23 | |
| 24 | theorem piRestrictionLinear_bijective (e : ι ↪ κ) (E : ∀ i, B (e i) ≃ₗ[R] A i) |
| 25 | (hzero : ∀ j : κ, j ∉ Set.range e → Subsingleton (B j)) : |
| 26 | Function.Bijective (piRestrictionLinear A B e E) := by |
| 27 | classical |
| 28 | constructor |
| 29 | · intro x y hxy |
| 30 | funext j |
| 31 | by_cases hj : j ∈ Set.range e |
| 32 | · obtain ⟨i, rfl⟩ := hj |
| 33 | exact (E i).injective (congrFun hxy i) |
| 34 | · exact @Subsingleton.elim (B j) (hzero j hj) (x j) (y j) |
| 35 | · intro x |
| 36 | obtain ⟨g, hg⟩ := e.injective.hasLeftInverse |
| 37 | let y : ∀ j, B j := fun j => if hj : e (g j) = j then hj ▸ ((E (g j)).symm (x (g j))) else 0 |
| 38 | refine ⟨y, ?_⟩ |
| 39 | funext i |
| 40 | have hy : y (e i) = (E i).symm (x i) := by |
| 41 | have ht (j k : ι) (h : j = k) : |
| 42 | (congrArg e h) ▸ ((E j).symm (x j)) = (E k).symm (x k) := by |
| 43 | subst k |
| 44 | rfl |
| 45 | dsimp only [y] |
| 46 | rw [dite_eq_left (congrArg e (hg i))] |
| 47 | exact ht (g (e i)) i (hg i) |
| 48 | change E i (y (e i)) = x i |
| 49 | rw [hy, LinearEquiv.apply_symm_apply] |
| 50 | |
| 51 | def piRestrictionEquiv (e : ι ↪ κ) (E : ∀ i, B (e i) ≃ₗ[R] A i) |
| 52 | (hzero : ∀ j : κ, j ∉ Set.range e → Subsingleton (B j)) : |
| 53 | (∀ j, B j) ≃ₗ[R] ∀ i, A i := |
| 54 | LinearEquiv.ofBijective (piRestrictionLinear A B e E) (piRestrictionLinear_bijective A B e E hzero) |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.PiRestrictionEquiv |