PhyslibSearch

QuantumInfo.ForMathlib.Misc

9 declarations

theorem

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

#ite_eq_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 xx \neq \top and yy \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.

#subtype_val_iSup

Let f:Iαf: I \to \alpha be a family of elements in a conditionally complete lattice α\alpha. If for all iIi \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, (supif(i),h(i)).val=supif(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

#subtype_val_iSup'

Let f:Iαf: I \to \alpha be a family of elements in a conditionally complete lattice α\alpha. If for all indices iIi \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 supif(i),h(i)=supif(i),h\sup_i \langle f(i), h(i) \rangle = \langle \sup_i f(i), h' \rangle, where hh' is the proof that supif(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

#subtype_val_iInf

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{xaxb}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: (infifi,hi).val=infifi\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

#subtype_val_iInf'

Let f:I[a,b]f: I \to [a, b] be a family of elements indexed by iIi \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., infif(i)\inf_{i} f(i), and this infimum is itself contained within the interval [a,b][a, b]. Specifically, ainfif(i)ba \le \inf_i f(i) \le b holds.

theorem

Bounded product fg0f \cdot g \to 0 if f0f \to 0 in R0\overline{\mathbb{R}}_{\geq 0}

#bdd_le_mul_tendsto_zero

Let α\alpha be a type and ll be a filter on α\alpha. Let f,g:αR0f, g: \alpha \to \overline{\mathbb{R}}_{\geq 0} be sequences (or functions) and bR0b \in \overline{\mathbb{R}}_{\geq 0} be a constant such that bb \neq \infty. If ff tends to 00 along the filter ll (i.e., fl0f \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

#csInf_mul_nonneg

Let ss and tt be sets of real numbers. Suppose that both ss and tt are non-empty (ss \neq \emptyset and tt \neq \emptyset) and consist only of non-negative elements (for all xsx \in s, x0x \ge 0, and for all yty \in t, y0y \ge 0). Then the infimum of the product set st={zxs,yt,z=xy}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(st)=inf(s)inf(t)\inf(s \cdot t) = \inf(s) \cdot \inf(t)

theorem

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

#map_univ_eq_iff

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=gef = g \circ e.

theorem

Equality of Multisets of Values Implies Existence of a Commuting Bijection

#exists_equiv_of_multiset_map_eq

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=gef = g \circ e.