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.ArithmeticGroups.Period |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.CM.PeriodSpace |
| 3 | |
| 4 | /-! # Coordinates -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Coordinates.CongruenceLevel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open scoped Classical |
| 11 | |
| 12 | open OAI.AlgebraicGeometry.ComplexMultiplication.CM.PeriodSpace |
| 13 | |
| 14 | def ambientConjugation (Place : Type*) : Geometry.ComplexBall.PrescribedSignsB.Ambient Place ≃ₗ⋆[ℂ] Geometry.ComplexBall.PrescribedSignsB.Ambient Place where |
| 15 | toFun := Geometry.ComplexBall.PrescribedSignsB.realConj |
| 16 | invFun := Geometry.ComplexBall.PrescribedSignsB.realConj |
| 17 | left_inv x := by ext τ j <;> simp [Geometry.ComplexBall.PrescribedSignsB.realConj] |
| 18 | right_inv x := by ext τ j <;> simp [Geometry.ComplexBall.PrescribedSignsB.realConj] |
| 19 | map_add' x y := by ext τ j <;> simp [Geometry.ComplexBall.PrescribedSignsB.realConj] |
| 20 | map_smul' a x := by ext τ j <;> simp [Geometry.ComplexBall.PrescribedSignsB.realConj, star_smul] |
| 21 | |
| 22 | lemma ambientConjugation_involutive (Place : Type*) : |
| 23 | Function.Involutive (ambientConjugation Place) := by |
| 24 | intro x |
| 25 | exact (ambientConjugation Place).left_inv x |
| 26 | |
| 27 | def realCoordinates (Place : Type*) : (Place → Geometry.ComplexBall.PrescribedSignsB.Vec) →ₗ[ℝ] Geometry.ComplexBall.PrescribedSignsB.Ambient Place where |
| 28 | toFun x τ := (x τ, star (x τ)) |
| 29 | map_add' x y := by ext τ j <;> simp |
| 30 | map_smul' a x := by ext τ j <;> simp |
| 31 | |
| 32 | lemma realCoordinates_fixed (Place : Type*) (x : Place → Geometry.ComplexBall.PrescribedSignsB.Vec) : |
| 33 | ambientConjugation Place (realCoordinates Place x) = realCoordinates Place x := by |
| 34 | ext τ j <;> simp [ambientConjugation, Geometry.ComplexBall.PrescribedSignsB.realConj, realCoordinates] |
| 35 | |
| 36 | lemma realCoordinates_injective (Place : Type*) : |
| 37 | Function.Injective (realCoordinates Place) := by |
| 38 | intro x y h |
| 39 | funext τ |
| 40 | exact congrArg (fun z : Geometry.ComplexBall.PrescribedSignsB.Ambient Place => (z τ).1) h |
| 41 | |
| 42 | lemma realCoordinates_surjective_fixed (Place : Type*) (u : Geometry.ComplexBall.PrescribedSignsB.Ambient Place) |
| 43 | (hu : ambientConjugation Place u = u) : |
| 44 | ∃ x, realCoordinates Place x = u := by |
| 45 | refine ⟨fun τ => (u τ).1, ?_⟩ |
| 46 | ext τ j |
| 47 | · rfl |
| 48 | · have h := congrArg (fun z : Geometry.ComplexBall.PrescribedSignsB.Ambient Place => (z τ).2 j) hu |
| 49 | change star ((u τ).1 j) = (u τ).2 j at h |
| 50 | change star ((u τ).1 j) = (u τ).2 j |
| 51 | exact h |
| 52 | |
| 53 | def complexTrace {Place : Type*} [Fintype Place] |
| 54 | (B : Place → Geometry.ComplexBall.PrescribedSignsB.Bilin) (t : Place → ℂ) : LinearMap.BilinForm ℂ (Geometry.ComplexBall.PrescribedSignsB.Ambient Place) := |
| 55 | ∑ τ, t τ • |
| 56 | ((B τ).compl₁₂ |
| 57 | ((LinearMap.fst ℂ Geometry.ComplexBall.PrescribedSignsB.Vec Geometry.ComplexBall.PrescribedSignsB.Vec).comp (LinearMap.proj τ)) |
| 58 | ((LinearMap.snd ℂ Geometry.ComplexBall.PrescribedSignsB.Vec Geometry.ComplexBall.PrescribedSignsB.Vec).comp (LinearMap.proj τ)) - |
| 59 | ((B τ).compl₁₂ |
| 60 | ((LinearMap.fst ℂ Geometry.ComplexBall.PrescribedSignsB.Vec Geometry.ComplexBall.PrescribedSignsB.Vec).comp (LinearMap.proj τ)) |
| 61 | ((LinearMap.snd ℂ Geometry.ComplexBall.PrescribedSignsB.Vec Geometry.ComplexBall.PrescribedSignsB.Vec).comp (LinearMap.proj τ))).flip) |
| 62 | |
| 63 | lemma complexTrace_apply {Place : Type*} [Fintype Place] |
| 64 | (B : Place → Geometry.ComplexBall.PrescribedSignsB.Bilin) (t : Place → ℂ) (u v : Geometry.ComplexBall.PrescribedSignsB.Ambient Place) : |
| 65 | complexTrace B t u v = Geometry.ComplexBall.PrescribedSignsB.tracePairing (fun τ x y => B τ x y) t u v := by |
| 66 | simp [complexTrace, Geometry.ComplexBall.PrescribedSignsB.tracePairing] |
| 67 | |
| 68 | lemma complexTrace_skew {Place : Type*} [Fintype Place] |
| 69 | (B : Place → Geometry.ComplexBall.PrescribedSignsB.Bilin) (t : Place → ℂ) (u v : Geometry.ComplexBall.PrescribedSignsB.Ambient Place) : |
| 70 | complexTrace B t u v = -complexTrace B t v u := by |
| 71 | simp only [complexTrace_apply, Geometry.ComplexBall.PrescribedSignsB.tracePairing, ← Finset.sum_neg_distrib] |
| 72 | apply Finset.sum_congr rfl |
| 73 | intro τ _ |
| 74 | ring |
| 75 | |
| 76 | lemma complexTrace_real {Place : Type*} [Fintype Place] |
| 77 | (B : Place → Geometry.ComplexBall.PrescribedSignsB.Bilin) (hB : ∀ τ, Geometry.ComplexBall.PrescribedSignsB.HermitianB (B τ)) |
| 78 | (t : Place → ℂ) (ht : ∀ τ, star (t τ) = -t τ) |
| 79 | (u v : Geometry.ComplexBall.PrescribedSignsB.Ambient Place) : |
| 80 | star (complexTrace B t u v) = |
| 81 | complexTrace B t (ambientConjugation Place u) (ambientConjugation Place v) := by |
| 82 | simp only [complexTrace_apply, Geometry.ComplexBall.PrescribedSignsB.tracePairing, star_sum, star_mul, star_sub, ht] |
| 83 | apply Finset.sum_congr rfl |
| 84 | intro τ _ |
| 85 | rw [hB τ, hB τ] |
| 86 | change _ = t τ * (B τ (star (u τ).2) (star (v τ).1) - |
| 87 | B τ (star (v τ).2) (star (u τ).1)) |
| 88 | ring |
| 89 | |
| 90 | lemma realCoordinates_projection_injective {Place : Type*} [Fintype Place] |
| 91 | (r : ℕ) (Ψ : LinearMap.BilinForm ℂ (Geometry.ComplexBall.PrescribedSignsB.Ambient Place)) |
| 92 | (P : Submodule ℂ (Geometry.ComplexBall.PrescribedSignsB.Ambient Place)) |
| 93 | (hP : Geometry.ComplexBall.PrescribedSignsB.PositivePeriod r (fun x y => Ψ x y) (ambientConjugation Place) P) |
| 94 | {T : Type*} [AddCommGroup T] [Module ℂ T] |
| 95 | (π : Geometry.ComplexBall.PrescribedSignsB.Ambient Place →ₗ[ℂ] T) (hπ : π.ker = P) : |
| 96 | Function.Injective ((π.restrictScalars ℝ).comp (realCoordinates Place)) := by |
| 97 | apply LinearMap.ker_eq_bot.mp |
| 98 | apply LinearMap.ker_eq_bot'.mpr |
| 99 | intro x hx |
| 100 | have hp : realCoordinates Place x ∈ P := by |
| 101 | rw [← hπ] |
| 102 | exact hx |
| 103 | by_contra hn |
| 104 | have hne : realCoordinates Place x ≠ 0 := by |
| 105 | intro hz |
| 106 | exact hn (realCoordinates_injective Place (hz.trans (map_zero _).symm)) |
| 107 | have hpos := (hP.2.2.2.1 _ hp hne).2 |
| 108 | rw [realCoordinates_fixed, hP.2.2.1 _ hp _ hp] at hpos |
| 109 | simp at hpos |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.NumberTheory.ArithmeticGroups.Coordinates.CongruenceLevel |