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.AbelianScheme.TorsionQuotient.LocalSmooth |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.LocalLifts |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 4 | |
| 5 | /-! # Smooth Local -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.SmoothLocal.SmoothLocalLifting |
| 8 | |
| 9 | /-! |
| 10 | # TorsionQuotient: local infinitesimal lifting for smooth schemes |
| 11 | |
| 12 | Formal smoothness of the actual stalk map gives a lift of its local ring |
| 13 | homomorphism. The resulting local map is realized as a scheme morphism. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | theorem formallySmooth_stalk {X Y : Scheme.{u}} (f : X ⟶ Y) [Smooth f] (x : X) : |
| 21 | (f.stalkMap x).hom.FormallySmooth := by |
| 22 | have hx : x ∈ f.smoothLocus := by rw [f.smoothLocus_eq_top]; trivial |
| 23 | exact hx |
| 24 | |
| 25 | theorem exists_stalk_lift {X Y : Scheme.{u}} (f : X ⟶ Y) [Smooth f] (x : X) |
| 26 | {C B : CommRingCat.{u}} (p : C ⟶ B) (hp : Function.Surjective p) |
| 27 | (hker : RingHom.ker p.hom ^ 2 = ⊥) |
| 28 | (a : X.presheaf.stalk x ⟶ B) [IsLocalHom a.hom] |
| 29 | (b : Y.presheaf.stalk (f x) ⟶ C) |
| 30 | (hab : f.stalkMap x ≫ a = b ≫ p) : |
| 31 | ∃ l : X.presheaf.stalk x ⟶ C, |
| 32 | IsLocalHom l.hom ∧ l ≫ p = a ∧ f.stalkMap x ≫ l = b := by |
| 33 | let R := Y.presheaf.stalk (f x) |
| 34 | let A := X.presheaf.stalk x |
| 35 | let : Algebra R A := (f.stalkMap x).hom.toAlgebra |
| 36 | let : Algebra R C := b.hom.toAlgebra |
| 37 | let : Algebra R B := (a.hom.comp (f.stalkMap x).hom).toAlgebra |
| 38 | let : Algebra.FormallySmooth R A := formallySmooth_stalk f x |
| 39 | let a' : A →ₐ[R] B := { a.hom with commutes' := fun _ => rfl } |
| 40 | let p' : C →ₐ[R] B := |
| 41 | { p.hom with commutes' := fun r => (congrArg (fun z => z.hom r) hab).symm } |
| 42 | let l := Algebra.FormallySmooth.liftOfSurjective a' p' hp ⟨2, hker⟩ |
| 43 | have hl : p'.comp l = a' := |
| 44 | Algebra.FormallySmooth.comp_liftOfSurjective a' p' hp ⟨2, hker⟩ |
| 45 | have hlp : p.hom.comp l.toRingHom = a.hom := congrArg AlgHom.toRingHom hl |
| 46 | let : IsLocalHom (p.hom.comp l.toRingHom) := hlp.symm ▸ (inferInstance : IsLocalHom a.hom) |
| 47 | let : IsLocalHom l.toRingHom := isLocalHom_of_comp l.toRingHom p.hom |
| 48 | refine ⟨CommRingCat.ofHom l.toRingHom, inferInstance, ?_, ?_⟩ |
| 49 | · exact CommRingCat.hom_ext hlp |
| 50 | · ext r |
| 51 | exact l.commutes r |
| 52 | |
| 53 | /-- Smooth scheme morphisms lift over a square-zero extension of local |
| 54 | test rings. Both the reduction and the prescribed base map are preserved. -/ |
| 55 | theorem exists_scheme_lift {X Y : Scheme.{u}} (f : X ⟶ Y) [Smooth f] |
| 56 | {C B : CommRingCat.{u}} [IsLocalRing C] [IsLocalRing B] |
| 57 | (p : C ⟶ B) (hp : Function.Surjective p) (hker : RingHom.ker p.hom ^ 2 = ⊥) |
| 58 | (a : Spec B ⟶ X) (b : Spec C ⟶ Y) (hab : a ≫ f = Spec.map p ≫ b) : |
| 59 | ∃ l : Spec C ⟶ X, Spec.map p ≫ l = a ∧ l ≫ f = b := by |
| 60 | let : IsLocalHom p.hom := LocalSmooth.LocalSmoothCriterion.isLocalHom_of_surjective_squareZero p.hom hp hker |
| 61 | obtain ⟨⟨x, ⟨α, hα⟩⟩, rfl⟩ := (SpecToEquivOfLocalRing X B).symm.surjective a |
| 62 | obtain ⟨⟨y, ⟨β, hβ⟩⟩, rfl⟩ := (SpecToEquivOfLocalRing Y C).symm.surjective b |
| 63 | let : IsLocalHom α.hom := hα |
| 64 | let : IsLocalHom β.hom := hβ |
| 65 | change (Spec.map α ≫ X.fromSpecStalk x) ≫ f = |
| 66 | Spec.map p ≫ Spec.map β ≫ Y.fromSpecStalk y at hab |
| 67 | let : IsLocalHom (f.stalkMap x ≫ α).hom := by |
| 68 | change IsLocalHom (α.hom.comp (f.stalkMap x).hom) |
| 69 | infer_instance |
| 70 | let : IsLocalHom (β ≫ p).hom := by |
| 71 | change IsLocalHom (p.hom.comp β.hom) |
| 72 | infer_instance |
| 73 | have he : (SpecToEquivOfLocalRing Y B).symm |
| 74 | ⟨f x, ⟨f.stalkMap x ≫ α, inferInstance⟩⟩ = |
| 75 | (SpecToEquivOfLocalRing Y B).symm ⟨y, ⟨β ≫ p, inferInstance⟩⟩ := by |
| 76 | change LocalLifts.LocalSchemeLifts.ofGerm Y (f x) (f.stalkMap x ≫ α) = |
| 77 | LocalLifts.LocalSchemeLifts.ofGerm Y y (β ≫ p) |
| 78 | rw [LocalLifts.LocalSchemeLifts.ofGerm_comp] |
| 79 | simpa only [LocalLifts.LocalSchemeLifts.ofGerm, Spec.map_comp, Category.assoc] using hab |
| 80 | obtain ⟨hy, hmaps⟩ := SpecToEquivOfLocalRing_eq_iff.mp |
| 81 | ((SpecToEquivOfLocalRing Y B).symm.injective he) |
| 82 | change f x = y at hy |
| 83 | subst y |
| 84 | have hmaps' : f.stalkMap x ≫ α = β ≫ p := by simpa using hmaps |
| 85 | obtain ⟨l, hl, hlp, hfl⟩ := exists_stalk_lift f x p hp hker α β hmaps' |
| 86 | let : IsLocalHom l.hom := hl |
| 87 | refine ⟨LocalLifts.LocalSchemeLifts.ofGerm X x l, ?_, ?_⟩ |
| 88 | · change Spec.map p ≫ Spec.map l ≫ X.fromSpecStalk x = _ |
| 89 | rw [← Spec.map_comp_assoc, hlp] |
| 90 | rfl |
| 91 | · rw [← LocalLifts.LocalSchemeLifts.ofGerm_comp, hfl] |
| 92 | rfl |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.SmoothLocal.SmoothLocalLifting |