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.Geometry.ComplexBall.Connected |
| 2 | import OAI.Geometry.ComplexBall.RealPoints |
| 3 | import OAI.NumberTheory.ArithmeticGroups.Lattices.Realizations |
| 4 | |
| 5 | /-! # Real Places -/ |
| 6 | |
| 7 | namespace OAI.Geometry.ComplexBall.RealPlaces.ArithmeticQuotient |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The real embeddings and compact omitted factors in the arithmetic |
| 12 | presentation of the original CM unitary group. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | open _root_.NumberField |
| 16 | |
| 17 | variable {E : Type} [Field E] [NumberField E] |
| 18 | |
| 19 | def realEmbedding (μ : E →+* ℂ) : ArithmeticQuotientEquationsData.RealField E →+* ℝ := |
| 20 | (IsTotallyReal.complexEmbedding_isReal (μ.comp (algebraMap (ArithmeticQuotientEquationsData.RealField E) E))).embedding |
| 21 | |
| 22 | lemma realEmbedding_apply (μ : E →+* ℂ) (x : ArithmeticQuotientEquationsData.RealField E) : |
| 23 | realEmbedding μ x = (μ (x : E)).re := rfl |
| 24 | |
| 25 | lemma realEmbedding_coe (μ : E →+* ℂ) (x : ArithmeticQuotientEquationsData.RealField E) : |
| 26 | (realEmbedding μ x : ℂ) = μ (x : E) := |
| 27 | ComplexEmbedding.IsReal.coe_embedding_apply _ x |
| 28 | |
| 29 | lemma realEmbedding_conjugate (μ : E →+* ℂ) : |
| 30 | realEmbedding ((starRingEnd ℂ).comp μ) = realEmbedding μ := by |
| 31 | ext x |
| 32 | change (star (μ (x : E))).re = (μ (x : E)).re |
| 33 | rfl |
| 34 | |
| 35 | lemma realEmbedding_lift (v : ArithmeticQuotientEquationsData.RealField E →+* ℝ) : |
| 36 | realEmbedding (ComplexEmbedding.lift E (Complex.ofRealHom.comp v)) = v := by |
| 37 | ext x |
| 38 | change (ComplexEmbedding.lift E (Complex.ofRealHom.comp v) |
| 39 | (algebraMap (ArithmeticQuotientEquationsData.RealField E) E x)).re = v x |
| 40 | rw [ComplexEmbedding.lift_algebraMap_apply] |
| 41 | rfl |
| 42 | |
| 43 | def realPlace (μ : E →+* ℂ) : InfinitePlace (ArithmeticQuotientEquationsData.RealField E) := |
| 44 | InfinitePlace.mk (Complex.ofRealHom.comp (realEmbedding μ)) |
| 45 | |
| 46 | omit [NumberField E] in |
| 47 | lemma realPlace_embedding (v : InfinitePlace (ArithmeticQuotientEquationsData.RealField E)) (hv : v.IsReal) : |
| 48 | InfinitePlace.mk (Complex.ofRealHom.comp (v.embedding_of_isReal hv)) = v := by |
| 49 | have he : Complex.ofRealHom.comp (v.embedding_of_isReal hv) = v.embedding := by |
| 50 | ext x |
| 51 | exact InfinitePlace.embedding_of_isReal_apply hv x |
| 52 | rw [he, InfinitePlace.mk_embedding] |
| 53 | |
| 54 | variable [IsCMField E] |
| 55 | |
| 56 | lemma imaginary_square_negative_real (δ : E) (hδ : IsCMField.complexConj E δ = -δ) |
| 57 | (hδ0 : δ ≠ 0) (v : ArithmeticQuotientEquationsData.RealField E →+* ℝ) : v (ArithmeticQuotientEquationsData.imaginarySquare δ hδ) < 0 := by |
| 58 | have h := ArithmeticQuotientEquationsData.imaginary_square_negative δ hδ hδ0 |
| 59 | (ComplexEmbedding.lift E (Complex.ofRealHom.comp v)) |
| 60 | change realEmbedding (ComplexEmbedding.lift E (Complex.ofRealHom.comp v)) |
| 61 | (ArithmeticQuotientEquationsData.imaginarySquare δ hδ) < 0 at h |
| 62 | rwa [realEmbedding_lift] at h |
| 63 | |
| 64 | lemma signature_positive_at_other_real_embedding (b : E) |
| 65 | (hb : IsCMField.complexConj E b = b) (μ : E →+* ℂ) |
| 66 | (hpos : ∀ ν : E →+* ℂ, ν ≠ μ → ν ≠ (starRingEnd ℂ).comp μ → 0 < (ν b).re) |
| 67 | (v : ArithmeticQuotientEquationsData.RealField E →+* ℝ) (hv : v ≠ realEmbedding μ) : 0 < v (ArithmeticQuotientSplitUnitary.realCoefficient b hb) := by |
| 68 | let ν := ComplexEmbedding.lift E (Complex.ofRealHom.comp v) |
| 69 | have he : realEmbedding ν = v := realEmbedding_lift v |
| 70 | have hν : ν ≠ μ := fun h => hv (he.symm.trans (congrArg realEmbedding h)) |
| 71 | have hνc : ν ≠ (starRingEnd ℂ).comp μ := by |
| 72 | intro h |
| 73 | exact hv (he.symm.trans ((congrArg realEmbedding h).trans (realEmbedding_conjugate μ))) |
| 74 | have h := hpos ν hν hνc |
| 75 | change 0 < realEmbedding ν (ArithmeticQuotientSplitUnitary.realCoefficient b hb) at h |
| 76 | rwa [he] at h |
| 77 | |
| 78 | lemma originalUnitaryPoints_compact (b : E) (hb : IsCMField.complexConj E b = b) |
| 79 | (δ : E) (hδ : IsCMField.complexConj E δ = -δ) (hδ0 : δ ≠ 0) |
| 80 | (v : ArithmeticQuotientEquationsData.RealField E →+* ℝ) (hvb : 0 < v (ArithmeticQuotientSplitUnitary.realCoefficient b hb)) : |
| 81 | CompactSpace ((ArithmeticQuotientSplitUnitary.originalUnitaryAlgebraicGroup b hb δ hδ).Points v) := |
| 82 | RealPoints.ArithmeticQuotient.realUnitaryPoints_compact_of_positive (v (ArithmeticQuotientEquationsData.imaginarySquare δ hδ)) |
| 83 | (v (ArithmeticQuotientSplitUnitary.realCoefficient b hb)) (imaginary_square_negative_real δ hδ hδ0 v) hvb |
| 84 | |
| 85 | lemma originalUnitary_omittedPlace_compact (b : E) (hb : IsCMField.complexConj E b = b) |
| 86 | (δ : E) (hδ : IsCMField.complexConj E δ = -δ) (hδ0 : δ ≠ 0) |
| 87 | (μ : E →+* ℂ) |
| 88 | (hpos : ∀ ν : E →+* ℂ, ν ≠ μ → ν ≠ (starRingEnd ℂ).comp μ → 0 < (ν b).re) |
| 89 | (v : InfinitePlace (ArithmeticQuotientEquationsData.RealField E)) (hv : v ≠ realPlace μ) : |
| 90 | CompactSpace ((ArithmeticQuotientSplitUnitary.originalUnitaryAlgebraicGroup b hb δ hδ).AtPlace v) := by |
| 91 | have hreal := IsTotallyReal.isReal v |
| 92 | have he : v.embedding_of_isReal hreal ≠ realEmbedding μ := by |
| 93 | intro h |
| 94 | apply hv |
| 95 | rw [← realPlace_embedding v hreal, h] |
| 96 | rfl |
| 97 | have hp := signature_positive_at_other_real_embedding b hb μ hpos _ he |
| 98 | let : CompactSpace ((ArithmeticQuotientSplitUnitary.originalUnitaryAlgebraicGroup b hb δ hδ).Points |
| 99 | (v.embedding_of_isReal hreal)) := originalUnitaryPoints_compact b hb δ hδ hδ0 _ hp |
| 100 | exact ((ArithmeticQuotientSplitUnitary.originalUnitaryAlgebraicGroup b hb δ hδ).realPlaceEquiv v hreal).symm.toHomeomorph.compactSpace |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.Geometry.ComplexBall.RealPlaces.ArithmeticQuotient |