Documentation

Complexitylib.Models.RoseTreeMachine.DataEncode

Encodings into Data #

This file defines the class that is used to encode arbitrary data structures into Data, so that RTMs (rose tree machines) can operate on them.

Instances are provided for convenience for Data itself, Bool, List α, Option α, α × β, and (binary encoding via List Bool)

Encoding of types into Data.

  • encode : αData

    Encode a value of α as Data.

  • The encoding is injective, so distinct values never collide.

Instances
    @[implicit_reducible]
    Equations
    • One or more equations did not get rendered due to their size.
    @[implicit_reducible]
    Equations
    • One or more equations did not get rendered due to their size.
    @[implicit_reducible]
    Equations
    • One or more equations did not get rendered due to their size.
    @[implicit_reducible]
    Equations
    • One or more equations did not get rendered due to their size.