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 OAI.NumberTheory.PadicHodge.IntegralComparison.SequentialModuleDifference |
| 2 | import Mathlib |
| 3 | |
| 4 | /-! # Inverse Difference -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.InverseDifference |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: finite inverse systems have surjective countable difference maps |
| 12 | |
| 13 | Every finite set of difference equations has a backward solution. Compactness |
| 14 | of the product of finite discrete modules gives a simultaneous solution. |
| 15 | -/ |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable (R : Type u) [Ring R] (M : ℕ → Type v) |
| 20 | [∀ n, AddCommGroup (M n)] [∀ n, Module R (M n)] |
| 21 | (t : ∀ n, M (n + 1) →ₗ[R] M n) |
| 22 | |
| 23 | def segment (y : ∀ n, M n) : (n len : ℕ) → M n |
| 24 | | _, 0 => 0 |
| 25 | | n, len + 1 => y n + t n (segment y (n + 1) len) |
| 26 | |
| 27 | def finiteSolution (y : ∀ n, M n) (N : ℕ) : ∀ n, M n := fun n => InverseDifference.segment R M t y n (N - n) |
| 28 | |
| 29 | theorem partial_difference (y : ∀ n, M n) (N n : ℕ) (hn : n < N) : |
| 30 | finiteSolution R M t y N n - t n (finiteSolution R M t y N (n + 1)) = y n := by |
| 31 | have h : N - n = N - (n + 1) + 1 := by omega |
| 32 | change InverseDifference.segment R M t y n (N - n) - t n (InverseDifference.segment R M t y (n + 1) (N - (n + 1))) = y n |
| 33 | rw [h] |
| 34 | exact add_sub_cancel_right _ _ |
| 35 | |
| 36 | theorem surjective [∀ n, Finite (M n)] : Function.Surjective (SequentialModuleDifference.difference R M t) := by |
| 37 | classical |
| 38 | let (n : ℕ) : TopologicalSpace (M n) := ⊥ |
| 39 | let (n : ℕ) : DiscreteTopology (M n) := ⟨rfl⟩ |
| 40 | let (n : ℕ) : CompactSpace (M n) := inferInstance |
| 41 | intro y |
| 42 | have hc (n : ℕ) : IsClosed {x : ∀ n, M n | x n - t n (x (n + 1)) = y n} := by |
| 43 | apply isClosed_eq _ continuous_const |
| 44 | exact (continuous_of_discreteTopology : Continuous (fun z : M n × M (n + 1) => z.1 - t n z.2)).comp |
| 45 | ((continuous_apply n).prodMk (continuous_apply (n + 1))) |
| 46 | have hfin (s : Finset ℕ) : (⋂ n ∈ s, {x : ∀ n, M n | x n - t n (x (n + 1)) = y n}).Nonempty := by |
| 47 | refine ⟨finiteSolution R M t y (s.sup id + 1), Set.mem_iInter.mpr (fun n => Set.mem_iInter.mpr (fun hn => ?_))⟩ |
| 48 | exact partial_difference R M t y (s.sup id + 1) n (Nat.lt_succ_of_le (Finset.le_sup (f := id) hn)) |
| 49 | obtain ⟨x, hx⟩ := CompactSpace.iInter_nonempty hc hfin |
| 50 | exact ⟨x, funext (fun n => Set.mem_iInter.mp hx n)⟩ |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.InverseDifference |