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 Mathlib.AlgebraicGeometry.Restrict |
| 2 | |
| 3 | /-! # Section Restriction -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.SectionRestriction.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! # Completion: restriction of an actual scheme section to a base open -/ |
| 10 | |
| 11 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 12 | |
| 13 | set_option backward.defeqAttrib.useBackward true |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) (s : Y ⟶ X) (hs : s ≫ f = 𝟙 Y) (U : Y.Opens) |
| 19 | |
| 20 | include hs |
| 21 | |
| 22 | /-- The section over a base open lands in its actual inverse-image open. -/ |
| 23 | theorem schemeSectionRestrict_range : Set.range (U.ι ≫ s) ⊆ Set.range (f ⁻¹ᵁ U).ι := by |
| 24 | have h : (U.ι ≫ s) ≫ f = U.ι := by rw [Category.assoc, hs, Category.comp_id] |
| 25 | rintro _ ⟨u, rfl⟩ |
| 26 | rw [Scheme.Opens.range_ι] |
| 27 | change f ((U.ι ≫ s) u) ∈ U |
| 28 | rw [← Scheme.Hom.comp_apply, h] |
| 29 | exact u.property |
| 30 | |
| 31 | /-- The restriction of a scheme section to an arbitrary base open. -/ |
| 32 | def schemeSectionRestrict : U.toScheme ⟶ (f ⁻¹ᵁ U).toScheme := |
| 33 | IsOpenImmersion.lift (f ⁻¹ᵁ U).ι (U.ι ≫ s) (schemeSectionRestrict_range f s hs U) |
| 34 | |
| 35 | @[reassoc] |
| 36 | theorem schemeSectionRestrict_ι : |
| 37 | schemeSectionRestrict f s hs U ≫ (f ⁻¹ᵁ U).ι = U.ι ≫ s := |
| 38 | IsOpenImmersion.lift_fac _ _ _ |
| 39 | |
| 40 | /-- The restricted morphism retains the actual section identity. -/ |
| 41 | theorem schemeSectionRestrict_section : |
| 42 | schemeSectionRestrict f s hs U ≫ (f ∣_ U) = 𝟙 U.toScheme := by |
| 43 | rw [← cancel_mono U.ι, Category.assoc, morphismRestrict_ι, |
| 44 | ← Category.assoc, schemeSectionRestrict_ι, Category.assoc, hs, |
| 45 | Category.comp_id, Category.id_comp] |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.SectionRestriction.Construction |