~/bend-docscommunity

src/shape/flat.bend checks

raw source on the hub · import bendtorch-core@0.1.0.0/src/shape/flat.bend as Flat

5 imports
import Base
import ./core.bend as Shape
import ./nat_proofs.bend as Nats
import ./coordinate_proofs.bend as Coordinates
import ./projection_proofs.bend as Projection

Definitions

def hollow source · line 7 · raw

@+output:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @+value:Nat -> @zero:{0n == 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.numel(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.extents(output)) : Nat} -> @bound:{True{} == Nat.is_lt(value, 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.elements(output)) : Bool} -> Empty

def left_bound source · line 12 · raw

@+plan:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.BroadcastPlan -> @-rows:List<&2, 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Row> -> @exact:{rows == 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.index_table(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.extents(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.left_shape(plan)), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.extents(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.right_shape(plan)), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.extents(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.output_shape(plan))) : List<&2, 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Row>} -> @+value:Nat -> @bound:{True{} == Nat.is_lt(value, 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.elements(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.output_shape(plan))) : Bool} -> {True{} == Nat.is_lt(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.walk_left(rows, value), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.elements(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.left_shape(plan))) : Bool}

def project_left_index source · line 28 · raw

@+plan:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.BroadcastPlan -> @map:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Index<0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.extents(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.left_shape(plan)), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.extents(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.right_shape(plan)), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.extents(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.output_shape(plan))> -> @index:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.FlatIndex<0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.output_shape(plan)> -> 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.FlatIndex<0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.left_shape(plan)>

def right_bound source · line 35 · raw

@+plan:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.BroadcastPlan -> @-rows:List<&2, 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Row> -> @exact:{rows == 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.index_table(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.extents(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.left_shape(plan)), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.extents(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.right_shape(plan)), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.extents(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.output_shape(plan))) : List<&2, 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Row>} -> @+value:Nat -> @bound:{True{} == Nat.is_lt(value, 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.elements(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.output_shape(plan))) : Bool} -> {True{} == Nat.is_lt(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.walk_right(rows, value), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.elements(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.right_shape(plan))) : Bool}

def project_right_index source · line 51 · raw

@+plan:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.BroadcastPlan -> @map:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Index<0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.extents(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.left_shape(plan)), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.extents(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.right_shape(plan)), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.extents(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.output_shape(plan))> -> @index:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.FlatIndex<0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.output_shape(plan)> -> 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.FlatIndex<0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.right_shape(plan)>