Download data/lean/OAI/LinearAlgebra/Foundations/ComplexOrientation.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.91 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/Foundations/ComplexOrientation.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/LinearAlgebra/Foundations/ComplexOrientation.lean
-
curl -L -o ComplexOrientation.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/Foundations/ComplexOrientation.lean
2.91 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.Analysis.InnerProductSpace.PiL2 | |
| import Mathlib.LinearAlgebra.Complex.Orientation | |
| import Mathlib.LinearAlgebra.Complex.FiniteDimensional | |
| import Mathlib.RingTheory.Complex | |
| import Mathlib.RingTheory.Norm.Transitivity | |
| /-! # Complex Orientation -/ | |
| namespace OAI.LinearAlgebra.Foundations.ComplexOrientation.Complex | |
| noncomputable section | |
| open _root_.Complex | |
| /-! | |
| # Orientations of complex vector spaces | |
| Every complex-linear automorphism preserves either real orientation of its underlying real vector | |
| space. This file proves that fact from the determinant norm formula and defines the standard | |
| orientation of `Fin n β β`, with real and imaginary basis vectors interleaved. | |
| The generic preservation theorem is phrased using mathlib's `Orientation`. In particular, it is | |
| the linear-algebra input needed to construct the constant-sign `Manifold.OrientationLift` proposed | |
| in [mathlib4 PR #35376](https://github.com/leanprover-community/mathlib4/pull/35376): apply | |
| `Manifold.OrientationLift.compatible_of_det` to the positivity result after identifying a | |
| holomorphic tangent coordinate change with the scalar restriction of a complex-linear | |
| equivalence. | |
| -/ | |
| /-- The real dimension of `Fin n β β` is `2 * n`, in the form expected by | |
| `Manifold.OrientationLift`. -/ | |
| instance piOrientationFinrankFact (n : β) : | |
| Fact (Fintype.card (Fin (n * 2)) = Module.finrank β (Fin n β β)) := | |
| β¨by simp [Module.finrank_pi_fintype, Complex.finrank_real_complex]β© | |
| /-- The standard real basis of `Fin n β β`, ordered | |
| `(re z 0, im z 0, re z 1, im z 1,...)`. | |
| It is obtained by composing the standard complex basis of the function space with `basisOneI`, | |
| then reindexing the product basis by `finProdFinEquiv`. | |
| -/ | |
| def piBasisOneI (n : β) : Module.Basis (Fin (n * 2)) β (Fin n β β) := | |
| (basisOneI.smulTower' (Pi.basisFun β (Fin n))).reindex finProdFinEquiv | |
| /-- For `n β β`, this continuous real-linear equivalence `β^n β β^{2n}` sends `(z_0,β¦,z_{n-1})` to | |
| `(Re z_0,Im z_0,β¦,Re z_{n-1},Im z_{n-1})`. These coordinates follow the ordered real basis | |
| `(e_0,i e_0,β¦,e_{n-1},i e_{n-1})`. -/ | |
| def piCoordCLE (n : β) : (Fin n β β) βL[β] (Fin (n * 2) β β) := | |
| (piBasisOneI n).equivFunL | |
| end | |
| end OAI.LinearAlgebra.Foundations.ComplexOrientation.Complex | |