proofs/tensor_tiled_certificate.bend checks
raw source on the hub · import stelliferous@0.0.4.0/proofs/tensor_tiled_certificate.bend as Tensor_tiled_certificate
Certificates of the cell conversions: every read hands the source array back unchanged, so the output keeps the depth it was allocated with.
13 imports
import Base import ../kernel_tile.bend as Tile import ../storage_buffer.bend as Storage import ../traversal_blocks.bend as Blocks import ../tensor_tiled_cells.bend as Cells import ./storage_tree_model.bend as Tree import ./storage_certificate.bend as Certificate import ./storage_witness.bend as Witness import ./traversal_witness.bend as TraversalWitness import ./traversal_certificate.bend as TraversalCertificate import ./traversal_blocks_certificate.bend as BlocksCertificate import ./kernel_tile_witness.bend as TileWitness import ../traversal_array.bend as Traversal
Types
type Leaf source · line 84 · raw
Data
Leaf@blocks:U32 -> @context:0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.Tiling -> Leaf
type Outer source · line 100 · raw
Data
The cells of one piece with the groups outermost.
Outer@count:U32 -> @context:0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.Outer -> Outer
Definitions
def when_sample source · line 17 · raw
@-input:Array<F32> -> @valid:Bool -> @+index:U32 -> @evidence:0xa2af805348d03b11eb853850859654f6/proofs/storage_witness.ArrayWitness<F32, input> -> 0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.Sample<Array<F32>, F32, input, 0xa2af805348d03b11eb853850859654f6/storage_buffer.read_when(F32, 0.0, valid, input, index)>
def spot_sample source · line 23 · raw
@-input:Array<F32> -> @spot:0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.Spot -> @evidence:0xa2af805348d03b11eb853850859654f6/proofs/storage_witness.ArrayWitness<F32, input> -> 0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.Sample<Array<F32>, F32, input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.read_spot(input, spot)>
def lanes_sample source · line 28 · raw
@-input:Array<F32> -> @+spot:0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.Spot -> @r0:0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.Sample<Array<F32>, F32, input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.read_spot(input, spot)> -> @r1:0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.Sample<Array<F32>, F32, input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.read_spot(input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(spot))> -> @r2:0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.Sample<Array<F32>, F32, input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.read_spot(input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(spot)))> -> @r3:0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.Sample<Array<F32>, F32, input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.read_spot(input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(spot))))> -> @r4:0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.Sample<Array<F32>, F32, input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.read_spot(input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(spot)))))> -> @r5:0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.Sample<Array<F32>, F32, input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.read_spot(input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(spot))))))> -> @r6:0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.Sample<Array<F32>, F32, input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.read_spot(input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(spot)))))))> -> @r7:0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.Sample<Array<F32>, F32, input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.read_spot(input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.next(spot))))))))> -> 0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.Sample<Array<F32>, 0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.lane1(spot, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.read_spot(input, spot))>
def cell_sample source · line 58 · raw
@-input:Array<F32> -> @run:0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.Run -> @position:U32 -> @witness:0xa2af805348d03b11eb853850859654f6/proofs/storage_witness.ArrayWitness<F32, input> -> 0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.Sample<Array<F32>, 0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.cell_read(input, run, position)>
def outer_sample source · line 71 · raw
@-input:Array<F32> -> @context:0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.Outer -> @position:U32 -> @witness:0xa2af805348d03b11eb853850859654f6/proofs/storage_witness.ArrayWitness<F32, input> -> 0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.Sample<Array<F32>, 0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, input, 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.outer_read(input, context, position)>
def tiled_cells source · line 87 · raw
@leaf:Leaf -> @input:Array<F32> -> @output:Array<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> Pair(Array<F32>, Array<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>)
def tiled_preserves source · line 91 · raw
@+depth:Nat -> @leaf:Leaf -> @-input:Array<F32> -> @-output:Array<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @input_certificate:0xa2af805348d03b11eb853850859654f6/proofs/storage_certificate.Certificate<F32, input> -> @equation:{output == 0xa2af805348d03b11eb853850859654f6/proofs/storage_tree_model.pack(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, 0xa2af805348d03b11eb853850859654f6/proofs/storage_certificate.normalized(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, depth, 0xa2af805348d03b11eb853850859654f6/proofs/storage_tree_model.reflect(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, output))) : Array<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>} -> 0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.ResultEvidence<Array<F32>, 0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, input, depth, tiled_cells(leaf, input, output)>
def outer_cells source · line 103 · raw
@leaf:Outer -> @input:Array<F32> -> @output:Array<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> Pair(Array<F32>, Array<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>)
def outer_preserves source · line 107 · raw
@+depth:Nat -> @leaf:Outer -> @-input:Array<F32> -> @-output:Array<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @input_certificate:0xa2af805348d03b11eb853850859654f6/proofs/storage_certificate.Certificate<F32, input> -> @equation:{output == 0xa2af805348d03b11eb853850859654f6/proofs/storage_tree_model.pack(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, 0xa2af805348d03b11eb853850859654f6/proofs/storage_certificate.normalized(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, depth, 0xa2af805348d03b11eb853850859654f6/proofs/storage_tree_model.reflect(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, output))) : Array<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>} -> 0xa2af805348d03b11eb853850859654f6/proofs/traversal_witness.ResultEvidence<Array<F32>, 0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, input, depth, outer_cells(leaf, input, output)>
def tiled_certificates source · line 116 · raw
@+blocks:U32 -> @+context:0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.Tiling -> @-input:Array<F32> -> @-output:Array<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @input_certificate:0xa2af805348d03b11eb853850859654f6/proofs/storage_certificate.Certificate<F32, input> -> @output_certificate:0xa2af805348d03b11eb853850859654f6/proofs/storage_certificate.Certificate<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, output> -> 0xa2af805348d03b11eb853850859654f6/proofs/traversal_certificate.Certificates<Array<F32>, 0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, 0xa2af805348d03b11eb853850859654f6/proofs/storage_certificate.family(F32), 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.tiled(blocks, context, input, output)>
def outermost_certificates source · line 123 · raw
@+count:U32 -> @+context:0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.Outer -> @-input:Array<F32> -> @-output:Array<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @input_certificate:0xa2af805348d03b11eb853850859654f6/proofs/storage_certificate.Certificate<F32, input> -> @output_certificate:0xa2af805348d03b11eb853850859654f6/proofs/storage_certificate.Certificate<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, output> -> 0xa2af805348d03b11eb853850859654f6/proofs/traversal_certificate.Certificates<Array<F32>, 0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8, 0xa2af805348d03b11eb853850859654f6/proofs/storage_certificate.family(F32), 0xa2af805348d03b11eb853850859654f6/tensor_tiled_cells.tiled_outermost(count, context, input, output)>