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.Infinitesimal.ClopenSections |
| 2 | import Mathlib.RingTheory.AdicCompletion.Algebra |
| 3 | |
| 4 | /-! # Functions Comparison -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.FunctionsComparison.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Completion: the actual comparison from the completed base to infinitesimal global sections |
| 12 | |
| 13 | This constructs the canonical comparison using the actual quotient-ring |
| 14 | maps, structure morphisms, and compatible-section ring. It does not assert |
| 15 | surjectivity or the formal-functions theorem. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | variable {R : Type u} [CommRing R] (I : Ideal R) |
| 27 | |
| 28 | /-- Actual evaluations from the adic completion commute with the quotient transitions. -/ |
| 29 | theorem adicCompletion_factor_eval {m n : ℕ} (h : m ≤ n) (x : AdicCompletion I R) : |
| 30 | Ideal.Quotient.factorPow I h (AdicCompletion.evalₐ I n x) = AdicCompletion.evalₐ I m x := by |
| 31 | obtain ⟨s, rfl⟩ := AdicCompletion.mk_surjective I R x |
| 32 | rw [AdicCompletion.evalₐ_mk, AdicCompletion.evalₐ_mk, Ideal.Quotient.factor_mk] |
| 33 | have hs := AdicCompletion.AdicCauchySequence.mk_eq_mk h s |
| 34 | change Ideal.Quotient.mk (I ^ m • ⊤) (s n) = Ideal.Quotient.mk (I ^ m • ⊤) (s m) at hs |
| 35 | have hI : (I ^ m • ⊤ : Ideal R) = I ^ m := by ext r; simp |
| 36 | rw [hI] at hs |
| 37 | exact hs |
| 38 | |
| 39 | variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) |
| 40 | |
| 41 | /-- The actual structure map on global functions at each infinitesimal level. -/ |
| 42 | def infinitesimalBaseSectionsMap (n : ℕ) : R ⧸ I ^ (n + 1) →+* |
| 43 | Γ(Infinitesimal.Neighborhoods.Construction.infinitesimalNeighborhood I f n, ⊤) := |
| 44 | ((Scheme.ΓSpecIso (CommRingCat.of (R ⧸ I ^ (n + 1)))).inv ≫ |
| 45 | (pullback.snd f (Infinitesimal.Neighborhoods.Construction.infinitesimalBaseToSpec I n)).appTop).hom |
| 46 | |
| 47 | theorem infinitesimalBaseSectionsMap_compatible (n : ℕ) : |
| 48 | (Infinitesimal.Neighborhoods.Construction.infinitesimalTransition I f n).appTop.hom.comp (infinitesimalBaseSectionsMap I f (n + 1)) = |
| 49 | (infinitesimalBaseSectionsMap I f n).comp (Ideal.Quotient.factorPowSucc I (n + 1)) := by |
| 50 | have he : Infinitesimal.Neighborhoods.Construction.infinitesimalTransition I f n ≫ |
| 51 | pullback.snd f (Infinitesimal.Neighborhoods.Construction.infinitesimalBaseToSpec I (n + 1)) = |
| 52 | pullback.snd f (Infinitesimal.Neighborhoods.Construction.infinitesimalBaseToSpec I n) ≫ Infinitesimal.Neighborhoods.Construction.infinitesimalBaseTransition I n := by |
| 53 | simp [Infinitesimal.Neighborhoods.Construction.infinitesimalTransition] |
| 54 | change (((Scheme.ΓSpecIso _).inv ≫ |
| 55 | (pullback.snd f (Infinitesimal.Neighborhoods.Construction.infinitesimalBaseToSpec I (n + 1))).appTop) ≫ |
| 56 | (Infinitesimal.Neighborhoods.Construction.infinitesimalTransition I f n).appTop).hom = |
| 57 | (CommRingCat.ofHom (Ideal.Quotient.factorPowSucc I (n + 1)) ≫ |
| 58 | (Scheme.ΓSpecIso _).inv ≫ (pullback.snd f (Infinitesimal.Neighborhoods.Construction.infinitesimalBaseToSpec I n)).appTop).hom |
| 59 | congr 1 |
| 60 | rw [Category.assoc, ← Scheme.Hom.comp_appTop, he, Scheme.Hom.comp_appTop, ← Category.assoc] |
| 61 | exact congrArg (fun k => k ≫ (pullback.snd f (Infinitesimal.Neighborhoods.Construction.infinitesimalBaseToSpec I n)).appTop) |
| 62 | (Scheme.ΓSpecIso_inv_naturality (CommRingCat.ofHom |
| 63 | (Ideal.Quotient.factorPowSucc I (n + 1)))).symm |
| 64 | |
| 65 | /-- The canonical ring homomorphism from the completed base to actual compatible global sections. -/ |
| 66 | def formalFunctionsComparison : AdicCompletion I R →+* Infinitesimal.ClopenSections.Construction.infinitesimalGlobalSections I f where |
| 67 | toFun x := ⟨fun n => infinitesimalBaseSectionsMap I f n (AdicCompletion.evalₐ I (n + 1) x), by |
| 68 | intro n |
| 69 | change ((Infinitesimal.Neighborhoods.Construction.infinitesimalTransition I f n).appTop.hom.comp |
| 70 | (infinitesimalBaseSectionsMap I f (n + 1))) (AdicCompletion.evalₐ I (n + 1 + 1) x) = _ |
| 71 | rw [infinitesimalBaseSectionsMap_compatible] |
| 72 | change infinitesimalBaseSectionsMap I f n |
| 73 | (Ideal.Quotient.factorPow I (Nat.le_succ (n + 1)) |
| 74 | (AdicCompletion.evalₐ I (n + 1 + 1) x)) = _ |
| 75 | rw [adicCompletion_factor_eval]⟩ |
| 76 | map_zero' := by apply Subtype.ext; funext n; simp |
| 77 | map_one' := by apply Subtype.ext; funext n; simp |
| 78 | map_add' x y := by apply Subtype.ext; funext n; simp |
| 79 | map_mul' x y := by apply Subtype.ext; funext n; simp |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.FunctionsComparison.Construction |