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.GeometricComparison.Finite.PowerTorsion |
| 2 | import Mathlib.RingTheory.AdicCompletion.Basic |
| 3 | |
| 4 | /-! # Adic Cohomology -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.AdicCohomology.AdicCohomologyLimit |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Compatible cohomology classes are completed integral classes when the adjacent torsion module is Noetherian. -/ |
| 11 | |
| 12 | variable {R M N : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 13 | [AddCommGroup N] [Module R N] [IsNoetherian R N] |
| 14 | (I : Ideal R) (r : R) (B : ℕ → Type*) |
| 15 | [∀ n, AddCommGroup (B n)] [∀ n, Module R (B n)] |
| 16 | (t : ∀ n m : ℕ, n ≤ m → B m →ₗ[R] B n) |
| 17 | (inc : ∀ n, (M ⧸ (I ^ n • ⊤ : Submodule R M)) →ₗ[R] B n) |
| 18 | (δ : ∀ n, B n →ₗ[R] N) |
| 19 | |
| 20 | def compatible : Submodule R (∀ n, B n) where |
| 21 | carrier := {x | ∀ n m (h : n ≤ m), t n m h (x m) = x n} |
| 22 | zero_mem' := by intro n m h; exact map_zero _ |
| 23 | add_mem' := by |
| 24 | intro x y hx hy n m h |
| 25 | exact (map_add _ _ _).trans (congrArg₂ (· + ·) (hx n m h) (hy n m h)) |
| 26 | smul_mem' := by |
| 27 | intro a x hx n m h |
| 28 | exact (map_smul _ _ _).trans (congrArg (a • ·) (hx n m h)) |
| 29 | |
| 30 | variable (hinc : ∀ n, Function.Injective (inc n)) |
| 31 | (hker : ∀ n, (δ n).ker = (inc n).range) |
| 32 | (hnat : ∀ n m (h : n ≤ m) x, |
| 33 | t n m h (inc m x) = inc n (AdicCompletion.transitionMap I M h x)) |
| 34 | (hδ : ∀ n x, r • δ (n + 1) x = δ n (t n (n + 1) (Nat.le_succ n) x)) |
| 35 | (htorsion : ∀ n x, ∃ a : ℕ, r ^ a • δ n x = 0) |
| 36 | |
| 37 | include hker hδ htorsion in |
| 38 | theorem compatible_in_range (x : compatible B t) (n : ℕ) : x.val n ∈ (inc n).range := by |
| 39 | have hz : ∀ n, δ n (x.val n) = 0 := |
| 40 | Finite.PowerTorsion.FinitePowerTorsion.compatible_zero r (fun n => δ n (x.val n)) |
| 41 | (fun n => htorsion n (x.val n)) (fun n => |
| 42 | (hδ n (x.val (n + 1))).trans (congrArg (δ n) (x.property n (n + 1) (Nat.le_succ n)))) |
| 43 | rw [← hker n] |
| 44 | exact hz n |
| 45 | |
| 46 | def comparison : AdicCompletion I M →ₗ[R] compatible B t where |
| 47 | toFun x := ⟨fun n => inc n (x.val n), by |
| 48 | intro n m h |
| 49 | rw [hnat] |
| 50 | exact congrArg (inc n) (x.property h)⟩ |
| 51 | map_add' x y := by |
| 52 | apply Subtype.ext |
| 53 | funext n |
| 54 | exact (inc n).map_add _ _ |
| 55 | map_smul' a x := by |
| 56 | apply Subtype.ext |
| 57 | funext n |
| 58 | exact (inc n).map_smul _ _ |
| 59 | |
| 60 | include hinc in |
| 61 | theorem comparison_injective : Function.Injective (comparison I B t inc hnat) := by |
| 62 | intro x y h |
| 63 | apply Subtype.ext |
| 64 | funext n |
| 65 | apply hinc n |
| 66 | exact congrArg (fun z : compatible B t => z.val n) h |
| 67 | |
| 68 | include hinc hker hδ htorsion in |
| 69 | theorem comparison_surjective : Function.Surjective (comparison I B t inc hnat) := by |
| 70 | intro x |
| 71 | choose y hy using (compatible_in_range I r B t inc δ hker hδ htorsion x) |
| 72 | let z : AdicCompletion I M := ⟨y, by |
| 73 | intro n m h |
| 74 | apply hinc n |
| 75 | rw [← hnat, hy m, x.property n m h, hy n]⟩ |
| 76 | exact ⟨z, Subtype.ext (funext hy)⟩ |
| 77 | |
| 78 | def equiv : AdicCompletion I M ≃ₗ[R] compatible B t := |
| 79 | LinearEquiv.ofBijective (comparison I B t inc hnat) |
| 80 | ⟨comparison_injective I B t inc hinc hnat, |
| 81 | comparison_surjective I r B t inc δ hinc hker hnat hδ htorsion⟩ |
| 82 | |
| 83 | theorem equiv_eval (x : AdicCompletion I M) (n : ℕ) : |
| 84 | (equiv I r B t inc δ hinc hker hnat hδ htorsion x).val n = inc n (x.val n) := rfl |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.NumberTheory.PadicHodge.GeometricComparison.AdicCohomology.AdicCohomologyLimit |