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.CycleClass.Thom.BaseSectionVectorChange |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.Section.BaseRestriction |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.Regular.SequenceTailChange |
| 4 | import OAI.AlgebraicGeometry.CycleClass.Thom.Normalization.GoodSmoothMap |
| 5 | |
| 6 | /-! # Stalk Map -/ |
| 7 | |
| 8 | namespace OAI |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace AlgebraicGeometry.CycleClass.Thom.Section.StalkMap.Constructions |
| 13 | |
| 14 | /-! The actual global-section-to-stalk ring map, and exact invariance |
| 15 | of the native equation ideal under an elementary section-head change. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.CycleClass.Thom.Normalization.GoodSmoothMap.Constructions.AffineOpen OAI.AlgebraicGeometry.CycleClass.Thom.BaseSectionVectorChange.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Section.BaseRestriction.Constructions.HeadDifference OAI.AlgebraicGeometry.CycleClass.Thom.Regular.SequenceTailChange.Constructions |
| 20 | |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | |
| 24 | def sectionStalkMap (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (B : V.carrier.Opens) (x : V.carrier) (hxB : x ∈ B) : |
| 25 | Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤) →+* V.carrier.presheaf.stalk x := |
| 26 | (B.topIso.hom ≫ V.carrier.presheaf.germ B x hxB).hom |
| 27 | |
| 28 | theorem sectionStalkMap_restrict (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (B C : V.carrier.Opens) (hCB : C ≤ B) |
| 29 | (x : V.carrier) (hxC : x ∈ C) (s : Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤)) : |
| 30 | sectionStalkMap V C x hxC (BaseRestriction.Constructions.HeadDifference.restrictSection V B C hCB s) = sectionStalkMap V B x (hCB hxC) s := |
| 31 | BaseSectionVectorChange.Constructions.section_stalk_restrict V B C hCB x hxC s |
| 32 | |
| 33 | theorem ofList_head_difference {R : Type*} [CommRing R] (a b : R) (rs : List R) |
| 34 | (h : b - a ∈ Ideal.ofList rs) : Ideal.ofList (b :: rs) = Ideal.ofList (a :: rs) := by |
| 35 | have he : a + (b - a) = b := by ring |
| 36 | exact (congrArg (fun z => Ideal.ofList (z :: rs)) he).symm.trans (Regular.SequenceTailChange.Constructions.ofList_add_tail a (b - a) rs h) |
| 37 | |
| 38 | theorem ofList_ofFn {R : Type*} [CommRing R] (n : ℕ) (s : Fin n → R) : |
| 39 | Ideal.ofList (List.ofFn s) = Ideal.span (Set.range s) := by |
| 40 | apply congrArg Ideal.span |
| 41 | ext a |
| 42 | exact List.mem_ofFn' s a |
| 43 | |
| 44 | theorem section_head_ideal (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (B C : V.carrier.Opens) (hCB : C ≤ B) |
| 45 | (x : V.carrier) (hxC : x ∈ C) (n : ℕ) |
| 46 | (r : Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤)) (s : Fin n → Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤)) (a : Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase C).left, ⊤)) |
| 47 | (ha : a - BaseRestriction.Constructions.HeadDifference.restrictSection V B C hCB r ∈ Ideal.span (Set.range (fun i => BaseRestriction.Constructions.HeadDifference.restrictSection V B C hCB (s i)))) : |
| 48 | Ideal.ofList (sectionStalkMap V C x hxC a :: List.ofFn (fun i => sectionStalkMap V B x (hCB hxC) (s i))) = |
| 49 | Ideal.ofList (sectionStalkMap V B x (hCB hxC) r :: List.ofFn (fun i => sectionStalkMap V B x (hCB hxC) (s i))) := by |
| 50 | let gC := sectionStalkMap V C x hxC |
| 51 | let gB := sectionStalkMap V B x (hCB hxC) |
| 52 | have he : (fun i => gC (BaseRestriction.Constructions.HeadDifference.restrictSection V B C hCB (s i))) = (fun i => gB (s i)) := |
| 53 | funext (fun i => sectionStalkMap_restrict V B C hCB x hxC (s i)) |
| 54 | have hI : (Ideal.span (Set.range (fun i => BaseRestriction.Constructions.HeadDifference.restrictSection V B C hCB (s i)))).map gC = |
| 55 | Ideal.ofList (List.ofFn (fun i => gB (s i))) := by |
| 56 | rw [Ideal.map_span, ← Set.range_comp'] |
| 57 | change Ideal.span (Set.range (fun i => gC (BaseRestriction.Constructions.HeadDifference.restrictSection V B C hCB (s i)))) = _ |
| 58 | rw [he] |
| 59 | exact (ofList_ofFn n (fun i => gB (s i))).symm |
| 60 | have hv : gC (a - BaseRestriction.Constructions.HeadDifference.restrictSection V B C hCB r) = gC a - gB r := |
| 61 | (map_sub gC a _).trans (congrArg (fun z => gC a - z) (sectionStalkMap_restrict V B C hCB x hxC r)) |
| 62 | have hm := Ideal.mem_map_of_mem gC ha |
| 63 | have hmem : gC a - gB r ∈ Ideal.ofList (List.ofFn (fun i => gB (s i))) := |
| 64 | (congrArg₂ (fun (b : V.carrier.presheaf.stalk x) (I : Ideal (V.carrier.presheaf.stalk x)) => b ∈ I) hv hI).mp hm |
| 65 | exact ofList_head_difference (gB r) (gC a) (List.ofFn (fun i => gB (s i))) hmem |
| 66 | |
| 67 | end AlgebraicGeometry.CycleClass.Thom.Section.StalkMap.Constructions |
| 68 | |
| 69 | namespace AlgebraicGeometry.CycleClass.Thom.Section.StalkMap.Constructions.VectorGerms |
| 70 | |
| 71 | /-! Native stalk lists of actual section vectors and their restriction |
| 72 | identities, together with the corresponding analytic base inclusions. -/ |
| 73 | |
| 74 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 75 | |
| 76 | open OAI.AlgebraicGeometry.CycleClass.Thom.Section.StalkMap.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Section.BaseRestriction.Constructions.HeadDifference OAI.AlgebraicGeometry.CycleClass.Thom.Normalization.GoodSmoothMap.Constructions.AffineOpen OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.SectionEvaluation.Constructions |
| 77 | |
| 78 | set_option backward.isDefEq.respectTransparency false |
| 79 | set_option backward.isDefEq.respectTransparency.types false |
| 80 | |
| 81 | def vectorGerms (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (B : V.carrier.Opens) (x : V.carrier) (hxB : x ∈ B) |
| 82 | (n : ℕ) (s : Fin n → Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤)) : List (V.carrier.presheaf.stalk x) := |
| 83 | (List.ofFn s).map (sectionStalkMap V B x hxB) |
| 84 | |
| 85 | theorem vectorGerms_length (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (B : V.carrier.Opens) |
| 86 | (x : V.carrier) (hxB : x ∈ B) (n : ℕ) (s : Fin n → Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤)) : |
| 87 | (vectorGerms V B x hxB n s).length = n := by |
| 88 | simp only [vectorGerms, List.length_map, List.length_ofFn] |
| 89 | |
| 90 | theorem vectorGerms_cons (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (B : V.carrier.Opens) |
| 91 | (x : V.carrier) (hxB : x ∈ B) (n : ℕ) (r : Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤)) |
| 92 | (s : Fin n → Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤)) : |
| 93 | vectorGerms V B x hxB (n + 1) (Fin.cons r s) = |
| 94 | sectionStalkMap V B x hxB r :: vectorGerms V B x hxB n s := by |
| 95 | simp only [vectorGerms, List.ofFn_succ, Fin.cons_zero, Fin.cons_succ, List.map_cons] |
| 96 | |
| 97 | theorem vectorGerms_one (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (B : V.carrier.Opens) |
| 98 | (x : V.carrier) (hxB : x ∈ B) (r : Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤)) : |
| 99 | vectorGerms V B x hxB 1 (fun _ => r) = [sectionStalkMap V B x hxB r] := by |
| 100 | simp only [vectorGerms, List.ofFn_succ, List.ofFn_zero, List.map_cons, List.map_nil] |
| 101 | |
| 102 | theorem vectorGerms_restrict (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (B C : V.carrier.Opens) (hCB : C ≤ B) |
| 103 | (x : V.carrier) (hxC : x ∈ C) (n : ℕ) (s : Fin n → Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤)) : |
| 104 | vectorGerms V C x hxC n (fun i => BaseRestriction.Constructions.HeadDifference.restrictSection V B C hCB (s i)) = |
| 105 | vectorGerms V B x (hCB hxC) n s := by |
| 106 | simp only [vectorGerms, List.map_ofFn] |
| 107 | exact congrArg List.ofFn (funext (fun i => sectionStalkMap_restrict V B C hCB x hxC (s i))) |
| 108 | |
| 109 | theorem vectorGerms_head_ideal (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (B C : V.carrier.Opens) (hCB : C ≤ B) |
| 110 | (x : V.carrier) (hxC : x ∈ C) (n : ℕ) (r : Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤)) |
| 111 | (s : Fin n → Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤)) (a : Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase C).left, ⊤)) |
| 112 | (ha : a - BaseRestriction.Constructions.HeadDifference.restrictSection V B C hCB r ∈ Ideal.span (Set.range (fun i => BaseRestriction.Constructions.HeadDifference.restrictSection V B C hCB (s i)))) : |
| 113 | Ideal.ofList (vectorGerms V C x hxC (n + 1) (Fin.cons a (fun i => BaseRestriction.Constructions.HeadDifference.restrictSection V B C hCB (s i)))) = |
| 114 | Ideal.ofList (vectorGerms V B x (hCB hxC) (n + 1) (Fin.cons r s)) := by |
| 115 | rw [vectorGerms_cons, vectorGerms_cons, vectorGerms_restrict] |
| 116 | simpa only [vectorGerms, List.map_ofFn, Function.comp_def] using section_head_ideal V B C hCB x hxC n r s a ha |
| 117 | |
| 118 | theorem analyticOpen_mono (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) {B C : V.carrier.Opens} (h : C ≤ B) : |
| 119 | Scheme.SectionEvaluation.Constructions.analyticOpen V.toOver C ≤ Scheme.SectionEvaluation.Constructions.analyticOpen V.toOver B := fun _ hx => h hx |
| 120 | |
| 121 | theorem analyticOpen_le_baseRange (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (B : V.carrier.Opens) : |
| 122 | (Scheme.SectionEvaluation.Constructions.analyticOpen V.toOver B : Set V.analyticSpace) ⊆ Set.range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map (Normalization.GoodSmoothMap.Constructions.AffineOpen.baseInclusion B)) := by |
| 123 | intro y hy |
| 124 | refine ⟨(Scheme.SectionEvaluation.Constructions.openPointHomeomorph V.toOver B).symm ⟨y, hy⟩, ?_⟩ |
| 125 | exact congrArg Subtype.val ((Scheme.SectionEvaluation.Constructions.openPointHomeomorph V.toOver B).apply_symm_apply ⟨y, hy⟩) |
| 126 | |
| 127 | end AlgebraicGeometry.CycleClass.Thom.Section.StalkMap.Constructions.VectorGerms |
| 128 | |
| 129 | end |
| 130 | |
| 131 | end OAI |