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.Picard.Homomorphisms.Quotient |
| 2 | |
| 3 | /-! # Kernel -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.Kernel.Construction |
| 6 | |
| 7 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite _root_.CategoryTheory.Limits |
| 8 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 9 | open scoped _root_.CategoryTheory.MonObj |
| 10 | |
| 11 | universe u |
| 12 | |
| 13 | noncomputable def kernelScheme {S : Scheme.{u}} {A B : Over S} [GrpObj B] |
| 14 | (q : A ⟶ B) : Over S := equalizer q 1 |
| 15 | |
| 16 | noncomputable def kernelInclusion {S : Scheme.{u}} {A B : Over S} [GrpObj B] |
| 17 | (q : A ⟶ B) : kernelScheme q ⟶ A := equalizer.ι q 1 |
| 18 | |
| 19 | set_option backward.isDefEq.respectTransparency.types false in |
| 20 | theorem kernelScheme_universal {S : Scheme.{u}} {A B : Over S} [GrpObj B] |
| 21 | (q : A ⟶ B) (T : Over S) (a : T ⟶ A) : |
| 22 | a ≫ q = 1 ↔ ∃! k : T ⟶ kernelScheme q, k ≫ kernelInclusion q = a := by |
| 23 | constructor |
| 24 | · intro ha |
| 25 | have heq : a ≫ q = a ≫ (1 : A ⟶ B) := by simpa using ha |
| 26 | refine ⟨equalizer.lift a heq, equalizer.lift_ι a heq, ?_⟩ |
| 27 | intro k hk |
| 28 | apply equalizer.hom_ext |
| 29 | exact hk.trans (equalizer.lift_ι a heq).symm |
| 30 | · rintro ⟨k, hk, _⟩ |
| 31 | erw [← hk, Category.assoc, kernelInclusion, equalizer.condition] |
| 32 | exact (Category.assoc k (kernelInclusion q) (1 : A ⟶ B)).symm.trans |
| 33 | (MonObj.comp_one (M := B) (k ≫ kernelInclusion q)) |
| 34 | |
| 35 | set_option backward.isDefEq.respectTransparency.types false in |
| 36 | theorem kernelScheme_isPullback {S : Scheme.{u}} {A B : Over S} [GrpObj B] |
| 37 | (q : A ⟶ B) : |
| 38 | IsPullback (kernelInclusion q) (toUnit (kernelScheme q)) q η[B] := by |
| 39 | have hcond : kernelInclusion q ≫ q = toUnit (kernelScheme q) ≫ η[B] := by |
| 40 | change equalizer.ι q 1 ≫ q = 1 |
| 41 | rw [equalizer.condition] |
| 42 | simp |
| 43 | apply IsPullback.of_isLimit' ⟨hcond⟩ |
| 44 | apply PullbackCone.IsLimit.mk _ |
| 45 | (fun s => equalizer.lift s.fst (by |
| 46 | rw [s.condition] |
| 47 | have hs : s.snd = s.fst ≫ toUnit A := toUnit_unique _ _ |
| 48 | rw [hs, Category.assoc] |
| 49 | rfl)) |
| 50 | · intro s |
| 51 | exact equalizer.lift_ι _ _ |
| 52 | · intro s |
| 53 | exact toUnit_unique _ _ |
| 54 | · intro s m hm₁ _ |
| 55 | apply equalizer.hom_ext |
| 56 | exact hm₁.trans (equalizer.lift_ι _ _).symm |
| 57 | |
| 58 | set_option backward.isDefEq.respectTransparency.types false in |
| 59 | theorem kernelScheme_finiteLocallyFree {S : Scheme.{u}} {A B : Over S} [GrpObj B] |
| 60 | (q : A ⟶ B) (hq : Quotient.Construction.FiniteLocallyFreeHom q.left) : |
| 61 | Quotient.Construction.FiniteLocallyFreeHom (kernelScheme q).hom := by |
| 62 | have H := (kernelScheme_isPullback q).map (Over.forget S) |
| 63 | change IsPullback (kernelInclusion q).left (kernelScheme q).hom q.left η[B].left at H |
| 64 | exact ⟨MorphismProperty.of_isPullback (P := @IsFinite) H hq.1, |
| 65 | MorphismProperty.of_isPullback (P := @Flat) H hq.2.1, |
| 66 | MorphismProperty.of_isPullback (P := @LocallyOfFinitePresentation) H hq.2.2⟩ |
| 67 | |
| 68 | set_option backward.isDefEq.respectTransparency.types false in |
| 69 | instance kernelInclusion_closedImmersion {S : Scheme.{u}} {A B : Over S} [GrpObj B] |
| 70 | [IsSeparated B.hom] (q : A ⟶ B) : IsClosedImmersion (kernelInclusion q).left := |
| 71 | inferInstanceAs (IsClosedImmersion (equalizer.ι q 1).left) |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.Kernel.Construction |