Documentation

Complexity.Computability.GenericRAM.Native.Nat

A certified RAM of bounded natural numbers #

This small model has one binary addition operation and one strict-order test. Its runtime configuration is an exclusive upper bound on values, addresses and control labels. All three sorts are encoded in binary. Literals and addition results are checked against the bound; tests reject either out-of-range operand; moves, address extraction and control also check the bound. The model is intentionally small, to demonstrate every scalar certificate with both accepting and rejecting inputs. The configuration is a bound, not a binary-encoded word width.

Every certificate handles all configurations and operands with one fixed native machine. This is a certificate of scalar primitives, not of memory, complete RAM steps or runs.

Main definitions #

Main results #

References #

Uses Christian Reitwiessner's binary natural encodings and native machine arithmetic through the library's polynomial-time calculus.

@[reducible, inline]

Addition and strict comparison with an exclusive bound on values, addresses and labels.

Instances For

    Binary encodings of the exclusive bound, stored values and addresses.

    Instances For

      Complete native scalar evidence; no field assumes a RAM simulator.

      Instances For

        The bounded-natural primitive bundle has polynomial resource bounds in all fields.