Numeric.Numeric.nat_roundtrip: law of gralha-bendquest@0.1.0.0 Import: import gralha-bendquest@0.1.0.0/numeric.bend as Numeric Lines 151-155 of gralha-bendquest@0.1.0.0/numeric.bend: https://jend.leeeet.dev/read.txt?path=gralha-bendquest@0.1.0.0/numeric.bend&start_line=151&end_line=155 import Base import gralha-bendquest@0.1.0.0/game.bend as G law Numeric.nat_roundtrip: for +n: Nat for +k: Nat for +fits: {G.Bq.Nat.le(k, Numeric.limit(n)) == True{} : Bool} {Word.to_nat(n, Numeric.encode(n, k)) == k : Nat} Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.inc https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.to_nat https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/game.bend&name=Bq.Nat.le https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/game.bend&name=Bq.le_step_down https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/numeric.bend&name=Numeric.below_full.go https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/numeric.bend&name=Numeric.encode https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/numeric.bend&name=Numeric.full https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/numeric.bend&name=Numeric.inc_exact https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/numeric.bend&name=Numeric.limit https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/numeric.bend&name=Numeric.zero_value