One fixed multiplication task, not a submitter-chosen encoding #
The published input is exactly the two operands. The expected output is their natural-number product, and the legal-width predicate ensures it fits. The same seven-instruction program works at every legal width.
The declared size is the maximum numeric value of the operands. Constant word-RAM time here is not a bit-complexity claim: a word multiplication is one instruction in this machine model, at every width.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Ram.Examples.multiplicationCertificate :
Certificate multiplicationProblem.toProblem fun (x : ℕ) => 7
A track can request this type directly. Neither encoding nor the expected answer can be replaced by fields of the supplied certificate.
Equations
Instances For
def
Ram.Examples.multiplicationConstantTime :
AsymptoticCertificate multiplicationProblem fun (x : ℕ) => 1
Equations
- One or more equations did not get rendered due to their size.
Instances For
A bounded contest domain is also supported, but with an explicit concrete budget instead of pretending that finitely many legal sizes tend to infinity.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Ram.Examples.boundedMultiplicationCertificate
(limit : ℕ)
:
Certificate (boundedMultiplicationProblem limit) fun (x : ℕ) => 7
Equations
- Ram.Examples.boundedMultiplicationCertificate limit = { code := Ram.Examples.multiply, verified := ⋯ }