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.BilinearMap |
| 2 | |
| 3 | /-! # Graded Cup Transport -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.GradedCupTransport |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Algebra laws for a graded bilinear cup transported through actual |
| 10 | degreewise linear equivalences. -/ |
| 11 | |
| 12 | universe u v w |
| 13 | |
| 14 | variable (R : Type u) [CommRing R] (H : ℕ → Type v) |
| 15 | [∀ i, AddCommGroup (H i)] [∀ i, Module R (H i)] |
| 16 | |
| 17 | def degreeCast {m n : ℕ} (h : m = n) : H m ≃ₗ[R] H n := h ▸ LinearEquiv.refl R (H m) |
| 18 | |
| 19 | variable (G : ℕ → Type w) [∀ i, AddCommGroup (G i)] [∀ i, Module R (G i)] |
| 20 | |
| 21 | theorem degreeCast_map (f : ∀ i, H i →ₗ[R] G i) {m n : ℕ} (h : m = n) (x : H m) : |
| 22 | degreeCast R G h (f m x) = f n (degreeCast R H h x) := by |
| 23 | subst n |
| 24 | rfl |
| 25 | |
| 26 | variable (e : ∀ i, H i ≃ₗ[R] G i) |
| 27 | (μ : ∀ i j, H i →ₗ[R] H j →ₗ[R] H (i + j)) |
| 28 | |
| 29 | def cup (i j : ℕ) : G i →ₗ[R] G j →ₗ[R] G (i + j) := |
| 30 | (((μ i j).comp (e i).symm.toLinearMap).compl₂ (e j).symm.toLinearMap).compr₂ |
| 31 | (e (i + j)).toLinearMap |
| 32 | |
| 33 | theorem cup_apply (i j : ℕ) (x : H i) (y : H j) : |
| 34 | cup R H G e μ i j (e i x) (e j y) = e (i + j) (μ i j x y) := by |
| 35 | simp only [cup, LinearMap.compr₂_apply, LinearMap.compl₂_apply, LinearMap.comp_apply, |
| 36 | LinearEquiv.coe_coe, LinearEquiv.symm_apply_apply] |
| 37 | |
| 38 | theorem assoc (hμ : ∀ i j k (x : H i) (y : H j) (z : H k), |
| 39 | degreeCast R H (Nat.add_assoc i j k) (μ (i + j) k (μ i j x y) z) = μ i (j + k) x (μ j k y z)) |
| 40 | (i j k : ℕ) (x : G i) (y : G j) (z : G k) : |
| 41 | degreeCast R G (Nat.add_assoc i j k) |
| 42 | (cup R H G e μ (i + j) k (cup R H G e μ i j x y) z) = |
| 43 | cup R H G e μ i (j + k) x (cup R H G e μ j k y z) := by |
| 44 | obtain ⟨x, rfl⟩ := (e i).surjective x |
| 45 | obtain ⟨y, rfl⟩ := (e j).surjective y |
| 46 | obtain ⟨z, rfl⟩ := (e k).surjective z |
| 47 | rw [cup_apply, cup_apply, cup_apply, cup_apply] |
| 48 | exact (degreeCast_map R H G (fun n => (e n).toLinearMap) (Nat.add_assoc i j k) _).trans |
| 49 | (congrArg (e (i + (j + k))) (hμ i j k x y z)) |
| 50 | |
| 51 | theorem one_add_swap (hμ : ∀ x y : H 1, μ 1 1 x y + μ 1 1 y x = 0) |
| 52 | (x y : G 1) : cup R H G e μ 1 1 x y + cup R H G e μ 1 1 y x = 0 := by |
| 53 | obtain ⟨x, rfl⟩ := (e 1).surjective x |
| 54 | obtain ⟨y, rfl⟩ := (e 1).surjective y |
| 55 | rw [cup_apply, cup_apply, ← map_add, hμ, map_zero] |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.NumberTheory.PadicHodge.IntegralComparison.GradedCupTransport |