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.CommonReductionPrincipalNeighborhood |
| 2 | |
| 3 | /-! # Common Section Principal Neighborhood -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.CommonSectionPrincipalNeighborhood |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Common principal neighborhoods retain the whole sections when |
| 10 | their reduced base has one point and surjects onto the original base. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | variable {T₀ T Y X₁ X₂ : Scheme.{u}} |
| 16 | [Subsingleton T₀] [Nonempty T₀] |
| 17 | (r : T₀ ⟶ T) (hr : Function.Surjective r) |
| 18 | (s₀ : T₀ ⟶ Y) |
| 19 | |
| 20 | include hr in |
| 21 | omit [Nonempty ↥T₀] in |
| 22 | theorem contains {X : Scheme.{u}} (f : Y ⟶ X) (s : T ⟶ X) |
| 23 | (h : s₀ ≫ f = r ≫ s) (U : X.Opens) (z : T₀) (hz : f (s₀ z) ∈ U) : |
| 24 | ⊤ ≤ s ⁻¹ᵁ U := by |
| 25 | intro t _ |
| 26 | obtain ⟨z', rfl⟩ := hr t |
| 27 | have he : z' = z := Subsingleton.elim _ _ |
| 28 | subst z' |
| 29 | have hw : f (s₀ z) = s (r z) := congrArg (fun g : T₀ ⟶ X => g z) h |
| 30 | change s (r z) ∈ U |
| 31 | rw [← hw] |
| 32 | exact hz |
| 33 | |
| 34 | variable (f₁ : Y ⟶ X₁) (f₂ : Y ⟶ X₂) |
| 35 | [IsClosedImmersion f₁] [IsClosedImmersion f₂] |
| 36 | (s₁ : T ⟶ X₁) (s₂ : T ⟶ X₂) |
| 37 | (h₁ : s₀ ≫ f₁ = r ≫ s₁) (h₂ : s₀ ≫ f₂ = r ≫ s₂) |
| 38 | (U₁ : X₁.Opens) (U₂ : X₂.Opens) (ha₁ : IsAffineOpen U₁) (ha₂ : IsAffineOpen U₂) |
| 39 | (hs₁ : ⊤ ≤ s₁ ⁻¹ᵁ U₁) (hs₂ : ⊤ ≤ s₂ ⁻¹ᵁ U₂) |
| 40 | |
| 41 | include hr h₁ h₂ ha₁ ha₂ hs₁ hs₂ in |
| 42 | theorem exists_principal : ∃ a₁ : Γ(X₁, U₁), ∃ a₂ : Γ(X₂, U₂), |
| 43 | (⊤ ≤ s₁ ⁻¹ᵁ X₁.basicOpen a₁) ∧ (⊤ ≤ s₂ ⁻¹ᵁ X₂.basicOpen a₂) ∧ |
| 44 | f₁ ⁻¹ᵁ X₁.basicOpen a₁ = f₂ ⁻¹ᵁ X₂.basicOpen a₂ := by |
| 45 | let z : T₀ := Classical.ofNonempty |
| 46 | have he₁ : f₁ (s₀ z) = s₁ (r z) := congrArg (fun g : T₀ ⟶ X₁ => g z) h₁ |
| 47 | have he₂ : f₂ (s₀ z) = s₂ (r z) := congrArg (fun g : T₀ ⟶ X₂ => g z) h₂ |
| 48 | have hz₁ : f₁ (s₀ z) ∈ U₁ := he₁ ▸ hs₁ (show r z ∈ (⊤ : T.Opens) from trivial) |
| 49 | have hz₂ : f₂ (s₀ z) ∈ U₂ := he₂ ▸ hs₂ (show r z ∈ (⊤ : T.Opens) from trivial) |
| 50 | obtain ⟨a₁, a₂, hy₁, hy₂, he⟩ := |
| 51 | CommonReductionPrincipalNeighborhood.exists_principal f₁ f₂ U₁ U₂ ha₁ ha₂ (s₀ z) hz₁ hz₂ |
| 52 | exact ⟨a₁, a₂, contains r hr s₀ f₁ s₁ h₁ _ z hy₁, |
| 53 | contains r hr s₀ f₂ s₂ h₂ _ z hy₂, he⟩ |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.NumberTheory.PadicHodge.IntegralComparison.CommonSectionPrincipalNeighborhood |