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.Analysis.DifferentialForms.Coordinates |
| 2 | import OAI.Analysis.DifferentialForms.WeakApproximation |
| 3 | import OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CoefficientSigns |
| 4 | |
| 5 | /-! # Rational Splitting -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.RationalSplitting.CM |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The arithmetic approximation argument for the original multiplicity |
| 12 | space. This uses the native local splitting and weak approximation proofs; |
| 13 | it has no theta-section or nonvanishing parameters. -/ |
| 14 | |
| 15 | open scoped Classical _root_.Matrix.Norms.Elementwise |
| 16 | open _root_.Module |
| 17 | |
| 18 | theorem rational_splitting_approximation |
| 19 | {E Place : Type*} [Field E] [Algebra ℚ E] [NumberField E] |
| 20 | [IsGalois ℚ E] [NumberField.IsCMField E] [Fintype Place] |
| 21 | (hWeakApproximation : Analysis.DifferentialForms.WeakApproximation.Local.WeakApproximationInput (E := E) (Place := Place)) |
| 22 | (σ : Place → E →ₐ[ℚ] ℂ) |
| 23 | (hσ : Function.Bijective (fun p : Place × Bool => |
| 24 | if p.2 then ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ p.1) else σ p.1)) |
| 25 | (μ : Place) (a : Fin 2 → E) |
| 26 | (ha_fixed : ∀ i, NumberField.IsCMField.complexConj E (a i) = a i) |
| 27 | (ha_nonzero : ∀ i, a i ≠ 0) |
| 28 | (dOld dNew : Fin 2 → Place → Bool) |
| 29 | (hbalance : ∀ τ, ComplexMultiplication.SignSwitch.CM.signValue (dOld 0 τ) + ComplexMultiplication.SignSwitch.CM.signValue (dOld 1 τ) = |
| 30 | ComplexMultiplication.SignSwitch.CM.signValue (dNew 0 τ) + ComplexMultiplication.SignSwitch.CM.signValue (dNew 1 τ)) |
| 31 | (η : Place → ℝ) |
| 32 | (hOldSigns : ∀ i τ, 0 < (ComplexMultiplication.SignSwitch.CM.signValue (dOld i τ) : ℝ) * η τ * (σ τ (a i)).re) |
| 33 | (ε : ℝ) (hε : 0 < ε) : |
| 34 | ∃ b : Basis (Fin 2) E (Analysis.DifferentialForms.Coordinates.LocalApproximation.W E), |
| 35 | Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian a (b 0) (b 1) = 0 ∧ |
| 36 | (∀ i, Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian a (b i) (b i) ≠ 0) ∧ |
| 37 | (∀ y : Analysis.DifferentialForms.Coordinates.LocalApproximation.W E, y ∈ Submodule.span E {b 1} ↔ Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian a (b 0) y = 0) ∧ |
| 38 | (∀ i τ, 0 < (ComplexMultiplication.SignSwitch.CM.signValue (dNew i τ) : ℝ) * η τ * |
| 39 | (σ τ (Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian a (b i) (b i))).re) ∧ |
| 40 | ∀ τ, dist (Analysis.DifferentialForms.Coordinates.LocalApproximation.compactPeriod (σ τ) b (fun i => dNew i τ)) |
| 41 | (Analysis.DifferentialForms.Coordinates.LocalApproximation.compactPeriod (σ τ) (Pi.basisFun E (Fin 2)) (fun i => dOld i τ)) < ε := by |
| 42 | have hend : ∀ τ : Place, ∃ r : Bool, |
| 43 | Analysis.DifferentialForms.Coordinates.LocalApproximation.Good (fun i => σ τ (a i)) (η τ) (fun i => dNew i τ) |
| 44 | (Analysis.DifferentialForms.Coordinates.LocalApproximation.matrixPeriod 1 (fun i => dOld i τ)) ε (if r then 1 else 0) := by |
| 45 | intro τ |
| 46 | exact Analysis.DifferentialForms.Coordinates.LocalApproximation.exists_good_endpoint (fun i => σ τ (a i)) |
| 47 | (fun i => (map_ne_zero (σ τ)).mpr (ha_nonzero i)) |
| 48 | (η τ) (fun i => dOld i τ) (fun i => dNew i τ) |
| 49 | (hbalance τ) (fun i => hOldSigns i τ) ε hε |
| 50 | choose r hr using hend |
| 51 | have hnb : ∀ τ : Place, ∃ δ : ℝ, 0 < δ ∧ ∀ z : ℂ, |
| 52 | dist z (if r τ then 1 else 0) < δ → |
| 53 | Analysis.DifferentialForms.Coordinates.LocalApproximation.Good (fun i => σ τ (a i)) (η τ) (fun i => dNew i τ) |
| 54 | (Analysis.DifferentialForms.Coordinates.LocalApproximation.matrixPeriod 1 (fun i => dOld i τ)) ε z := by |
| 55 | intro τ |
| 56 | exact Analysis.DifferentialForms.Coordinates.LocalApproximation.good_neighborhood _ _ _ _ _ _ (hr τ) |
| 57 | choose δ hδ hgood using hnb |
| 58 | obtain ⟨t, ht⟩ := Analysis.DifferentialForms.WeakApproximation.Local.approximate_local_field_elements hWeakApproximation σ hσ.injective |
| 59 | (fun τ => if r τ then (1 : E) else 0) δ hδ |
| 60 | have hg : ∀ τ : Place, |
| 61 | Analysis.DifferentialForms.Coordinates.LocalApproximation.Good (fun i => σ τ (a i)) (η τ) (fun i => dNew i τ) |
| 62 | (Analysis.DifferentialForms.Coordinates.LocalApproximation.matrixPeriod 1 (fun i => dOld i τ)) ε (σ τ t) := by |
| 63 | intro τ |
| 64 | apply hgood τ |
| 65 | by_cases hrt : r τ = true <;> simpa [hrt] using ht τ |
| 66 | let M := Analysis.DifferentialForms.Coordinates.LocalApproximation.splitMatrix (NumberField.IsCMField.complexConj E).toRingHom a t |
| 67 | have hM : M.det ≠ 0 := by |
| 68 | intro hz |
| 69 | apply (hg μ).1 |
| 70 | rw [← Analysis.DifferentialForms.Coordinates.LocalApproximation.embedding_splitMatrix (σ μ) a t] |
| 71 | change (M.map (σ μ)).det = 0 |
| 72 | calc |
| 73 | (M.map (σ μ)).det = σ μ M.det := ((σ μ).map_det M).symm |
| 74 | _ = 0 := by rw [hz, map_zero] |
| 75 | let b := Analysis.DifferentialForms.Coordinates.LocalApproximation.basisOfMatrix M hM |
| 76 | have hb : ∀ τ, Analysis.DifferentialForms.Coordinates.LocalApproximation.localBasisMatrix (σ τ) b = |
| 77 | Analysis.DifferentialForms.Coordinates.LocalApproximation.localMatrix (fun i => σ τ (a i)) (σ τ t) := by |
| 78 | intro τ |
| 79 | exact Analysis.DifferentialForms.Coordinates.LocalApproximation.embedding_basis (σ τ) a t hM |
| 80 | have hsign : ∀ i τ, |
| 81 | 0 < (ComplexMultiplication.SignSwitch.CM.signValue (dNew i τ) : ℝ) * η τ * |
| 82 | (σ τ (Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian a (b i) (b i))).re := by |
| 83 | intro i τ |
| 84 | rw [Analysis.DifferentialForms.Coordinates.LocalApproximation.embedding_hermitian_self] |
| 85 | have hv : (fun j => σ τ (b i j)) = |
| 86 | (fun j => Analysis.DifferentialForms.Coordinates.LocalApproximation.localMatrix (fun k => σ τ (a k)) (σ τ t) j i) := by |
| 87 | funext j |
| 88 | exact congrArg (fun C : Matrix (Fin 2) (Fin 2) ℂ => C j i) (hb τ) |
| 89 | rw [hv] |
| 90 | exact (hg τ).2.1 i |
| 91 | have hnondeg : ∀ i, Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian a (b i) (b i) ≠ 0 := by |
| 92 | intro i hz |
| 93 | have hp := hsign i μ |
| 94 | rw [hz, map_zero, Complex.zero_re, mul_zero] at hp |
| 95 | exact (lt_irrefl 0) hp |
| 96 | have horth : Analysis.DifferentialForms.Coordinates.LocalApproximation.hermitian a (b 0) (b 1) = 0 := |
| 97 | Analysis.DifferentialForms.Coordinates.LocalApproximation.split_basis_orthogonal a ha_fixed t hM |
| 98 | refine ⟨b, horth, hnondeg, Analysis.DifferentialForms.Coordinates.LocalApproximation.orthocomplement_of_basis a b horth (hnondeg 0), |
| 99 | hsign, ?_⟩ |
| 100 | intro τ |
| 101 | change dist |
| 102 | (Analysis.DifferentialForms.Coordinates.LocalApproximation.matrixPeriod (Analysis.DifferentialForms.Coordinates.LocalApproximation.localBasisMatrix (σ τ) b) (fun i => dNew i τ)) |
| 103 | (Analysis.DifferentialForms.Coordinates.LocalApproximation.matrixPeriod (Analysis.DifferentialForms.Coordinates.LocalApproximation.localBasisMatrix (σ τ) (Pi.basisFun E (Fin 2))) |
| 104 | (fun i => dOld i τ)) < ε |
| 105 | rw [hb, Analysis.DifferentialForms.Coordinates.LocalApproximation.original_basis_matrix] |
| 106 | exact (hg τ).2.2 |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.RationalSplitting.CM |