Kernel lifting utilities #
Utilities for lifting and unlifting kernel expressions, built with Qq.
Main declarations #
getTypesFromKernel: the carrier types and universe levels of a kernel.kernelLevel: the universe level of a lifted kernel.liftCarrier: the lift of a measurable space and the measurable equivalence with its lift.getOriginalType: the original type of a lifted type.unliftCarrier: the same asliftCarrier, from the lifted space.
Extract (X, Y, u, v) from an expression of type Kernel X Y.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Simplify the maxima max l l of a level, which appear in the universe levels of the products
of types living in the same universe Type l.
Equations
- dedupMaxLevel (a.max b) = if (dedupMaxLevel a == dedupMaxLevel b) = true then dedupMaxLevel a else Lean.mkLevelMax (dedupMaxLevel a) (dedupMaxLevel b)
- dedupMaxLevel x✝ = x✝
Instances For
The universe level w of the carriers of a lifted kernel κ : Kernel X Y: all the carriers of
a lifted equality live in Type w.
Equations
- kernelLevel κ = do let __x ← getTypesFromKernel κ match __x with | (fst, fst_1, xLvl, snd) => pure (dedupMaxLevel xLvl)
Instances For
The lift X' of a measurable space X : Type x to the universe w, together with the
MeasurableSpace instances of X and X' and the measurable equivalence X' ≃ᵐ X. Products are
lifted componentwise, PUnit to PUnit and the other types to ULift.
A lifted measurable space X' : Type w with its original space X (see getOriginalType),
their MeasurableSpace instances and the measurable equivalence X' ≃ᵐ X of liftCarrier.
Equations
- One or more equations did not get rendered due to their size.