Download data/lean/OAI/LinearAlgebra/Foundations/HodgeStructureOf.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.73 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/Foundations/HodgeStructureOf.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/LinearAlgebra/Foundations/HodgeStructureOf.lean
-
curl -L -o HodgeStructureOf.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/Foundations/HodgeStructureOf.lean
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 | |