src/tensor/word_conversion_LAWS.bend open laws/TODOs
raw source on the hub · import bendtorch-core@0.1.0.0/src/tensor/word_conversion_LAWS.bend as Word_conversion_LAWS
3 imports
import Base import ../shape/core.bend as Shape import ./word_conversion.bend as Conversion
Laws
law word_increment_exact openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 5 · raw
@+width:Nat -> @+word:Word(width) -> @zero:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/word_conversion.word_has_zero(width, word) == True{} : Bool} -> {Word.to_nat(width, Word.inc(width, word)) == 1n+Word.to_nat(width, word) : Nat}
law increment_below_exact openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 11 · raw
@+word:U32 -> @+limit:U32 -> @below:{U32.is_lt(word, limit) == True{} : Bool} -> {U32.to_nat(U32.inc(word)) == 1n+U32.to_nat(word) : Nat}
law natural_word_exact openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 17 · raw
@+number:Nat -> @+limit:U32 -> @+within:{Nat.is_le(number, U32.to_nat(limit)) == True{} : Bool} -> {U32.to_nat(U32.from_nat(number)) == number : Nat}
law word_natural_exact openits proof in LAWS.bend does not pass the checker (open laws/TODOs)
Also proved in bend-mathlib as u32.u32_from_nat_to_nat: import bend-mathlib@0.8.2.0/u32.bend as MU32, then MU32.u32_from_nat_to_nat.
@+word:U32 -> {U32.from_nat(U32.to_nat(word)) == word : U32}
law naturals_words_fitting openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 27 · raw
@+dims:List<&2, U32> -> @+values:List<&2, Nat> -> @+fit:{True{} == 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.fit(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.naturals(dims), values) : Bool} -> {0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.naturals(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.words(values)) == values : List<&2, Nat>}
law word_increment_le openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 33 · raw
@+width:Nat -> @+word:Word(width) -> {Nat.is_le(Word.to_nat(width, Word.inc(width, word)), 1n+Word.to_nat(width, word)) == True{} : Bool}
law increment_le openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 38 · raw
@+word:U32 -> {Nat.is_le(U32.to_nat(U32.inc(word)), 1n+U32.to_nat(word)) == True{} : Bool}
law natural_word_le openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 42 · raw
@+number:Nat -> {Nat.is_le(U32.to_nat(U32.from_nat(number)), number) == True{} : Bool}
law capacity_word_nat openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 46 · raw
{U32.to_nat(1048576) == 1048576n : Nat}
law capacity_natural_word_exact openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 49 · raw
@+number:Nat -> @within:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.LE(number, 1048576n) -> {U32.to_nat(U32.from_nat(number)) == number : Nat}
law shape_count_exact openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 54 · raw
@+shape:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> {U32.to_nat(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.count(shape)) == 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.elements(shape) : Nat}
law shape_count_within openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 58 · raw
@+shape:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> {U32.is_le(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.count(shape), 1048576) == True{} : Bool}