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.FiltrationTransportT |
| 2 | |
| 3 | /-! # First Hodge Number -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.FirstHodgeNumber.FiltrationTransport |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! For filtrations in degrees zero and one, the Hodge number is the dimension of the first step. -/ |
| 10 | |
| 11 | variable {K V W : Type*} [Field K] [AddCommGroup V] [Module K V] |
| 12 | [AddCommGroup W] [Module K W] |
| 13 | [FiniteDimensional K V] [FiniteDimensional K W] |
| 14 | |
| 15 | theorem tH_h1 (F : Linear.FiniteFiltration K V) (h0 : F.step 0 = ⊤) (h2 : F.step 2 = ⊥) : |
| 16 | F.tH = Module.finrank K (F.step 1) := by |
| 17 | unfold WeakAdmissibility.FilteredRepresentations.Construction.FiniteFiltration.tH |
| 18 | rw [finsum_eq_single _ (1 : ℤ) (by |
| 19 | intro i hi |
| 20 | by_cases hzero : i = 0 |
| 21 | · simp [hzero] |
| 22 | · rcases lt_or_ge i 0 with hneg | hnonneg |
| 23 | · rw [F.graded_finrank_eq_zero_of_lt h0 hneg, Nat.cast_zero, mul_zero] |
| 24 | · rw [F.graded_finrank_eq_zero_of_le h2 (by omega), Nat.cast_zero, mul_zero])] |
| 25 | rw [Int.cast_one, one_mul, F.graded_finrank_eq_sub] |
| 26 | erw [h2, finrank_bot, Nat.sub_zero] |
| 27 | |
| 28 | theorem h1_tH_le_of_injective (F : Linear.FiniteFiltration K V) (G : Linear.FiniteFiltration K W) |
| 29 | (hF0 : F.step 0 = ⊤) (hF2 : F.step 2 = ⊥) |
| 30 | (hG0 : G.step 0 = ⊤) (hG2 : G.step 2 = ⊥) |
| 31 | (f : V →ₗ[K] W) (hinj : Function.Injective f) |
| 32 | (hFil : (F.step 1).map f ≤ G.step 1) : F.tH ≤ G.tH := by |
| 33 | rw [tH_h1 F hF0 hF2, tH_h1 G hG0 hG2] |
| 34 | exact_mod_cast (show Module.finrank K (F.step 1) ≤ Module.finrank K (G.step 1) from |
| 35 | LinearMap.finrank_le_finrank_of_injective (f := |
| 36 | (f.domRestrict (F.step 1)).codRestrict (G.step 1) |
| 37 | (fun x => hFil ⟨x, x.property, rfl⟩)) (by |
| 38 | intro x y hxy |
| 39 | apply Subtype.ext |
| 40 | exact hinj (congrArg Subtype.val hxy))) |
| 41 | |
| 42 | end |
| 43 | |
| 44 | end OAI.NumberTheory.PadicHodge.GeometricComparison.FirstHodgeNumber.FiltrationTransport |