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.FiniteEtale.PresheafTraceElements |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.FiberSectionTrace |
| 3 | |
| 4 | /-! # Additive Residue -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.AdditiveResidue |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite étale residue detection after any additive construction. |
| 11 | Scalar action is kept as the image of the original coefficient map, so |
| 12 | restriction of scalars, degree shifts, and supported cohomology can be |
| 13 | used without replacing the original residue class. -/ |
| 14 | open _root_.CategoryTheory |
| 15 | open scoped TensorProduct |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | universe u v w |
| 20 | open OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.PresheafTraceElements |
| 21 | variable {C : Type v} [Category C] |
| 22 | (Q B k : Type u) [CommRing Q] [CommRing B] [CommRing k] |
| 23 | [Algebra Q B] [Algebra Q k] [Module.Free Q B] [Module.Finite Q B] [Algebra.Etale Q B] |
| 24 | (P : C ⥤ ModuleCat.{u} Q) |
| 25 | (F : (C ⥤ ModuleCat.{u} Q) ⥤ AddCommGrpCat.{w}) [F.Additive] |
| 26 | |
| 27 | theorem scalar_sub (r s : Q) : PresheafTrace.scalar Q P (r-s) = PresheafTrace.scalar Q P r - PresheafTrace.scalar Q P s := by |
| 28 | apply NatTrans.ext |
| 29 | funext a |
| 30 | apply ModuleCat.hom_ext |
| 31 | apply LinearMap.ext |
| 32 | intro y |
| 33 | change (r-s) • y = r • y - s • y |
| 34 | exact sub_smul r s y |
| 35 | |
| 36 | variable (ε : B →ₐ[Q] k) (lift : k → Q) |
| 37 | (hlift : ∀ x, algebraMap Q k (lift x) = x) |
| 38 | (y : F.obj P) |
| 39 | (hy : ∀ r : Q, algebraMap Q k r = 0 → F.map (PresheafTrace.scalar Q P r) y = 0) |
| 40 | (z : B) |
| 41 | (hz : (1 ⊗ₜ[Q] z : k ⊗[Q] B) = FiberSectionTrace.component Q B k ε) |
| 42 | |
| 43 | include hlift hy hz in |
| 44 | theorem trace_scalar (x : B) : |
| 45 | F.map (PresheafTrace.scalar Q P (Algebra.trace Q B (z*x))) y = |
| 46 | F.map (PresheafTrace.scalar Q P (lift (ε x))) y := by |
| 47 | have hk : algebraMap Q k (Algebra.trace Q B (z*x) - lift (ε x)) = 0 := by |
| 48 | rw [map_sub, FiberSectionTrace.trace_lift Q B k ε z hz x, hlift, sub_self] |
| 49 | have h := hy _ hk |
| 50 | rw [scalar_sub, F.map_sub] at h |
| 51 | change F.map (PresheafTrace.scalar Q P (Algebra.trace Q B (z*x))) y - |
| 52 | F.map (PresheafTrace.scalar Q P (lift (ε x))) y = 0 at h |
| 53 | exact sub_eq_zero.mp h |
| 54 | |
| 55 | include hlift hy hz in |
| 56 | theorem eq_inserted (a : F.obj (PresheafTrace.tensor Q B P)) |
| 57 | (ha : ∀ x : B, F.map (PresheafTrace.pairing Q B P x) a = F.map (PresheafTrace.scalar Q P (lift (ε x))) y) : |
| 58 | a = F.map (PresheafTrace.insertion Q B P z) y := by |
| 59 | apply PresheafTraceElements.equals_inserted_element Q B P F a y z |
| 60 | intro x |
| 61 | exact (ha x).trans (trace_scalar Q B k P F ε lift hlift y hy z hz x).symm |
| 62 | |
| 63 | include hlift hy in |
| 64 | theorem exists_residue (hQ : Function.Surjective (algebraMap Q k)) |
| 65 | (a : F.obj (PresheafTrace.tensor Q B P)) |
| 66 | (ha : ∀ x : B, F.map (PresheafTrace.pairing Q B P x) a = F.map (PresheafTrace.scalar Q P (lift (ε x))) y) : |
| 67 | ∃ z : B, (1 ⊗ₜ[Q] z : k ⊗[Q] B) = FiberSectionTrace.component Q B k ε ∧ |
| 68 | ε z = 1 ∧ a = F.map (PresheafTrace.insertion Q B P z) y := by |
| 69 | obtain ⟨z, hz, hε, _⟩ := FiberSectionTrace.exists_lift Q B k ε hQ |
| 70 | exact ⟨z, hz, hε, eq_inserted Q B k P F ε lift hlift y hy z hz a ha⟩ |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.AdditiveResidue |