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.AffineScheme |
| 2 | |
| 3 | /-! # Morphism Compatible Affine Cover -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.MorphismCompatibleAffineCover |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Two original affine covers and a scheme morphism construct an |
| 10 | actual affine cover of the source refining both its original cover |
| 11 | and the inverse image of the target cover. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 14 | |
| 15 | variable {X Y : Scheme.{0}} (f : X ⟶ Y) (U : X.AffineOpenCover) (V : Y.AffineOpenCover) |
| 16 | |
| 17 | structure MorphismAffineRefinementIndex where |
| 18 | source : U.I₀ |
| 19 | target : V.I₀ |
| 20 | chart : X.affineOpens |
| 21 | source_le : chart.1 ≤ (U.f source).opensRange |
| 22 | target_le : chart.1 ≤ f ⁻¹ᵁ (V.f target).opensRange |
| 23 | |
| 24 | theorem morphismAffineRefinement_covers : |
| 25 | iSup (fun i : MorphismAffineRefinementIndex f U V => i.chart.1) = ⊤ := by |
| 26 | apply top_unique |
| 27 | intro x _ |
| 28 | let i := U.idx x |
| 29 | let j := V.idx (f x) |
| 30 | have hx : x ∈ (U.f i).opensRange ⊓ f ⁻¹ᵁ (V.f j).opensRange := ⟨U.covers x, V.covers (f x)⟩ |
| 31 | obtain ⟨W, hW, hxW, hsub⟩ := exists_isAffineOpen_mem_and_subset hx |
| 32 | apply Opens.mem_iSup.mpr |
| 33 | refine ⟨⟨i, j, ⟨W, hW⟩, ?_, ?_⟩, hxW⟩ |
| 34 | · exact fun _ h => (hsub h).1 |
| 35 | · exact fun _ h => (hsub h).2 |
| 36 | |
| 37 | def morphismCompatibleAffineCover : X.AffineOpenCover := |
| 38 | Scheme.AffineOpenCover.ofIsOpenCover (fun i : MorphismAffineRefinementIndex f U V => i.chart.1) |
| 39 | (morphismAffineRefinement_covers f U V) (fun i => i.chart.2) |
| 40 | |
| 41 | instance morphismCompatibleAffineCover_open (i : MorphismAffineRefinementIndex f U V) : |
| 42 | IsOpenImmersion ((morphismCompatibleAffineCover f U V).f i) := |
| 43 | IsAffineOpen.isOpenImmersion_fromSpec i.chart.2 |
| 44 | |
| 45 | theorem morphismCompatibleAffineCover_range (i : MorphismAffineRefinementIndex f U V) : |
| 46 | ((morphismCompatibleAffineCover f U V).f i).opensRange = i.chart.1 := |
| 47 | i.chart.2.opensRange_fromSpec |
| 48 | |
| 49 | theorem morphismCompatibleAffineCover_source (i : MorphismAffineRefinementIndex f U V) : |
| 50 | ((morphismCompatibleAffineCover f U V).f i).opensRange ≤ (U.f i.source).opensRange := by |
| 51 | rw [morphismCompatibleAffineCover_range] |
| 52 | exact i.source_le |
| 53 | |
| 54 | theorem morphismCompatibleAffineCover_target (i : MorphismAffineRefinementIndex f U V) : |
| 55 | ((morphismCompatibleAffineCover f U V).f i).opensRange ≤ f ⁻¹ᵁ (V.f i.target).opensRange := by |
| 56 | rw [morphismCompatibleAffineCover_range] |
| 57 | exact i.target_le |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.MorphismCompatibleAffineCover |