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.ComplexMultiplication.GaloisCMType |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.CMKnownResults |
| 3 | |
| 4 | /-! # Paths -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMReduction.Paths.CM.Construction |
| 7 | |
| 8 | /-! CMReduction's exact PairSwitches input and elementary bookkeeping for switch paths. |
| 9 | Repeated active indices give an identity step and must not be counted as |
| 10 | two distinct changed tensor slots. -/ |
| 11 | |
| 12 | open scoped BigOperators |
| 13 | |
| 14 | def PairSwitchesInput : Prop := |
| 15 | ∀ (E : IntermediateField ℚ ℂ) |
| 16 | [NumberField E] [IsGalois ℚ E] [NumberField.IsCMField E] |
| 17 | (p : ℕ) |
| 18 | (v w : Fin p → ComplexMultiplication.OddSignSwitch.CM.OddSignPattern |
| 19 | (fun τ : Gal(E/ℚ) => ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ)) |
| 20 | (_hbalance : ∀ τ : Gal(E/ℚ), |
| 21 | (∑ i : Fin p, ComplexMultiplication.SignSwitch.CM.signValue ((v i).val τ)) = |
| 22 | ∑ i : Fin p, ComplexMultiplication.SignSwitch.CM.signValue ((w i).val τ)), |
| 23 | ∃ (n : ℕ) |
| 24 | (path : Fin (n + 1) → Fin p → ComplexMultiplication.OddSignSwitch.CM.OddSignPattern |
| 25 | (fun τ : Gal(E/ℚ) => ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ)), |
| 26 | path 0 = v ∧ path (Fin.last n) = w ∧ |
| 27 | (∀ k : Fin n, ComplexMultiplication.OddSignSwitch.CM.OddFourFactorSwitch (path k.castSucc) (path k.succ)) ∧ |
| 28 | (∀ (k : Fin (n + 1)) (i : Fin p), Nonempty |
| 29 | (ComplexMultiplication.CMKnownResults.CM.HodgeRealization (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.hodgeStructure E (path k i)))) |
| 30 | |
| 31 | theorem chain_of_indexed_path {α : Type*} (R : α → α → Prop) |
| 32 | (n : ℕ) (path : Fin (n + 1) → α) |
| 33 | (hstep : ∀ k : Fin n, R (path k.castSucc) (path k.succ)) : |
| 34 | Relation.ReflTransGen R (path 0) (path (Fin.last n)) := by |
| 35 | have h : ∀ k : Fin (n + 1), Relation.ReflTransGen R (path 0) (path k) := |
| 36 | Fin.induction (.refl) (fun k ih => ih.tail (hstep k)) |
| 37 | exact h (Fin.last n) |
| 38 | |
| 39 | theorem oddSwitch_eq_or_distinct |
| 40 | {α κ : Type*} {ν : α → α} |
| 41 | {v w : κ → ComplexMultiplication.OddSignSwitch.CM.OddSignPattern ν} (h : ComplexMultiplication.OddSignSwitch.CM.OddFourFactorSwitch v w) : |
| 42 | v = w ∨ ∃ a b : κ, a ≠ b ∧ |
| 43 | (∀ i, i ≠ a → i ≠ b → w i = v i) ∧ |
| 44 | ∀ x, ComplexMultiplication.SignSwitch.CM.signValue ((v a).val x) + ComplexMultiplication.SignSwitch.CM.signValue ((v b).val x) = |
| 45 | ComplexMultiplication.SignSwitch.CM.signValue ((w a).val x) + ComplexMultiplication.SignSwitch.CM.signValue ((w b).val x) := by |
| 46 | classical |
| 47 | obtain ⟨a, b, hrest, hsum⟩ := h |
| 48 | by_cases hab : a = b |
| 49 | · subst b |
| 50 | left |
| 51 | funext i |
| 52 | by_cases hi : i = a |
| 53 | · subst i |
| 54 | apply Subtype.ext |
| 55 | funext x |
| 56 | have hx := hsum x |
| 57 | cases hv : (v a).val x <;> cases hw : (w a).val x <;> |
| 58 | simp_all [ComplexMultiplication.SignSwitch.CM.signValue] |
| 59 | · exact (hrest i hi hi).symm |
| 60 | · exact Or.inr ⟨a, b, hab, hrest, hsum⟩ |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.HodgeConjecture.CMReduction.Paths.CM.Construction |