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.AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation |
| 2 | |
| 3 | /-! # Kernel Quotient -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.KernelQuotient.Tate |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The finite-level kernel is the cokernel on Tate modules when a |
| 10 | q-power reverse map is supplied. This is the exact-sequence calculation |
| 11 | used with the reverse map constructed from a polarization. -/ |
| 12 | |
| 13 | universe u |
| 14 | variable (q : ℕ) [Fact q.Prime] {H H' : Type u} [AddCommGroup H] [AddCommGroup H'] |
| 15 | |
| 16 | theorem evaluate_map (f : H →+ H') (n : ℕ) (x : Add.Tate.Module (H := H) q) : |
| 17 | Evaluation.Tate.evaluate q n (Add.Tate.map q f x) = Add.Tate.mapLevel q f n (Evaluation.Tate.evaluate q n x) := rfl |
| 18 | |
| 19 | theorem q_pow_smul_cancel (n : ℕ) {x y : Add.Tate.Module (H := H) q} |
| 20 | (h : (q : ℤ_[q]) ^ n • x = (q : ℤ_[q]) ^ n • y) : x = y := by |
| 21 | apply sub_eq_zero.mp |
| 22 | apply Functor.Tate.q_pow_smul_eq_zero q n (x - y) |
| 23 | rw [smul_sub, h, sub_self] |
| 24 | |
| 25 | variable (f : H →+ H') (n : ℕ) |
| 26 | (g : Add.Tate.Module (H := H') q →ₗ[ℤ_[q]] Add.Tate.Module (H := H) q) |
| 27 | (hgf : g.comp (Add.Tate.map q f) = (q : ℤ_[q]) ^ n • LinearMap.id) |
| 28 | (hfg : (Add.Tate.map q f).comp g = (q : ℤ_[q]) ^ n • LinearMap.id) |
| 29 | |
| 30 | def kernelBoundary : Add.Tate.Module (H := H') q →ₗ[ℤ_[q]] (Add.Tate.mapLevel q f n).ker := |
| 31 | ((Evaluation.Tate.evaluate q n).comp g).codRestrict (Add.Tate.mapLevel q f n).ker (by |
| 32 | intro y |
| 33 | change Add.Tate.mapLevel q f n (Evaluation.Tate.evaluate q n (g y)) = 0 |
| 34 | rw [← evaluate_map] |
| 35 | have hy := congrArg (fun a => a y) hfg |
| 36 | change Add.Tate.map q f (g y) = (q : ℤ_[q]) ^ n • y at hy |
| 37 | rw [hy] |
| 38 | exact (Evaluation.Tate.evaluate_eq_zero_iff q n _).mpr ⟨y, rfl⟩) |
| 39 | |
| 40 | include hgf in |
| 41 | theorem kernelBoundary_ker : |
| 42 | (kernelBoundary q f n g hfg).ker = (Add.Tate.map q f).range := by |
| 43 | apply Submodule.ext |
| 44 | intro y |
| 45 | constructor |
| 46 | · intro hy |
| 47 | have hz : Evaluation.Tate.evaluate q n (g y) = 0 := congrArg Subtype.val hy |
| 48 | obtain ⟨x, hx⟩ := (Evaluation.Tate.evaluate_eq_zero_iff q n (g y)).mp hz |
| 49 | refine ⟨x, q_pow_smul_cancel q n ?_⟩ |
| 50 | have he := congrArg (Add.Tate.map q f) hx |
| 51 | rw [map_smul] at he |
| 52 | have hy' := congrArg (fun a => a y) hfg |
| 53 | exact he.trans hy' |
| 54 | · rintro ⟨x, rfl⟩ |
| 55 | apply Subtype.ext |
| 56 | change Evaluation.Tate.evaluate q n (g (Add.Tate.map q f x)) = 0 |
| 57 | have hx := congrArg (fun a => a x) hgf |
| 58 | change g (Add.Tate.map q f x) = (q : ℤ_[q]) ^ n • x at hx |
| 59 | rw [hx] |
| 60 | exact (Evaluation.Tate.evaluate_eq_zero_iff q n _).mpr ⟨x, rfl⟩ |
| 61 | |
| 62 | include hgf in |
| 63 | theorem kernelBoundary_surjective (hdiv : ∀ x : H, ∃ y, q • y = x) : |
| 64 | Function.Surjective (kernelBoundary q f n g hfg) := by |
| 65 | intro a |
| 66 | obtain ⟨x, hx⟩ := Evaluation.Tate.evaluate_surjective q hdiv n a.val |
| 67 | have he : Evaluation.Tate.evaluate q n (Add.Tate.map q f x) = 0 := by |
| 68 | rw [evaluate_map, hx] |
| 69 | exact a.property |
| 70 | obtain ⟨y, hy⟩ := (Evaluation.Tate.evaluate_eq_zero_iff q n (Add.Tate.map q f x)).mp he |
| 71 | have hxy : g y = x := by |
| 72 | apply q_pow_smul_cancel q n |
| 73 | have he := congrArg g hy |
| 74 | rw [map_smul] at he |
| 75 | exact he.trans (congrArg (fun z => z x) hgf) |
| 76 | refine ⟨y, ?_⟩ |
| 77 | apply Subtype.ext |
| 78 | change Evaluation.Tate.evaluate q n (g y) = a.val |
| 79 | rw [hxy, hx] |
| 80 | |
| 81 | def cokernelEquivKernel (hdiv : ∀ x : H, ∃ y, q • y = x) : |
| 82 | (Add.Tate.Module (H := H') q ⧸ (Add.Tate.map q f).range) ≃ₗ[ℤ_[q]] (Add.Tate.mapLevel q f n).ker := |
| 83 | (Submodule.quotEquivOfEq _ _ (kernelBoundary_ker q f n g hgf hfg).symm).trans |
| 84 | ((kernelBoundary q f n g hfg).quotKerEquivOfSurjective |
| 85 | (kernelBoundary_surjective q f n g hgf hfg hdiv)) |
| 86 | |
| 87 | include hgf in |
| 88 | theorem map_injective_of_reverse : Function.Injective (Add.Tate.map q f) := by |
| 89 | intro x y hxy |
| 90 | apply q_pow_smul_cancel q n |
| 91 | exact (congrArg (fun a => a x) hgf).symm.trans |
| 92 | ((congrArg g hxy).trans (congrArg (fun a => a y) hgf)) |
| 93 | |
| 94 | include hgf hfg in |
| 95 | theorem reverse_intertwines (a : Add.Tate.Module (H := H) q →ₗ[ℤ_[q]] Add.Tate.Module (H := H) q) |
| 96 | (b : Add.Tate.Module (H := H') q →ₗ[ℤ_[q]] Add.Tate.Module (H := H') q) |
| 97 | (h : (Add.Tate.map q f).comp a = b.comp (Add.Tate.map q f)) : g.comp b = a.comp g := by |
| 98 | apply LinearMap.ext |
| 99 | intro y |
| 100 | apply map_injective_of_reverse q f n g hgf |
| 101 | change Add.Tate.map q f (g (b y)) = Add.Tate.map q f (a (g y)) |
| 102 | have hy := congrArg (fun z => z y) hfg |
| 103 | have hby := congrArg (fun z => z (b y)) hfg |
| 104 | have ha := congrArg (fun z => z (g y)) h |
| 105 | change Add.Tate.map q f (g y) = (q : ℤ_[q]) ^ n • y at hy |
| 106 | change Add.Tate.map q f (g (b y)) = (q : ℤ_[q]) ^ n • b y at hby |
| 107 | change Add.Tate.map q f (a (g y)) = b (Add.Tate.map q f (g y)) at ha |
| 108 | rw [hby, ha, hy, map_smul] |
| 109 | |
| 110 | include hgf hfg in |
| 111 | theorem boundary_raw_ker : ((Evaluation.Tate.evaluate q n).comp g).ker = (Add.Tate.map q f).range := by |
| 112 | rw [← kernelBoundary_ker q f n g hgf hfg] |
| 113 | ext y |
| 114 | constructor |
| 115 | · intro h |
| 116 | exact Subtype.ext h |
| 117 | · intro h |
| 118 | exact congrArg Subtype.val h |
| 119 | |
| 120 | include hgf hfg in |
| 121 | theorem boundary_raw_range (hdiv : ∀ x : H, ∃ y, q • y = x) : |
| 122 | ((Evaluation.Tate.evaluate q n).comp g).range = (Add.Tate.mapLevel q f n).ker := by |
| 123 | ext a |
| 124 | constructor |
| 125 | · rintro ⟨y, rfl⟩ |
| 126 | exact (kernelBoundary q f n g hfg y).property |
| 127 | · intro ha |
| 128 | obtain ⟨y, hy⟩ := kernelBoundary_surjective q f n g hgf hfg hdiv ⟨a, ha⟩ |
| 129 | exact ⟨y, congrArg Subtype.val hy⟩ |
| 130 | |
| 131 | end |
| 132 | |
| 133 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.KernelQuotient.Tate |