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.OrdinaryLocus.Openness.QuasicoherentAdditiveCech |
| 2 | |
| 3 | /-! # Additive Local Lifts -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AdditiveLocalLifts.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Correction and gluing of local lifts when the kernel is acyclic in degree one. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable (R : CommRingCat.{u}) |
| 16 | (F E G : TopCat.Sheaf AddCommGrpCat.{u} (TopCat.of (PrimeSpectrum R))) |
| 17 | (a : F ⟶ E) (b : E ⟶ G) |
| 18 | (ha : ∀ r : R, Function.Injective (a.hom.app (op (PrimeSpectrum.basicOpen r)))) |
| 19 | (hab : ∀ r : R, Function.Exact (a.hom.app (op (PrimeSpectrum.basicOpen r))) |
| 20 | (b.hom.app (op (PrimeSpectrum.basicOpen r)))) |
| 21 | {ι : Type v} (f : ι → R) |
| 22 | (hF : Function.Exact (AdditiveCech.Construction.additiveAffineD0 R F f) (AdditiveCech.Construction.additiveAffineD1 R F f)) |
| 23 | |
| 24 | include hF ha hab in |
| 25 | theorem additiveAffine_correct_local_lifts (_hf : Ideal.span (Set.range f) = ⊤) |
| 26 | (s : G.obj.obj (op ⊤)) (x : AdditiveCech.Construction.additiveAffineC0 R E f) |
| 27 | (hx : AdditiveCech.Construction.additiveAffineMap0 R E f b x = AdditiveCech.Construction.additiveAffineUnit R G f s) : |
| 28 | ∃ y : AdditiveCech.Construction.additiveAffineC0 R E f, |
| 29 | AdditiveCech.Construction.additiveAffineD0 R E f y = 0 ∧ AdditiveCech.Construction.additiveAffineMap0 R E f b y = AdditiveCech.Construction.additiveAffineUnit R G f s := by |
| 30 | have hd : AdditiveCech.Construction.additiveAffineMap1 R E f b (AdditiveCech.Construction.additiveAffineD0 R E f x) = 0 := by |
| 31 | rw [← AdditiveCech.Construction.additiveAffineMap0_d, hx, AdditiveCech.Construction.additiveAffineUnit_d] |
| 32 | have hker (i j : ι) : |
| 33 | b.hom.app (op (PrimeSpectrum.basicOpen (f i * f j))) |
| 34 | (AdditiveCech.Construction.additiveAffineD0 R E f x i j) = 0 := congrFun (congrFun hd i) j |
| 35 | choose c hc using fun i j ↦ (hab (f i * f j) (AdditiveCech.Construction.additiveAffineD0 R E f x i j)).mp (hker i j) |
| 36 | have hc' : AdditiveCech.Construction.additiveAffineMap1 R F f a c = AdditiveCech.Construction.additiveAffineD0 R E f x := by |
| 37 | funext i j |
| 38 | exact hc i j |
| 39 | have hdc : AdditiveCech.Construction.additiveAffineD1 R F f c = 0 := by |
| 40 | apply AdditiveCech.Construction.additiveAffineMap2_injective R F f a ha |
| 41 | rw [map_zero, ← AdditiveCech.Construction.additiveAffineMap1_d, hc'] |
| 42 | exact DFunLike.congr_fun (AdditiveCech.Construction.additiveAffineD1_comp_D0 R E f) x |
| 43 | obtain ⟨t, ht⟩ := (hF c).mp hdc |
| 44 | refine ⟨x - AdditiveCech.Construction.additiveAffineMap0 R F f a t, ?_, ?_⟩ |
| 45 | · rw [map_sub, AdditiveCech.Construction.additiveAffineMap0_d, ht, hc', sub_self] |
| 46 | · rw [map_sub, hx] |
| 47 | have hz : AdditiveCech.Construction.additiveAffineMap0 R E f b (AdditiveCech.Construction.additiveAffineMap0 R F f a t) = 0 := by |
| 48 | funext i |
| 49 | exact (hab (f i) (a.hom.app (op (PrimeSpectrum.basicOpen (f i))) (t i))).mpr ⟨t i, rfl⟩ |
| 50 | rw [hz, sub_zero] |
| 51 | |
| 52 | include hF ha hab in |
| 53 | theorem additiveAffine_global_lift (hf : Ideal.span (Set.range f) = ⊤) |
| 54 | (s : G.obj.obj (op ⊤)) (x : AdditiveCech.Construction.additiveAffineC0 R E f) |
| 55 | (hx : AdditiveCech.Construction.additiveAffineMap0 R E f b x = AdditiveCech.Construction.additiveAffineUnit R G f s) : |
| 56 | ∃ t : E.obj.obj (op ⊤), b.hom.app (op ⊤) t = s := by |
| 57 | obtain ⟨y, hy, hby⟩ := additiveAffine_correct_local_lifts R F E G a b ha hab f hF hf s x hx |
| 58 | obtain ⟨t, ht, _⟩ := AdditiveCech.Construction.additiveAffine_sections_glue R E f hf y hy |
| 59 | refine ⟨t, ?_⟩ |
| 60 | apply G.eq_of_locally_eq' (fun i ↦ PrimeSpectrum.basicOpen (f i)) ⊤ |
| 61 | (fun _ ↦ homOfLE le_top) (by rw [(PrimeSpectrum.iSup_basicOpen_eq_top_iff).mpr hf]) |
| 62 | intro i |
| 63 | change G.obj.map (PrimeSpectrum.basicOpen (f i)).leTop.op (b.hom.app (op ⊤) t) = _ |
| 64 | rw [← NatTrans.naturality_apply, ht i] |
| 65 | exact congrFun hby i |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AdditiveLocalLifts.Construction |