Cache for the lifting/unlifting transformations #
Transforming an equality repeatedly synthesizes the same instances (MeasurableSpace X,
IsSFiniteKernel κ, ...) and rebuilds the same terms (measurable equivalences, lifted types,
...). This file provides a cache, reset at the beginning of each transformation, that memoizes these
computations.
Main declarations #
synthInstanceCached,synthInstanceQCached:synthInstancewith memoization.memoized: memoization of an arbitrary computation returning expressions, keyed by a tag and an expression.resetTransformCache: empties the cache.
The cache of the lifting/unlifting transformations.
- insts : Std.HashMap Lean.Expr Lean.Expr
Synthesized instances, keyed by the class application.
Memoized computations, keyed by a tag and an expression.
Instances For
@[instance_reducible]
Equations
Empties the cache. To be called at the beginning of each transformation.
Equations
Instances For
synthInstance with memoization.
Equations
- One or more equations did not get rendered due to their size.
Instances For
synthInstanceQ with memoization.