Documentation

MIPRE.Foundations.CL.TypedSampler

Typed samplers with an ambient program #

The typed version of the sampler interface in types.tex. There is a single program and a common ambient dimension. A dimension query carries no type; every other query carries the selected type together with the usual query.

inductive MIPRE.CL.TypedSampler.Query (T : Type u_1) :
Type u_1
Instances For
    structure MIPRE.CL.TypedSampler (ℓ : ℕ) (T : Type u_1) [Cost.SizedEncoding T] :
    Type u_1

    A typed sampler has one executable query interface for all types, rather than a nonuniform collection of independently chosen programs.

    Instances For
      def MIPRE.CL.TypedSampler.TimeBoundAt {ℓ : ℕ} {T : Type u_1} [Cost.SizedEncoding T] (S : TypedSampler ℓ T) (n B k : ℕ) :
      Equations
      Instances For
        theorem MIPRE.CL.TypedSampler.TimeBoundAt.mono {ℓ : ℕ} {T : Type u_1} [Cost.SizedEncoding T] {S : TypedSampler ℓ T} {n B k B' k' : ℕ} (h : S.TimeBoundAt n B k) (hB : B ≤ B') (hk : k ≤ k') :
        S.TimeBoundAt n B' k'