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.ArithmeticGeometry.Descent.CMVariety.OverEndomorphism |
| 2 | |
| 3 | /-! # Finite Coefficient Tuples -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.Descent.CMVariety.FiniteCoefficientTuples.Abelian |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Simultaneous finite-coefficient descent for finite tuples of actual maps. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | open scoped Classical |
| 15 | |
| 16 | variable (R B : Type) [CommRing R] [CommRing B] [Algebra R B] |
| 17 | |
| 18 | theorem finite_scheme_morphisms_descend_to_finite_coefficients |
| 19 | {Index : Type} [Fintype Index] {Y X : Scheme} |
| 20 | (f : Y ⟶ Spec (CommRingCat.of R)) [QuasiCompact f] [QuasiSeparated f] |
| 21 | (g : X ⟶ Spec (CommRingCat.of R)) [LocallyOfFinitePresentation g] |
| 22 | (a : Index → (pullback (Spec.map (CommRingCat.ofHom (algebraMap R B))) f ⟶ X)) |
| 23 | (ha : ∀ i, a i ≫ g = pullback.snd (Spec.map (CommRingCat.ofHom (algebraMap R B))) f ≫ f) : |
| 24 | ∃ (s : (Finset B)ᵒᵖ) |
| 25 | (k : Index → ((FiniteCoefficientFst.Abelian.finiteCoefficientFamilyDiagram R B f).obj s ⟶ X)), |
| 26 | ∀ i, (FiniteCoefficientFst.Abelian.finiteCoefficientFamilyCone R B f).π.app s ≫ k i = a i ∧ |
| 27 | k i ≫ g = (FiniteCoefficientFst.Abelian.finiteCoefficientFamilyStructure R B f).app s ≫ f := by |
| 28 | choose stage k hk hkg using fun i => |
| 29 | FiniteCoefficientFst.Abelian.scheme_morphism_descends_to_finite_coefficients R B f g (a i) (ha i) |
| 30 | let s : Finset B := Finset.univ.biUnion (fun i => (stage i).unop) |
| 31 | have hle (i : Index) : (stage i).unop ⊆ s := |
| 32 | Finset.subset_biUnion_of_mem (fun j => (stage j).unop) (Finset.mem_univ i) |
| 33 | let j (i : Index) : Opposite.op s ⟶ stage i := (homOfLE (hle i)).op |
| 34 | let D := FiniteCoefficientFst.Abelian.finiteCoefficientFamilyDiagram R B f |
| 35 | let p := FiniteCoefficientFst.Abelian.finiteCoefficientFamilyStructure R B f |
| 36 | let c := FiniteCoefficientFst.Abelian.finiteCoefficientFamilyCone R B f |
| 37 | refine ⟨.op s, fun i => D.map (j i) ≫ k i, fun i => ⟨?_, ?_⟩⟩ |
| 38 | · change c.π.app (.op s) ≫ (D.map (j i) ≫ k i) = a i |
| 39 | rw [← Category.assoc, c.w (j i)] |
| 40 | exact hk i |
| 41 | · have hp : D.map (j i) ≫ p.app (stage i) = p.app (.op s) := |
| 42 | (p.naturality (j i)).trans (Category.comp_id _) |
| 43 | change (D.map (j i) ≫ k i) ≫ g = p.app (.op s) ≫ f |
| 44 | rw [Category.assoc, hkg i, ← Category.assoc, hp] |
| 45 | |
| 46 | theorem finite_scheme_endomorphisms_descend_to_finite_coefficients |
| 47 | {Index : Type} [Fintype Index] {Y : Scheme} |
| 48 | (f : Y ⟶ Spec (CommRingCat.of R)) |
| 49 | [QuasiCompact f] [QuasiSeparated f] [LocallyOfFinitePresentation f] |
| 50 | (k : Index → (pullback (Spec.map (CommRingCat.ofHom (algebraMap R B))) f ⟶ |
| 51 | pullback (Spec.map (CommRingCat.ofHom (algebraMap R B))) f)) |
| 52 | (hk : ∀ i, k i ≫ pullback.fst (Spec.map (CommRingCat.ofHom (algebraMap R B))) f = |
| 53 | pullback.fst (Spec.map (CommRingCat.ofHom (algebraMap R B))) f) : |
| 54 | ∃ (s : (Finset B)ᵒᵖ) |
| 55 | (e : Index → (pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) f ⟶ |
| 56 | pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) f)), |
| 57 | ∀ i, e i ≫ pullback.fst (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) f = |
| 58 | pullback.fst (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) f ∧ |
| 59 | (FiniteCoefficientFst.Abelian.finiteCoefficientFamilyCone R B f).π.app s ≫ e i = |
| 60 | k i ≫ (FiniteCoefficientFst.Abelian.finiteCoefficientFamilyCone R B f).π.app s := by |
| 61 | let p := Spec.map (CommRingCat.ofHom (algebraMap R B)) |
| 62 | have hbase (i : Index) : (k i ≫ pullback.snd p f) ≫ f = pullback.snd p f ≫ f := by |
| 63 | rw [Category.assoc, ← pullback.condition, ← Category.assoc, hk i, pullback.condition] |
| 64 | obtain ⟨s, a, ha⟩ := finite_scheme_morphisms_descend_to_finite_coefficients R B f f |
| 65 | (fun i => k i ≫ pullback.snd p f) hbase |
| 66 | let a' : Index → (pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) f ⟶ Y) := a |
| 67 | let q : pullback p f ⟶ pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) f := |
| 68 | (FiniteCoefficientFst.Abelian.finiteCoefficientFamilyCone R B f).π.app s |
| 69 | have hqfst : q ≫ pullback.fst (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) f = |
| 70 | pullback.fst p f ≫ Spec.map |
| 71 | (CommRingCat.ofHom (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop).val.toRingHom) := |
| 72 | FiniteCoefficientFst.Abelian.finiteCoefficientFamilyCone_fst R B f s |
| 73 | have hqsnd : q ≫ pullback.snd (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) f = pullback.snd p f := |
| 74 | FiniteCoefficientFst.Abelian.finiteCoefficientFamilyCone_structure R B f s |
| 75 | have hpair (i : Index) : pullback.fst (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) f ≫ |
| 76 | FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop = a' i ≫ f := |
| 77 | (pullback.condition).trans (ha i).2.symm |
| 78 | let e (i : Index) := |
| 79 | pullback.lift (pullback.fst (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) f) (a' i) (hpair i) |
| 80 | refine ⟨s, e, fun i => ⟨pullback.lift_fst _ _ _, ?_⟩⟩ |
| 81 | change q ≫ e i = k i ≫ q |
| 82 | dsimp only [e] |
| 83 | apply pullback.hom_ext |
| 84 | · rw [Category.assoc, pullback.lift_fst, Category.assoc, hqfst, |
| 85 | ← Category.assoc, hk i] |
| 86 | · rw [Category.assoc, pullback.lift_snd, Category.assoc, hqsnd] |
| 87 | exact (ha i).1 |
| 88 | |
| 89 | end |
| 90 | |
| 91 | /-! A finite tuple descends in the actual over category at one common stage. -/ |
| 92 | |
| 93 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 94 | open scoped Classical |
| 95 | |
| 96 | theorem finite_over_endomorphisms_descend_to_finite_coefficients |
| 97 | (R B : Type) [CommRing R] [CommRing B] [Algebra R B] |
| 98 | {Index : Type} [Fintype Index] (A : Over (Spec (CommRingCat.of R))) |
| 99 | [QuasiCompact A.hom] [QuasiSeparated A.hom] [LocallyOfFinitePresentation A.hom] |
| 100 | (k : Index → ((Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R B)))).obj A ⟶ |
| 101 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R B)))).obj A)) : |
| 102 | ∃ (s : (Finset B)ᵒᵖ) |
| 103 | (a : Index → ((Over.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).obj A ⟶ |
| 104 | (Over.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).obj A)), |
| 105 | ∀ i, OverEndomorphism.Abelian.standardCoefficientProjection R B A s ≫ (a i).left = |
| 106 | (k i).left ≫ OverEndomorphism.Abelian.standardCoefficientProjection R B A s := by |
| 107 | let p := Spec.map (CommRingCat.ofHom (algebraMap R B)) |
| 108 | let e := pullbackSymmetry A.hom p |
| 109 | let k' : Index → (pullback A.hom p ⟶ pullback A.hom p) := fun i => (k i).left |
| 110 | have hkw (i : Index) : k' i ≫ pullback.snd A.hom p = pullback.snd A.hom p := (k i).w |
| 111 | let u (i : Index) := e.inv ≫ k' i ≫ e.hom |
| 112 | have hu (i : Index) : u i ≫ pullback.fst p A.hom = pullback.fst p A.hom := by |
| 113 | dsimp only [u, e] |
| 114 | rw [Category.assoc, Category.assoc, pullbackSymmetry_hom_comp_fst, |
| 115 | hkw i, pullbackSymmetry_inv_comp_snd] |
| 116 | obtain ⟨s, a, ha⟩ := finite_scheme_endomorphisms_descend_to_finite_coefficients R B A.hom u hu |
| 117 | let d := pullbackSymmetry A.hom (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) |
| 118 | have hw (i : Index) : (d.hom ≫ a i ≫ d.inv) ≫ |
| 119 | pullback.snd A.hom (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) = |
| 120 | pullback.snd A.hom (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) := by |
| 121 | dsimp only [d] |
| 122 | rw [Category.assoc, Category.assoc, pullbackSymmetry_inv_comp_snd, |
| 123 | (ha i).1, pullbackSymmetry_hom_comp_fst] |
| 124 | let a' (i : Index) : (Over.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).obj A ⟶ |
| 125 | (Over.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).obj A := |
| 126 | Over.homMk (d.hom ≫ a i ≫ d.inv) (hw i) |
| 127 | refine ⟨s, a', fun i => ?_⟩ |
| 128 | exact OverEndomorphism.Abelian.iso_conjugate_commuting_square e d ((FiniteCoefficientFst.Abelian.finiteCoefficientFamilyCone R B A.hom).π.app s) |
| 129 | (k' i) (a i) (ha i).2 |
| 130 | |
| 131 | end |
| 132 | |
| 133 | end OAI.ArithmeticGeometry.Descent.CMVariety.FiniteCoefficientTuples.Abelian |