NLA-lib Explorer

NLAlib.Ops.Examples.drawBin_apply_of

Library · theorem

A call of drawBin, on cells.

NLAlib.Ops.Examples.drawBin_apply_of {K : Type} {g : K → K → K → K} {x y z : ℕ × ℕ} {τ : Ops.Tape K}
  {m : Ops.Mem K} {a b : K} (hx : m.store.get x.1 x.2 = some a) (hy : m.store.get y.1 y.2 = some b)
  (hz : z.2 < m.store.len z.1) :
  (Ops.Examples.drawBin g).apply [] [x, y] [z] τ m =
    some ((m.upd z (g a b (τ m.pos Ops.Stream.unif))).advance 1)

Full source on GitHub

Import NLAlib.Ops.Examples.StochRound.