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.Polynomial.CoverModule |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Linear.EndpointSubstitution |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Linear.CoverPreimage |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.TopLinearCoverExpansion |
| 5 | import Mathlib.Data.Fintype.WithTopBot |
| 6 | |
| 7 | /-! # Cover Expansion -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.CoverExpansion.ProjectiveCech |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Adding a linear combination to a finite homogeneous cover preserves its actual graded Čech exactness. -/ |
| 14 | |
| 15 | open _root_.MvPolynomial DirectSum |
| 16 | |
| 17 | universe u v w t |
| 18 | |
| 19 | variable {σ : Type u} {τ : Type w} [Fintype σ] [LinearOrder σ] [Fintype τ] |
| 20 | variable (R : Type v) [CommRing R] |
| 21 | variable (M : Type t) [AddCommGroup M] [Module R M] [Module (MvPolynomial τ R) M] |
| 22 | [IsScalarTower R (MvPolynomial τ R) M] |
| 23 | variable (ℳ : ℤ → Submodule R M) [Decomposition ℳ] |
| 24 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := τ) R) ℳ] |
| 25 | |
| 26 | theorem polynomialCover_prepend_exact_iff (a : σ → MvPolynomial τ R) |
| 27 | (ha : ∀ i, (a i).IsHomogeneous 1) (l : MvPolynomial σ R) (hl : l.IsHomogeneous 1) |
| 28 | (d : ℤ) (q : ℕ) : |
| 29 | CoverModule.ProjectiveCech.polynomialCoverCechExactAt R (MvPolynomial τ R) M |
| 30 | (Linear.EndpointSubstitution.ProjectiveCech.prependFamily a (MvPolynomial.aeval a l)) ℳ d q ↔ |
| 31 | CoverModule.ProjectiveCech.polynomialCoverCechExactAt R (MvPolynomial τ R) M a ℳ d q := by |
| 32 | let b := Linear.EndpointSubstitution.ProjectiveCech.prependFamily a (MvPolynomial.aeval a l) |
| 33 | have hb : ∀ i, (b i).IsHomogeneous 1 := by |
| 34 | intro i |
| 35 | by_cases hi : i = ⊥ |
| 36 | · subst i |
| 37 | change (MvPolynomial.aeval a l).IsHomogeneous 1 |
| 38 | simpa only [one_mul] using hl.aeval a ha |
| 39 | · obtain ⟨j, rfl⟩ := WithBot.ne_bot_iff_exists.mp hi |
| 40 | exact ha j |
| 41 | let f := Linear.EndpointSubstitution.ProjectiveCech.prependLinearSubstitution R l |
| 42 | let := f.toRingHom.toAlgebra |
| 43 | let := CoverModule.ProjectiveCech.polynomialCoverModule R (MvPolynomial τ R) M a |
| 44 | let := CoverModule.ProjectiveCech.polynomialCoverModule R (MvPolynomial τ R) M b |
| 45 | let := CoverModule.ProjectiveCech.polynomialCover_scalarTower R (MvPolynomial τ R) M a |
| 46 | let := CoverModule.ProjectiveCech.polynomialCover_scalarTower R (MvPolynomial τ R) M b |
| 47 | let := CoverModule.ProjectiveCech.polynomialCover_composition_tower R (MvPolynomial τ R) M a b f (Linear.EndpointSubstitution.ProjectiveCech.aeval_prependFamily R a l) |
| 48 | let := CoverModule.ProjectiveCech.polynomialCover_gradedSMul R M ℳ a ha |
| 49 | let := CoverModule.ProjectiveCech.polynomialCover_gradedSMul R M ℳ b hb |
| 50 | change Cech.DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := WithBot σ) R M ℳ d q ↔ Cech.DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := σ) R M ℳ d q |
| 51 | exact Linear.CoverExpansion.ProjectiveCech.linearCoverExpansion_moduleCechExactAt_iff R (Linear.EndpointSubstitution.ProjectiveCech.prependLinearSubstitution_coe R l) |
| 52 | M l (Linear.EndpointSubstitution.ProjectiveCech.prependLinearSubstitution_bot R l) ℳ hl d q |
| 53 | |
| 54 | theorem polynomialCover_append_exact_iff (a : σ → MvPolynomial τ R) |
| 55 | (ha : ∀ i, (a i).IsHomogeneous 1) (l : MvPolynomial σ R) (hl : l.IsHomogeneous 1) |
| 56 | (d : ℤ) (q : ℕ) : |
| 57 | CoverModule.ProjectiveCech.polynomialCoverCechExactAt R (MvPolynomial τ R) M |
| 58 | (Linear.EndpointSubstitution.ProjectiveCech.appendFamily a (MvPolynomial.aeval a l)) ℳ d q ↔ |
| 59 | CoverModule.ProjectiveCech.polynomialCoverCechExactAt R (MvPolynomial τ R) M a ℳ d q := by |
| 60 | let b := Linear.EndpointSubstitution.ProjectiveCech.appendFamily a (MvPolynomial.aeval a l) |
| 61 | have hb : ∀ i, (b i).IsHomogeneous 1 := by |
| 62 | intro i |
| 63 | by_cases hi : i = ⊤ |
| 64 | · subst i |
| 65 | change (MvPolynomial.aeval a l).IsHomogeneous 1 |
| 66 | simpa only [one_mul] using hl.aeval a ha |
| 67 | · obtain ⟨j, rfl⟩ := WithTop.ne_top_iff_exists.mp hi |
| 68 | exact ha j |
| 69 | let f := Linear.EndpointSubstitution.ProjectiveCech.appendLinearSubstitution R l |
| 70 | let := f.toRingHom.toAlgebra |
| 71 | let := CoverModule.ProjectiveCech.polynomialCoverModule R (MvPolynomial τ R) M a |
| 72 | let := CoverModule.ProjectiveCech.polynomialCoverModule R (MvPolynomial τ R) M b |
| 73 | let := CoverModule.ProjectiveCech.polynomialCover_scalarTower R (MvPolynomial τ R) M a |
| 74 | let := CoverModule.ProjectiveCech.polynomialCover_scalarTower R (MvPolynomial τ R) M b |
| 75 | let := CoverModule.ProjectiveCech.polynomialCover_composition_tower R (MvPolynomial τ R) M a b f (Linear.EndpointSubstitution.ProjectiveCech.aeval_appendFamily R a l) |
| 76 | let := CoverModule.ProjectiveCech.polynomialCover_gradedSMul R M ℳ a ha |
| 77 | let := CoverModule.ProjectiveCech.polynomialCover_gradedSMul R M ℳ b hb |
| 78 | change Cech.DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := WithTop σ) R M ℳ d q ↔ Cech.DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := σ) R M ℳ d q |
| 79 | exact TopLinearCoverExpansion.ProjectiveCech.topLinearCoverExpansion_moduleCechExactAt_iff R (Linear.EndpointSubstitution.ProjectiveCech.appendLinearSubstitution_coe R l) |
| 80 | M l (Linear.EndpointSubstitution.ProjectiveCech.appendLinearSubstitution_top R l) ℳ hl d q |
| 81 | |
| 82 | theorem polynomialCover_prepend_span_exact_iff (a : σ → MvPolynomial τ R) |
| 83 | (ha : ∀ i, (a i).IsHomogeneous 1) (x : MvPolynomial τ R) |
| 84 | (hx : x ∈ Submodule.span R (Set.range a)) (d : ℤ) (q : ℕ) : |
| 85 | CoverModule.ProjectiveCech.polynomialCoverCechExactAt R (MvPolynomial τ R) M (Linear.EndpointSubstitution.ProjectiveCech.prependFamily a x) ℳ d q ↔ |
| 86 | CoverModule.ProjectiveCech.polynomialCoverCechExactAt R (MvPolynomial τ R) M a ℳ d q := by |
| 87 | obtain ⟨l, hl, rfl⟩ := Linear.CoverPreimage.ProjectiveCech.exists_linear_cover_preimage R a x hx |
| 88 | exact polynomialCover_prepend_exact_iff R M ℳ a ha l hl d q |
| 89 | |
| 90 | theorem polynomialCover_append_span_exact_iff (a : σ → MvPolynomial τ R) |
| 91 | (ha : ∀ i, (a i).IsHomogeneous 1) (x : MvPolynomial τ R) |
| 92 | (hx : x ∈ Submodule.span R (Set.range a)) (d : ℤ) (q : ℕ) : |
| 93 | CoverModule.ProjectiveCech.polynomialCoverCechExactAt R (MvPolynomial τ R) M (Linear.EndpointSubstitution.ProjectiveCech.appendFamily a x) ℳ d q ↔ |
| 94 | CoverModule.ProjectiveCech.polynomialCoverCechExactAt R (MvPolynomial τ R) M a ℳ d q := by |
| 95 | obtain ⟨l, hl, rfl⟩ := Linear.CoverPreimage.ProjectiveCech.exists_linear_cover_preimage R a x hx |
| 96 | exact polynomialCover_append_exact_iff R M ℳ a ha l hl d q |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.CoverExpansion.ProjectiveCech |