File size: 2,910 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | /-
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
|