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.AbelianModuli.HilbertConstruction.Veronese.ProjectiveChartCover |
| 2 | |
| 3 | /-! # Projective Comap -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Veronese.ProjectiveComap |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Restriction of homogeneous prime ideals defines the point map for |
| 10 | the Veronese comparison. Its behavior on every basic open is explicit. -/ |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | open scoped Classical |
| 13 | universe u |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | variable {R A : Type u} [CommRing R] [CommRing A] [Algebra R A] |
| 17 | variable (g : ℕ → Submodule R A) [GradedAlgebra g] (N : ℕ) [NeZero N] |
| 18 | |
| 19 | theorem veroneseProjection_val (n : ℕ) (x : Subalgebra.veroneseSubalgebra g N) : |
| 20 | ((DirectSum.decompose (Grading.veroneseGrading g N) x n).val).val = |
| 21 | (DirectSum.decompose g x.val (N * n)).val := by |
| 22 | let L := (Subalgebra.veroneseSubalgebra g N).val.toLinearMap.comp (GradedAlgebra.proj (Grading.veroneseGrading g N) n) |
| 23 | let M := (GradedAlgebra.proj g (N * n)).comp (Subalgebra.veroneseSubalgebra g N).val.toLinearMap |
| 24 | have hLM : L = M := by |
| 25 | apply DirectSum.decompose_lhom_ext (Grading.veroneseGrading g N) |
| 26 | intro d |
| 27 | apply LinearMap.ext |
| 28 | intro y |
| 29 | change ((DirectSum.decompose (Grading.veroneseGrading g N) y.val n).val).val = |
| 30 | (DirectSum.decompose g y.val.val (N * n)).val |
| 31 | by_cases hdn : d = n |
| 32 | · subst d |
| 33 | erw [DirectSum.decompose_of_mem_same (Grading.veroneseGrading g N) y.property, |
| 34 | DirectSum.decompose_of_mem_same g y.property] |
| 35 | rfl |
| 36 | · have hNdn : N * d ≠ N * n := fun he => hdn |
| 37 | (Nat.eq_of_mul_eq_mul_left (Nat.pos_of_ne_zero (NeZero.ne N)) he) |
| 38 | erw [DirectSum.decompose_of_mem_ne (Grading.veroneseGrading g N) y.property hdn, |
| 39 | DirectSum.decompose_of_mem_ne g y.property hNdn] |
| 40 | rfl |
| 41 | exact LinearMap.congr_fun hLM x |
| 42 | |
| 43 | def veroneseHomogeneousIdealComap (I : HomogeneousIdeal g) : HomogeneousIdeal (Grading.veroneseGrading g N) where |
| 44 | __ := I.toIdeal.comap (Subalgebra.veroneseSubalgebra g N).val.toRingHom |
| 45 | is_homogeneous' n x hx := by |
| 46 | change ((DirectSum.decompose (Grading.veroneseGrading g N) x n).val).val ∈ I |
| 47 | rw [veroneseProjection_val] |
| 48 | exact I.2 (N * n) hx |
| 49 | |
| 50 | def veroneseProjectiveComap (p : ProjectiveSpectrum g) : ProjectiveSpectrum (Grading.veroneseGrading g N) where |
| 51 | asHomogeneousIdeal := veroneseHomogeneousIdealComap g N p.asHomogeneousIdeal |
| 52 | isPrime := p.isPrime.comap (Subalgebra.veroneseSubalgebra g N).val.toRingHom |
| 53 | not_irrelevant_le h := by |
| 54 | apply p.not_irrelevant_le |
| 55 | apply (HomogeneousIdeal.irrelevant_le g).mpr |
| 56 | intro d hd z hz |
| 57 | have hpow : z ^ N ∈ g (N * d) := by |
| 58 | simpa only [nsmul_eq_mul, Nat.cast_id] using |
| 59 | (show z ^ N ∈ g (N • d) from SetLike.pow_mem_graded N (show z ∈ g d from hz)) |
| 60 | let z' : Subalgebra.veroneseSubalgebra g N := ⟨z ^ N, Subalgebra.veronese_homogeneous_mem g N d hpow⟩ |
| 61 | have hz' : z' ∈ HomogeneousIdeal.irrelevant (Grading.veroneseGrading g N) := |
| 62 | HomogeneousIdeal.mem_irrelevant_of_mem (Grading.veroneseGrading g N) hd hpow |
| 63 | exact p.isPrime.mem_of_pow_mem N (h hz') |
| 64 | |
| 65 | theorem veroneseProjectiveComap_mem_basicOpen (p : ProjectiveSpectrum g) (f : Subalgebra.veroneseSubalgebra g N) : |
| 66 | veroneseProjectiveComap g N p ∈ ProjectiveSpectrum.basicOpen (Grading.veroneseGrading g N) f ↔ |
| 67 | p ∈ ProjectiveSpectrum.basicOpen g f.val := Iff.rfl |
| 68 | |
| 69 | def veroneseProjectiveContinuousMap : C(ProjectiveSpectrum g, ProjectiveSpectrum (Grading.veroneseGrading g N)) where |
| 70 | toFun := veroneseProjectiveComap g N |
| 71 | continuous_toFun := by |
| 72 | simp_rw [continuous_iff_isClosed, ProjectiveSpectrum.isClosed_iff_zeroLocus, |
| 73 | exists_imp, forall_eq_apply_imp_iff] |
| 74 | intro s |
| 75 | refine ⟨(Subalgebra.veroneseSubalgebra g N).val '' s, ?_⟩ |
| 76 | ext p |
| 77 | change (∀ z ∈ s, z.val ∈ p.asHomogeneousIdeal) ↔ |
| 78 | (∀ z ∈ (Subalgebra.veroneseSubalgebra g N).val '' s, z ∈ p.asHomogeneousIdeal) |
| 79 | exact Set.forall_mem_image.symm |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Veronese.ProjectiveComap |