Physlib

QuantumInfo.ForMathlib.ULift

11 declarations

instance

`AddZero` structure on the universe lift ULift α\text{ULift } \alpha

Given a type α\alpha equipped with an addition operation and an additive identity 00 (represented by the `AddZero` class), this definition provides an `AddZero` structure for the universe-lifted type ULift α\text{ULift } \alpha. Specifically, the zero element in ULift α\text{ULift } \alpha is defined as the lift of the zero in α\alpha, and the addition of two elements in ULift α\text{ULift } \alpha is defined by performing the addition on the underlying elements in α\alpha and then lifting the result.

instance

Star operation on ULift(k)\text{ULift}(\mathbb{k})

For a type k\mathbb{k} equipped with a star operation x↦x∗x \mapsto x^*, there is a corresponding star operation on the universe-lifted type ULift(k)\text{ULift}(\mathbb{k}). For any element x∈ULift(k)x \in \text{ULift}(\mathbb{k}), its star x∗x^* is defined by applying the star operation to its underlying value in k\mathbb{k}, i.e., x∗=up((down x)∗)x^* = \text{up}((\text{down } x)^*).

theorem

Star of x∈ULift(k)x \in \text{ULift}(\mathbb{k}) equals the lift of the star of x.downx.\text{down}

For a type k\mathbb{k} equipped with a star operation x↦x∗x \mapsto x^*, and any element xx in the universe-lifted type ULift(k)\text{ULift}(\mathbb{k}), the star of xx is given by x∗=up((down x)∗)x^* = \text{up}((\text{down } x)^*). Here, down x\text{down } x refers to the underlying value in k\mathbb{k} and up\text{up} refers to the constructor that lifts a value from k\mathbb{k} to ULift(k)\text{ULift}(\mathbb{k}).

instance

Involutive star operation on ULift(k)\text{ULift}(\mathbb{k})

For any type k\mathbb{k} equipped with an involutive star operation (an operation x↦x∗x \mapsto x^* such that (x∗)∗=x(x^*)^* = x for all x∈kx \in \mathbb{k}), there is a corresponding involutive star operation on the universe-lifted type ULift(k)\text{ULift}(\mathbb{k}). This structure ensures that for any element x∈ULift(k)x \in \text{ULift}(\mathbb{k}), the property (x∗)∗=x(x^*)^* = x is preserved under the lifting operation.

instance

Star-multiplication structure on ULift(k)\text{ULift}(\mathbb{k})

For any type k\mathbb{k} equipped with a multiplication and a star operation x↦x∗x \mapsto x^* such that the property (xy)∗=y∗x∗(xy)^* = y^* x^* holds for all x,y∈kx, y \in \mathbb{k}, the universe-lifted type ULift(k)\text{ULift}(\mathbb{k}) also inherits this star-multiplication structure. The operations on ULift(k)\text{ULift}(\mathbb{k}) are defined by applying the corresponding operations to the underlying elements in k\mathbb{k}.

instance

ULift⁡(k)\operatorname{ULift}(\mathbb{k}) is a star ring

For any non-unital non-associative semiring k\mathbb{k} equipped with a star ring structure, the universe-lifted type ULift⁡(k)\operatorname{ULift}(\mathbb{k}) also forms a star ring. This structure inherits the star operation x↦x∗x \mapsto x^* from k\mathbb{k}, which satisfies the properties (x+y)∗=x∗+y∗(x + y)^* = x^* + y^*, (xy)∗=y∗x∗(xy)^* = y^* x^*, and (x∗)∗=x(x^*)^* = x for all elements x,yx, y in ULift⁡(k)\operatorname{ULift}(\mathbb{k}).

theorem

(x∗).down=(x.down)∗(x^*).\text{down} = (x.\text{down})^* in ULift⁡(k)\operatorname{ULift}(\mathbb{k})

Let k\mathbb{k} be a commutative star semiring. For any element xx in the universe-lifted type ULift⁡(k)\operatorname{ULift}(\mathbb{k}), the star operation in ULift⁡(k)\operatorname{ULift}(\mathbb{k}) commutes with the projection to the underlying ring k\mathbb{k}. That is, the downward projection of the star of xx is equal to the star of the downward projection of xx: (x∗).down=(x.down)∗ (x^*).\text{down} = (x.\text{down})^* where x↦x∗x \mapsto x^* denotes the star involution.

instance

ULift⁡(k)\operatorname{ULift}(\mathbf{k}) is a normed field

For any normed field k\mathbf{k}, its universe lift ULift⁡(k)\operatorname{ULift}(\mathbf{k}) is also a normed field, inheriting the field operations and the norm from k\mathbf{k}.

instance

ULift⁡(k)\operatorname{ULift}(\mathbf{k}) is a densely normed field

For any densely normed field k\mathbf{k}, its universe lift ULift⁡(k)\operatorname{ULift}(\mathbf{k}) is also a densely normed field, inheriting the field structure and the property that the set of norms of its elements is dense in R≥0\mathbb{R}_{\ge 0}.

theorem

AddEquiv.ulift(x)=x.down\text{AddEquiv.ulift}(x) = x.\text{down}

Let α\alpha be a type equipped with an addition operation. For any element xx in the universe-lifted type ULift(α)\text{ULift}(\alpha), applying the additive equivalence AddEquiv.ulift\text{AddEquiv.ulift} to xx is equal to the underlying value x.downx.\text{down} in α\alpha.

instance

ULift⁡(k)\operatorname{ULift}(\mathbb{k}) is an `RCLike` field

Let k\mathbb{k} be a field that satisfies the `RCLike` property (isomorphic to either the real numbers R\mathbb{R} or the complex numbers C\mathbb{C}). The universe lift ULift⁡(k)\operatorname{ULift}(\mathbb{k}) is also an `RCLike` field. This structure is defined by lifting the operations from k\mathbb{k}, including the real part re⁡\operatorname{re}, the imaginary part im⁡\operatorname{im}, the complex conjugation x↦xˉx \mapsto \bar{x}, and the squared norm ∥x∥2\|x\|^2, such that they satisfy the standard axioms for a field that behaves like R\mathbb{R} or C\mathbb{C}.