Documentation

Examples.Ram.Syntax

Structured RAM syntax examples #

Scale an array in place and accumulate its new elements. Word arithmetic wraps as usual; an exact-integer specification additionally needs range proofs.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    A static function-table name. Putting euclid at index zero makes the call below recursive; the syntax does not inline it or assume it terminates.

    Equations
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Direct statement syntax also accepts caller-provided Lean register names.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          A local may share a spelling with a host constant or legacy function label. Only variable positions use its register number.

          Equations
          Instances For
            theorem Ram.DSL.Examples.separateScopes_expands :
            separateScopes = { params := 1, locals := 2, body := Stmt.call [1] 3 [Expr.var 0], results := [Expr.const 3] }