On this page:
Roulette
9.3

Roulette🔗ℹ

Cameron Moy

Roulette is a research project under active development. Backwards compatibility is not guaranteed. Users who need a stable interface are encouraged to pin Roulette to a specific commit in their "info.rkt" file. See Package Sources.

Roulette is an inference-aided host language, built on top of Rosette, that provides first-class support for measurable values. The programmer-facing interface to Roulette is nearly the same as Rosette, except values can be associated with measures. Instead of an SMT solver for the backend, Roulette uses specialized solvers intended for inference.

Roulette is available on Racket’s package server. There are two ways to install it.

  • From DrRacket you can install Roulette by going to File, selecting Install Package, entering roulette into the package source field, and hitting Update.

  • From the command line you can install Roulette through raco:

    $ raco pkg install roulette

    1 Examples

      1.1 Disrupt

      1.2 Bayesian Network

      1.3 Dice

      1.4 The BLOG Language

        1.4.1 Declaration order and random-function domains

          1.4.1.1 Shared and independent random choices

        1.4.2 Sequential and joint queries

          1.4.2.1 Usual sequential queries

          1.4.2.2 Multiple separate queries versus one joint query

        1.4.3 Lists and matrices

          1.4.3.1 When a list becomes a matrix

          1.4.3.2 Indexing and scalar conversion

          1.4.3.3 Arithmetic and the matrix library

          1.4.3.4 Random entries and dimensions

        1.4.4 Current limitations

        1.4.5 Implementation notes

          1.4.5.1 Parsing and normalized expressions

          1.4.5.2 Matrix representation

          1.4.5.3 Declaration expansion and result conversion

      1.5 Bentham

    2 Reference

      2.1 Measures

      2.2 Measurable Spaces

    3 Engines

      3.1 RSDD