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.Quotients.FiniteDescent.ProperBirational |
| 2 | import Mathlib.AlgebraicGeometry.FunctionField |
| 3 | |
| 4 | /-! # Generic Lift -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.GenericLift.Construction.GenericLiftRestriction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Restricting a dense lift of the generic point to any nonempty open. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem dominant_lift {X Y Z : Scheme.{u}} (i : X ⟶ Z) [IsOpenImmersion i] |
| 17 | (g : Y ⟶ Z) [IsDominant g] (h : Set.range g ⊆ Set.range i) : |
| 18 | IsDominant (IsOpenImmersion.lift i g h) := by |
| 19 | constructor |
| 20 | apply i.isOpenEmbedding.isEmbedding.isInducing.dense_iff.mpr |
| 21 | intro x |
| 22 | rw [← Set.range_comp] |
| 23 | have he : i ∘ IsOpenImmersion.lift i g h = g := |
| 24 | funext (fun y => congrArg (fun a : Y ⟶ Z => a y) (IsOpenImmersion.lift_fac i g h)) |
| 25 | rw [he] |
| 26 | exact g.denseRange (i x) |
| 27 | |
| 28 | variable {X Y : Scheme.{u}} [IsIntegral Y] |
| 29 | variable (f : X ⟶ Y) (g : Spec Y.functionField ⟶ X) |
| 30 | variable (hg : g ≫ f = Y.fromSpecStalk (genericPoint Y)) |
| 31 | |
| 32 | theorem generic_mem (U : Y.Opens) [Nonempty U] : genericPoint Y ∈ U := |
| 33 | ((genericPoint_spec Y).mem_open_set_iff U.isOpen).mpr (by simpa using ‹Nonempty U›) |
| 34 | |
| 35 | include hg |
| 36 | |
| 37 | theorem range_subset (U : Y.Opens) [Nonempty U] : |
| 38 | Set.range g ⊆ Set.range (f ⁻¹ᵁ U).ι := by |
| 39 | rintro _ ⟨z, rfl⟩ |
| 40 | refine ⟨⟨g z, ?_⟩, rfl⟩ |
| 41 | change f (g z) ∈ U |
| 42 | rw [← Scheme.Hom.comp_apply, hg] |
| 43 | have hz : z = IsLocalRing.closedPoint Y.functionField := |
| 44 | Subsingleton.elim (α := PrimeSpectrum Y.functionField) _ _ |
| 45 | rw [hz, Scheme.fromSpecStalk_closedPoint] |
| 46 | exact generic_mem U |
| 47 | |
| 48 | def lift (U : Y.Opens) [Nonempty U] : Spec Y.functionField ⟶ (f ⁻¹ᵁ U).toScheme := |
| 49 | IsOpenImmersion.lift (f ⁻¹ᵁ U).ι g (range_subset f g hg U) |
| 50 | |
| 51 | theorem lift_comp_ι (U : Y.Opens) [Nonempty U] : GenericLiftRestriction.lift f g hg U ≫ (f ⁻¹ᵁ U).ι = g := |
| 52 | IsOpenImmersion.lift_fac _ _ _ |
| 53 | |
| 54 | theorem isDominant_lift [IsDominant g] (U : Y.Opens) [Nonempty U] : |
| 55 | IsDominant (GenericLiftRestriction.lift f g hg U) := dominant_lift _ _ _ |
| 56 | |
| 57 | theorem lift_comp_restrict (U : Y.Opens) [Nonempty U] : |
| 58 | GenericLiftRestriction.lift f g hg U ≫ f ∣_ U = U.fromSpecStalkOfMem (genericPoint Y) (generic_mem U) := by |
| 59 | apply (cancel_mono U.ι).mp |
| 60 | rw [Category.assoc, morphismRestrict_ι, ← Category.assoc, lift_comp_ι, hg] |
| 61 | simp |
| 62 | |
| 63 | theorem lift_comp_affine (U : Y.Opens) [Nonempty U] : |
| 64 | GenericLiftRestriction.lift f g hg U ≫ f ∣_ U ≫ U.toSpecΓ = Spec.map (Y.germToFunctionField U) := by |
| 65 | rw [← Category.assoc, lift_comp_restrict, Scheme.Opens.fromSpecStalkOfMem_toSpecΓ] |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.GenericLift.Construction.GenericLiftRestriction |