src/tensor/allocation_LAWS.bend open laws/TODOs
raw source on the hub · import bendtorch-core@0.1.0.0/src/tensor/allocation_LAWS.bend as Allocation_LAWS
6 imports
import Base import ../storage/main.bend as Storage import ../storage/model.bend as Model import ./allocation_spec.bend as Allocation import ./core.bend as Core import ../shape/core.bend as Shape
Laws
law storage_new_complete openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 8 · raw
@+word:U32 -> @+fill:F32 -> @+within:{U32.is_le(word, 1048576) == True{} : Bool} -> {0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/allocation_spec.storage_length(0x1689e5deb278c16abd3bd45eac101ef3/src/storage/main.new(word, fill)) == Some{U32.to_nat(word)} : Maybe<&2, Nat>}
law storage_new_zero openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 14 · raw
@+fill:F32 -> {0x1689e5deb278c16abd3bd45eac101ef3/src/storage/main.new(0, fill) == Done{0x1689e5deb278c16abd3bd45eac101ef3/src/storage/main.Empty{}} : Result<&2, &1, 0x1689e5deb278c16abd3bd45eac101ef3/src/storage/main.Error, 0x1689e5deb278c16abd3bd45eac101ef3/src/storage/main.Storage>}
law storage_new_depth_bounds openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 18 · raw
@+word:U32 -> @+within:{U32.is_le(word, 1048576) == True{} : Bool} -> @positive:{U32.is_lt(0, word) == True{} : Bool} -> {0x1689e5deb278c16abd3bd45eac101ef3/src/storage/main.bounds(Pair.fst(Nat, Nat, 0x1689e5deb278c16abd3bd45eac101ef3/src/storage/main.depth_seek(20n, U32.to_nat(word), 0n, 1n, Nat.is_le(U32.to_nat(word), 1n))), U32.to_nat(word)) == True{} : Bool}
law storage_seek_bounds openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 24 · raw
@+fuel:Nat -> @+length:Nat -> @+depth:Nat -> @+capacity:Nat -> @done:Bool -> @+decided:{done == Nat.is_le(length, capacity) : Bool} -> @+sized:{capacity == 0x1689e5deb278c16abd3bd45eac101ef3/src/storage/model.capacity(depth) : Nat} -> @+left:{Nat.add(fuel, depth) == 20n : Nat} -> @+limit:{Nat.is_le(length, 0x1689e5deb278c16abd3bd45eac101ef3/src/storage/model.capacity(20n)) == True{} : Bool} -> @+positive:{Nat.is_lt(0n, length) == True{} : Bool} -> {0x1689e5deb278c16abd3bd45eac101ef3/src/storage/main.bounds(Pair.fst(Nat, Nat, 0x1689e5deb278c16abd3bd45eac101ef3/src/storage/main.depth_seek(fuel, length, depth, capacity, done)), length) == True{} : Bool}
law core_new_complete openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 37 · raw
@+shape:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @+fill:F32 -> {0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/allocation_spec.tensor_length(shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.logical_numel(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape))} : Maybe<&2, Nat>}
law core_new_done openits proof in LAWS.bend does not pass the checker (open laws/TODOs)source · line 42 · raw
@+shape:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @+fill:F32 -> 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/allocation_spec.TensorDone<shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)>