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.IntegralDeRham.WedgeNaturality |
| 2 | import Mathlib.LinearAlgebra.Alternating.Uncurry.Fin |
| 3 | |
| 4 | /-! # Wedge Signs -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.IntegralDeRham.WedgeSigns |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The integral signs for moving one differential past a block of |
| 11 | differentials follow from the native alternating-symbol relations. -/ |
| 12 | |
| 13 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation |
| 14 | |
| 15 | theorem insertNth_append {A : Type*} (p q : ℕ) (a : A) |
| 16 | (v : Fin p → A) (w : Fin q → A) : |
| 17 | (⟨p, by omega⟩ : Fin (p + q + 1)).insertNth a (Fin.append v w) = |
| 18 | Fin.append v (Fin.cons a w) := by |
| 19 | funext i |
| 20 | refine Fin.addCases (m := p) (n := q + 1) (fun j => ?_) (fun j => ?_) i |
| 21 | · rw [Fin.insertNth_apply_below (by change j.val < p; exact j.isLt)] |
| 22 | simp only [eq_rec_constant] |
| 23 | change Fin.append v w (j.castAdd q) = Fin.append v (Fin.cons a w) (j.castAdd (q + 1)) |
| 24 | rw [Fin.append_left, Fin.append_left] |
| 25 | · refine Fin.cases ?_ (fun j => ?_) j |
| 26 | · have h : Fin.natAdd p (0 : Fin (q + 1)) = (⟨p, by omega⟩ : Fin (p + q + 1)) := |
| 27 | Fin.ext (Nat.add_zero p) |
| 28 | rw [h, Fin.insertNth_apply_same] |
| 29 | change a = Fin.append v (Fin.cons a w) (Fin.natAdd p 0) |
| 30 | simp |
| 31 | · rw [Fin.insertNth_apply_above (by change p < p + (j.val + 1); omega)] |
| 32 | simp only [eq_rec_constant] |
| 33 | change Fin.append v w (Fin.natAdd p j) = |
| 34 | Fin.append v (Fin.cons a w) (Fin.natAdd p j.succ) |
| 35 | simp |
| 36 | |
| 37 | universe u |
| 38 | |
| 39 | variable (R A : Type u) [CommRing R] [CommRing A] [Algebra R A] |
| 40 | |
| 41 | def degreeCast {m n : ℕ} (h : m = n) : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R A m ≃ₗ[A] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R A n := by |
| 42 | subst n |
| 43 | exact LinearEquiv.refl _ _ |
| 44 | |
| 45 | theorem degreeCast_symbol {m n : ℕ} (h : m = n) (a : A) (v : Fin m → A) : |
| 46 | degreeCast R A h (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A a v) = AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A a (fun i => v (Fin.cast h.symm i)) := by |
| 47 | subst n |
| 48 | rfl |
| 49 | |
| 50 | theorem symbol_append_cons (p q : ℕ) (b : A) (v : Fin p → A) (w : Fin q → A) : |
| 51 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A 1 (Fin.append v (Fin.cons b w)) = |
| 52 | (-1 : ℤ) ^ p • AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A 1 (Fin.cons b (Fin.append v w)) := by |
| 53 | have h := (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbols R A (p + q + 1)).map_insertNth |
| 54 | (⟨p, by omega⟩ : Fin (p + q + 1)) b (Fin.append v w) |
| 55 | rw [insertNth_append] at h |
| 56 | exact h |
| 57 | |
| 58 | theorem degreeCast_append_cons (p q : ℕ) (a b : A) (v : Fin p → A) (w : Fin q → A) : |
| 59 | degreeCast R A (by omega : (p + 1) + q = p + q + 1) |
| 60 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A b (Fin.append (Fin.cons a v) w)) = |
| 61 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A b (Fin.cons a (Fin.append v w)) := by |
| 62 | rw [degreeCast_symbol] |
| 63 | apply congrArg (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A b) |
| 64 | funext i |
| 65 | rw [Fin.append_cons] |
| 66 | rfl |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.NumberTheory.PadicHodge.IntegralComparison.IntegralDeRham.WedgeSigns |