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.Properties |
| 2 | import Mathlib.AlgebraicGeometry.Restrict |
| 3 | |
| 4 | /-! # Open Representations -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Reduced.OpenRepresentations |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Local representations on reduced tests determine actual comparison |
| 11 | maps on overlaps of their base opens. This is generic atlas bookkeeping. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | structure ReducedOpenRepresentation {S : Scheme.{0}} (F : (Over S)ᵒᵖ ⥤ Type) (U : S.Opens) where |
| 18 | space : Over S |
| 19 | reduced : IsReduced space.left |
| 20 | mapsTo : ∀ z : space.left, space.hom z ∈ U |
| 21 | sectionValue : F.obj (op space) |
| 22 | classifies : ∀ (T : Over S) [IsReduced T.left], |
| 23 | (∀ t : T.left, T.hom t ∈ U) → |
| 24 | Function.Bijective (fun f : T ⟶ space => F.map f.op sectionValue) |
| 25 | |
| 26 | namespace ReducedOpenRepresentation |
| 27 | variable {S : Scheme.{0}} {F : (Over S)ᵒᵖ ⥤ Type} {U V : S.Opens} |
| 28 | (D : ReducedOpenRepresentation F U) (E : ReducedOpenRepresentation F V) |
| 29 | |
| 30 | def homEquiv (T : Over S) [IsReduced T.left] (hT : ∀ t : T.left, T.hom t ∈ U) : |
| 31 | (T ⟶ D.space) ≃ F.obj (op T) := Equiv.ofBijective _ (D.classifies T hT) |
| 32 | |
| 33 | def overlap (D : ReducedOpenRepresentation F U) (_E : ReducedOpenRepresentation F V) : |
| 34 | Over S := Over.mk ((D.space.hom ⁻¹ᵁ V).ι ≫ D.space.hom) |
| 35 | |
| 36 | def inclusion : D.overlap E ⟶ D.space := Over.homMk (D.space.hom ⁻¹ᵁ V).ι rfl |
| 37 | |
| 38 | instance inclusion_open : IsOpenImmersion (D.inclusion E).left := |
| 39 | inferInstanceAs (IsOpenImmersion (D.space.hom ⁻¹ᵁ V).ι) |
| 40 | |
| 41 | instance inclusion_mono : Mono (D.inclusion E) := |
| 42 | (Over.forget S).mono_of_mono_map |
| 43 | (show Mono (D.inclusion E).left from inferInstance) |
| 44 | |
| 45 | instance overlap_reduced : IsReduced (D.overlap E).left := by |
| 46 | have := D.reduced |
| 47 | exact inferInstanceAs (IsReduced (D.space.hom ⁻¹ᵁ V).toScheme) |
| 48 | |
| 49 | theorem overlap_mapsTo_right (z : (D.overlap E).left) : (D.overlap E).hom z ∈ V := z.property |
| 50 | |
| 51 | theorem overlap_mapsTo_left (z : (D.overlap E).left) : (D.overlap E).hom z ∈ U := D.mapsTo z.val |
| 52 | |
| 53 | def comparisonToSpace : D.overlap E ⟶ E.space := |
| 54 | (E.homEquiv (D.overlap E) (D.overlap_mapsTo_right E)).symm |
| 55 | (F.map (D.inclusion E).op D.sectionValue) |
| 56 | |
| 57 | theorem comparisonToSpace_value : |
| 58 | F.map (D.comparisonToSpace E).op E.sectionValue = F.map (D.inclusion E).op D.sectionValue := |
| 59 | (E.homEquiv (D.overlap E) (D.overlap_mapsTo_right E)).apply_symm_apply _ |
| 60 | |
| 61 | def comparison : D.overlap E ⟶ E.overlap D := by |
| 62 | let f := D.comparisonToSpace E |
| 63 | have hr : Set.range f.left ⊆ Set.range (E.space.hom ⁻¹ᵁ U).ι := by |
| 64 | rw [Scheme.Opens.range_ι] |
| 65 | rintro _ ⟨z, rfl⟩ |
| 66 | change E.space.hom (f.left z) ∈ U |
| 67 | have h : E.space.hom (f.left z) = (D.overlap E).hom z := |
| 68 | congrArg (fun q : (D.overlap E).left ⟶ S => q z) f.w |
| 69 | rw [h] |
| 70 | exact D.overlap_mapsTo_left E z |
| 71 | let b := IsOpenImmersion.lift (E.space.hom ⁻¹ᵁ U).ι f.left hr |
| 72 | have hb : b ≫ (E.space.hom ⁻¹ᵁ U).ι = f.left := IsOpenImmersion.lift_fac _ _ _ |
| 73 | refine Over.homMk b ?_ |
| 74 | change b ≫ ((E.space.hom ⁻¹ᵁ U).ι ≫ E.space.hom) = _ |
| 75 | rw [← Category.assoc, hb] |
| 76 | exact f.w |
| 77 | |
| 78 | theorem comparison_inclusion : D.comparison E ≫ E.inclusion D = D.comparisonToSpace E := by |
| 79 | apply Over.OverMorphism.ext |
| 80 | exact IsOpenImmersion.lift_fac _ _ _ |
| 81 | |
| 82 | theorem comparison_value : |
| 83 | F.map (D.comparison E).op (F.map (E.inclusion D).op E.sectionValue) = |
| 84 | F.map (D.inclusion E).op D.sectionValue := by |
| 85 | calc |
| 86 | _ = F.map (D.comparison E ≫ E.inclusion D).op E.sectionValue := |
| 87 | (F.map_comp_apply (E.inclusion D).op (D.comparison E).op E.sectionValue).symm |
| 88 | _ = F.map (D.comparisonToSpace E).op E.sectionValue := by rw [comparison_inclusion] |
| 89 | _ = _ := D.comparisonToSpace_value E |
| 90 | |
| 91 | theorem hom_ext {T : Over S} [IsReduced T.left] (f g : T ⟶ D.space) |
| 92 | (h : F.map f.op D.sectionValue = F.map g.op D.sectionValue) : f = g := by |
| 93 | apply (D.classifies T (fun t => ?_)).injective h |
| 94 | have ht := D.mapsTo (f.left t) |
| 95 | exact (congrArg (fun q : T.left ⟶ S => q t) f.w) ▸ ht |
| 96 | |
| 97 | theorem overlap_hom_ext {T : Over S} [IsReduced T.left] (f g : T ⟶ D.overlap E) |
| 98 | (h : F.map f.op (F.map (D.inclusion E).op D.sectionValue) = |
| 99 | F.map g.op (F.map (D.inclusion E).op D.sectionValue)) : f = g := by |
| 100 | apply (cancel_mono (D.inclusion E)).mp |
| 101 | apply D.hom_ext |
| 102 | simpa only [op_comp, F.map_comp, types_comp_apply] using h |
| 103 | |
| 104 | theorem comparison_comp : D.comparison E ≫ E.comparison D = 𝟙 (D.overlap E) := by |
| 105 | apply D.overlap_hom_ext E |
| 106 | simp only [op_comp, F.map_comp, types_comp_apply, op_id, F.map_id, types_id_apply, |
| 107 | ReducedOpenRepresentation.comparison_value] |
| 108 | |
| 109 | def comparisonIso : D.overlap E ≅ E.overlap D where |
| 110 | hom := D.comparison E |
| 111 | inv := E.comparison D |
| 112 | hom_inv_id := D.comparison_comp E |
| 113 | inv_hom_id := E.comparison_comp D |
| 114 | |
| 115 | theorem comparison_self : D.comparison D = 𝟙 (D.overlap D) := by |
| 116 | apply D.overlap_hom_ext D |
| 117 | simpa only [op_id, F.map_id, types_id_apply] using D.comparison_value D |
| 118 | |
| 119 | end ReducedOpenRepresentation |
| 120 | |
| 121 | end |
| 122 | |
| 123 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Reduced.OpenRepresentations |