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.CoverExpansion |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.CoverReindexing |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.EndpointOrders |
| 4 | import Mathlib.Data.Fin.Tuple.Basic |
| 5 | |
| 6 | /-! # Polynomial Cover Expansion -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.PolynomialCoverExpansion.ProjectiveCech |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Prepending and appending a redundant homogeneous chart for covers indexed by `Fin`. -/ |
| 13 | |
| 14 | open _root_.MvPolynomial DirectSum |
| 15 | |
| 16 | universe u v w |
| 17 | |
| 18 | variable {τ : Type u} [Fintype τ] (R : Type v) [CommRing R] |
| 19 | variable (M : Type w) [AddCommGroup M] [Module R M] [Module (MvPolynomial τ R) M] |
| 20 | [IsScalarTower R (MvPolynomial τ R) M] |
| 21 | variable (ℳ : ℤ → Submodule R M) [Decomposition ℳ] |
| 22 | [SetLike.GradedSMul (WeightedFreeModules.GradedModules.polynomialIntegerGrading (σ := τ) R) ℳ] |
| 23 | |
| 24 | theorem polynomialCover_cons_span_exact_iff {n : ℕ} (a : Fin n → MvPolynomial τ R) |
| 25 | (ha : ∀ i, (a i).IsHomogeneous 1) (x : MvPolynomial τ R) |
| 26 | (hx : x ∈ Submodule.span R (Set.range a)) (d : ℤ) (q : ℕ) : |
| 27 | Polynomial.CoverModule.ProjectiveCech.polynomialCoverCechExactAt R (MvPolynomial τ R) M (Fin.cons x a) ℳ d q ↔ |
| 28 | Polynomial.CoverModule.ProjectiveCech.polynomialCoverCechExactAt R (MvPolynomial τ R) M a ℳ d q := by |
| 29 | have h (i : Fin (n + 1)) : Linear.EndpointSubstitution.ProjectiveCech.prependFamily a x (EndpointOrders.finSuccWithBotOrderIso n i) = |
| 30 | (Fin.cons x a : Fin (n + 1) → MvPolynomial τ R) i := by |
| 31 | refine Fin.cases ?_ (fun j => ?_) i |
| 32 | · change Linear.EndpointSubstitution.ProjectiveCech.prependFamily a x (EndpointOrders.finSuccWithBotEquiv n 0) = x |
| 33 | rw [EndpointOrders.finSuccWithBotEquiv_zero] |
| 34 | rfl |
| 35 | · change Linear.EndpointSubstitution.ProjectiveCech.prependFamily a x (EndpointOrders.finSuccWithBotEquiv n j.succ) = a j |
| 36 | rw [EndpointOrders.finSuccWithBotEquiv_succ] |
| 37 | rfl |
| 38 | exact (Polynomial.CoverReindexing.ProjectiveCech.polynomialCover_ordered_exact_iff R (MvPolynomial τ R) M |
| 39 | (EndpointOrders.finSuccWithBotOrderIso n) (Fin.cons x a) (Linear.EndpointSubstitution.ProjectiveCech.prependFamily a x) h ℳ d q).symm.trans |
| 40 | (Polynomial.CoverExpansion.ProjectiveCech.polynomialCover_prepend_span_exact_iff R M ℳ a ha x hx d q) |
| 41 | |
| 42 | theorem polynomialCover_snoc_span_exact_iff {n : ℕ} (a : Fin n → MvPolynomial τ R) |
| 43 | (ha : ∀ i, (a i).IsHomogeneous 1) (x : MvPolynomial τ R) |
| 44 | (hx : x ∈ Submodule.span R (Set.range a)) (d : ℤ) (q : ℕ) : |
| 45 | Polynomial.CoverModule.ProjectiveCech.polynomialCoverCechExactAt R (MvPolynomial τ R) M (Fin.snoc a x) ℳ d q ↔ |
| 46 | Polynomial.CoverModule.ProjectiveCech.polynomialCoverCechExactAt R (MvPolynomial τ R) M a ℳ d q := by |
| 47 | have h (i : Fin (n + 1)) : Linear.EndpointSubstitution.ProjectiveCech.appendFamily a x (EndpointOrders.finSuccWithTopOrderIso n i) = |
| 48 | (Fin.snoc a x : Fin (n + 1) → MvPolynomial τ R) i := by |
| 49 | refine Fin.lastCases ?_ (fun j => ?_) i |
| 50 | · rw [Fin.snoc_last] |
| 51 | change Linear.EndpointSubstitution.ProjectiveCech.appendFamily a x (EndpointOrders.finSuccWithTopEquiv n (Fin.last n)) = x |
| 52 | rw [EndpointOrders.finSuccWithTopEquiv_last] |
| 53 | rfl |
| 54 | · rw [Fin.snoc_castSucc] |
| 55 | change Linear.EndpointSubstitution.ProjectiveCech.appendFamily a x (EndpointOrders.finSuccWithTopEquiv n j.castSucc) = a j |
| 56 | rw [EndpointOrders.finSuccWithTopEquiv_castSucc] |
| 57 | rfl |
| 58 | exact (Polynomial.CoverReindexing.ProjectiveCech.polynomialCover_ordered_exact_iff R (MvPolynomial τ R) M |
| 59 | (EndpointOrders.finSuccWithTopOrderIso n) (Fin.snoc a x) (Linear.EndpointSubstitution.ProjectiveCech.appendFamily a x) h ℳ d q).symm.trans |
| 60 | (Polynomial.CoverExpansion.ProjectiveCech.polynomialCover_append_span_exact_iff R M ℳ a ha x hx d q) |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.PolynomialCoverExpansion.ProjectiveCech |