law storage_new_complete
import bendtorch-core@0.1.0.0/src/tensor/allocation_LAWS.bend as AllocationLAWSimport Base
import bendtorch-core@0.1.0.0/src/storage/main.bend as Storage
import bendtorch-core@0.1.0.0/src/tensor/allocation_spec.bend as Allocation
8law storage_new_complete:
9 for +word: U32
10 for +fill: F32
11 for +within: {U32.is_le(word, 1048576) == True{} : Bool}
12 {Allocation.storage_length(Storage.new(word, fill)) == Some{U32.to_nat(word)} : Maybe<&2, Nat>}
Uses (10)
Used by (0)
No other definition uses this definition.