type Sized
import stelliferous@0.0.2.0/proofs/storage_buffer_model.bend as StorageBufferModelimport Base
import stelliferous@0.0.2.0/proofs/storage_tree_model.bend as Tree
81# Logical length and the native machine depth are independent of the stored
82# element values. Allocation establishes them; content-preserving operations
83# carry them with the same owner.
84type Sized<-Element: Data,-model: Model<Element>> is Data:
85 Sized{depth_ok: {Nat.is_le(depth(~Element,model),30n) == True{} : Bool},
86 room: {Nat.is_le(length(~Element,model),U32.to_nat(Tree.capacity(Element,tree(~Element,model)))) == True{} : Bool}}
Uses (8)
Used by (5)
- stelliferous@0.0.2.0/proofs/storage_buffer_model:ready_packed
- stelliferous@0.0.2.0/proofs/storage_buffer_model:content_ready
- stelliferous@0.0.2.0/proofs/storage_buffer_model:fresh_ready
- stelliferous@0.0.2.0/proofs/storage_buffer_model:ready_content
- stelliferous@0.0.2.0/proofs/storage_buffer_model:ready_observed