Physlib

QuantumInfo.ForMathlib.Misc

9 declarations

theorem

An `if-then-else` expression is not ⊤\top if both branches are not ⊤\top

Let α\alpha be a type equipped with a top element ⊤\top. For any decidable proposition hh and elements x,y∈αx, y \in \alpha, if x≠⊤x \neq \top and y≠⊤y \neq \top, then the conditional expression if h then x else y\text{if } h \text{ then } x \text{ else } y is also not equal to ⊤\top.

theorem

The value of a supremum in an interval subtype equals the supremum of the values.

Let f:I→αf: I \to \alpha be a family of elements in a conditionally complete lattice α\alpha. If for all i∈Ii \in I, the values f(i)f(i) are contained within the closed interval [a,b][a, b], then the supremum of the family of subtypes ⟨f(i),h(i)⟩\langle f(i), h(i) \rangle in the interval [a,b][a, b] has a underlying value equal to the supremum of the original family f(i)f(i) in α\alpha. That is, (sup⁡i⟨f(i),h(i)⟩).val=sup⁡if(i)(\sup_{i} \langle f(i), h(i) \rangle).val = \sup_{i} f(i).

theorem

Supremum in the Subtype [a,b][a, b] equals the Supremum in the Base Type

Let f:I→αf: I \to \alpha be a family of elements in a conditionally complete lattice α\alpha. If for all indices i∈Ii \in I, the value f(i)f(i) lies in the closed interval [a,b][a, b], then the supremum of these elements as members of the subtype [a,b][a, b] is equal to the supremum of the values f(i)f(i) in α\alpha, considered as an element of the subtype [a,b][a, b]. Specifically, if h:∀i,f(i)∈[a,b]h: \forall i, f(i) \in [a, b], then sup⁡i⟨f(i),h(i)⟩=⟨sup⁡if(i),h′⟩\sup_i \langle f(i), h(i) \rangle = \langle \sup_i f(i), h' \rangle, where h′h' is the proof that sup⁡if(i)∈[a,b]\sup_i f(i) \in [a, b] derived from the bounds aa and bb.

theorem

The infimum of a family in a closed interval subtype equals the infimum in the parent type

Let ff be a family of elements indexed by ii such that each fif_i lies within the closed interval [a,b][a, b], i.e., fi∈{x∣a≤x≤b}f_i \in \{x \mid a \leq x \leq b\}. Let ⟨fi,hi⟩\langle f_i, h_i \rangle denote the corresponding elements regarded as members of the subtype associated with the set [a,b][a, b]. Then the value of the infimum of these elements in the subtype is equal to the infimum of the original values fif_i in the parent type: (inf⁡i⟨fi,hi⟩).val=inf⁡ifi\left( \textstyle\inf_i \langle f_i, h_i \rangle \right).\text{val} = \textstyle\inf_i f_i

theorem

Infimum of a family in [a,b][a, b] equals the infimum in the carrier type

Let f:I→[a,b]f: I \to [a, b] be a family of elements indexed by i∈Ii \in I such that for all ii, f(i)f(i) belongs to the closed interval [a,b]⊂R[a, b] \subset \mathbb{R}. Let ⟨f(i),h(i)⟩\langle f(i), h(i) \rangle denote the representation of f(i)f(i) as an element of the subtype [a,b][a, b]. Then the infimum of this family taken within the subtype [a,b][a, b] is equal to the infimum of the values f(i)f(i) taken in the carrier type, i.e., inf⁡if(i)\inf_{i} f(i), and this infimum is itself contained within the interval [a,b][a, b]. Specifically, a≤inf⁡if(i)≤ba \le \inf_i f(i) \le b holds.

theorem

Bounded product f⋅g→0f \cdot g \to 0 if f→0f \to 0 in R‾≥0\overline{\mathbb{R}}_{\geq 0}

Let α\alpha be a type and ll be a filter on α\alpha. Let f,g:α→R‾≥0f, g: \alpha \to \overline{\mathbb{R}}_{\geq 0} be sequences (or functions) and b∈R‾≥0b \in \overline{\mathbb{R}}_{\geq 0} be a constant such that b≠∞b \neq \infty. If ff tends to 00 along the filter ll (i.e., f→l0f \xrightarrow[l]{} 0) and g(x)g(x) is eventually bounded by bb in ll (i.e., for almost all xx with respect to ll, g(x)≤bg(x) \leq b), then the product f(x)⋅g(x)f(x) \cdot g(x) also tends to 00 along ll.

theorem

The infimum of a product of non-negative sets of reals equals the product of their infima

Let ss and tt be sets of real numbers. Suppose that both ss and tt are non-empty (s≠∅s \neq \emptyset and t≠∅t \neq \emptyset) and consist only of non-negative elements (for all x∈sx \in s, x≥0x \ge 0, and for all y∈ty \in t, y≥0y \ge 0). Then the infimum of the product set s⋅t={z∣∃x∈s,y∈t,z=x⋅y}s \cdot t = \{z \mid \exists x \in s, y \in t, z = x \cdot y\} is equal to the product of their individual infima: inf⁡(s⋅t)=inf⁡(s)⋅inf⁡(t)\inf(s \cdot t) = \inf(s) \cdot \inf(t)

theorem

Multiset of values equality iff f=g∘ef = g \circ e for some bijection ee

Let α\alpha and β\beta be types where α\alpha is a finite type (represented by the `Fintype` instance). For two functions f,g:α→βf, g: \alpha \to \beta, the multiset of values obtained by applying ff to all elements in the universe of α\alpha is equal to the multiset of values obtained by applying gg to the same universe if and only if there exists a bijection e:α≃αe: \alpha \simeq \alpha such that f=g∘ef = g \circ e.

theorem

Equality of Multisets of Values Implies Existence of a Commuting Bijection

Let α\alpha and β\beta be finite types and let γ\gamma be a type with decidable equality. Let f:α→γf: \alpha \to \gamma and g:β→γg: \beta \to \gamma be two functions. If the multiset of values of ff over all elements of α\alpha is equal to the multiset of values of gg over all elements of β\beta, then there exists a bijection e:α≃βe: \alpha \simeq \beta such that f=g∘ef = g \circ e.