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.Intrinsic.SmoothClosedSections |
| 2 | |
| 3 | /-! # Section Evaluation -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.SectionEvaluation |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Evaluation on the original affine section algebra, together with |
| 10 | its kernel and its behavior under restriction to an open neighborhood. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | universe u |
| 18 | variable (R : Type u) [CommRing R] (X : Over (Spec (CommRingCat.of R))) |
| 19 | (s : Spec (CommRingCat.of R) ⟶ X.left) (hs : s ≫ X.hom = 𝟙 _) |
| 20 | (U : X.left.Opens) (hU : ⊤ ≤ s ⁻¹ᵁ U) |
| 21 | |
| 22 | include hs in |
| 23 | theorem retraction : |
| 24 | X.hom.appLE ⊤ U (by simp) ≫ s.appLE U ⊤ hU = 𝟙 _ := by |
| 25 | rw [Scheme.Hom.appLE_comp_appLE] |
| 26 | have h : ∀ (f : Spec (CommRingCat.of R) ⟶ Spec (CommRingCat.of R)) |
| 27 | (hf : f = 𝟙 _) (e : ⊤ ≤ f ⁻¹ᵁ ⊤), f.appLE ⊤ ⊤ e = 𝟙 _ := by |
| 28 | intro f hf e |
| 29 | subst f |
| 30 | change 𝟙 _ ≫ (Spec (CommRingCat.of R)).presheaf.map (𝟙 (op ⊤)) = 𝟙 _ |
| 31 | rw [CategoryTheory.Functor.map_id, Category.id_comp] |
| 32 | exact h _ hs _ |
| 33 | |
| 34 | def evaluation : SmoothClosedSections.ring R X U →ₐ[R] R where |
| 35 | toRingHom := (s.appLE U ⊤ hU ≫ (Scheme.ΓSpecIso (CommRingCat.of R)).hom).hom |
| 36 | commutes' r := by |
| 37 | have h := congrArg (fun a => (Scheme.ΓSpecIso (CommRingCat.of R)).inv ≫ a ≫ |
| 38 | (Scheme.ΓSpecIso (CommRingCat.of R)).hom) (retraction R X s hs U hU) |
| 39 | simp only [Category.assoc, Category.id_comp, Iso.inv_hom_id] at h |
| 40 | exact ConcreteCategory.congr_hom h r |
| 41 | |
| 42 | include hU in |
| 43 | theorem kernel [IsClosedImmersion s] (hUa : IsAffineOpen U) : |
| 44 | RingHom.ker (evaluation R X s hs U hU).toRingHom = s.ker.ideal ⟨U, hUa⟩ := by |
| 45 | have he : s ⁻¹ᵁ U = ⊤ := top_unique hU |
| 46 | have hm : IsIso ((Spec (CommRingCat.of R)).presheaf.map (homOfLE hU).op) := by |
| 47 | have : IsIso (homOfLE hU) := by |
| 48 | change IsIso (eqToHom he.symm) |
| 49 | infer_instance |
| 50 | infer_instance |
| 51 | have hres := (ConcreteCategory.bijective_of_isIso |
| 52 | ((Spec (CommRingCat.of R)).presheaf.map (homOfLE hU).op)).injective |
| 53 | have hiso := (ConcreteCategory.bijective_of_isIso |
| 54 | (Scheme.ΓSpecIso (CommRingCat.of R)).hom).injective |
| 55 | change RingHom.ker (((Scheme.ΓSpecIso (CommRingCat.of R)).hom).hom.comp |
| 56 | (s.appLE U ⊤ hU).hom) = _ |
| 57 | rw [RingHom.ker_comp_of_injective _ hiso, Scheme.Hom.ker_apply] |
| 58 | exact RingHom.ker_comp_of_injective _ hres |
| 59 | |
| 60 | theorem principal_contains (a : SmoothClosedSections.ring R X U) |
| 61 | (ha : evaluation R X s hs U hU a = 1) : |
| 62 | ⊤ ≤ s ⁻¹ᵁ X.left.basicOpen a := by |
| 63 | have he : s.appLE U ⊤ hU a = 1 := by |
| 64 | apply (ConcreteCategory.bijective_of_isIso |
| 65 | (Scheme.ΓSpecIso (CommRingCat.of R)).hom).injective |
| 66 | exact ha.trans (map_one _).symm |
| 67 | have h := Scheme.basicOpen_appLE s ⊤ U hU a |
| 68 | rw [he, Scheme.basicOpen_one, top_inf_eq] at h |
| 69 | exact h.le |
| 70 | |
| 71 | variable (V : X.left.Opens) (hVU : V ≤ U) (hV : ⊤ ≤ s ⁻¹ᵁ V) |
| 72 | |
| 73 | theorem restriction (a : SmoothClosedSections.ring R X U) : |
| 74 | evaluation R X s hs V hV |
| 75 | (((AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X).map (homOfLE hVU).op).hom a) = |
| 76 | evaluation R X s hs U hU a := by |
| 77 | have h := s.map_appLE hV (homOfLE hVU).op |
| 78 | exact congrArg (fun b => (Scheme.ΓSpecIso (CommRingCat.of R)).hom b) |
| 79 | (ConcreteCategory.congr_hom h a) |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.SectionEvaluation |