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.ArithmeticGeometry.OrdinaryLocus.Openness.PullbackSectionCompatibility |
| 2 | import Mathlib.AlgebraicGeometry.Restrict |
| 3 | |
| 4 | /-! # Section Restriction -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SectionRestriction.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Restricting a section to a base open, with its induced isomorphism on global functions. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {X S : Scheme.{u}} (π : X ⟶ S) (s : S ⟶ X) (hs : s ≫ π = 𝟙 S) |
| 17 | |
| 18 | include hs in |
| 19 | theorem section_preimage_le (U : S.Opens) : U ≤ s ⁻¹ᵁ (π ⁻¹ᵁ U) := by |
| 20 | intro x hx |
| 21 | have he : π (s x) = x := congrArg (fun f : S ⟶ S ↦ f x) hs |
| 22 | exact (congrArg (fun y : S ↦ y ∈ U) he).mpr hx |
| 23 | |
| 24 | def sectionRestrict (U : S.Opens) : U.toScheme ⟶ (π ⁻¹ᵁ U).toScheme := |
| 25 | IsOpenImmersion.lift (π ⁻¹ᵁ U).ι (U.ι ≫ s) (by |
| 26 | rintro x ⟨y, rfl⟩ |
| 27 | exact ⟨⟨s y.val, section_preimage_le π s hs U y.property⟩, rfl⟩) |
| 28 | |
| 29 | theorem sectionRestrict_ι (U : S.Opens) : |
| 30 | sectionRestrict π s hs U ≫ (π ⁻¹ᵁ U).ι = U.ι ≫ s := |
| 31 | IsOpenImmersion.lift_fac _ _ _ |
| 32 | |
| 33 | theorem sectionRestrict_over (U : S.Opens) : |
| 34 | sectionRestrict π s hs U ≫ (π ∣_ U) = 𝟙 U.toScheme := by |
| 35 | apply (cancel_mono U.ι).mp |
| 36 | rw [Category.assoc, morphismRestrict_ι, ← Category.assoc, sectionRestrict_ι, |
| 37 | Category.assoc, hs, Category.comp_id, Category.id_comp] |
| 38 | |
| 39 | theorem isIso_restrict_appTop (hf : ∀ U : S.Opens, IsIso (π.app U)) (U : S.Opens) : |
| 40 | IsIso (π ∣_ U).appTop := by |
| 41 | have : IsIso (π.app (U.ι ''ᵁ ⊤)) := hf _ |
| 42 | let e := asIso (π.app (U.ι ''ᵁ ⊤)) ≪≫ |
| 43 | X.presheaf.mapIso (eqToIso (image_morphismRestrict_preimage π U ⊤)).op |
| 44 | exact (morphismRestrict_appTop π U).symm ▸ e.isIso_hom |
| 45 | |
| 46 | theorem isIso_sectionRestrict_appTop (hf : ∀ U : S.Opens, IsIso (π.app U)) (U : S.Opens) : |
| 47 | IsIso (sectionRestrict π s hs U).appTop := by |
| 48 | have : IsIso (π ∣_ U).appTop := isIso_restrict_appTop π hf U |
| 49 | have hc : (π ∣_ U).appTop ≫ (sectionRestrict π s hs U).appTop = 𝟙 _ := by |
| 50 | rw [← Scheme.Hom.comp_appTop, sectionRestrict_over, Scheme.Hom.id_appTop] |
| 51 | have : IsIso ((π ∣_ U).appTop ≫ (sectionRestrict π s hs U).appTop) := hc.symm ▸ inferInstance |
| 52 | exact IsIso.of_isIso_comp_left (π ∣_ U).appTop _ |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SectionRestriction.Construction |