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.Generated.DegreeDetermination |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Truncated.GeneratedParameters |
| 3 | |
| 4 | /-! # Degree Projection -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Generated.DegreeProjection |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The generated parameter scheme maps monomorphically to the single Grassmannian in its generating degree. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable (S : Scheme.{u}) (n B : ℕ) (r : ℕ → ℕ) (N : ℕ) (hN : N ≤ B) |
| 17 | |
| 18 | def truncatedGeneratedDegreeProjection : Truncated.GeneratedParameters.truncatedGeneratedParameters S n B r N ⟶ |
| 19 | Homogeneous.QuotientParameters.homogeneousQuotientParameterScheme.{u, 0} (Fin (n + 1)) N (r N) S := |
| 20 | Truncated.GeneratedParameters.truncatedGeneratedInclusion S n B r N ≫ |
| 21 | Truncated.GradedParameters.truncatedGradedProjection (Fin (n + 1)) B r S ⟨N, Nat.lt_succ_of_le hN⟩ |
| 22 | |
| 23 | variable {S n B r N} |
| 24 | |
| 25 | theorem truncatedGeneratedDegreeProjection_affine_injective {R : CommRingCat.{u}} {f : Spec R ⟶ S} : |
| 26 | Function.Injective (fun x : Over.mk f ⟶ Truncated.GeneratedParameters.truncatedGeneratedParameters S n B r N => |
| 27 | x ≫ truncatedGeneratedDegreeProjection S n B r N hN) := by |
| 28 | intro x y h |
| 29 | let d : Fin (B + 1) := ⟨N, Nat.lt_succ_of_le hN⟩ |
| 30 | let j := Truncated.GeneratedParameters.truncatedGeneratedInclusion S n B r N |
| 31 | let p := Truncated.GradedParameters.truncatedGradedProjection (Fin (n + 1)) B r S d |
| 32 | change x ≫ (j ≫ p) = y ≫ (j ≫ p) at h |
| 33 | have hp : (x ≫ j) ≫ p = (y ≫ j) ≫ p := by |
| 34 | rw [Category.assoc, Category.assoc] |
| 35 | exact h |
| 36 | have hq : (Truncated.GradedRepresentation.truncatedGradedPointData (x ≫ Truncated.GeneratedParameters.truncatedGeneratedInclusion S n B r N)).quotient |
| 37 | ⟨N, Nat.lt_succ_of_le hN⟩ = |
| 38 | (Truncated.GradedRepresentation.truncatedGradedPointData (y ≫ Truncated.GeneratedParameters.truncatedGeneratedInclusion S n B r N)).quotient |
| 39 | ⟨N, Nat.lt_succ_of_le hN⟩ := by |
| 40 | exact congrArg (Homogeneous.QuotientParameters.homogeneousQuotientAffinePointEquiv.{u, 0} |
| 41 | (Fin (n + 1)) N (r N) R f).symm hp |
| 42 | have hd := Truncated.GradedClassification.TruncatedGradedQuotientData.eq_of_generating_quotient_eq _ _ hN |
| 43 | (Truncated.GeneratedParameters.truncatedGeneratedPoint_condition x) (Truncated.GeneratedParameters.truncatedGeneratedPoint_condition y) hq |
| 44 | have he : x ≫ Truncated.GeneratedParameters.truncatedGeneratedInclusion S n B r N = |
| 45 | y ≫ Truncated.GeneratedParameters.truncatedGeneratedInclusion S n B r N := |
| 46 | (Truncated.GradedRepresentation.truncatedGradedPointData_classifyingMap _).symm.trans |
| 47 | ((congrArg (fun D => D.classifyingMap f) hd).trans (Truncated.GradedRepresentation.truncatedGradedPointData_classifyingMap _)) |
| 48 | have : Mono (Truncated.GeneratedParameters.truncatedGeneratedInclusion S n B r N) := Over.mono_of_mono_left _ |
| 49 | exact (cancel_mono (Truncated.GeneratedParameters.truncatedGeneratedInclusion S n B r N)).mp he |
| 50 | |
| 51 | theorem truncatedGeneratedDegreeProjection_injective {T : Over S} : |
| 52 | Function.Injective (fun x : T ⟶ Truncated.GeneratedParameters.truncatedGeneratedParameters S n B r N => |
| 53 | x ≫ truncatedGeneratedDegreeProjection S n B r N hN) := by |
| 54 | intro x y h |
| 55 | change x ≫ truncatedGeneratedDegreeProjection S n B r N hN = |
| 56 | y ≫ truncatedGeneratedDegreeProjection S n B r N hN at h |
| 57 | apply Over.OverMorphism.ext |
| 58 | apply T.left.affineOpenCover.openCover.hom_ext |
| 59 | intro i |
| 60 | change T.left.affineOpenCover.I₀ at i |
| 61 | let a : Over.mk (T.left.affineOpenCover.f i ≫ T.hom) ⟶ T := |
| 62 | Over.homMk (T.left.affineOpenCover.f i) |
| 63 | have he : (a ≫ x) ≫ truncatedGeneratedDegreeProjection S n B r N hN = |
| 64 | (a ≫ y) ≫ truncatedGeneratedDegreeProjection S n B r N hN := by |
| 65 | rw [Category.assoc, Category.assoc, h] |
| 66 | exact congrArg Over.Hom.left (truncatedGeneratedDegreeProjection_affine_injective hN he) |
| 67 | |
| 68 | instance truncatedGeneratedDegreeProjection_mono : |
| 69 | Mono (truncatedGeneratedDegreeProjection S n B r N hN) where |
| 70 | right_cancellation _ _ h := truncatedGeneratedDegreeProjection_injective hN h |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Generated.DegreeProjection |