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.Isogenies.NeighborCounting.FramedPullback |
| 2 | import OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FunctionDescent |
| 3 | |
| 4 | /-! # Framed Descent -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FramedDescent |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Effective descent of line-bundle morphisms in actual local frames, |
| 11 | deduced from the proved regular-function descent theorem. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FramedHom OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FramedPullback OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FunctionDescent |
| 18 | |
| 19 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) {M N : Y.Modules} |
| 20 | variable (eM : M ≅ ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule Y) (eN : N ≅ ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle.Construction.structureSheafModule Y) |
| 21 | |
| 22 | include eM eN in |
| 23 | theorem framedPullback_injective [Epi f] : |
| 24 | Function.Injective (fun q : M ⟶ N ↦ (Scheme.Modules.pullback f).map q) := by |
| 25 | intro q q' h |
| 26 | apply (FramedHom.framedHomEquiv eM eN).symm.injective |
| 27 | change FramedHom.framedCoefficient eM eN q = FramedHom.framedCoefficient eM eN q' |
| 28 | apply FunctionDescent.appTop_injective_of_epi f |
| 29 | rw [← FramedHom.framedCoefficient_pullback, ← FramedHom.framedCoefficient_pullback] |
| 30 | exact congrArg (FramedHom.framedCoefficient (FramedHom.pullbackFrame f eM) (FramedHom.pullbackFrame f eN)) h |
| 31 | |
| 32 | /-- Compatibility uses actual pullbacks on every equal-image pair of |
| 33 | test schemes, retaining nilpotent directions. -/ |
| 34 | def CompatibleHom |
| 35 | (q : (Scheme.Modules.pullback f).obj M ⟶ (Scheme.Modules.pullback f).obj N) : Prop := |
| 36 | ∀ {T : Scheme.{u}} (x y : T ⟶ X) (p : T ⟶ Y) (hx : x ≫ f = p) (hy : y ≫ f = p), |
| 37 | FramedPullback.pullbackHomTo x f p hx q = FramedPullback.pullbackHomTo y f p hy q |
| 38 | |
| 39 | include eM eN in |
| 40 | theorem existsUnique_framedHom_descent [EffectiveEpi f] |
| 41 | (q : (Scheme.Modules.pullback f).obj M ⟶ (Scheme.Modules.pullback f).obj N) |
| 42 | (hq : CompatibleHom f q) : |
| 43 | ∃! a : M ⟶ N, (Scheme.Modules.pullback f).map a = q := by |
| 44 | let r := FramedHom.framedCoefficient (FramedHom.pullbackFrame f eM) (FramedHom.pullbackFrame f eN) q |
| 45 | have hr : ∀ {T : Scheme.{u}} (x y : T ⟶ X), x ≫ f = y ≫ f → x.appTop r = y.appTop r := by |
| 46 | intro T x y hxy |
| 47 | have h := congrArg (FramedHom.framedCoefficient (FramedHom.pullbackFrame (x ≫ f) eM) |
| 48 | (FramedHom.pullbackFrame (x ≫ f) eN)) (hq x y (x ≫ f) rfl hxy.symm) |
| 49 | rw [FramedPullback.framedCoefficient_pullbackHomTo, FramedPullback.framedCoefficient_pullbackHomTo] at h |
| 50 | exact h |
| 51 | obtain ⟨s, hs, _⟩ := FunctionDescent.existsUnique_function_descent f r hr |
| 52 | refine ⟨FramedHom.framedHom eM eN s, ?_, ?_⟩ |
| 53 | · change (Scheme.Modules.pullback f).map (FramedHom.framedHom eM eN s) = q |
| 54 | rw [FramedHom.framedHom_pullback, hs] |
| 55 | exact FramedHom.framedHom_coefficient (FramedHom.pullbackFrame f eM) (FramedHom.pullbackFrame f eN) q |
| 56 | · intro a ha |
| 57 | apply framedPullback_injective f eM eN |
| 58 | change (Scheme.Modules.pullback f).map a = (Scheme.Modules.pullback f).map (FramedHom.framedHom eM eN s) |
| 59 | rw [ha, FramedHom.framedHom_pullback, hs] |
| 60 | exact (FramedHom.framedHom_coefficient (FramedHom.pullbackFrame f eM) (FramedHom.pullbackFrame f eN) q).symm |
| 61 | |
| 62 | theorem compatibleHom_inverse |
| 63 | (e : (Scheme.Modules.pullback f).obj M ≅ (Scheme.Modules.pullback f).obj N) |
| 64 | (he : CompatibleHom f e.hom) : CompatibleHom f e.inv := by |
| 65 | intro T x y p hx hy |
| 66 | have h : FramedPullback.pullbackIsoTo x f p hx e = FramedPullback.pullbackIsoTo y f p hy e := Iso.ext (he x y p hx hy) |
| 67 | exact congrArg Iso.inv h |
| 68 | |
| 69 | include eM eN in |
| 70 | /-- Inverse morphisms descend too, so the descended map is an actual |
| 71 | line-bundle isomorphism, with its pullback identified exactly. -/ |
| 72 | theorem existsUnique_framedIso_descent [EffectiveEpi f] |
| 73 | (e : (Scheme.Modules.pullback f).obj M ≅ (Scheme.Modules.pullback f).obj N) |
| 74 | (he : CompatibleHom f e.hom) : |
| 75 | ∃! a : M ≅ N, (Scheme.Modules.pullback f).map a.hom = e.hom := by |
| 76 | obtain ⟨a, ha, _⟩ := existsUnique_framedHom_descent f eM eN e.hom he |
| 77 | obtain ⟨b, hb, _⟩ := existsUnique_framedHom_descent f eN eM e.inv (compatibleHom_inverse f e he) |
| 78 | have hab : a ≫ b = 𝟙 M := by |
| 79 | apply framedPullback_injective f eM eM |
| 80 | change (Scheme.Modules.pullback f).map (a ≫ b) = (Scheme.Modules.pullback f).map (𝟙 M) |
| 81 | rw [Functor.map_comp, ha, hb, e.hom_inv_id, (Scheme.Modules.pullback f).map_id] |
| 82 | have hba : b ≫ a = 𝟙 N := by |
| 83 | apply framedPullback_injective f eN eN |
| 84 | change (Scheme.Modules.pullback f).map (b ≫ a) = (Scheme.Modules.pullback f).map (𝟙 N) |
| 85 | rw [Functor.map_comp, hb, ha, e.inv_hom_id, (Scheme.Modules.pullback f).map_id] |
| 86 | refine ⟨⟨a, b, hab, hba⟩, ha, ?_⟩ |
| 87 | intro c hc |
| 88 | apply Iso.ext |
| 89 | exact framedPullback_injective f eM eN (hc.trans ha.symm) |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FramedDescent |