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.LaurentDegree |
| 2 | import Mathlib.LinearAlgebra.Finsupp.Supported |
| 3 | |
| 4 | /-! # Laurent Coordinates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.LaurentCoordinates.ProjectiveCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Laurent coordinates in one common exponent space for all projective charts. -/ |
| 11 | |
| 12 | universe u v |
| 13 | |
| 14 | variable {σ : Type u} [Fintype σ] [DecidableEq σ] |
| 15 | variable (R : Type v) [CommRing R] |
| 16 | |
| 17 | def allowedExponents (s : Finset σ) : Set (σ → ℤ) := {a | ∀ i ∉ s, 0 ≤ a i} |
| 18 | |
| 19 | def chartCoordinateEquiv (s : Finset σ) : LaurentMonomials.ProjectiveCech.ChartLocalization R s ≃ₗ[R] |
| 20 | Finsupp.supported R R (allowedExponents s) := |
| 21 | (LaurentBasis.ProjectiveCech.laurentBasis R s).repr.trans (Finsupp.supportedEquivFinsupp (R := R) (allowedExponents s)).symm |
| 22 | |
| 23 | def chartCoordinates (s : Finset σ) : LaurentMonomials.ProjectiveCech.ChartLocalization R s →ₗ[R] (σ → ℤ) →₀ R := |
| 24 | (Finsupp.supported R R (allowedExponents s)).subtype.comp (chartCoordinateEquiv R s).toLinearMap |
| 25 | |
| 26 | theorem chartCoordinates_apply (s : Finset σ) (x : LaurentMonomials.ProjectiveCech.ChartLocalization R s) : |
| 27 | chartCoordinates R s x = ((LaurentBasis.ProjectiveCech.laurentBasis R s).repr x).extendDomain := by |
| 28 | let : DecidablePred (fun a => a ∈ allowedExponents s) := |
| 29 | fun a => inferInstanceAs (Decidable (∀ i ∉ s, 0 ≤ a i)) |
| 30 | exact Finsupp.supportedEquivFinsupp_symm_apply_coe (R := R) |
| 31 | (allowedExponents s) ((LaurentBasis.ProjectiveCech.laurentBasis R s).repr x) |
| 32 | |
| 33 | theorem chartCoordinates_injective (s : Finset σ) : Function.Injective (chartCoordinates R s) := |
| 34 | Subtype.val_injective.comp (chartCoordinateEquiv R s).injective |
| 35 | |
| 36 | theorem chartCoordinates_support (s : Finset σ) (x : LaurentMonomials.ProjectiveCech.ChartLocalization R s) : |
| 37 | ∀ a ∈ (chartCoordinates R s x).support, a ∈ allowedExponents s := |
| 38 | (chartCoordinateEquiv R s x).property |
| 39 | |
| 40 | theorem chartCoordinates_of_not_allowed (s : Finset σ) (x : LaurentMonomials.ProjectiveCech.ChartLocalization R s) |
| 41 | (a : σ → ℤ) (ha : a ∉ allowedExponents s) : chartCoordinates R s x a = 0 := by |
| 42 | by_contra hn |
| 43 | exact ha (chartCoordinates_support R s x a (Finsupp.mem_support_iff.mpr hn)) |
| 44 | |
| 45 | theorem chartCoordinates_laurentMonomial (s : Finset σ) (a : LaurentExponents.ProjectiveCech.LaurentExponent s) : |
| 46 | chartCoordinates R s (LaurentMonomials.ProjectiveCech.laurentMonomial R a) = Finsupp.single a.val 1 := by |
| 47 | classical |
| 48 | rw [chartCoordinates_apply, ← LaurentBasis.ProjectiveCech.laurentBasis_apply R s a, Module.Basis.repr_self, |
| 49 | Finsupp.extendDomain_single] |
| 50 | |
| 51 | def chartOfCoordinates (s : Finset σ) : ((σ → ℤ) →₀ R) →ₗ[R] LaurentMonomials.ProjectiveCech.ChartLocalization R s := |
| 52 | (LaurentBasis.ProjectiveCech.laurentBasis R s).repr.symm.toLinearMap.comp (Finsupp.lsubtypeDomain (allowedExponents s)) |
| 53 | |
| 54 | theorem chartOfCoordinates_coordinates (s : Finset σ) (x : LaurentMonomials.ProjectiveCech.ChartLocalization R s) : |
| 55 | chartOfCoordinates R s (chartCoordinates R s x) = x := by |
| 56 | rw [chartCoordinates_apply] |
| 57 | change (LaurentBasis.ProjectiveCech.laurentBasis R s).repr.symm (Finsupp.subtypeDomain _ |
| 58 | ((LaurentBasis.ProjectiveCech.laurentBasis R s).repr x).extendDomain) = x |
| 59 | rw [Finsupp.subtypeDomain_extendDomain, LinearEquiv.symm_apply_apply] |
| 60 | |
| 61 | theorem chartCoordinates_ofCoordinates (s : Finset σ) (f : (σ → ℤ) →₀ R) |
| 62 | (hf : ∀ a ∈ f.support, a ∈ allowedExponents s) : |
| 63 | chartCoordinates R s (chartOfCoordinates R s f) = f := by |
| 64 | rw [chartCoordinates_apply] |
| 65 | change ((LaurentBasis.ProjectiveCech.laurentBasis R s).repr ((LaurentBasis.ProjectiveCech.laurentBasis R s).repr.symm |
| 66 | (Finsupp.subtypeDomain _ f))).extendDomain = f |
| 67 | rw [LinearEquiv.apply_symm_apply] |
| 68 | exact Finsupp.extendDomain_subtypeDomain f hf |
| 69 | |
| 70 | theorem chartCoordinates_restriction {s t : Finset σ} (h : s ⊆ t) (x : LaurentMonomials.ProjectiveCech.ChartLocalization R s) : |
| 71 | chartCoordinates R t (LaurentRestriction.ProjectiveCech.chartRestriction R h x) = chartCoordinates R s x := by |
| 72 | have he : (chartCoordinates R t).comp (LaurentRestriction.ProjectiveCech.chartRestriction R h).toLinearMap = chartCoordinates R s := by |
| 73 | apply (LaurentBasis.ProjectiveCech.laurentBasis R s).ext |
| 74 | intro a |
| 75 | simp only [LinearMap.comp_apply, AlgHom.toLinearMap_apply, LaurentBasis.ProjectiveCech.laurentBasis_apply, |
| 76 | LaurentRestriction.ProjectiveCech.chartRestriction_laurentMonomial, chartCoordinates_laurentMonomial] |
| 77 | rfl |
| 78 | exact LinearMap.congr_fun he x |
| 79 | |
| 80 | theorem chartCoordinates_degree (s : Finset σ) (d : ℤ) (x : LaurentMonomials.ProjectiveCech.ChartLocalization R s) |
| 81 | (hx : x ∈ LaurentDegree.ProjectiveCech.laurentDegreeSubmodule R s d) (a : σ → ℤ) (ha : LaurentDegree.ProjectiveCech.exponentDegree a ≠ d) : |
| 82 | chartCoordinates R s x a = 0 := by |
| 83 | classical |
| 84 | rw [chartCoordinates_apply, Finsupp.extendDomain_apply] |
| 85 | split_ifs with h |
| 86 | · exact (LaurentDegree.ProjectiveCech.mem_laurentDegreeSubmodule_iff R s d x).mp hx ⟨a, h⟩ ha |
| 87 | · rfl |
| 88 | |
| 89 | theorem chartOfCoordinates_degree (s : Finset σ) (d : ℤ) (f : (σ → ℤ) →₀ R) |
| 90 | (hf : ∀ a, LaurentDegree.ProjectiveCech.exponentDegree a ≠ d → f a = 0) : |
| 91 | chartOfCoordinates R s f ∈ LaurentDegree.ProjectiveCech.laurentDegreeSubmodule R s d := by |
| 92 | rw [LaurentDegree.ProjectiveCech.mem_laurentDegreeSubmodule_iff] |
| 93 | intro a ha |
| 94 | change (LaurentBasis.ProjectiveCech.laurentBasis R s).repr ((LaurentBasis.ProjectiveCech.laurentBasis R s).repr.symm |
| 95 | (Finsupp.subtypeDomain _ f)) a = 0 |
| 96 | rw [LinearEquiv.apply_symm_apply, Finsupp.subtypeDomain_apply] |
| 97 | exact hf a.val ha |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.LaurentCoordinates.ProjectiveCech |