QuantumInfo.ForMathlib.Misc
9 declarations
An `if-then-else` expression is not if both branches are not
Let be a type equipped with a top element . For any decidable proposition and elements , if and , then the conditional expression is also not equal to .
The value of a supremum in an interval subtype equals the supremum of the values.
Let be a family of elements in a conditionally complete lattice . If for all , the values are contained within the closed interval , then the supremum of the family of subtypes in the interval has a underlying value equal to the supremum of the original family in . That is, .
Supremum in the Subtype equals the Supremum in the Base Type
Let be a family of elements in a conditionally complete lattice . If for all indices , the value lies in the closed interval , then the supremum of these elements as members of the subtype is equal to the supremum of the values in , considered as an element of the subtype . Specifically, if , then , where is the proof that derived from the bounds and .
The infimum of a family in a closed interval subtype equals the infimum in the parent type
Let be a family of elements indexed by such that each lies within the closed interval , i.e., . Let denote the corresponding elements regarded as members of the subtype associated with the set . Then the value of the infimum of these elements in the subtype is equal to the infimum of the original values in the parent type:
Infimum of a family in equals the infimum in the carrier type
Let be a family of elements indexed by such that for all , belongs to the closed interval . Let denote the representation of as an element of the subtype . Then the infimum of this family taken within the subtype is equal to the infimum of the values taken in the carrier type, i.e., , and this infimum is itself contained within the interval . Specifically, holds.
Bounded product if in
Let be a type and be a filter on . Let be sequences (or functions) and be a constant such that . If tends to along the filter (i.e., ) and is eventually bounded by in (i.e., for almost all with respect to , ), then the product also tends to along .
The infimum of a product of non-negative sets of reals equals the product of their infima
Let and be sets of real numbers. Suppose that both and are non-empty ( and ) and consist only of non-negative elements (for all , , and for all , ). Then the infimum of the product set is equal to the product of their individual infima:
Multiset of values equality iff for some bijection
Let and be types where is a finite type (represented by the `Fintype` instance). For two functions , the multiset of values obtained by applying to all elements in the universe of is equal to the multiset of values obtained by applying to the same universe if and only if there exists a bijection such that .
Equality of Multisets of Values Implies Existence of a Commuting Bijection
Let and be finite types and let be a type with decidable equality. Let and be two functions. If the multiset of values of over all elements of is equal to the multiset of values of over all elements of , then there exists a bijection such that .
