Tactics for unifying universe levels when working with probability kernels in Lean.
Kernel-Lift provides two complementary tactics for working with probability kernels:
-
kernel_lifttactic: Lifts kernels to a common universe level. When working with kernels of different universe levels, this tactic automatically transforms them to operate at a unified level. -
kernel_unlifttactic: Reverses the lifting process. Transforms lifted kernels back to their original universe levels.
These tactics handle several kernel operations and primitives: composition, parallel composition, product, identity, discard, copy, and swap.
See Tests.lean for examples of using the available tactics.
See also Kernel-Hom for a deeper use of the kernel lifting tactic in the context of translating kernel equalities into categorical equalities.