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.AffineSpace |
| 2 | import Mathlib.AlgebraicGeometry.Sites.Fpqc |
| 3 | |
| 4 | /-! # Function Descent -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FunctionDescent |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Descent of regular functions via their actual representing affine line. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | def functionScheme : Scheme.{u} := |
| 17 | Spec (.of (MvPolynomial PUnit.{u + 1} (ULift.{u} ℤ))) |
| 18 | |
| 19 | def functionEquiv (X : Scheme.{u}) : (X ⟶ functionScheme) ≃ Γ(X, ⊤) where |
| 20 | toFun f := AffineSpace.toSpecMvPolyIntEquiv PUnit f PUnit.unit |
| 21 | invFun r := (AffineSpace.toSpecMvPolyIntEquiv PUnit).symm (fun _ ↦ r) |
| 22 | left_inv f := by |
| 23 | apply (AffineSpace.toSpecMvPolyIntEquiv PUnit).injective |
| 24 | rw [Equiv.apply_symm_apply] |
| 25 | right_inv r := by |
| 26 | exact congrFun ((AffineSpace.toSpecMvPolyIntEquiv PUnit).apply_symm_apply (fun _ ↦ r)) PUnit.unit |
| 27 | |
| 28 | theorem functionEquiv_comp {X Y : Scheme.{u}} (f : X ⟶ Y) (g : Y ⟶ functionScheme) : |
| 29 | functionEquiv X (f ≫ g) = f.appTop (functionEquiv Y g) := rfl |
| 30 | |
| 31 | theorem functionMap_comp {X Y : Scheme.{u}} (f : X ⟶ Y) (r : Γ(Y, ⊤)) : |
| 32 | f ≫ (functionEquiv Y).symm r = (functionEquiv X).symm (f.appTop r) := by |
| 33 | apply (functionEquiv X).injective |
| 34 | rw [functionEquiv_comp, Equiv.apply_symm_apply, Equiv.apply_symm_apply] |
| 35 | |
| 36 | theorem appTop_injective_of_epi {X Y : Scheme.{u}} (f : X ⟶ Y) [Epi f] : |
| 37 | Function.Injective f.appTop := by |
| 38 | intro r s h |
| 39 | apply (functionEquiv Y).symm.injective |
| 40 | apply (cancel_epi f).mp |
| 41 | rw [functionMap_comp, functionMap_comp, h] |
| 42 | |
| 43 | /-- A regular function compatible on every equal-image pair descends |
| 44 | uniquely through an effective epimorphism of actual schemes. -/ |
| 45 | theorem existsUnique_function_descent {X Y : Scheme.{u}} (f : X ⟶ Y) [EffectiveEpi f] |
| 46 | (r : Γ(X, ⊤)) |
| 47 | (hr : ∀ {T : Scheme.{u}} (x y : T ⟶ X), x ≫ f = y ≫ f → x.appTop r = y.appTop r) : |
| 48 | ∃! s : Γ(Y, ⊤), f.appTop s = r := by |
| 49 | let a := (functionEquiv X).symm r |
| 50 | have ha : ∀ {T : Scheme.{u}} (x y : T ⟶ X), x ≫ f = y ≫ f → x ≫ a = y ≫ a := by |
| 51 | intro T x y hxy |
| 52 | apply (functionEquiv T).injective |
| 53 | rw [functionEquiv_comp, functionEquiv_comp] |
| 54 | have he : functionEquiv X a = r := (functionEquiv X).apply_symm_apply r |
| 55 | rw [he] |
| 56 | exact hr x y hxy |
| 57 | let d := EffectiveEpi.desc f a ha |
| 58 | refine ⟨functionEquiv Y d, ?_, ?_⟩ |
| 59 | · exact (functionEquiv_comp f d).symm.trans |
| 60 | ((congrArg (functionEquiv X) (EffectiveEpi.fac f a ha)).trans |
| 61 | ((functionEquiv X).apply_symm_apply r)) |
| 62 | · intro s hs |
| 63 | apply appTop_injective_of_epi f |
| 64 | exact hs.trans ((functionEquiv_comp f d).symm.trans |
| 65 | ((congrArg (functionEquiv X) (EffectiveEpi.fac f a ha)).trans |
| 66 | ((functionEquiv X).apply_symm_apply r))).symm |
| 67 | |
| 68 | def globalFunctionPresheaf : Scheme.{u}ᵒᵖ ⥤ Type u := |
| 69 | Scheme.Γ ⋙ forget CommRingCat |
| 70 | |
| 71 | def globalFunctionRepresentation : globalFunctionPresheaf.RepresentableBy functionScheme where |
| 72 | homEquiv := functionEquiv _ |
| 73 | homEquiv_comp f g := functionEquiv_comp f g |
| 74 | |
| 75 | theorem globalFunctions_fpqc_sheaf : |
| 76 | Presheaf.IsSheaf Scheme.fpqcTopology globalFunctionPresheaf := by |
| 77 | have : globalFunctionPresheaf.IsRepresentable := globalFunctionRepresentation.isRepresentable |
| 78 | exact (isSheaf_iff_isSheaf_of_type Scheme.fpqcTopology globalFunctionPresheaf).mpr |
| 79 | (GrothendieckTopology.Subcanonical.isSheaf_of_isRepresentable |
| 80 | (J := Scheme.fpqcTopology) globalFunctionPresheaf) |
| 81 | |
| 82 | theorem globalFunctions_fppf_sheaf : |
| 83 | Presheaf.IsSheaf Scheme.fppfTopology globalFunctionPresheaf := by |
| 84 | have : globalFunctionPresheaf.IsRepresentable := globalFunctionRepresentation.isRepresentable |
| 85 | exact (isSheaf_iff_isSheaf_of_type Scheme.fppfTopology globalFunctionPresheaf).mpr |
| 86 | (GrothendieckTopology.Subcanonical.isSheaf_of_isRepresentable |
| 87 | (J := Scheme.fppfTopology) globalFunctionPresheaf) |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FunctionDescent |