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.HilbertScheme.Presentations.ModuleCech.Square |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.BoundedComplex |
| 3 | |
| 4 | /-! # Terms -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ModuleCech.Terms.ProjectiveCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Homogeneous Čech terms as finite products of actual localized degree pieces. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial |
| 13 | |
| 14 | universe u v w |
| 15 | |
| 16 | variable {σ : Type u} [LinearOrder σ] |
| 17 | variable (R : Type v) [CommRing R] |
| 18 | variable (M : Type w) [AddCommGroup M] [Module R M] [Module (MvPolynomial σ R) M] |
| 19 | [IsScalarTower R (MvPolynomial σ R) M] |
| 20 | variable (ℳ : ℤ → Submodule R M) |
| 21 | |
| 22 | def moduleCechTerm (d : ℤ) (q : ℕ) : Submodule R (Card.ProjectiveCech.ModuleCechFamily (σ := σ) R M) where |
| 23 | carrier := {f | Card.ProjectiveCech.ModuleCechHomogeneous R M ℳ d f ∧ Card.ProjectiveCech.ModuleCechCardSupported R M q f} |
| 24 | zero_mem' := ⟨fun _ => Submodule.zero_mem _, fun _ _ => rfl⟩ |
| 25 | add_mem' := by |
| 26 | rintro f g ⟨hf, hfc⟩ ⟨hg, hgc⟩ |
| 27 | exact ⟨fun s => Submodule.add_mem _ (hf s) (hg s), fun s hs => by simp [hfc s hs, hgc s hs]⟩ |
| 28 | smul_mem' := by |
| 29 | rintro r f ⟨hf, hfc⟩ |
| 30 | exact ⟨fun s => Submodule.smul_mem _ r (hf s), fun s hs => by simp [hfc s hs]⟩ |
| 31 | |
| 32 | def moduleCechTermEquiv (d : ℤ) (q : ℕ) : |
| 33 | moduleCechTerm (σ := σ) R M ℳ d q ≃ₗ[R] |
| 34 | ((s : {s : Finset σ // s.card = q}) → Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R M ℳ s.val d) where |
| 35 | toFun f s := ⟨f.val s.val, f.property.1 s.val⟩ |
| 36 | invFun x := ⟨fun s => if hs : s.card = q then (x ⟨s, hs⟩).val else 0, by |
| 37 | constructor |
| 38 | · intro s |
| 39 | change (if hs : s.card = q then (x ⟨s, hs⟩).val else 0) ∈ Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R M ℳ s d |
| 40 | split_ifs with hs |
| 41 | · exact (x ⟨s, hs⟩).property |
| 42 | · exact Submodule.zero_mem _ |
| 43 | · intro s hs |
| 44 | exact dite_eq_right hs⟩ |
| 45 | left_inv f := by |
| 46 | apply Subtype.ext |
| 47 | funext s |
| 48 | by_cases hs : s.card = q |
| 49 | · simp only [dite_eq_left hs] |
| 50 | · simp only [dite_eq_right hs, f.property.2 s hs] |
| 51 | right_inv x := by |
| 52 | funext s |
| 53 | apply Subtype.ext |
| 54 | simp only [dite_eq_left s.property] |
| 55 | map_add' _ _ := rfl |
| 56 | map_smul' _ _ := rfl |
| 57 | |
| 58 | omit [LinearOrder σ] in |
| 59 | theorem moduleCechTerm_flat [Fintype σ] (d : ℤ) (q : ℕ) (hq : 0 < q) |
| 60 | (hflat : ∀ s : Finset σ, s.Nonempty → Module.Flat R (Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R M ℳ s d)) : |
| 61 | Module.Flat R (moduleCechTerm (σ := σ) R M ℳ d q) := by |
| 62 | let : ∀ s : {s : Finset σ // s.card = q}, Module.Flat R (Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R M ℳ s.val d) := |
| 63 | fun s => hflat s.val (Finset.card_pos.mp (s.property.symm ▸ hq)) |
| 64 | exact Module.Flat.of_linearEquiv ((moduleCechTermEquiv (σ := σ) R M ℳ d q).trans |
| 65 | (DFinsupp.linearEquivFunOnFintype (R := R) |
| 66 | (M := fun s : {s : Finset σ // s.card = q} => Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R M ℳ s.val d)).symm) |
| 67 | |
| 68 | variable [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := σ) R) ℳ] |
| 69 | |
| 70 | def moduleCechTermDifferential (d : ℤ) (q : ℕ) : |
| 71 | moduleCechTerm (σ := σ) R M ℳ d q →ₗ[R] moduleCechTerm (σ := σ) R M ℳ d (q + 1) := |
| 72 | ((Card.ProjectiveCech.moduleCechDifferential R M).comp (moduleCechTerm (σ := σ) R M ℳ d q).subtype).codRestrict |
| 73 | (moduleCechTerm (σ := σ) R M ℳ d (q + 1)) (fun f => |
| 74 | ⟨Card.ProjectiveCech.moduleCechDifferential_homogeneous R M ℳ d f.val f.property.1, |
| 75 | Card.ProjectiveCech.moduleCechDifferential_card R M q f.val f.property.2⟩) |
| 76 | |
| 77 | theorem moduleCechTermDifferential_square (d : ℤ) (q : ℕ) (f : moduleCechTerm (σ := σ) R M ℳ d q) : |
| 78 | moduleCechTermDifferential (σ := σ) R M ℳ d (q + 1) (moduleCechTermDifferential (σ := σ) R M ℳ d q f) = 0 := by |
| 79 | apply Subtype.ext |
| 80 | exact Square.ProjectiveCech.moduleCechDifferential_square R M f.val |
| 81 | |
| 82 | theorem moduleCechTermDifferential_zero [Fintype σ] (d : ℤ) (q : ℕ) (hq : Fintype.card σ < q + 1) : |
| 83 | moduleCechTermDifferential (σ := σ) R M ℳ d q = 0 := by |
| 84 | apply LinearMap.ext |
| 85 | intro f |
| 86 | apply Subtype.ext |
| 87 | exact Card.ProjectiveCech.moduleCech_bounded R M (q + 1) hq _ |
| 88 | (Card.ProjectiveCech.moduleCechDifferential_card R M q f.val f.property.2) |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ModuleCech.Terms.ProjectiveCech |