math / data /lean /OAI /LinearAlgebra /Foundations /HodgeStructureOf.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.73 kB
/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This file has been modified.
-/
import Mathlib.Algebra.Algebra.Rat
import Mathlib.LinearAlgebra.Complex.Module
/-! # Hodge Structure Of -/
namespace OAI.LinearAlgebra.Foundations.HodgeStructureOf.HodgeStructure
noncomputable section
/-!
# Rational Hodge structures
The definitions in this file, and the lemmas about them, are reached from the statement of the
conjecture only through proofs, so the statement never inspects them: by proof irrelevance
nothing about how they were built can change what it asserts.
-/
section
open scoped DirectSum TensorProduct
universe u
/-- The canonical map from a `K`-vector space to its complexification. -/
def ofBase (K : Type) [Field K] [Algebra K β„‚] (V : Type u) [AddCommGroup V] [Module K V] :
V β†’β‚—[K] β„‚ βŠ—[K] V :=
TensorProduct.mk K β„‚ V 1
variable (V : Type u) [AddCommGroup V] [Module β„š V]
/-- Complex conjugation on a complexified rational vector space. It conjugates the scalar factor
and fixes every rational vector. -/
def conjugate : β„‚ βŠ—[β„š] V β†’β‚—[β„š] β„‚ βŠ—[β„š] V :=
TensorProduct.map (Complex.conjAe.restrictScalars β„š).toLinearMap LinearMap.id
/-- A pure decomposition of weight `n` with natural-number bidegrees on a rational vector
space `V` of arbitrary dimension.
The pieces are indexed by pairs `(p,q)`. They form an internal direct sum, only pieces with
`p + q = n` can be nonzero, and complex conjugation exchanges the `(p,q)` and `(q,p)` pieces. -/
structure Pure (n : β„•) where
/-- The Hodge piece `V^{p,q}` inside `V_β„‚`. -/
piece : β„• β†’ β„• β†’ Submodule β„‚ (β„‚ βŠ—[β„š] V)
/-- Hodge pieces off the prescribed weight are zero. -/
piece_eq_bot_of_add_ne : βˆ€ p q, p + q β‰  n β†’ piece p q = βŠ₯
/-- Every complexified vector has a unique finite decomposition into Hodge pieces. -/
isInternal : DirectSum.IsInternal (fun pq : β„• Γ— β„• ↦ piece pq.1 pq.2)
/-- The complex conjugation exchanges bidegrees. -/
conjugate_mem_iff : βˆ€ p q x, conjugate V x ∈ piece p q ↔ x ∈ piece q p
namespace Pure
variable {V : Type u} [AddCommGroup V] [Module β„š V] {n : β„•}
/-- Rational Hodge classes of codimension `p`: rational vectors whose complexifications lie in
the middle Hodge piece `V^{p,p}`. -/
def hodgeClasses (p : β„•) (H : Pure V (2 * p)) : Submodule β„š V :=
Submodule.comap (ofBase β„š V) ((H.piece p p).restrictScalars β„š)
end Pure
end
open scoped DirectSum TensorProduct
universe u
@[simp]
lemma ofBase_apply (K : Type) [Field K] [Algebra K β„‚] (V : Type u) [AddCommGroup V] [Module K V]
(v : V) : ofBase K V v = 1 βŠ—β‚œ[K] v := rfl
variable (V : Type u) [AddCommGroup V] [Module β„š V]
@[simp]
lemma conjugate_tmul (z : β„‚) (v : V) :
conjugate V (z βŠ—β‚œ[β„š] v) = Complex.conjAe z βŠ—β‚œ[β„š] v := rfl
@[simp]
lemma conjugate_ofBase (v : V) : conjugate V (ofBase β„š V v) = ofBase β„š V v := by
simp
@[simp]
lemma conjugate_conjugate (x : β„‚ βŠ—[β„š] V) : conjugate V (conjugate V x) = x := by
refine TensorProduct.inductionOn x ?_ ?_
Β· intro z v
simp
Β· intro x y hx hy
simp [hx, hy]
end
end OAI.LinearAlgebra.Foundations.HodgeStructureOf.HodgeStructure