AFTD Auto-Formalizing Theoretical Domains

LinearEquiv.euclideanOfRelabel

defimported Lean

The π•œ-linear equivalence EuclideanSpace π•œ dβ‚‚ ≃ₗ[π•œ] EuclideanSpace π•œ d that relabels the coordinates of a vector along an index equivalence e : d ≃ dβ‚‚. This is the EuclideanSpace analogue of LinearEquiv.ofRelabel, obtained by transporting it across the WithLp identifications.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open LinearEquiv in
variable {d d₁ dβ‚‚ d₃ R π•œ : Type*} [RCLike π•œ] in
variable {R : Type*} [Semiring R] in
variable (e : d ≃ dβ‚‚) in
variable (π•œ) in
@[simps!]
def LinearEquiv.euclideanOfRelabel (e : d ≃ dβ‚‚) : EuclideanSpace π•œ dβ‚‚ ≃ₗ[π•œ] EuclideanSpace π•œ d
Defined in
QuantumInfo, `LinearEquiv.euclideanOfRelabel`
Lean proof
By Alex Meiburg, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2025 Alex Meiburg. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
Verified
16 Oct 2026
Axioms
none listed
Built on 1
  • LinearEquiv.ofRelabelThe R-linear equivalence (dβ‚‚ β†’ R) ≃ₗ[R] (d β†’ R) that relabels the coordinates of a function along an index equivalence e : d ≃ dβ‚‚.…
Used by 4

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open LinearEquiv in
variable {d d₁ dβ‚‚ d₃ R π•œ : Type*} [RCLike π•œ] in
variable {R : Type*} [Semiring R] in
variable (e : d ≃ dβ‚‚) in
variable (π•œ) in
/-- The `π•œ`-linear equivalence `EuclideanSpace π•œ dβ‚‚ ≃ₗ[π•œ] EuclideanSpace π•œ d` that relabels the coordinates of a vector along an index equivalence `e : d ≃ dβ‚‚`. This is the `EuclideanSpace` analogue of `LinearEquiv.ofRelabel`, obtained by transporting it across the `WithLp` identifications. -/
@[simps!]
def LinearEquiv.euclideanOfRelabel (e : d ≃ dβ‚‚) : EuclideanSpace π•œ dβ‚‚ ≃ₗ[π•œ] EuclideanSpace π•œ d :=
  (WithLp.linearEquiv 2 π•œ _).trans ((ofRelabel _ e).trans (WithLp.linearEquiv 2 π•œ _).symm)
See it in the graphDiscuss this resultChallenge it