Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_HodgeConjecture.lean
qedmarket’s copy of theproofnetwork/open-problems@860a535, 1 Dec 2026original source ↗
/-From Prove2Me, definition `HodgeConjecture` (https://prove2.me/definitions/f267dbd0-306c-4976-aacc-aea8f7c7aad3). Apache-2.0 per Prove2Me's terms.-/import Mathlib /-!P. Deligne, *The Hodge Conjecture*, Clay Mathematics Institute Millennium Prize Problemdescription (2000), §1 (pp. 1–2). The objects needed to state the Hodge conjecture for a projective non-singular algebraic variety`X` over `ℂ`, built from scratch on top of Mathlib's calculus and measure theory: * `X` is given by homogeneous polynomial equations in `N + 1` variables; it is realised as the compact subset `pts X` of the Euclidean space `Amb N` of complex `(N+1) × (N+1)` matrices via the embedding `ℙ^N(ℂ) → Amb N`, `[v] ↦ v v^* / |v|²` (rank-one orthogonal projections). Its tangent spaces are the images of the Zariski tangent spaces of the affine cone, and its complex structure is `J(A) = i (A P - P A)` at the point `P`.* Differential forms on `X` are smooth `ℂ`-valued forms on `Amb N` restricted to the tangent spaces of `X`. Deligne, p. 1: "`H^n(X, ℂ)` is the space of closed `n`-forms modulo exact forms"; a `(p,q)`-form is one on which `λ ∈ ℂ^*` acts through the complex structure by the scalar `λ^p λ̄^q`.* The rational classes `H^n(X, ℚ) ⊂ H^n(X, ℂ)` are the classes with rational periods on all smooth integral cycles. Deligne, p. 2: "Rational `(p,p)`-classes are called Hodge classes."* For a closed algebraic subvariety `Z ⊂ X` of codimension `p`, Deligne, pp. 1–2: "`Z` is an integral cycle and, by Poincaré duality, defines a class `cl(Z)` in `H^{2p}(X, ℤ)`. The integration current on `Z` ... represent[s] the image of `cl(Z)` in `H^{2p}(X, ℂ)`." Here `IsCycleClass X Z n p c` says that `c` pairs with every closed `(2n-2p)`-form `η` as `∫_X c ∧ η = ∫_Z η`. Integrals over `X` and over the smooth locus of `Z` are Lebesgue integrals against the Hausdorffmeasure of the right dimension, normalised by `ω_d / 2^d` so that it is the Riemannian volume(Mathlib's `μH[d]` carries no normalising constant), with the integrand evaluated on theorientation `(u₁, J u₁, …, u_m, J u_m)` induced by the complex structure.-/ namespace HodgeConjecture open scoped ContDiffopen MeasureTheory /-! ### Ambient spaces -/ /-- Homogeneous coordinates `ℂ^{N+1}`. -/abbrev Coord (N : ℕ) := Fin (N + 1) → ℂ /-- The Euclidean space of complex `(N+1) × (N+1)` matrices, regarded as a real inner productspace; `ℙ^N(ℂ)` is embedded in it as the set of rank-one orthogonal projections. -/abbrev Amb (N : ℕ) := EuclideanSpace ℂ (Fin (N + 1) × Fin (N + 1)) /-- Polynomials in the `N + 1` homogeneous coordinates. -/abbrev Poly (N : ℕ) := MvPolynomial (Fin (N + 1)) ℂ variable {N : ℕ} /-- The embedding `ℙ^N(ℂ) → Amb N`, `v ↦ v v^* / |v|²`, i.e. the matrix of the orthogonalprojection onto the line `ℂ v`. -/noncomputable def proj (v : Coord N) : Amb N := WithLp.toLp 2 fun ij => v ij.1 * (starRingEnd ℂ) (v ij.2) / ((∑ i, Complex.normSq (v i) : ℝ) : ℂ) /-- The complex structure of `ℙ^N(ℂ)` at the point `P`: `J(A) = i (A P - P A)`. -/noncomputable def Jmap (P A : Amb N) : Amb N := WithLp.toLp 2 fun ij => Complex.I * ∑ k, (A (ij.1, k) * P (k, ij.2) - P (ij.1, k) * A (k, ij.2)) /-- The action of a complex scalar `z` on a tangent vector `A` at `P`:`z • A = (Re z) A + (Im z) J(A)`. -/noncomputable def cmul (P : Amb N) (z : ℂ) (A : Amb N) : Amb N := z.re • A + z.im • Jmap P A /-- The real inner product `Re ⟨a, b⟩` on `Amb N`. -/noncomputable def rinner (a b : Amb N) : ℝ := (inner ℂ a b).re /-! ### Projective varieties, tangent spaces, nonsingularity, dimension -/ /-- Common zero set in `ℂ^{N+1}` of a set of polynomials. -/def zeros (S : Set (Poly N)) : Set (Coord N) := {v | ∀ Q ∈ S, MvPolynomial.eval v Q = 0} /-- A projective algebraic set in `ℙ^N(ℂ)`, given by a set of homogeneous polynomial equations. -/structure ProjVariety (N : ℕ) where eqs : Set (Poly N) homog : ∀ Q ∈ eqs, ∃ d : ℕ, Q.IsHomogeneous d namespace ProjVariety variable (X : ProjVariety N) /-- The punctured affine cone `{v ≠ 0 | Q(v) = 0 for all Q ∈ eqs}`. -/def cone : Set (Coord N) := {v | v ≠ 0 ∧ v ∈ zeros X.eqs} /-- The points of `X ⊂ ℙ^N(ℂ)`, as a subset of `Amb N`. -/def pts : Set (Amb N) := proj '' X.cone /-- The full vanishing ideal: all polynomials vanishing on the cone of `X`. -/def vanishing : Set (Poly N) := {Q | ∀ v ∈ X.cone, MvPolynomial.eval v Q = 0} /-- The differential `w ↦ ∑ᵢ (∂Q/∂xᵢ)(v) wᵢ` of a polynomial `Q` at `v`. -/noncomputable def jacobianForm (Q : Poly N) (v : Coord N) : Coord N →ₗ[ℂ] ℂ := ∑ i, MvPolynomial.eval v (MvPolynomial.pderiv i Q) • LinearMap.proj i /-- The Zariski tangent space of the affine cone at `v`: the common kernel of the differentialsat `v` of all polynomials vanishing on the cone. -/noncomputable def tangentCone (v : Coord N) : Submodule ℂ (Coord N) := ⨅ Q ∈ X.vanishing, LinearMap.ker (jacobianForm Q v) /-- `X` is a non-singular projective variety of (pure) dimension `n`: the Zariski tangent spaceof the cone has dimension `n + 1` at every point of the cone. -/def IsNonsingular (n : ℕ) : Prop := ∀ v ∈ X.cone, Module.finrank ℂ (X.tangentCone v) = n + 1 /-- The (real) tangent space of `X ⊂ Amb N` at the point `P`: the image of the Zariski tangentspace of the cone under the derivative of the embedding `proj`, at any `v` with `proj v = P`. -/noncomputable def tangent (P : Amb N) : Submodule ℝ (Amb N) := ⨆ (v : Coord N) (_ : v ∈ X.cone ∧ proj v = P), ((X.tangentCone v).restrictScalars ℝ).map ((fderiv ℝ proj v : Coord N →L[ℝ] Amb N) : Coord N →ₗ[ℝ] Amb N) /-- Irreducibility of a projective algebraic set (equivalently, of its affine cone). -/def IsIrreducible : Prop := X.cone.Nonempty ∧ ∀ S₁ S₂ : Set (Poly N), X.cone ⊆ zeros S₁ ∪ zeros S₂ → X.cone ⊆ zeros S₁ ∨ X.cone ⊆ zeros S₂ /-- The dimension of an irreducible projective variety: the dimension of the Zariski tangentspace of the cone at its generic (smooth) points, minus one. -/noncomputable def dim : ℕ := sInf ((fun v => Module.finrank ℂ (X.tangentCone v)) '' X.cone) - 1 /-- The smooth locus of `X`, as a subset of `Amb N`. -/noncomputable def regPts : Set (Amb N) := proj '' {v ∈ X.cone | Module.finrank ℂ (X.tangentCone v) = X.dim + 1} end ProjVariety /-! ### Differential forms, de Rham cohomology, Hodge type -/ /-- Smooth `ℂ`-valued `k`-forms on the ambient real vector space `Amb N`. -/abbrev Form (N k : ℕ) := Amb N → (Amb N) [⋀^Fin k]→L[ℝ] ℂ namespace ProjVariety variable (X : ProjVariety N) /-- `ω` vanishes on `X`: it is zero on all tangent vectors of `X` at all points of `X`. -/def VanishesOn {k : ℕ} (w : Form N k) : Prop := ∀ P ∈ X.pts, ∀ v : Fin k → Amb N, (∀ i, v i ∈ X.tangent P) → w P v = 0 /-- A smooth ambient form whose restriction to `X` is closed. -/def IsClosedForm {k : ℕ} (w : Form N k) : Prop := ContDiff ℝ ∞ w ∧ X.VanishesOn (extDeriv w) /-- A smooth ambient form whose restriction to `X` is exact: it agrees on `X` with `dα` for asmooth `(k-1)`-form `α` (for `k = 0`: it vanishes on `X`). -/def IsExactForm : ∀ {k : ℕ}, Form N k → Prop | 0, w => ContDiff ℝ ∞ w ∧ X.VanishesOn w | k + 1, w => ContDiff ℝ ∞ w ∧ ∃ α : Form N k, ContDiff ℝ ∞ α ∧ X.VanishesOn (w - extDeriv α) /-- The space of closed `k`-forms on `X` (as the span of the set of closed ambient forms). -/noncomputable def closedForms (k : ℕ) : Submodule ℂ (Form N k) := Submodule.span ℂ {w | X.IsClosedForm w} /-- The space of exact `k`-forms on `X`. -/noncomputable def exactForms (k : ℕ) : Submodule ℂ (Form N k) := Submodule.span ℂ {w | X.IsExactForm w} /-- De Rham cohomology `H^k(X, ℂ)`: closed forms modulo exact forms (Deligne, p. 1), realisedas the image of the closed forms in the quotient of all ambient forms by the exact forms. -/abbrev Cohomology (k : ℕ) : Type := ↥((X.closedForms k).map (X.exactForms k).mkQ) /-- The cohomology class of a closed form. -/noncomputable def cls {k : ℕ} (w : X.closedForms k) : X.Cohomology k := ⟨(X.exactForms k).mkQ w.1, Submodule.mem_map_of_mem w.2⟩ /-- `ω` has type `(p, q)` on `X`: on tangent vectors of `X`, `ω(z v₁, …, z v_k) = z^p z̄^q ω(v)`for every complex scalar `z`, where `z` acts through the complex structure of `X`(Deligne, p. 1). -/def HasType {k : ℕ} (p q : ℕ) (w : Form N k) : Prop := ∀ P ∈ X.pts, ∀ v : Fin k → Amb N, (∀ i, v i ∈ X.tangent P) → ∀ z : ℂ, w P (fun i => cmul P z (v i)) = z ^ p * (starRingEnd ℂ z) ^ q * w P v /-- A cohomology class of type `(p, q)`: one represented by a closed `(p, q)`-form. -/def HasTypeClass {k : ℕ} (p q : ℕ) (c : X.Cohomology k) : Prop := ∃ w : X.closedForms k, X.cls w = c ∧ X.HasType p q w.1 end ProjVariety /-! ### Smooth singular chains and periods; the rational structure -/ /-- A smooth singular `k`-simplex in `Amb N`: a smooth map from `ℝ^{k+1}` (restricted to thestandard simplex `{t ≥ 0, ∑ tᵢ = 1}`). -/abbrev Simplex (N k : ℕ) := (Fin (k + 1) → ℝ) → Amb N /-- Integral smooth singular `k`-chains. -/abbrev Chain (N k : ℕ) := Simplex N k →₀ ℤ /-- The `i`-th face of a simplex: precompose with the inclusion of the `i`-th facet. -/def face {k : ℕ} (i : Fin (k + 2)) (σ : Simplex N (k + 1)) : Simplex N k := fun t => σ (Fin.insertNth i 0 t) /-- The singular boundary `∂σ = ∑ᵢ (-1)^i σ ∘ δᵢ`, extended linearly to chains. -/noncomputable def boundary {k : ℕ} (c : Chain N (k + 1)) : Chain N k := c.sum fun σ m => m • ∑ i : Fin (k + 2), ((-1 : ℤ) ^ (i : ℕ)) • Finsupp.single (face i σ) (1 : ℤ) /-- A cycle: a chain with zero boundary (every `0`-chain is a cycle). -/def IsCycle : ∀ {k : ℕ}, Chain N k → Prop | 0, _ => True | _ + 1, c => boundary c = 0 /-- The coordinate simplex `{t ∈ ℝ^k | tᵢ ≥ 0, ∑ tᵢ ≤ 1}`. -/def coordSimplex (k : ℕ) : Set (Fin k → ℝ) := {t | (∀ i, 0 ≤ t i) ∧ ∑ i, t i ≤ 1} /-- The affine parametrisation `t ↦ (1 - ∑ tᵢ, t₁, …, t_k)` of the standard simplex, sending thevertices `0, e₁, …, e_k` of the coordinate simplex to `e₀, e₁, …, e_k` in order. -/def affineEmbed {k : ℕ} (t : Fin k → ℝ) : Fin (k + 1) → ℝ := Fin.cons (1 - ∑ i, t i) t /-- `∫_σ ω`: the integral of the pull-back of `ω` along `σ` over the standard `k`-simplex. -/noncomputable def simplexIntegral {k : ℕ} (w : Form N k) (σ : Simplex N k) : ℂ := ∫ t in coordSimplex k, w (σ (affineEmbed t)) (fun i => fderiv ℝ (σ ∘ affineEmbed) t (Pi.single i 1)) /-- The period `∫_c ω` of a form over a chain. -/noncomputable def period {k : ℕ} (w : Form N k) (c : Chain N k) : ℂ := c.sum fun σ m => (m : ℂ) * simplexIntegral w σ namespace ProjVariety variable (X : ProjVariety N) /-- A smooth simplex lying in `X`. -/def IsSimplexIn {k : ℕ} (σ : Simplex N k) : Prop := ContDiff ℝ ∞ σ ∧ ∀ t ∈ stdSimplex ℝ (Fin (k + 1)), σ t ∈ X.pts /-- A chain all of whose simplices lie in `X`. -/def IsChainIn {k : ℕ} (c : Chain N k) : Prop := ∀ σ ∈ c.support, X.IsSimplexIn σ /-- The rational classes `H^k(X, ℚ) ⊂ H^k(X, ℂ)`: classes whose periods over all smooth integralcycles in `X` are rational numbers. -/def IsRational {k : ℕ} (c : X.Cohomology k) : Prop := ∀ w : X.closedForms k, X.cls w = c → ∀ ch : Chain N k, X.IsChainIn ch → IsCycle ch → ∃ q : ℚ, period w.1 ch = q /-- Hodge classes: rational classes of type `(p, p)` in `H^{2p}(X, ℂ)` (Deligne, p. 2). -/def IsHodgeClass (p : ℕ) (c : X.Cohomology (2 * p)) : Prop := X.IsRational c ∧ X.HasTypeClass p p c end ProjVariety /-! ### Integration over `X` and over subvarieties; the cycle class -/ /-- `u₁, …, u_m` is a complex orthonormal frame of the `J`-invariant real subspace `T` at `P`:the `uᵢ` lie in `T`, are orthonormal, and are orthogonal to all `J uⱼ`. -/def IsJFrame {m : ℕ} (T : Submodule ℝ (Amb N)) (P : Amb N) (u : Fin m → Amb N) : Prop := (∀ i, u i ∈ T) ∧ (∀ i j, rinner (u i) (u j) = if i = j then 1 else 0) ∧ (∀ i j, rinner (u i) (Jmap P (u j)) = 0) /-- The positively oriented orthonormal frame `(u₁, J u₁, …, u_m, J u_m)` of a `2m`-dimensional`J`-invariant subspace `T` at `P` (`d = 2m`), built from a chosen complex orthonormal frame. -/noncomputable def frame (T : Submodule ℝ (Amb N)) (P : Amb N) (d : ℕ) : Fin d → Amb N := fun k => let u : Fin (d / 2) → Amb N := Classical.epsilon fun u => IsJFrame T P u if h : k.val / 2 < d / 2 then (if k.val % 2 = 0 then u ⟨k.val / 2, h⟩ else Jmap P (u ⟨k.val / 2, h⟩)) else 0 /-- The `d`-dimensional Riemannian volume measure on `Amb N`: Hausdorff measure normalised by`ω_d / 2^d` (for even `d = 2m`, `ω_d / 2^d = π^m / (m! 4^m)`), so that it agrees with Lebesguemeasure on `d`-dimensional Euclidean subspaces. -/noncomputable def volMeasure (N : ℕ) (d : ℕ) : Measure (Amb N) := ENNReal.ofReal (Real.pi ^ (d / 2) / ((d / 2).factorial * 2 ^ d)) • μH[(d : ℝ)] /-- The value `(ω ∧ η)_P(f₁, …, f_{k+l})` of the wedge product on a frame `f`. -/noncomputable def wedgeVal {k l : ℕ} (w : Form N k) (η : Form N l) (P : Amb N) (f : Fin (k + l) → Amb N) : ℂ := ((k.factorial * l.factorial : ℕ) : ℂ)⁻¹ * ∑ σ : Equiv.Perm (Fin (k + l)), (((Equiv.Perm.sign σ : ℤˣ) : ℤ) : ℂ) * w P (fun i => f (σ (Fin.castAdd l i))) * η P (fun j => f (σ (Fin.natAdd k j))) namespace ProjVariety variable (X : ProjVariety N) /-- `∫_X ω ∧ η`, for a `k`-form and an `l`-form with `k + l = 2 dim X`. -/noncomputable def pairing {k l : ℕ} (w : Form N k) (η : Form N l) : ℂ := ∫ P in X.pts, wedgeVal w η P (frame (X.tangent P) P (k + l)) ∂(volMeasure N (k + l)) /-- `∫_Z η`, the integral of an `l`-form over the smooth locus of `Z` (`l = 2 dim Z`), with theorientation induced by the complex structure. -/noncomputable def integralOver {l : ℕ} (η : Form N l) : ℂ := ∫ P in X.regPts, η P (frame (X.tangent P) P l) ∂(volMeasure N l) /-- `c ∈ H^{2p}(X, ℂ)` is the cohomology class `cl(Z)` of the codimension-`p` subvariety `Z` ofthe `n`-dimensional variety `X`: it is Poincaré dual to integration over `Z`, i.e.`∫_X c ∧ η = ∫_Z η` for every closed `(2n - 2p)`-form `η` (Deligne, pp. 1–2). -/def IsCycleClass (Z : ProjVariety N) (n p : ℕ) (c : X.Cohomology (2 * p)) : Prop := ∀ w : X.closedForms (2 * p), X.cls w = c → ∀ η : Form N (2 * n - 2 * p), X.IsClosedForm η → X.pairing w.1 η = Z.integralOver η end ProjVariety end HodgeConjecture