~/bend-docscommunity

LAWS_text.bend open laws/TODOs

raw source on the hub · import bend-osdev-word64@0.1.1.0/LAWS_text.bend as LAWS_text

bend-osdev-word64's law of decimal text, for every input: W64.show reads back as the value. Proved in PROOF_text.bend.

3 imports
import Base
import bend-osdev-u32@0.1.0.0/u32.bend as U
import ./word64.bend as W

Laws

law show_reads provedin PROOF_text.bendsource · line 9 · raw

@+a:0xea9c6e6209a3ac3fb21596f70f09f650/word64.W64 -> {Nat.read.go(0xea9c6e6209a3ac3fb21596f70f09f650/word64.W64.show(a), 0n) == Some{0xea9c6e6209a3ac3fb21596f70f09f650/word64.W64.to_nat(a)} : Maybe<&2, Nat>}

Decimal text: the digits of W64.show(a), read back one by one (Base's Nat.read.go, the reader without Nat.read's 2^48 gate), are the value.