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.FormalGeometry.Completion.FunctionsComparison |
| 2 | import Mathlib.RingTheory.AdicCompletion.LocalRing |
| 3 | |
| 4 | /-! # Idempotent Obstruction -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.IdempotentObstruction.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Completion: the actual infinitesimal idempotent obstructs surjectivity of the comparison |
| 12 | |
| 13 | For a Noetherian local base the completed base ring is local. Any idempotent |
| 14 | in the image of a ring map from a local ring is trivial. Hence the canonical |
| 15 | idempotent of a separated initial fiber cannot lie in the image of the actual |
| 16 | formal-functions comparison. Surjectivity for the proper normalized family |
| 17 | is still an obligation to prove. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 21 | |
| 22 | set_option backward.defeqAttrib.useBackward true |
| 23 | set_option backward.isDefEq.respectTransparency false |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | /-- Every idempotent in the image of a ring map from a local ring is zero or one. -/ |
| 28 | theorem localRing_image_idempotent_trivial {R S : Type*} [CommRing R] [CommRing S] |
| 29 | [IsLocalRing R] (φ : R →+* S) (a : R) (he : IsIdempotentElem (φ a)) : |
| 30 | φ a = 0 ∨ φ a = 1 := by |
| 31 | rcases IsLocalRing.isUnit_or_isUnit_one_sub_self a with h | h |
| 32 | · exact Or.inr ((IsIdempotentElem.iff_eq_one_of_isUnit (h.map φ)).mp he) |
| 33 | · have h' : IsUnit (1 - φ a) := by simpa only [map_sub, map_one] using h.map φ |
| 34 | exact Or.inl (sub_eq_self.mp ((IsIdempotentElem.iff_eq_one_of_isUnit h').mp he.one_sub)) |
| 35 | |
| 36 | /-- The actual nontrivial infinitesimal clopen indicator is outside the image of the completed base. -/ |
| 37 | theorem infinitesimalClopenIndicator_not_mem_comparison_range |
| 38 | {R : Type u} [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 39 | {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) |
| 40 | (U : (Infinitesimal.Neighborhoods.Construction.infinitesimalNeighborhood (IsLocalRing.maximalIdeal R) f 0).Opens) |
| 41 | (hU : IsClosed (U : Set (Infinitesimal.Neighborhoods.Construction.infinitesimalNeighborhood (IsLocalRing.maximalIdeal R) f 0))) |
| 42 | (h₀ : U ≠ ⊥) (h₁ : U ≠ ⊤) : |
| 43 | Infinitesimal.ClopenSections.Construction.infinitesimalClopenIndicator (IsLocalRing.maximalIdeal R) f U hU ∉ |
| 44 | Set.range (FunctionsComparison.Construction.formalFunctionsComparison (IsLocalRing.maximalIdeal R) f) := by |
| 45 | obtain ⟨he, hz, ho⟩ := |
| 46 | Infinitesimal.ClopenSections.Construction.infinitesimalClopenIndicator_nontrivial (IsLocalRing.maximalIdeal R) f U hU h₀ h₁ |
| 47 | rintro ⟨a, ha⟩ |
| 48 | have he' : IsIdempotentElem (FunctionsComparison.Construction.formalFunctionsComparison (IsLocalRing.maximalIdeal R) f a) := |
| 49 | ha.symm ▸ he |
| 50 | rcases localRing_image_idempotent_trivial |
| 51 | (FunctionsComparison.Construction.formalFunctionsComparison (IsLocalRing.maximalIdeal R) f) a he' with h | h |
| 52 | · exact hz (ha.symm.trans h) |
| 53 | · exact ho (ha.symm.trans h) |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.IdempotentObstruction.Construction |