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.Homogeneous.DegreeLoci |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.DegreeFlatness |
| 3 | |
| 4 | /-! # Homogeneous Flat Locus -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Bounded.HomogeneousFlatLocus.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite locally closed parameter locus forces flatness in every higher |
| 11 | homogeneous degree and of the actual projective family over every base stalk. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 14 | |
| 15 | universe u |
| 16 | variable {S : Scheme.{u}} (M : Over S) {n : ℕ} {ι : Type u} [Fintype ι] [DecidableEq ι] |
| 17 | variable (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing Γ(M.left, ⊤) n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 18 | |
| 19 | def boundedDegreeFlatRankSubfunctor (q : ℕ → ℕ) : Subfunctor (yoneda.obj M) := |
| 20 | ⨅ d ∈ Finset.range (Coordinate.SyzygyBound.GradedHilbert.homogeneousSyzygyDegreeBound n (Fintype.card ι) N + 1), |
| 21 | Homogeneous.DegreeLoci.GradedHilbert.homogeneousDegreeFlatRankSubfunctor M g N hg d (q d) |
| 22 | |
| 23 | theorem boundedDegreeFlatRankSubfunctor_mem (q : ℕ → ℕ) {T : Over S} (x : T ⟶ M) : |
| 24 | x ∈ (boundedDegreeFlatRankSubfunctor M g N hg q).obj (.op T) ↔ |
| 25 | ∀ d ≤ Coordinate.SyzygyBound.GradedHilbert.homogeneousSyzygyDegreeBound n (Fintype.card ι) N, |
| 26 | Homogeneous.DegreeLoci.GradedHilbert.HomogeneousDegreeFlatRank M g N hg d (q d) x := by |
| 27 | simp only [boundedDegreeFlatRankSubfunctor, Subfunctor.iInf_obj, Set.mem_iInter, |
| 28 | Finset.mem_range, Nat.lt_succ_iff] |
| 29 | exact forall_congr' (fun d => imp_congr_right |
| 30 | (fun _ => Homogeneous.DegreeLoci.GradedHilbert.homogeneousDegreeFlatRankSubfunctor_mem M g N hg d (q d) x)) |
| 31 | |
| 32 | theorem bounded_homogeneous_flat_locus (q : ℕ → ℕ) : |
| 33 | SubfunctorRepresentations.ImmersionRepresentable (boundedDegreeFlatRankSubfunctor M g N hg q) := |
| 34 | Homogeneous.DegreeLoci.GradedHilbert.homogeneous_finite_degree_locus M g N hg _ q |
| 35 | |
| 36 | theorem bounded_degree_locus_all_stalk_quotients_free (q : ℕ → ℕ) {T : Over S} (x : T ⟶ M) |
| 37 | (hx : x ∈ (boundedDegreeFlatRankSubfunctor M g N hg q).obj (.op T)) (t : T.left) (d : ℕ) : |
| 38 | Module.Free (T.left.presheaf.stalk t) (Homogeneous.DegreeLoci.GradedHilbert.degreeQuotientAtStalk M g N hg x t d) := |
| 39 | Finite.DegreeFlatnessLocal.GradedHilbert.homogeneous_quotients_free_of_finite_flat_degrees |
| 40 | (fun i => MvPolynomial.map ((T.left.presheaf.Γgerm t).hom.comp x.left.appTop.hom) (g i)) N |
| 41 | (fun i => (hg i).map _) (fun e he => |
| 42 | ((boundedDegreeFlatRankSubfunctor_mem M g N hg q x).mp hx e he t).1) d |
| 43 | |
| 44 | theorem bounded_degree_locus_projective_stalk_flat (q : ℕ → ℕ) {T : Over S} (x : T ⟶ M) |
| 45 | (hx : x ∈ (boundedDegreeFlatRankSubfunctor M g N hg q).obj (.op T)) (t : T.left) : |
| 46 | Flat (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal |
| 47 | (fun i => MvPolynomial.map ((T.left.presheaf.Γgerm t).hom.comp x.left.appTop.hom) (g i)) N |
| 48 | (fun i => (hg i).map _)))) := |
| 49 | Finite.DegreeFlatnessLocal.GradedHilbert.projectiveQuotient_flat_of_finite_degree_test_local _ N _ |
| 50 | (fun e he => ((boundedDegreeFlatRankSubfunctor_mem M g N hg q x).mp hx e he t).1) |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Bounded.HomogeneousFlatLocus.GradedHilbert |