~/bend-docscommunity

src/tensor/contracts/product_parallel_proof.bend source

src/tensor/contracts/product_parallel_proof.bend on the hub · documented module

import Baseimport ../../shape/core.bend as Shapeimport ../../storage/model.bend as Modelimport ../../storage/main.bend as Storageimport ../../storage/LAWS.bend as StorageLawsimport ../../storage/refinement.bend as Refinementimport ../../storage/arith.bend as Arithimport ../core.bend as Coreimport ../lifecycle.bend as Lifecycleimport ../matmul.bend as Matriximport ../elementwise.bend as Elementwiseimport ../parallel.bend as Parallelimport ../dot_fold.bend as DotFoldimport ../word_conversion.bend as Conversionimport ../read_contract.bend as Readsimport ../from_values_contract.bend as FromValuesimport ../matrix_index_proof.bend as MatrixIndeximport ./replayed.bend as Replayedimport ./pointwise_proof.bend as PointwiseProofimport ./dot_proof.bend as DotProofimport ./LAWS.bend as Lawsimport ./binary_storage_proof.bend as Ownedimport ./binary_build_proof.bend as Buildimport ../../shape/index_proofs.bend as Indeximport ../../shape/nat_proofs.bend as Natsimport ../../storage/array.bend as ArrayCoreimport ../../storage/api.bend as Apiimport ../../storage/certificates.bend as Certificatesimport ../../storage/route.bend as Route# The parallel product over replayed inputs, for operands laid out in any# orders lo and ro: the proof of the parallel matmul over replayed inputs# with each operand read at `Matrix.read_index`. Its output is the replayed# storage that writes, in index order, the word `product_ordered` names at# each cell.# The extents of an operand of `outers` rows (or columns) and `inner` terms# laid out in `order`.def Fits(+order: Matrix.Order, +inner: Nat, +outers: Nat, -shape: Shape.Shape) -> Data:  match order:    case Matrix.Kept{}:      {Shape.extents(shape) == [outers, inner] : List<&2, Nat>}    case Matrix.Swapped{}:      {Shape.extents(shape) == [inner, outers] : List<&2, Nat>}# Factor k of output row (or column) `outer` lies inside its operand.def read_below(+order: Matrix.Order, +inner: Nat, +outers: Nat, +outer: Nat,  outer_below: {Nat.is_lt(outer, outers) == True{} : Bool}, +shape: Shape.Shape, fits: Fits(order, inner, outers, shape),  +k: Nat, below: {Nat.is_lt(k, inner) == True{} : Bool}) ->  {Nat.is_lt(Matrix.read_offset(order, inner, outers, outer, k), Shape.logical_numel(Shape.dimensions(shape))) == True{} : Bool}:  match order:    case Matrix.Kept{}:      MatrixIndex.left_below(outers, inner, outer, outer_below, shape, fits, k, below)    case Matrix.Swapped{}:      MatrixIndex.right_below(inner, outers, outer, outer_below, shape, fits, k, below)def cell_word(+lo: Matrix.Order, +ro: Matrix.Order, +inner: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>,  +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +position: Nat) -> F32:  DotFold.dot_fold(Laws.product_factors(Matrix.row_of(columns, position), Matrix.column_of(columns, position), lo, ro, inner, rows, columns,    left, left_fill, left_ops, right, right_fill, right_ops, inner), 0.0)def writes(+lo: Matrix.Order, +ro: Matrix.Order, +inner: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>,  +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +count: Nat) -> List<&2, StorageLaws.Op>:  match count:    case 0n:      Nil{}    case 1n+previous:      Replayed.snoc(writes(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, previous),        StorageLaws.Write{U32.from_nat(previous), cell_word(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, previous)})def writes_value(+lo: Matrix.Order, +ro: Matrix.Order, +inner: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>,  +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +output: Shape.Shape, +count: Nat, +index: U32,  below: {Nat.is_lt(U32.to_nat(index), count) == True{} : Bool},  +room: {Nat.is_le(count, Shape.logical_numel(Shape.dimensions(output))) == True{} : Bool}) ->  {Replayed.value(output, 0.0, writes(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count), index) ==    cell_word(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, U32.to_nat(index)) : F32}:  match count:    case 0n:      Empty.absurd({Replayed.value(output, 0.0, Nil{}, index) ==        cell_word(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, U32.to_nat(index)) : F32},        Arith.lt_zero(U32.to_nat(index), below))    case 1n+previous:      PointwiseProof.write_split(output, writes(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, previous),        previous, cell_word(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, previous), index,        cell_word(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, U32.to_nat(index)),        below, room,        at => Equal.cong(Nat, F32, position => cell_word(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, position),          previous, U32.to_nat(index), Equal.sym(Nat, U32.to_nat(index), previous, at)),        earlier => writes_value(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, output, previous, index, earlier,          Conversion.le_predecessor(previous, Shape.logical_numel(Shape.dimensions(output)), room)),        Shape.bool_case(Nat.is_eq(U32.to_nat(index), previous)))def lt_not_eq(+a: Nat, +b: Nat, below: {Nat.is_lt(a, b) == True{} : Bool}) -> {Nat.is_eq(a, b) == False{} : Bool}:  match a b:    case 0n 0n:      Empty.absurd({Nat.is_eq(0n, 0n) == False{} : Bool}, Arith.clash(below))    case 0n 1n+q:      {==}    case 1n+p 0n:      {==}    case 1n+p 1n+q:      lt_not_eq(p, q, below)# A write at an index below `index` leaves the word at `index`.def write_skip(+shape: Shape.Shape, +previous: Nat, +index: U32, +word: F32, +old: F32,  +room: {Nat.is_lt(previous, Shape.logical_numel(Shape.dimensions(shape))) == True{} : Bool},  later: {Nat.is_lt(previous, U32.to_nat(index)) == True{} : Bool}) ->  {StorageLaws.latest(U32.to_nat(Shape.count(shape)), StorageLaws.Write{U32.from_nat(previous), word}, index, old) == old : F32}:  %Equal.sym(Nat, U32.to_nat(U32.from_nat(previous)), previous, MatrixIndex.word_exact(previous, shape, room)) :    {Bool.pick(F32, Bool.and(Nat.is_lt(_, U32.to_nat(Shape.count(shape))), Nat.is_eq(_, U32.to_nat(index))), word, old) == old : F32}  %Equal.sym(Bool, Nat.is_lt(previous, U32.to_nat(Shape.count(shape))), True{}, PointwiseProof.lt_count(previous, shape, room)) :    {Bool.pick(F32, Bool.and(_, Nat.is_eq(previous, U32.to_nat(index))), word, old) == old : F32}  %Equal.sym(Bool, Nat.is_eq(previous, U32.to_nat(index)), False{}, lt_not_eq(previous, U32.to_nat(index), later)) :    {Bool.pick(F32, _, word, old) == old : F32}  {==}# At or above the count, the writes leave the +0.0 fill.def writes_zero(+lo: Matrix.Order, +ro: Matrix.Order, +inner: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>,  +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +output: Shape.Shape, +count: Nat, +index: U32,  +above: {Nat.is_le(count, U32.to_nat(index)) == True{} : Bool},  +room: {Nat.is_le(count, Shape.logical_numel(Shape.dimensions(output))) == True{} : Bool}) ->  {Replayed.value(output, 0.0, writes(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count), index) == 0.0 : F32}:  match count:    case 0n:      {==}    case 1n+previous:      +history = writes(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, previous)      +word = cell_word(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, previous)      +op = {StorageLaws.Write{U32.from_nat(previous), word} : StorageLaws.Op}      Equal.trans(F32, Replayed.value(output, 0.0, Replayed.snoc(history, op), index),        StorageLaws.latest(U32.to_nat(Shape.count(output)), op, index, Replayed.value(output, 0.0, history, index)), 0.0,        Replayed.expected_snoc(history, op, U32.to_nat(Shape.count(output)), index, 0.0),        Equal.trans(F32, StorageLaws.latest(U32.to_nat(Shape.count(output)), op, index, Replayed.value(output, 0.0, history, index)),          Replayed.value(output, 0.0, history, index), 0.0,          write_skip(output, previous, index, word, Replayed.value(output, 0.0, history, index),            Conversion.le_successor_lt(previous, Shape.logical_numel(Shape.dimensions(output)), room),            Conversion.le_successor_lt(previous, U32.to_nat(index), above)),          writes_zero(lo, ro, inner, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, output, previous, index,            Conversion.le_predecessor(previous, U32.to_nat(index), above),            Conversion.le_predecessor(previous, Shape.logical_numel(Shape.dimensions(output)), room))))def lt_zero_false(+x: Nat) -> {Nat.is_lt(x, 0n) == False{} : Bool}:  match x:    case 0n:      {==}    case 1n+p:      {==}def lt_self_succ(+k: Nat) -> {Nat.is_lt(k, 1n+k) == True{} : Bool}:  match k:    case 0n:      {==}    case 1n+p:      lt_self_succ(p)def lt_succ_right(+b: Nat, +k: Nat, h: {Nat.is_lt(b, k) == True{} : Bool}) -> {Nat.is_lt(b, 1n+k) == True{} : Bool}:  match b k:    case 0n _:      {==}    case 1n+p 0n:      Empty.absurd({Nat.is_lt(1n+p, 1n) == True{} : Bool}, Arith.clash(h))    case 1n+p 1n+q:      lt_succ_right(p, q, h)# k < b gives b < 1 + k false.def above_false(+k: Nat, +b: Nat, h: {Nat.is_lt(k, b) == True{} : Bool}) -> {Nat.is_lt(b, 1n+k) == False{} : Bool}:  match k b:    case 0n 0n:      Empty.absurd({Nat.is_lt(0n, 1n) == False{} : Bool}, Arith.clash(h))    case 0n 1n+q:      lt_zero_false(q)    case 1n+p 0n:      Empty.absurd({Nat.is_lt(0n, 1n+(1n+p)) == False{} : Bool}, Arith.clash(h))    case 1n+p 1n+q:      above_false(p, q, h)def lt_asym(+k: Nat, +b: Nat, h: {Nat.is_lt(k, b) == True{} : Bool}) -> {Nat.is_lt(b, k) == False{} : Bool}:  match k b:    case 0n 0n:      {==}    case 0n 1n+q:      {==}    case 1n+p 0n:      Empty.absurd({Nat.is_lt(0n, 1n+p) == False{} : Bool}, Arith.clash(h))    case 1n+p 1n+q:      lt_asym(p, q, h)# 1 + b <= k gives b < k.def below_true(+b: Nat, +k: Nat, h: {Nat.is_le(1n+b, k) == True{} : Bool}) -> {Nat.is_lt(b, k) == True{} : Bool}:  match b k:    case 0n 0n:      Empty.absurd({Nat.is_lt(0n, 0n) == True{} : Bool}, Arith.clash(h))    case 0n 1n+q:      {==}    case 1n+p 0n:      Empty.absurd({Nat.is_lt(1n+p, 0n) == True{} : Bool}, Arith.clash(h))    case 1n+p 1n+q:      below_true(p, q, h)def lt_add_right(+a: Nat, +c: Nat, +b: Nat, h: {Nat.is_lt(a, c) == True{} : Bool}) ->  {Nat.is_lt(Nat.add(a, b), Nat.add(c, b)) == True{} : Bool}:  match a c:    case 0n 0n:      Empty.absurd({Nat.is_lt(b, b) == True{} : Bool}, Arith.clash(h))    case 0n 1n+q:      Arith.lt_succ(b, Nat.add(q, b), Api.le_add_left(q, b))    case 1n+p 0n:      Empty.absurd({Nat.is_lt(1n+Nat.add(p, b), b) == True{} : Bool}, Arith.clash(h))    case 1n+p 1n+q:      lt_add_right(p, q, b, h)def le_add_cong(+c: Nat, +x: Nat, +y: Nat, h: {Nat.is_le(x, y) == True{} : Bool}) ->  {Nat.is_le(Nat.add(c, x), Nat.add(c, y)) == True{} : Bool}:  match c:    case 0n:      h    case 1n+r:      le_add_cong(r, x, y, h)def le_trans(+a: Nat, +b: Nat, +c: Nat, ab: {Nat.is_le(a, b) == True{} : Bool}, bc: {Nat.is_le(b, c) == True{} : Bool}) ->  {Nat.is_le(a, c) == True{} : Bool}:  match a b c:    case 0n _ _:      Arith.le_zero(c)    case 1n+p 0n _:      Empty.absurd({Nat.is_le(1n+p, c) == True{} : Bool}, Arith.clash(ab))    case 1n+p 1n+q 0n:      Empty.absurd({Nat.is_le(1n+p, 0n) == True{} : Bool}, Arith.clash(bc))    case 1n+p 1n+q 1n+r:      le_trans(p, q, r, ab, bc)def position_step(+capacity: Nat, +offset: Nat, +base: Nat) ->  {Nat.add(offset, Nat.add(capacity, base)) == Nat.add(Nat.add(capacity, offset), base) : Nat}:  Equal.trans(Nat, Nat.add(offset, Nat.add(capacity, base)), Nat.add(capacity, Nat.add(offset, base)), Nat.add(Nat.add(capacity, offset), base),    Nats.add_swap(offset, capacity, base), Index.add_assoc(capacity, offset, base))def add_zero_right(+number: Nat) -> {Nat.add(number, 0n) == number : Nat}:  match number:    case 0n:      {==}    case 1n+p:      Equal.cong(Nat, Nat, x => 1n+x, Nat.add(p, 0n), p, add_zero_right(p))# A word index below the storage length is the offset of its own route.def output_position(+depth: Nat, +length: Nat, +index: U32, +valid: {Storage.bounds(depth, length) == True{} : Bool},  +inside: {Nat.is_lt(U32.to_nat(index), length) == True{} : Bool}) ->  {Nat.add(Model.offset(depth, Refinement.route(depth, index)), 0n) == U32.to_nat(index) : Nat}:  +rest = Arith.and_right(Nat.is_le(depth, 20n), Bool.and(Nat.is_lt(0n, length), Nat.is_le(length, Model.capacity(depth))), valid)  Equal.trans(Nat, Nat.add(Model.offset(depth, Refinement.route(depth, index)), 0n), Model.offset(depth, Refinement.route(depth, index)), U32.to_nat(index),    add_zero_right(Model.offset(depth, Refinement.route(depth, index))),    Equal.sym(Nat, U32.to_nat(index), Model.offset(depth, Refinement.route(depth, index)),      Route.route_offset(depth, index,        Arith.and_left(Nat.is_le(depth, 20n), Bool.and(Nat.is_lt(0n, length), Nat.is_le(length, Model.capacity(depth))), valid),        Arith.lt_le_trans(U32.to_nat(index), length, Model.capacity(depth), inside,          Arith.and_right(Nat.is_lt(0n, length), Nat.is_le(length, Model.capacity(depth)), rest)))))# The output spec: cell `base` of the tree holds the cell's word below# `count` and +0.0 above it.def out_leaf(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +position: Nat, inside: Bool) -> F32:  match inside:    case False{}:      0.0    case True{}:      cell_word(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, position)def out_spec(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +count: Nat, +depth: Nat, +base: Nat) -> Array<F32>:  match depth:    case 0n:      ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base, Nat.is_lt(base, count))}    case 1n+inner:      ANode{out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, inner, base), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, inner, Nat.add(Model.capacity(inner), base))}def out_balanced(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +count: Nat, +depth: Nat, +base: Nat) -> Model.Balanced(F32, depth, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, depth, base)):  match depth:    case 0n:      Unit{}    case 1n+inner:      (out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, inner, base), out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, inner, Nat.add(Model.capacity(inner), base)))def new_spec(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +depth: Nat, +base: Nat) -> {Array.new(F32, depth, 0.0) == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 0n, depth, base) : Array<F32>}:  match depth:    case 0n:      %Equal.sym(Bool, Nat.is_lt(base, 0n), False{}, lt_zero_false(base)) :        {ALeaf{0.0} == ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base, _)} : Array<F32>}      {==}    case 1n+inner:      %Equal.sym(Array<F32>, Array.new(F32, inner, 0.0), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 0n, inner, base), new_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, inner, base)) :        {ANode{_, Array.new(F32, inner, 0.0)} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 0n, 1n+inner, base) : Array<F32>}      %Equal.sym(Array<F32>, Array.new(F32, inner, 0.0), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 0n, inner, Nat.add(Model.capacity(inner), base)),        new_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, inner, Nat.add(Model.capacity(inner), base))) :        {ANode{out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 0n, inner, base), _} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 0n, 1n+inner, base) : Array<F32>}      {==}# A subtree whose positions all lie above k is the same for k and 1 + k.def above(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +k: Nat, +depth: Nat, +b: Nat, +h: {Nat.is_lt(k, b) == True{} : Bool}) ->  {out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, depth, b) == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, depth, b) : Array<F32>}:  match depth:    case 0n:      %Equal.sym(Bool, Nat.is_lt(b, k), False{}, lt_asym(k, b, h)) :        {ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, b, _)} == ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, b, Nat.is_lt(b, 1n+k))} : Array<F32>}      %Equal.sym(Bool, Nat.is_lt(b, 1n+k), False{}, above_false(k, b, h)) :        {ALeaf{0.0} == ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, b, _)} : Array<F32>}      {==}    case 1n+inner:      +high = Nat.add(Model.capacity(inner), b)      %Equal.sym(Array<F32>, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, b), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, inner, b), above(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, b, h)) :        {ANode{_, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, high)} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, 1n+inner, b) : Array<F32>}      %Equal.sym(Array<F32>, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, high), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, inner, high),        above(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, high, Arith.lt_le_trans(k, b, high, h, Api.le_add_left(Model.capacity(inner), b)))) :        {ANode{out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, inner, b), _} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, 1n+inner, b) : Array<F32>}      {==}# A subtree whose positions all lie below k is the same for k and 1 + k.def below(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +k: Nat, +depth: Nat, +b: Nat, +h: {Nat.is_le(Nat.add(Model.capacity(depth), b), k) == True{} : Bool}) ->  {out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, depth, b) == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, depth, b) : Array<F32>}:  match depth:    case 0n:      +lower = below_true(b, k, h)      %Equal.sym(Bool, Nat.is_lt(b, k), True{}, lower) :        {ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, b, _)} == ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, b, Nat.is_lt(b, 1n+k))} : Array<F32>}      %Equal.sym(Bool, Nat.is_lt(b, 1n+k), True{}, lt_succ_right(b, k, lower)) :        {ALeaf{cell_word(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, b)} == ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, b, _)} : Array<F32>}      {==}    case 1n+inner:      +c = Model.capacity(inner)      +high = Nat.add(c, b)      +nested = Equal.trans(Bool, Nat.is_le(Nat.add(c, high), k), Nat.is_le(Nat.add(Nat.add(c, c), b), k), True{},        Equal.cong(Nat, Bool, x => Nat.is_le(x, k), Nat.add(c, high), Nat.add(Nat.add(c, c), b), Index.add_assoc(c, c, b)), h)      +low_h = le_trans(high, Nat.add(c, high), k, le_add_cong(c, b, high, Api.le_add_left(c, b)), nested)      %Equal.sym(Array<F32>, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, b), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, inner, b), below(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, b, low_h)) :        {ANode{_, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, high)} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, 1n+inner, b) : Array<F32>}      %Equal.sym(Array<F32>, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, high), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, inner, high), below(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, high, nested)) :        {ANode{out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, inner, b), _} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, 1n+inner, b) : Array<F32>}      {==}# Writing cell k at the path whose position is k turns the spec for k into# the spec for 1 + k.def write_spec(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +k: Nat, +depth: Nat, +base: Nat, +path: Model.Path(depth),  +h: {Nat.add(Model.offset(depth, path), base) == k : Nat}) ->  {ArrayCore.write_path(F32, depth, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, depth, base), path, cell_word(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k)) == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, depth, base) : Array<F32>}:  match depth:    case 0n:      %h : {ALeaf{cell_word(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, _)} == ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base, Nat.is_lt(base, 1n+_))} : Array<F32>}      %Equal.sym(Bool, Nat.is_lt(base, 1n+base), True{}, lt_self_succ(base)) :        {ALeaf{cell_word(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base)} == ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base, _)} : Array<F32>}      {==}    case 1n+inner:      Model.Step{+bit, +rest} = path      match bit:        case False{}:          +c = Model.capacity(inner)          +high = Nat.add(c, base)          +inside = Equal.trans(Bool, Nat.is_lt(k, high), Nat.is_lt(Nat.add(Model.offset(inner, rest), base), high), True{},            Equal.cong(Nat, Bool, x => Nat.is_lt(x, high), k, Nat.add(Model.offset(inner, rest), base),              Equal.sym(Nat, Nat.add(Model.offset(inner, rest), base), k, h)),            lt_add_right(Model.offset(inner, rest), c, base, Api.offset_lt(inner, rest)))          %Equal.sym(Array<F32>, ArrayCore.write_path(F32, inner, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, base), rest, cell_word(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k)),            out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, inner, base), write_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, base, rest, h)) :            {ANode{_, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, high)} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, 1n+inner, base) : Array<F32>}          %Equal.sym(Array<F32>, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, high), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, inner, high), above(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, high, inside)) :            {ANode{out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, inner, base), _} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, 1n+inner, base) : Array<F32>}          {==}        case True{}:          +c = Model.capacity(inner)          +high = Nat.add(c, base)          +off = Model.offset(inner, rest)          +lower = Equal.trans(Bool, Nat.is_le(high, k), Nat.is_le(high, Nat.add(c, Nat.add(off, base))), True{},            Equal.cong(Nat, Bool, x => Nat.is_le(high, x), k, Nat.add(c, Nat.add(off, base)),              Equal.trans(Nat, k, Nat.add(Nat.add(c, off), base), Nat.add(c, Nat.add(off, base)),                Equal.sym(Nat, Nat.add(Nat.add(c, off), base), k, h),                Equal.sym(Nat, Nat.add(c, Nat.add(off, base)), Nat.add(Nat.add(c, off), base), Index.add_assoc(c, off, base)))),            le_add_cong(c, base, Nat.add(off, base), Api.le_add_left(off, base)))          +shifted = Equal.trans(Nat, Nat.add(off, high), Nat.add(Nat.add(c, off), base), k, position_step(c, off, base), h)          %Equal.sym(Array<F32>, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, base), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, inner, base), below(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, base, lower)) :            {ANode{_, ArrayCore.write_path(F32, inner, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, high), rest, cell_word(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k))} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, 1n+inner, base) : Array<F32>}          %Equal.sym(Array<F32>, ArrayCore.write_path(F32, inner, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, high), rest, cell_word(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k)),            out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, inner, high), write_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, inner, high, rest, shifted)) :            {ANode{out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, inner, base), _} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+k, 1n+inner, base) : Array<F32>}          {==}# The family history, replayed on the owned storage that `created` makes,# is the owned storage that holds the output spec.def chain(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +d: Nat, +n: Nat, -f: {Storage.bounds(d, n) == True{} : Bool}, +fits: {Storage.bounds(d, n) == True{} : Bool},  +limit: U32, +n_limit: {Nat.is_le(n, U32.to_nat(limit)) == True{} : Bool},  +k: Nat, +room: {Nat.is_le(k, n) == True{} : Bool}) ->  {StorageLaws.replay(writes(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k), Storage.Owned{d, n, Array.new(F32, d, 0.0), ArrayCore.new_balanced(F32, d, 0.0), f}) == Storage.Owned{d, n, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, d, 0n), out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k, d, 0n), f} : Storage.Storage}:  match k:    case 0n:      Owned.owned_eq(d, n, Array.new(F32, d, 0.0), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 0n, d, 0n), new_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, d, 0n), ArrayCore.new_balanced(F32, d, 0.0), f)(        out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 0n, d, 0n))    case 1n+j:      +index = U32.from_nat(j)      +value = cell_word(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j)      +below_n = Conversion.le_successor_lt(j, n, room)      +exact = Conversion.natural_word_exact(j, limit, le_trans(j, n, U32.to_nat(limit), Conversion.lt_le(j, n, below_n), n_limit))      +inside = Equal.trans(Bool, Nat.is_lt(U32.to_nat(index), n), Nat.is_lt(j, n), True{},        Equal.cong(Nat, Bool, x => Nat.is_lt(x, n), U32.to_nat(index), j, exact), below_n)      +offset = Equal.trans(Nat, Nat.add(Model.offset(d, Refinement.route(d, index)), 0n), U32.to_nat(index), j,        output_position(d, n, index, fits, inside), exact)      +written = Equal.trans(Array<F32>, Array.set(F32, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), index, value), ArrayCore.write_path(F32, d, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), Refinement.route(d, index), value),        out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+j, d, 0n), Refinement.law_set_refines(F32, d, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), index, value, out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n)),        write_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n, Refinement.route(d, index), offset))      Equal.trans(Storage.Storage, StorageLaws.replay(writes(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+j), Storage.Owned{d, n, Array.new(F32, d, 0.0), ArrayCore.new_balanced(F32, d, 0.0), f}),        StorageLaws.step(StorageLaws.replay(writes(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j), Storage.Owned{d, n, Array.new(F32, d, 0.0), ArrayCore.new_balanced(F32, d, 0.0), f}), StorageLaws.Write{index, value}),        Storage.Owned{d, n, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+j, d, 0n), out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+j, d, 0n), f},        FromValues.replay_snoc(writes(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j), StorageLaws.Write{index, value}, Storage.Owned{d, n, Array.new(F32, d, 0.0), ArrayCore.new_balanced(F32, d, 0.0), f}),        %Equal.sym(Storage.Storage, StorageLaws.replay(writes(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j), Storage.Owned{d, n, Array.new(F32, d, 0.0), ArrayCore.new_balanced(F32, d, 0.0), f}), Storage.Owned{d, n, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), f},          chain(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, d, n, f, fits, limit, n_limit, j, Conversion.le_predecessor(j, n, room))) :          {StorageLaws.step(_, StorageLaws.Write{index, value}) == Storage.Owned{d, n, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+j, d, 0n), out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+j, d, 0n), f} : Storage.Storage}        %Equal.sym(Storage.Storage & Result<&2, &2, Storage.Error, Unit>,          Storage.set_checked(d, n, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), index, value, Nat.is_lt(U32.to_nat(index), n), {==}, out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), f),          (Storage.Owned{d, n, Array.set(F32, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), index, value),            Certificates.set_result(F32, d, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), index, value, Array.set(F32, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), index, value), {==}, out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n)), f}, Done{Unit{}}),          Api.set_checked_hit(d, n, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), index, value, Nat.is_lt(U32.to_nat(index), n), {==}, out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), f,            Equal.sym(Bool, Nat.is_lt(U32.to_nat(index), n), True{}, inside), fits, inside)) :          {StorageLaws.owner(Result<&2, &2, Storage.Error, Unit>, _) == Storage.Owned{d, n, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+j, d, 0n), out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+j, d, 0n), f} : Storage.Storage}        Owned.owned_eq(d, n, Array.set(F32, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), index, value), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+j, d, 0n), written,          Certificates.set_result(F32, d, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), index, value, Array.set(F32, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n), index, value), {==}, out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, j, d, 0n)), f)(          out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, 1n+j, d, 0n)))# The copy the build reads of a replayed input in normal form: the Second# half of the clone of the array its normalized history makes.def history(+shape: Shape.Shape, +ops: List<&2, StorageLaws.Op>) -> List<&2, Api.Effect>:  Api.Right{} <> Owned.norm(U32.to_nat(Shape.count(shape)), ops, Nil{})def copy(+shape: Shape.Shape, +fill: F32, +ops: List<&2, StorageLaws.Op>, +depth: Nat) -> Array<F32>:  Api.arr(history(shape, ops), depth, fill)def copy_valid(+shape: Shape.Shape, +ops: List<&2, StorageLaws.Op>) -> {Build.written(U32.to_nat(Shape.count(shape)), history(shape, ops)) == True{} : Bool}:  Owned.norm_written(U32.to_nat(Shape.count(shape)), ops, Nil{}, Api.hit_of(U32.to_nat(Shape.count(shape)), ops), {==}, {==})# A read of the copy below the input's count holds the replayed word.def copy_word(+shape: Shape.Shape, +fill: F32, +ops: List<&2, StorageLaws.Op>, +index: U32) ->  {Api.current(history(shape, ops), index, fill) == Replayed.value(shape, fill, ops, index) : F32}:  Owned.norm_current(U32.to_nat(Shape.count(shape)), ops, Nil{}, index, fill, Api.hit_of(U32.to_nat(Shape.count(shape)), ops), {==})def index_inside(+shape: Shape.Shape, +number: Nat, +below: {Nat.is_lt(number, Shape.logical_numel(Shape.dimensions(shape))) == True{} : Bool}) ->  {Nat.is_lt(U32.to_nat(U32.from_nat(number)), U32.to_nat(Shape.count(shape))) == True{} : Bool}:  PointwiseProof.lt_count(U32.to_nat(U32.from_nat(number)), shape, MatrixIndex.word_inside(number, shape, below))# The terms `cursor .. cursor + fuel` of cell (row, column) over the replayed# words, added to `accumulator` in increasing k.def fold_from(fuel: Nat, +lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +row: Nat, +column: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>,  +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +cursor: Nat, accumulator: F32) -> F32:  match fuel:    case 0n:      accumulator    case 1n+rest:      fold_from(rest, lo, ro, span, rows, columns, row, column, left, left_fill, left_ops, right, right_fill, right_ops, 1n+cursor,        F32.add(accumulator, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)),          Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, column, cursor)))))def fold_factors(+fuel: Nat, +lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +row: Nat, +column: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>,  +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +cursor: Nat,  +steps: {Nat.add(cursor, fuel) == span : Nat}) ->  {fold_from(fuel, lo, ro, span, rows, columns, row, column, left, left_fill, left_ops, right, right_fill, right_ops, cursor,    DotFold.dot_fold(Laws.product_factors(row, column, lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, cursor), 0.0)) ==    DotFold.dot_fold(Laws.product_factors(row, column, lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, span), 0.0) : F32}:  match fuel:    case 0n:      Equal.cong(Nat, F32,        k => DotFold.dot_fold(Laws.product_factors(row, column, lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, k), 0.0),        cursor, span, PointwiseProof.steps_done(cursor, span, steps))    case 1n+rest:      +x = Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor))      +y = Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, column, cursor))      +before = Laws.product_factors(row, column, lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, cursor)      %DotProof.dot_snoc(before, x, y, 0.0) :        {fold_from(rest, lo, ro, span, rows, columns, row, column, left, left_fill, left_ops, right, right_fill, right_ops, 1n+cursor, _) ==          DotFold.dot_fold(Laws.product_factors(row, column, lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, span), 0.0) : F32}      fold_factors(rest, lo, ro, span, rows, columns, row, column, left, left_fill, left_ops, right, right_fill, right_ops, 1n+cursor,        MatrixIndex.steps_next(cursor, rest, span, steps))# How a build copy answers the reads of its input: an empty input has no# cell to read, and a normal one holds the input's normalized history.type Source<-shape: Shape.Shape, -fill: F32, -ops: List<&2, StorageLaws.Op>, -h: List<&2, Api.Effect>, -d: Nat, -f: F32> is Data:  NoCells{zero: {U32.to_nat(Shape.count(shape)) == 0n : Nat}}  Normal{fits: {Storage.bounds(d, U32.to_nat(Shape.count(shape))) == True{} : Bool},    same: {h == history(shape, ops) : List<&2, Api.Effect>}, filled: {f == fill : F32}}def source_read(+shape: Shape.Shape, +fill: F32, +ops: List<&2, StorageLaws.Op>, +h: List<&2, Api.Effect>, +d: Nat, +f: F32,  +source: Source<shape, fill, ops, h, d, f>, +index: U32,  +inside: {Nat.is_lt(U32.to_nat(index), U32.to_nat(Shape.count(shape))) == True{} : Bool}, -pair: Array<F32> & F32,  +exact: {pair == Array.get(F32, Api.arr(h, d, f), index) : Array<F32> & F32}) ->  {Refinement.second(F32, pair) == Replayed.value(shape, fill, ops, index) : F32}:  match source:    case NoCells{zero}:      Empty.absurd({Refinement.second(F32, pair) == Replayed.value(shape, fill, ops, index) : F32},        Arith.lt_zero(U32.to_nat(index),          %zero : {Nat.is_lt(U32.to_nat(index), _) == True{} : Bool}          inside))    case Normal{fits, same, filled}:      Equal.trans(F32, Refinement.second(F32, pair), Api.current(h, index, f), Replayed.value(shape, fill, ops, index),        Build.got_value(d, h, f, U32.to_nat(Shape.count(shape)), index, pair, exact, fits, inside,          %Equal.sym(List<&2, Api.Effect>, h, history(shape, ops), same) : {Build.written(U32.to_nat(Shape.count(shape)), _) == True{} : Bool}          copy_valid(shape, ops)),        %Equal.sym(List<&2, Api.Effect>, h, history(shape, ops), same) : {Api.current(_, index, f) == Replayed.value(shape, fill, ops, index) : F32}        %Equal.sym(F32, f, fill, filled) : {Api.current(history(shape, ops), index, _) == Replayed.value(shape, fill, ops, index) : F32}        copy_word(shape, fill, ops, index))def DotIs(+fuel: Nat, +lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +row: Nat, +column: Nat, +cursor: Nat, +accumulator: F32,  -result: F32 & (Array<F32> & Array<F32>)) -> Type:  {result == (fold_from(fuel, lo, ro, span, rows, columns, row, column, left, left_fill, left_ops, right, right_fill, right_ops, cursor, accumulator), (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : F32 & (Array<F32> & Array<F32>)}# Each offset steps by its operand's stride: the term after term k of an# operand in `order` sits at read_offset of k + 1.def stepped(+order: Matrix.Order, +inner: Nat, +outers: Nat, +outer: Nat, +k: Nat) ->  {Nat.add(Matrix.stride(order, outers), Matrix.read_offset(order, inner, outers, outer, k)) ==    Matrix.read_offset(order, inner, outers, outer, 1n+k) : Nat}:  match order:    case Matrix.Kept{}:      Equal.sym(Nat, Nat.add(Nat.mul(outer, inner), 1n+k), 1n+Nat.add(Nat.mul(outer, inner), k), Arith.add_succ(Nat.mul(outer, inner), k))    case Matrix.Swapped{}:      Index.add_assoc(outers, Nat.mul(k, outers), outer)# The last term of a run: both reads hold the replayed words, and both# copies come back.def run_last(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +row: Nat, +column: Nat, +cursor: Nat, +accumulator: F32,  +row_below: {Nat.is_lt(row, rows) == True{} : Bool}, +left_extents: Fits(lo, span, rows, left),  +column_below: {Nat.is_lt(column, columns) == True{} : Bool}, +right_extents: Fits(ro, span, columns, right),  +below: {Nat.is_lt(cursor, span) == True{} : Bool},  pl: Array<F32> & F32, +exact_l: {pl == Array.get(F32, Api.arr(ha, dl, fa), Matrix.read_index(lo, span, rows, row, cursor)) : Array<F32> & F32},  pr: Array<F32> & F32, +exact_r: {pr == Array.get(F32, Api.arr(hb, dr, fb), Matrix.read_index(ro, span, columns, column, cursor)) : Array<F32> & F32}) ->  DotIs(1n, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, Matrix.product_run(0n, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, cursor), Matrix.read_offset(ro, span, columns, column, cursor), accumulator, pl, pr)):  (la, x) = pl  (ra, y) = pr  +ex = source_read(left, left_fill, left_ops, ha, dl, fa, lsrc, Matrix.read_index(lo, span, rows, row, cursor),    index_inside(left, Matrix.read_offset(lo, span, rows, row, cursor), read_below(lo, span, rows, row, row_below, left, left_extents, cursor, below)),    (la, x), exact_l)  +ey = source_read(right, right_fill, right_ops, hb, dr, fb, rsrc, Matrix.read_index(ro, span, columns, column, cursor),    index_inside(right, Matrix.read_offset(ro, span, columns, column, cursor), read_below(ro, span, columns, column, column_below, right, right_extents, cursor, below)),    (ra, y), exact_r)  +el = Build.got_kept(dl, ha, fa, Matrix.read_index(lo, span, rows, row, cursor), (la, x), exact_l)  +er = Build.got_kept(dr, hb, fb, Matrix.read_index(ro, span, columns, column, cursor), (ra, y), exact_r)  %Equal.sym(F32, x, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), ex) :    DotIs(1n, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, (F32.add(accumulator, F32.mul(_, y)), (la, ra)))  %Equal.sym(F32, y, Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, column, cursor)), ey) :    DotIs(1n, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, (F32.add(accumulator, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), _)), (la, ra)))  %Equal.sym(Array<F32>, la, Api.arr(ha, dl, fa), el) :    DotIs(1n, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, (F32.add(accumulator, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, column, cursor)))), (_, ra)))  %Equal.sym(Array<F32>, ra, Api.arr(hb, dr, fb), er) :    DotIs(1n, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, (F32.add(accumulator, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, column, cursor)))), (Api.arr(ha, dl, fa), _)))  {==}# A term with more after it: the reads hold the replayed words, the offsets# step to the next term's, and the run goes on from its reads of the same# copies.def run_next(+rest: Nat, +lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +row: Nat, +column: Nat, +cursor: Nat, +accumulator: F32,  +row_below: {Nat.is_lt(row, rows) == True{} : Bool}, +left_extents: Fits(lo, span, rows, left),  +column_below: {Nat.is_lt(column, columns) == True{} : Bool}, +right_extents: Fits(ro, span, columns, right),  +below: {Nat.is_lt(cursor, span) == True{} : Bool},  pl: Array<F32> & F32, +exact_l: {pl == Array.get(F32, Api.arr(ha, dl, fa), Matrix.read_index(lo, span, rows, row, cursor)) : Array<F32> & F32},  pr: Array<F32> & F32, +exact_r: {pr == Array.get(F32, Api.arr(hb, dr, fb), Matrix.read_index(ro, span, columns, column, cursor)) : Array<F32> & F32},  next: DotIs(1n+rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, 1n+cursor, F32.add(accumulator, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, column, cursor)))), Matrix.product_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, 1n+cursor), Matrix.read_offset(ro, span, columns, column, 1n+cursor), F32.add(accumulator, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, column, cursor)))), Array.get(F32, Api.arr(ha, dl, fa), Matrix.read_index(lo, span, rows, row, 1n+cursor)), Array.get(F32, Api.arr(hb, dr, fb), Matrix.read_index(ro, span, columns, column, 1n+cursor))))) ->  DotIs(2n+rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, Matrix.product_run(1n+rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, cursor), Matrix.read_offset(ro, span, columns, column, cursor), accumulator, pl, pr)):  (la, x) = pl  (ra, y) = pr  +ex = source_read(left, left_fill, left_ops, ha, dl, fa, lsrc, Matrix.read_index(lo, span, rows, row, cursor),    index_inside(left, Matrix.read_offset(lo, span, rows, row, cursor), read_below(lo, span, rows, row, row_below, left, left_extents, cursor, below)),    (la, x), exact_l)  +ey = source_read(right, right_fill, right_ops, hb, dr, fb, rsrc, Matrix.read_index(ro, span, columns, column, cursor),    index_inside(right, Matrix.read_offset(ro, span, columns, column, cursor), read_below(ro, span, columns, column, column_below, right, right_extents, cursor, below)),    (ra, y), exact_r)  +el = Build.got_kept(dl, ha, fa, Matrix.read_index(lo, span, rows, row, cursor), (la, x), exact_l)  +er = Build.got_kept(dr, hb, fb, Matrix.read_index(ro, span, columns, column, cursor), (ra, y), exact_r)  %Equal.sym(F32, x, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), ex) :    DotIs(2n+rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, Matrix.product_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, column, cursor)), F32.add(accumulator, F32.mul(_, y)), Array.get(F32, la, U32.from_nat(Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)))), Array.get(F32, ra, U32.from_nat(Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, column, cursor))))))  %Equal.sym(F32, y, Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, column, cursor)), ey) :    DotIs(2n+rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, Matrix.product_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, column, cursor)), F32.add(accumulator, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), _)), Array.get(F32, la, U32.from_nat(Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)))), Array.get(F32, ra, U32.from_nat(Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, column, cursor))))))  %Equal.sym(Array<F32>, la, Api.arr(ha, dl, fa), el) :    DotIs(2n+rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, Matrix.product_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, column, cursor)), F32.add(accumulator, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, column, cursor)))), Array.get(F32, _, U32.from_nat(Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)))), Array.get(F32, ra, U32.from_nat(Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, column, cursor))))))  %Equal.sym(Array<F32>, ra, Api.arr(hb, dr, fb), er) :    DotIs(2n+rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, Matrix.product_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, column, cursor)), F32.add(accumulator, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, column, cursor)))), Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)))), Array.get(F32, _, U32.from_nat(Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, column, cursor))))))  %Equal.sym(Nat, Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)), Matrix.read_offset(lo, span, rows, row, 1n+cursor), stepped(lo, span, rows, row, cursor)) :    DotIs(2n+rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, Matrix.product_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, column, cursor)), F32.add(accumulator, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, column, cursor)))), Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(_)), Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, column, cursor))))))  %Equal.sym(Nat, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, column, cursor)), Matrix.read_offset(ro, span, columns, column, 1n+cursor), stepped(ro, span, columns, column, cursor)) :    DotIs(2n+rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, Matrix.product_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, 1n+cursor), _, F32.add(accumulator, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, column, cursor)))), Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, 1n+cursor))), Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(_))))  next# A run of fuel + 1 terms from cursor folds the replayed words in increasing# k and hands both copies back.def run_eq(+fuel: Nat, +lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +row: Nat, +column: Nat, +cursor: Nat, +accumulator: F32,  +row_below: {Nat.is_lt(row, rows) == True{} : Bool}, +left_extents: Fits(lo, span, rows, left),  +column_below: {Nat.is_lt(column, columns) == True{} : Bool}, +right_extents: Fits(ro, span, columns, right),  +steps: {Nat.add(cursor, 1n+fuel) == span : Nat},  pl: Array<F32> & F32, +exact_l: {pl == Array.get(F32, Api.arr(ha, dl, fa), Matrix.read_index(lo, span, rows, row, cursor)) : Array<F32> & F32},  pr: Array<F32> & F32, +exact_r: {pr == Array.get(F32, Api.arr(hb, dr, fb), Matrix.read_index(ro, span, columns, column, cursor)) : Array<F32> & F32}) ->  DotIs(1n+fuel, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, Matrix.product_run(fuel, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, cursor), Matrix.read_offset(ro, span, columns, column, cursor), accumulator, pl, pr)):  match fuel:    case 0n:      run_last(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, lsrc, rsrc, row, column, cursor, accumulator, row_below, left_extents, column_below, right_extents, MatrixIndex.cursor_below(cursor, 0n, span, steps), pl, exact_l, pr, exact_r)    case 1n+rest:      run_next(rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, lsrc, rsrc, row, column, cursor, accumulator, row_below, left_extents, column_below, right_extents, MatrixIndex.cursor_below(cursor, 1n+rest, span, steps), pl, exact_l, pr, exact_r,        run_eq(rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, lsrc, rsrc, row, column, 1n+cursor, F32.add(accumulator, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, column, cursor)))), row_below, left_extents, column_below, right_extents, MatrixIndex.steps_next(cursor, 1n+rest, span, steps),          Array.get(F32, Api.arr(ha, dl, fa), Matrix.read_index(lo, span, rows, row, 1n+cursor)), {==}, Array.get(F32, Api.arr(hb, dr, fb), Matrix.read_index(ro, span, columns, column, 1n+cursor)), {==}))# Cell (row, column) of the build over the two copies folds the replayed# words in increasing k and hands both copies back.def dot_eq(+fuel: Nat, +lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +row: Nat, +column: Nat, +cursor: Nat, +accumulator: F32,  +row_below: {Nat.is_lt(row, rows) == True{} : Bool}, +left_extents: Fits(lo, span, rows, left),  +column_below: {Nat.is_lt(column, columns) == True{} : Bool}, +right_extents: Fits(ro, span, columns, right), +steps: {Nat.add(cursor, fuel) == span : Nat}) ->  DotIs(fuel, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, row, column, cursor, accumulator, Matrix.product_dot(fuel, lo, ro, span, rows, columns, row, column, cursor, accumulator, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))):  match fuel:    case 0n:      {==}    case 1n+rest:      run_eq(rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, lsrc, rsrc, row, column, cursor, accumulator, row_below, left_extents, column_below, right_extents, steps, Array.get(F32, Api.arr(ha, dl, fa), Matrix.read_index(lo, span, rows, row, cursor)), {==}, Array.get(F32, Api.arr(hb, dr, fb), Matrix.read_index(ro, span, columns, column, cursor)), {==})def TreeEq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +depth: Nat, +base: Nat, -result: Array<F32> & (Array<F32> & Array<F32>)) -> Type:  {Pair.fst(Array<F32>, Array<F32> & Array<F32>, result) == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, depth, base) : Array<F32>} &    ({Pair.fst(Array<F32>, Array<F32>, Pair.snd(Array<F32>, Array<F32> & Array<F32>, result)) == Api.arr(ha, dl, fa) : Array<F32>} &      {Pair.snd(Array<F32>, Array<F32>, Pair.snd(Array<F32>, Array<F32> & Array<F32>, result)) == Api.arr(hb, dr, fb) : Array<F32>})def cell_inside_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>,  +output: Shape.Shape,  +left_extents: Fits(lo, span, rows, left),  +right_extents: Fits(ro, span, columns, right),  +output_extents: {Shape.extents(output) == [rows, columns] : List<&2, Nat>},  +count_exact: {count == Shape.logical_numel(Shape.dimensions(output)) : Nat}, +base: Nat,  +decided: {True{} == Nat.is_lt(base, count) : Bool}) ->  TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 0n, base, Parallel.leaf(~(Array<F32> & Array<F32>), Matrix.product_cell(lo, ro, span, rows, columns, base, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb), True{}))):  +row = Matrix.row_of(columns, base)  +column = Matrix.column_of(columns, base)  +below = MatrixIndex.lt_bound(base, count, Shape.logical_numel(Shape.dimensions(output)), count_exact,    Equal.sym(Bool, True{}, Nat.is_lt(base, count), decided))  +fit = MatrixIndex.position_fits(output, rows, columns, output_extents, base, below)  +row_below = Arith.and_left(Nat.is_lt(row, rows), Bool.and(Nat.is_lt(column, columns), True{}), fit)  +column_below = Arith.and_left(Nat.is_lt(column, columns), True{},    Arith.and_right(Nat.is_lt(row, rows), Bool.and(Nat.is_lt(column, columns), True{}), fit))  %Equal.sym(F32 & (Array<F32> & Array<F32>),    Matrix.product_dot_of(lo, ro, span, rows, columns, base, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)),    (fold_from(span, lo, ro, span, rows, columns, row, column, left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0), (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))),    dot_eq(span, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, lsrc, rsrc, row, column, 0n, 0.0, row_below, left_extents, column_below, right_extents, {==})) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 0n, base, Parallel.leaf(~(Array<F32> & Array<F32>), _))  (%decided : {ALeaf{fold_from(span, lo, ro, span, rows, columns, row, column, left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)} ==      ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base, _)} : Array<F32>}    Equal.cong(F32, Array<F32>, w => ALeaf{w},      fold_from(span, lo, ro, span, rows, columns, row, column, left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0),      cell_word(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base),      fold_factors(span, lo, ro, span, rows, columns, row, column, left, left_fill, left_ops, right, right_fill, right_ops, 0n, {==})),   ({==}, {==}))def cell_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>,  +output: Shape.Shape,  +left_extents: Fits(lo, span, rows, left),  +right_extents: Fits(ro, span, columns, right),  +output_extents: {Shape.extents(output) == [rows, columns] : List<&2, Nat>},  +count_exact: {count == Shape.logical_numel(Shape.dimensions(output)) : Nat}, +base: Nat, inside: Bool,  +decided: {inside == Nat.is_lt(base, count) : Bool}) ->  TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 0n, base, Parallel.leaf(~(Array<F32> & Array<F32>), Matrix.product_cell(lo, ro, span, rows, columns, base, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb), inside))):  match inside:    case False{}:      (%decided : {ALeaf{0.0} == ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base, _)} : Array<F32>}       {==}, ({==}, {==}))    case True{}:      cell_inside_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, base, decided)def tree_join_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +lower: Nat, +base: Nat, -a: Array<F32>, high: Array<F32> & (Array<F32> & Array<F32>),  ea: {a == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, lower, base) : Array<F32>},  facts: TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lower, Nat.add(Model.capacity(lower), base), high)) ->  TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 1n+lower, base, Parallel.join(~(Array<F32> & Array<F32>), a, high)):  (b, inputs) = high  (eb, kept) = facts  (%Equal.sym(Array<F32>, a, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, lower, base), ea) :     {ANode{_, b} == ANode{out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, lower, base), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, lower, Nat.add(Model.capacity(lower), base))} : Array<F32>}   %Equal.sym(Array<F32>, b, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, lower, Nat.add(Model.capacity(lower), base)), eb) :     {ANode{out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, lower, base), _} == ANode{out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, lower, base), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, lower, Nat.add(Model.capacity(lower), base))} : Array<F32>}   {==}, kept)def tree_node_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +lower: Nat, +base: Nat, low: Array<F32> & (Array<F32> & Array<F32>),  facts: TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lower, base, low),  next: TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lower, Nat.add(Model.capacity(lower), base), Parallel.tree(~Matrix.Layout, ~Array<F32>, ~Array<F32>, ~Matrix.product_cell_at, Matrix.layout(Matrix.Layout{lo, ro, span, rows, columns}), lower, count, Nat.add(Model.capacity(lower), base), (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))))) ->  TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 1n+lower, base, Parallel.node(~Array<F32>, ~Array<F32>, l => r => Parallel.tree(~Matrix.Layout, ~Array<F32>, ~Array<F32>, ~Matrix.product_cell_at, Matrix.layout(Matrix.Layout{lo, ro, span, rows, columns}), lower, count, Nat.add(Model.capacity(lower), base), (l, r)), low)):  (a, inputs) = low  (la, ra) = inputs  (ea, kept) = facts  (el, er) = kept  %Equal.sym(Array<F32>, la, Api.arr(ha, dl, fa), el) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 1n+lower, base, Parallel.join(~(Array<F32> & Array<F32>), a, Parallel.tree(~Matrix.Layout, ~Array<F32>, ~Array<F32>, ~Matrix.product_cell_at, Matrix.layout(Matrix.Layout{lo, ro, span, rows, columns}), lower, count, Nat.add(Model.capacity(lower), base), (_, ra))))  %Equal.sym(Array<F32>, ra, Api.arr(hb, dr, fb), er) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 1n+lower, base, Parallel.join(~(Array<F32> & Array<F32>), a, Parallel.tree(~Matrix.Layout, ~Array<F32>, ~Array<F32>, ~Matrix.product_cell_at, Matrix.layout(Matrix.Layout{lo, ro, span, rows, columns}), lower, count, Nat.add(Model.capacity(lower), base), (Api.arr(ha, dl, fa), _))))  tree_join_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lower, base, a, Parallel.tree(~Matrix.Layout, ~Array<F32>, ~Array<F32>, ~Matrix.product_cell_at, Matrix.layout(Matrix.Layout{lo, ro, span, rows, columns}), lower, count, Nat.add(Model.capacity(lower), base), (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))), ea, next)# The depth-1 tree: the leaf of cell `base` and the leaf of the cell after# it, which reads the state the first hands back.def pair_join_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +base: Nat, x: F32, high: F32 & Array<F32> & Array<F32>,  ex: {ALeaf{x} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 0n, base) : Array<F32>},  leaf_facts: TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 0n, Nat.add(1n, base), Parallel.leaf(~(Array<F32> & Array<F32>), high))) ->  TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 1n, base, Parallel.pair_join(~(Array<F32> & Array<F32>), x, high)):  (y, inputs) = high  (ey, kept) = leaf_facts  (%Equal.sym(Array<F32>, ALeaf{x}, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 0n, base), ex) : {ANode{_, ALeaf{y}} == ANode{out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 0n, base), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 0n, Nat.add(1n, base))} : Array<F32>}   %Equal.sym(Array<F32>, ALeaf{y}, out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 0n, Nat.add(1n, base)), ey) : {ANode{out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 0n, base), _} == ANode{out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 0n, base), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 0n, Nat.add(1n, base))} : Array<F32>}   {==}, kept)def pair_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>,  +output: Shape.Shape,  +left_extents: Fits(lo, span, rows, left),  +right_extents: Fits(ro, span, columns, right),  +output_extents: {Shape.extents(output) == [rows, columns] : List<&2, Nat>},  +count_exact: {count == Shape.logical_numel(Shape.dimensions(output)) : Nat}, +base: Nat, low: F32 & Array<F32> & Array<F32>,  leaf_facts: TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 0n, base, Parallel.leaf(~(Array<F32> & Array<F32>), low))) ->  TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 1n, base, Parallel.pair(~Matrix.Layout, ~Array<F32>, ~Array<F32>, ~Matrix.product_cell_at, Matrix.layout(Matrix.Layout{lo, ro, span, rows, columns}), count, base, low)):  (x, inputs) = low  (la, ra) = inputs  (ex, kept) = leaf_facts  (el, er) = kept  %Equal.sym(Array<F32>, la, Api.arr(ha, dl, fa), el) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 1n, base, Parallel.pair_join(~(Array<F32> & Array<F32>), x, Matrix.product_cell_at(Matrix.layout(Matrix.Layout{lo, ro, span, rows, columns}), Nat.add(1n, base), (_, ra), Nat.is_lt(Nat.add(1n, base), count))))  %Equal.sym(Array<F32>, ra, Api.arr(hb, dr, fb), er) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 1n, base, Parallel.pair_join(~(Array<F32> & Array<F32>), x, Matrix.product_cell_at(Matrix.layout(Matrix.Layout{lo, ro, span, rows, columns}), Nat.add(1n, base), (Api.arr(ha, dl, fa), _), Nat.is_lt(Nat.add(1n, base), count))))  pair_join_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, base, x, Matrix.product_cell_at(Matrix.layout(Matrix.Layout{lo, ro, span, rows, columns}), Nat.add(1n, base), (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)), Nat.is_lt(Nat.add(1n, base), count)), ex,    cell_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, Nat.add(1n, base), Nat.is_lt(Nat.add(1n, base), count), {==}))def tree_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>,  +output: Shape.Shape,  +left_extents: Fits(lo, span, rows, left),  +right_extents: Fits(ro, span, columns, right),  +output_extents: {Shape.extents(output) == [rows, columns] : List<&2, Nat>},  +count_exact: {count == Shape.logical_numel(Shape.dimensions(output)) : Nat}, +depth: Nat, +base: Nat) ->  TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, depth, base, Parallel.tree(~Matrix.Layout, ~Array<F32>, ~Array<F32>, ~Matrix.product_cell_at, Matrix.layout(Matrix.Layout{lo, ro, span, rows, columns}), depth, count, base, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)))):  match depth:    case 0n:      cell_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, base, Nat.is_lt(base, count), {==})    case 1n+lower:      match lower:        case 0n:          pair_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, base, Matrix.product_cell_at(Matrix.layout(Matrix.Layout{lo, ro, span, rows, columns}), base, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)), Nat.is_lt(base, count)),            cell_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, base, Nat.is_lt(base, count), {==}))        case 1n+below:          tree_node_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lower, base, Parallel.tree(~Matrix.Layout, ~Array<F32>, ~Array<F32>, ~Matrix.product_cell_at, Matrix.layout(Matrix.Layout{lo, ro, span, rows, columns}), lower, count, base, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))),            tree_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, lower, base),            tree_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, lower, Nat.add(Model.capacity(lower), base)))def tree_first(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +depth: Nat, +base: Nat, -result: Array<F32> & (Array<F32> & Array<F32>), facts: TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, depth, base, result)) ->  {Pair.fst(Array<F32>, Array<F32> & Array<F32>, result) == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, depth, base) : Array<F32>}:  (first, kept) = facts  first# The eight reads of a row run: each holds the replayed word of the right# input at its offset, and the copy comes back.def eight_read_8_eq(+right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +x0: F32, +x1: F32, +x2: F32, +x3: F32, +x4: F32, +x5: F32, +x6: F32, +o7: Nat, +in7: {Nat.is_lt(U32.to_nat(U32.from_nat(o7)), U32.to_nat(Shape.count(right))) == True{} : Bool},  pair: Array<F32> & F32, +exact: {pair == Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o7)) : Array<F32> & F32}) ->  {Matrix.eight_read_8(x0, x1, x2, x3, x4, x5, x6, pair) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, x3, x4, x5, x6, Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}:  (a, x) = pair  +ex = source_read(right, right_fill, right_ops, hb, dr, fb, rsrc, U32.from_nat(o7), in7, (a, x), exact)  +ea = Build.got_kept(dr, hb, fb, U32.from_nat(o7), (a, x), exact)  %Equal.sym(F32, x, Replayed.value(right, right_fill, right_ops, U32.from_nat(o7)), ex) :    {(a, Matrix.Eight{x0, x1, x2, x3, x4, x5, x6, _}) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, x3, x4, x5, x6, Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  %Equal.sym(Array<F32>, a, Api.arr(hb, dr, fb), ea) :    {(_, Matrix.Eight{x0, x1, x2, x3, x4, x5, x6, Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, x3, x4, x5, x6, Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  {==}def eight_read_7_eq(+right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +x0: F32, +x1: F32, +x2: F32, +x3: F32, +x4: F32, +x5: F32, +o6: Nat, +o7: Nat, +in6: {Nat.is_lt(U32.to_nat(U32.from_nat(o6)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in7: {Nat.is_lt(U32.to_nat(U32.from_nat(o7)), U32.to_nat(Shape.count(right))) == True{} : Bool},  pair: Array<F32> & F32, +exact: {pair == Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o6)) : Array<F32> & F32}) ->  {Matrix.eight_read_7(x0, x1, x2, x3, x4, x5, pair, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, x3, x4, x5, Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}:  (a, x) = pair  +ex = source_read(right, right_fill, right_ops, hb, dr, fb, rsrc, U32.from_nat(o6), in6, (a, x), exact)  +ea = Build.got_kept(dr, hb, fb, U32.from_nat(o6), (a, x), exact)  %Equal.sym(F32, x, Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), ex) :    {Matrix.eight_read_8(x0, x1, x2, x3, x4, x5, _, Array.get(F32, a, U32.from_nat(o7))) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, x3, x4, x5, Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  %Equal.sym(Array<F32>, a, Api.arr(hb, dr, fb), ea) :    {Matrix.eight_read_8(x0, x1, x2, x3, x4, x5, Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Array.get(F32, _, U32.from_nat(o7))) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, x3, x4, x5, Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  eight_read_8_eq(right, right_fill, right_ops, hb, dr, fb, rsrc, x0, x1, x2, x3, x4, x5, Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), o7, in7,    Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o7)), {==})def eight_read_6_eq(+right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +x0: F32, +x1: F32, +x2: F32, +x3: F32, +x4: F32, +o5: Nat, +o6: Nat, +o7: Nat, +in5: {Nat.is_lt(U32.to_nat(U32.from_nat(o5)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in6: {Nat.is_lt(U32.to_nat(U32.from_nat(o6)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in7: {Nat.is_lt(U32.to_nat(U32.from_nat(o7)), U32.to_nat(Shape.count(right))) == True{} : Bool},  pair: Array<F32> & F32, +exact: {pair == Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o5)) : Array<F32> & F32}) ->  {Matrix.eight_read_6(x0, x1, x2, x3, x4, pair, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, x3, x4, Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}:  (a, x) = pair  +ex = source_read(right, right_fill, right_ops, hb, dr, fb, rsrc, U32.from_nat(o5), in5, (a, x), exact)  +ea = Build.got_kept(dr, hb, fb, U32.from_nat(o5), (a, x), exact)  %Equal.sym(F32, x, Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), ex) :    {Matrix.eight_read_7(x0, x1, x2, x3, x4, _, Array.get(F32, a, U32.from_nat(o6)), o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, x3, x4, Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  %Equal.sym(Array<F32>, a, Api.arr(hb, dr, fb), ea) :    {Matrix.eight_read_7(x0, x1, x2, x3, x4, Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Array.get(F32, _, U32.from_nat(o6)), o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, x3, x4, Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  eight_read_7_eq(right, right_fill, right_ops, hb, dr, fb, rsrc, x0, x1, x2, x3, x4, Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), o6, o7, in6, in7,    Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o6)), {==})def eight_read_5_eq(+right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +x0: F32, +x1: F32, +x2: F32, +x3: F32, +o4: Nat, +o5: Nat, +o6: Nat, +o7: Nat, +in4: {Nat.is_lt(U32.to_nat(U32.from_nat(o4)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in5: {Nat.is_lt(U32.to_nat(U32.from_nat(o5)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in6: {Nat.is_lt(U32.to_nat(U32.from_nat(o6)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in7: {Nat.is_lt(U32.to_nat(U32.from_nat(o7)), U32.to_nat(Shape.count(right))) == True{} : Bool},  pair: Array<F32> & F32, +exact: {pair == Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o4)) : Array<F32> & F32}) ->  {Matrix.eight_read_5(x0, x1, x2, x3, pair, o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, x3, Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}:  (a, x) = pair  +ex = source_read(right, right_fill, right_ops, hb, dr, fb, rsrc, U32.from_nat(o4), in4, (a, x), exact)  +ea = Build.got_kept(dr, hb, fb, U32.from_nat(o4), (a, x), exact)  %Equal.sym(F32, x, Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), ex) :    {Matrix.eight_read_6(x0, x1, x2, x3, _, Array.get(F32, a, U32.from_nat(o5)), o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, x3, Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  %Equal.sym(Array<F32>, a, Api.arr(hb, dr, fb), ea) :    {Matrix.eight_read_6(x0, x1, x2, x3, Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Array.get(F32, _, U32.from_nat(o5)), o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, x3, Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  eight_read_6_eq(right, right_fill, right_ops, hb, dr, fb, rsrc, x0, x1, x2, x3, Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), o5, o6, o7, in5, in6, in7,    Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o5)), {==})def eight_read_4_eq(+right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +x0: F32, +x1: F32, +x2: F32, +o3: Nat, +o4: Nat, +o5: Nat, +o6: Nat, +o7: Nat, +in3: {Nat.is_lt(U32.to_nat(U32.from_nat(o3)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in4: {Nat.is_lt(U32.to_nat(U32.from_nat(o4)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in5: {Nat.is_lt(U32.to_nat(U32.from_nat(o5)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in6: {Nat.is_lt(U32.to_nat(U32.from_nat(o6)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in7: {Nat.is_lt(U32.to_nat(U32.from_nat(o7)), U32.to_nat(Shape.count(right))) == True{} : Bool},  pair: Array<F32> & F32, +exact: {pair == Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o3)) : Array<F32> & F32}) ->  {Matrix.eight_read_4(x0, x1, x2, pair, o4, o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}:  (a, x) = pair  +ex = source_read(right, right_fill, right_ops, hb, dr, fb, rsrc, U32.from_nat(o3), in3, (a, x), exact)  +ea = Build.got_kept(dr, hb, fb, U32.from_nat(o3), (a, x), exact)  %Equal.sym(F32, x, Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), ex) :    {Matrix.eight_read_5(x0, x1, x2, _, Array.get(F32, a, U32.from_nat(o4)), o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  %Equal.sym(Array<F32>, a, Api.arr(hb, dr, fb), ea) :    {Matrix.eight_read_5(x0, x1, x2, Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Array.get(F32, _, U32.from_nat(o4)), o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, x2, Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  eight_read_5_eq(right, right_fill, right_ops, hb, dr, fb, rsrc, x0, x1, x2, Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), o4, o5, o6, o7, in4, in5, in6, in7,    Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o4)), {==})def eight_read_3_eq(+right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +x0: F32, +x1: F32, +o2: Nat, +o3: Nat, +o4: Nat, +o5: Nat, +o6: Nat, +o7: Nat, +in2: {Nat.is_lt(U32.to_nat(U32.from_nat(o2)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in3: {Nat.is_lt(U32.to_nat(U32.from_nat(o3)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in4: {Nat.is_lt(U32.to_nat(U32.from_nat(o4)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in5: {Nat.is_lt(U32.to_nat(U32.from_nat(o5)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in6: {Nat.is_lt(U32.to_nat(U32.from_nat(o6)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in7: {Nat.is_lt(U32.to_nat(U32.from_nat(o7)), U32.to_nat(Shape.count(right))) == True{} : Bool},  pair: Array<F32> & F32, +exact: {pair == Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o2)) : Array<F32> & F32}) ->  {Matrix.eight_read_3(x0, x1, pair, o3, o4, o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, Replayed.value(right, right_fill, right_ops, U32.from_nat(o2)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}:  (a, x) = pair  +ex = source_read(right, right_fill, right_ops, hb, dr, fb, rsrc, U32.from_nat(o2), in2, (a, x), exact)  +ea = Build.got_kept(dr, hb, fb, U32.from_nat(o2), (a, x), exact)  %Equal.sym(F32, x, Replayed.value(right, right_fill, right_ops, U32.from_nat(o2)), ex) :    {Matrix.eight_read_4(x0, x1, _, Array.get(F32, a, U32.from_nat(o3)), o4, o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, Replayed.value(right, right_fill, right_ops, U32.from_nat(o2)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  %Equal.sym(Array<F32>, a, Api.arr(hb, dr, fb), ea) :    {Matrix.eight_read_4(x0, x1, Replayed.value(right, right_fill, right_ops, U32.from_nat(o2)), Array.get(F32, _, U32.from_nat(o3)), o4, o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, x1, Replayed.value(right, right_fill, right_ops, U32.from_nat(o2)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  eight_read_4_eq(right, right_fill, right_ops, hb, dr, fb, rsrc, x0, x1, Replayed.value(right, right_fill, right_ops, U32.from_nat(o2)), o3, o4, o5, o6, o7, in3, in4, in5, in6, in7,    Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o3)), {==})def eight_read_2_eq(+right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +x0: F32, +o1: Nat, +o2: Nat, +o3: Nat, +o4: Nat, +o5: Nat, +o6: Nat, +o7: Nat, +in1: {Nat.is_lt(U32.to_nat(U32.from_nat(o1)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in2: {Nat.is_lt(U32.to_nat(U32.from_nat(o2)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in3: {Nat.is_lt(U32.to_nat(U32.from_nat(o3)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in4: {Nat.is_lt(U32.to_nat(U32.from_nat(o4)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in5: {Nat.is_lt(U32.to_nat(U32.from_nat(o5)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in6: {Nat.is_lt(U32.to_nat(U32.from_nat(o6)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in7: {Nat.is_lt(U32.to_nat(U32.from_nat(o7)), U32.to_nat(Shape.count(right))) == True{} : Bool},  pair: Array<F32> & F32, +exact: {pair == Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o1)) : Array<F32> & F32}) ->  {Matrix.eight_read_2(x0, pair, o2, o3, o4, o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, Replayed.value(right, right_fill, right_ops, U32.from_nat(o1)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o2)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}:  (a, x) = pair  +ex = source_read(right, right_fill, right_ops, hb, dr, fb, rsrc, U32.from_nat(o1), in1, (a, x), exact)  +ea = Build.got_kept(dr, hb, fb, U32.from_nat(o1), (a, x), exact)  %Equal.sym(F32, x, Replayed.value(right, right_fill, right_ops, U32.from_nat(o1)), ex) :    {Matrix.eight_read_3(x0, _, Array.get(F32, a, U32.from_nat(o2)), o3, o4, o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, Replayed.value(right, right_fill, right_ops, U32.from_nat(o1)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o2)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  %Equal.sym(Array<F32>, a, Api.arr(hb, dr, fb), ea) :    {Matrix.eight_read_3(x0, Replayed.value(right, right_fill, right_ops, U32.from_nat(o1)), Array.get(F32, _, U32.from_nat(o2)), o3, o4, o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{x0, Replayed.value(right, right_fill, right_ops, U32.from_nat(o1)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o2)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  eight_read_3_eq(right, right_fill, right_ops, hb, dr, fb, rsrc, x0, Replayed.value(right, right_fill, right_ops, U32.from_nat(o1)), o2, o3, o4, o5, o6, o7, in2, in3, in4, in5, in6, in7,    Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o2)), {==})def eight_read_1_eq(+right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +o0: Nat, +o1: Nat, +o2: Nat, +o3: Nat, +o4: Nat, +o5: Nat, +o6: Nat, +o7: Nat, +in0: {Nat.is_lt(U32.to_nat(U32.from_nat(o0)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in1: {Nat.is_lt(U32.to_nat(U32.from_nat(o1)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in2: {Nat.is_lt(U32.to_nat(U32.from_nat(o2)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in3: {Nat.is_lt(U32.to_nat(U32.from_nat(o3)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in4: {Nat.is_lt(U32.to_nat(U32.from_nat(o4)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in5: {Nat.is_lt(U32.to_nat(U32.from_nat(o5)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in6: {Nat.is_lt(U32.to_nat(U32.from_nat(o6)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in7: {Nat.is_lt(U32.to_nat(U32.from_nat(o7)), U32.to_nat(Shape.count(right))) == True{} : Bool},  pair: Array<F32> & F32, +exact: {pair == Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o0)) : Array<F32> & F32}) ->  {Matrix.eight_read_1(pair, o1, o2, o3, o4, o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{Replayed.value(right, right_fill, right_ops, U32.from_nat(o0)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o1)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o2)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}:  (a, x) = pair  +ex = source_read(right, right_fill, right_ops, hb, dr, fb, rsrc, U32.from_nat(o0), in0, (a, x), exact)  +ea = Build.got_kept(dr, hb, fb, U32.from_nat(o0), (a, x), exact)  %Equal.sym(F32, x, Replayed.value(right, right_fill, right_ops, U32.from_nat(o0)), ex) :    {Matrix.eight_read_2(_, Array.get(F32, a, U32.from_nat(o1)), o2, o3, o4, o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{Replayed.value(right, right_fill, right_ops, U32.from_nat(o0)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o1)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o2)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  %Equal.sym(Array<F32>, a, Api.arr(hb, dr, fb), ea) :    {Matrix.eight_read_2(Replayed.value(right, right_fill, right_ops, U32.from_nat(o0)), Array.get(F32, _, U32.from_nat(o1)), o2, o3, o4, o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{Replayed.value(right, right_fill, right_ops, U32.from_nat(o0)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o1)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o2)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}  eight_read_2_eq(right, right_fill, right_ops, hb, dr, fb, rsrc, Replayed.value(right, right_fill, right_ops, U32.from_nat(o0)), o1, o2, o3, o4, o5, o6, o7, in1, in2, in3, in4, in5, in6, in7,    Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o1)), {==})def read_eight_eq(+right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +o0: Nat, +o1: Nat, +o2: Nat, +o3: Nat, +o4: Nat, +o5: Nat, +o6: Nat, +o7: Nat, +in0: {Nat.is_lt(U32.to_nat(U32.from_nat(o0)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in1: {Nat.is_lt(U32.to_nat(U32.from_nat(o1)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in2: {Nat.is_lt(U32.to_nat(U32.from_nat(o2)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in3: {Nat.is_lt(U32.to_nat(U32.from_nat(o3)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in4: {Nat.is_lt(U32.to_nat(U32.from_nat(o4)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in5: {Nat.is_lt(U32.to_nat(U32.from_nat(o5)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in6: {Nat.is_lt(U32.to_nat(U32.from_nat(o6)), U32.to_nat(Shape.count(right))) == True{} : Bool}, +in7: {Nat.is_lt(U32.to_nat(U32.from_nat(o7)), U32.to_nat(Shape.count(right))) == True{} : Bool}) ->  {Matrix.read_eight(Api.arr(hb, dr, fb), o0, o1, o2, o3, o4, o5, o6, o7) == (Api.arr(hb, dr, fb), Matrix.Eight{Replayed.value(right, right_fill, right_ops, U32.from_nat(o0)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o1)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o2)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o3)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o4)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o5)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o6)), Replayed.value(right, right_fill, right_ops, U32.from_nat(o7))}) : Array<F32> & Matrix.Eight}:  eight_read_1_eq(right, right_fill, right_ops, hb, dr, fb, rsrc, o0, o1, o2, o3, o4, o5, o6, o7, in0, in1, in2, in3, in4, in5, in6, in7, Array.get(F32, Api.arr(hb, dr, fb), U32.from_nat(o0)), {==})# The last term of a row run: the reads hold the replayed words, and both# copies come back.def row_last(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +row: Nat, +c0: Nat, +c1: Nat, +c2: Nat, +c3: Nat, +c4: Nat, +c5: Nat, +c6: Nat, +c7: Nat, +cursor: Nat, +a0: F32, +a1: F32, +a2: F32, +a3: F32, +a4: F32, +a5: F32, +a6: F32, +a7: F32,  +row_below: {Nat.is_lt(row, rows) == True{} : Bool}, +left_extents: Fits(lo, span, rows, left),  +cb0: {Nat.is_lt(c0, columns) == True{} : Bool}, +cb1: {Nat.is_lt(c1, columns) == True{} : Bool}, +cb2: {Nat.is_lt(c2, columns) == True{} : Bool}, +cb3: {Nat.is_lt(c3, columns) == True{} : Bool}, +cb4: {Nat.is_lt(c4, columns) == True{} : Bool}, +cb5: {Nat.is_lt(c5, columns) == True{} : Bool}, +cb6: {Nat.is_lt(c6, columns) == True{} : Bool}, +cb7: {Nat.is_lt(c7, columns) == True{} : Bool}, +right_extents: Fits(ro, span, columns, right),  +below: {Nat.is_lt(cursor, span) == True{} : Bool},  pl: Array<F32> & F32, +exact_l: {pl == Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, cursor))) : Array<F32> & F32},  pr: Array<F32> & Matrix.Eight, +exact_r: {pr == Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, cursor), Matrix.read_offset(ro, span, columns, c1, cursor), Matrix.read_offset(ro, span, columns, c2, cursor), Matrix.read_offset(ro, span, columns, c3, cursor), Matrix.read_offset(ro, span, columns, c4, cursor), Matrix.read_offset(ro, span, columns, c5, cursor), Matrix.read_offset(ro, span, columns, c6, cursor), Matrix.read_offset(ro, span, columns, c7, cursor)) : Array<F32> & Matrix.Eight}) ->  {Matrix.row_run(0n, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, cursor), Matrix.read_offset(ro, span, columns, c0, cursor), Matrix.read_offset(ro, span, columns, c1, cursor), Matrix.read_offset(ro, span, columns, c2, cursor), Matrix.read_offset(ro, span, columns, c3, cursor), Matrix.read_offset(ro, span, columns, c4, cursor), Matrix.read_offset(ro, span, columns, c5, cursor), Matrix.read_offset(ro, span, columns, c6, cursor), Matrix.read_offset(ro, span, columns, c7, cursor), Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, pl, pr) == (Matrix.Eight{fold_from(1n, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(1n, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(1n, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(1n, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(1n, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(1n, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(1n, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(1n, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}:  (la, x) = pl  (ra, ys) = pr  +ex = source_read(left, left_fill, left_ops, ha, dl, fa, lsrc, Matrix.read_index(lo, span, rows, row, cursor),    index_inside(left, Matrix.read_offset(lo, span, rows, row, cursor), read_below(lo, span, rows, row, row_below, left, left_extents, cursor, below)),    (la, x), exact_l)  +el = Build.got_kept(dl, ha, fa, Matrix.read_index(lo, span, rows, row, cursor), (la, x), exact_l)  +read = Equal.trans(Array<F32> & Matrix.Eight, (ra, ys), Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, cursor), Matrix.read_offset(ro, span, columns, c1, cursor), Matrix.read_offset(ro, span, columns, c2, cursor), Matrix.read_offset(ro, span, columns, c3, cursor), Matrix.read_offset(ro, span, columns, c4, cursor), Matrix.read_offset(ro, span, columns, c5, cursor), Matrix.read_offset(ro, span, columns, c6, cursor), Matrix.read_offset(ro, span, columns, c7, cursor)),    (Api.arr(hb, dr, fb), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), exact_r,    read_eight_eq(right, right_fill, right_ops, hb, dr, fb, rsrc, Matrix.read_offset(ro, span, columns, c0, cursor), Matrix.read_offset(ro, span, columns, c1, cursor), Matrix.read_offset(ro, span, columns, c2, cursor), Matrix.read_offset(ro, span, columns, c3, cursor), Matrix.read_offset(ro, span, columns, c4, cursor), Matrix.read_offset(ro, span, columns, c5, cursor), Matrix.read_offset(ro, span, columns, c6, cursor), Matrix.read_offset(ro, span, columns, c7, cursor), index_inside(right, Matrix.read_offset(ro, span, columns, c0, cursor), read_below(ro, span, columns, c0, cb0, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c1, cursor), read_below(ro, span, columns, c1, cb1, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c2, cursor), read_below(ro, span, columns, c2, cb2, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c3, cursor), read_below(ro, span, columns, c3, cb3, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c4, cursor), read_below(ro, span, columns, c4, cb4, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c5, cursor), read_below(ro, span, columns, c5, cb5, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c6, cursor), read_below(ro, span, columns, c6, cb6, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c7, cursor), read_below(ro, span, columns, c7, cb7, right, right_extents, cursor, below))))  +er = Equal.cong(Array<F32> & Matrix.Eight, Array<F32>, q => Pair.fst(Array<F32>, Matrix.Eight, q), (ra, ys), (Api.arr(hb, dr, fb), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), read)  +ey = Equal.cong(Array<F32> & Matrix.Eight, Matrix.Eight, q => Pair.snd(Array<F32>, Matrix.Eight, q), (ra, ys), (Api.arr(hb, dr, fb), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), read)  %Equal.sym(F32, x, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), ex) :    {(Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, _, ys), (la, ra)) == (Matrix.Eight{fold_from(1n, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(1n, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(1n, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(1n, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(1n, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(1n, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(1n, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(1n, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Matrix.Eight, ys, Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}, ey) :    {(Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), _), (la, ra)) == (Matrix.Eight{fold_from(1n, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(1n, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(1n, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(1n, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(1n, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(1n, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(1n, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(1n, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Array<F32>, la, Api.arr(ha, dl, fa), el) :    {(Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), (_, ra)) == (Matrix.Eight{fold_from(1n, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(1n, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(1n, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(1n, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(1n, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(1n, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(1n, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(1n, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Array<F32>, ra, Api.arr(hb, dr, fb), er) :    {(Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), (Api.arr(ha, dl, fa), _)) == (Matrix.Eight{fold_from(1n, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(1n, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(1n, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(1n, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(1n, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(1n, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(1n, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(1n, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  {==}# A term with more after it: the reads hold the replayed words, the offsets# step to the next term's, and the run goes on from its reads of the same# copies.def row_next(+rest: Nat, +lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +row: Nat, +c0: Nat, +c1: Nat, +c2: Nat, +c3: Nat, +c4: Nat, +c5: Nat, +c6: Nat, +c7: Nat, +cursor: Nat, +a0: F32, +a1: F32, +a2: F32, +a3: F32, +a4: F32, +a5: F32, +a6: F32, +a7: F32,  +row_below: {Nat.is_lt(row, rows) == True{} : Bool}, +left_extents: Fits(lo, span, rows, left),  +cb0: {Nat.is_lt(c0, columns) == True{} : Bool}, +cb1: {Nat.is_lt(c1, columns) == True{} : Bool}, +cb2: {Nat.is_lt(c2, columns) == True{} : Bool}, +cb3: {Nat.is_lt(c3, columns) == True{} : Bool}, +cb4: {Nat.is_lt(c4, columns) == True{} : Bool}, +cb5: {Nat.is_lt(c5, columns) == True{} : Bool}, +cb6: {Nat.is_lt(c6, columns) == True{} : Bool}, +cb7: {Nat.is_lt(c7, columns) == True{} : Bool}, +right_extents: Fits(ro, span, columns, right),  +below: {Nat.is_lt(cursor, span) == True{} : Bool},  pl: Array<F32> & F32, +exact_l: {pl == Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, cursor))) : Array<F32> & F32},  pr: Array<F32> & Matrix.Eight, +exact_r: {pr == Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, cursor), Matrix.read_offset(ro, span, columns, c1, cursor), Matrix.read_offset(ro, span, columns, c2, cursor), Matrix.read_offset(ro, span, columns, c3, cursor), Matrix.read_offset(ro, span, columns, c4, cursor), Matrix.read_offset(ro, span, columns, c5, cursor), Matrix.read_offset(ro, span, columns, c6, cursor), Matrix.read_offset(ro, span, columns, c7, cursor)) : Array<F32> & Matrix.Eight},  next: {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, 1n+cursor), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), Matrix.read_offset(ro, span, columns, c3, 1n+cursor), Matrix.read_offset(ro, span, columns, c4, 1n+cursor), Matrix.read_offset(ro, span, columns, c5, 1n+cursor), Matrix.read_offset(ro, span, columns, c6, 1n+cursor), Matrix.read_offset(ro, span, columns, c7, 1n+cursor), Matrix.Eight{F32.add(a0, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)))), F32.add(a1, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)))), F32.add(a2, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)))), F32.add(a3, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)))), F32.add(a4, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)))), F32.add(a5, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)))), F32.add(a6, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)))), F32.add(a7, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))))}, Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, 1n+cursor))), Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), Matrix.read_offset(ro, span, columns, c3, 1n+cursor), Matrix.read_offset(ro, span, columns, c4, 1n+cursor), Matrix.read_offset(ro, span, columns, c5, 1n+cursor), Matrix.read_offset(ro, span, columns, c6, 1n+cursor), Matrix.read_offset(ro, span, columns, c7, 1n+cursor))) == (Matrix.Eight{fold_from(1n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, 1n+cursor, F32.add(a0, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor))))), fold_from(1n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, 1n+cursor, F32.add(a1, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor))))), fold_from(1n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, 1n+cursor, F32.add(a2, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor))))), fold_from(1n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, 1n+cursor, F32.add(a3, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor))))), fold_from(1n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, 1n+cursor, F32.add(a4, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor))))), fold_from(1n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, 1n+cursor, F32.add(a5, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor))))), fold_from(1n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, 1n+cursor, F32.add(a6, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor))))), fold_from(1n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, 1n+cursor, F32.add(a7, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor)))))}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}) ->  {Matrix.row_run(1n+rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, cursor), Matrix.read_offset(ro, span, columns, c0, cursor), Matrix.read_offset(ro, span, columns, c1, cursor), Matrix.read_offset(ro, span, columns, c2, cursor), Matrix.read_offset(ro, span, columns, c3, cursor), Matrix.read_offset(ro, span, columns, c4, cursor), Matrix.read_offset(ro, span, columns, c5, cursor), Matrix.read_offset(ro, span, columns, c6, cursor), Matrix.read_offset(ro, span, columns, c7, cursor), Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, pl, pr) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}:  (la, x) = pl  (ra, ys) = pr  +ex = source_read(left, left_fill, left_ops, ha, dl, fa, lsrc, Matrix.read_index(lo, span, rows, row, cursor),    index_inside(left, Matrix.read_offset(lo, span, rows, row, cursor), read_below(lo, span, rows, row, row_below, left, left_extents, cursor, below)),    (la, x), exact_l)  +el = Build.got_kept(dl, ha, fa, Matrix.read_index(lo, span, rows, row, cursor), (la, x), exact_l)  +read = Equal.trans(Array<F32> & Matrix.Eight, (ra, ys), Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, cursor), Matrix.read_offset(ro, span, columns, c1, cursor), Matrix.read_offset(ro, span, columns, c2, cursor), Matrix.read_offset(ro, span, columns, c3, cursor), Matrix.read_offset(ro, span, columns, c4, cursor), Matrix.read_offset(ro, span, columns, c5, cursor), Matrix.read_offset(ro, span, columns, c6, cursor), Matrix.read_offset(ro, span, columns, c7, cursor)),    (Api.arr(hb, dr, fb), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), exact_r,    read_eight_eq(right, right_fill, right_ops, hb, dr, fb, rsrc, Matrix.read_offset(ro, span, columns, c0, cursor), Matrix.read_offset(ro, span, columns, c1, cursor), Matrix.read_offset(ro, span, columns, c2, cursor), Matrix.read_offset(ro, span, columns, c3, cursor), Matrix.read_offset(ro, span, columns, c4, cursor), Matrix.read_offset(ro, span, columns, c5, cursor), Matrix.read_offset(ro, span, columns, c6, cursor), Matrix.read_offset(ro, span, columns, c7, cursor), index_inside(right, Matrix.read_offset(ro, span, columns, c0, cursor), read_below(ro, span, columns, c0, cb0, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c1, cursor), read_below(ro, span, columns, c1, cb1, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c2, cursor), read_below(ro, span, columns, c2, cb2, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c3, cursor), read_below(ro, span, columns, c3, cb3, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c4, cursor), read_below(ro, span, columns, c4, cb4, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c5, cursor), read_below(ro, span, columns, c5, cb5, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c6, cursor), read_below(ro, span, columns, c6, cb6, right, right_extents, cursor, below)), index_inside(right, Matrix.read_offset(ro, span, columns, c7, cursor), read_below(ro, span, columns, c7, cb7, right, right_extents, cursor, below))))  +er = Equal.cong(Array<F32> & Matrix.Eight, Array<F32>, q => Pair.fst(Array<F32>, Matrix.Eight, q), (ra, ys), (Api.arr(hb, dr, fb), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), read)  +ey = Equal.cong(Array<F32> & Matrix.Eight, Matrix.Eight, q => Pair.snd(Array<F32>, Matrix.Eight, q), (ra, ys), (Api.arr(hb, dr, fb), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), read)  %Equal.sym(F32, x, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), ex) :    {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c0, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c1, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)), Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, _, ys), Array.get(F32, la, U32.from_nat(Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)))), Matrix.read_eight(ra, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c0, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c1, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)))) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Matrix.Eight, ys, Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}, ey) :    {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c0, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c1, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)), Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), _), Array.get(F32, la, U32.from_nat(Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)))), Matrix.read_eight(ra, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c0, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c1, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)))) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Array<F32>, la, Api.arr(ha, dl, fa), el) :    {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c0, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c1, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)), Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), Array.get(F32, _, U32.from_nat(Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)))), Matrix.read_eight(ra, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c0, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c1, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)))) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Array<F32>, ra, Api.arr(hb, dr, fb), er) :    {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c0, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c1, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)), Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)))), Matrix.read_eight(_, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c0, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c1, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)))) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Nat, Nat.add(Matrix.stride(lo, rows), Matrix.read_offset(lo, span, rows, row, cursor)), Matrix.read_offset(lo, span, rows, row, 1n+cursor), stepped(lo, span, rows, row, cursor)) :    {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c0, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c1, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)), Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(_)), Matrix.read_eight(Api.arr(hb, dr, fb), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c0, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c1, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)))) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Nat, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c0, cursor)), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), stepped(ro, span, columns, c0, cursor)) :    {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, 1n+cursor), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c1, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)), Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, 1n+cursor))), Matrix.read_eight(Api.arr(hb, dr, fb), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c1, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)))) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Nat, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c1, cursor)), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), stepped(ro, span, columns, c1, cursor)) :    {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, 1n+cursor), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)), Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, 1n+cursor))), Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)))) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Nat, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c2, cursor)), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), stepped(ro, span, columns, c2, cursor)) :    {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, 1n+cursor), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)), Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, 1n+cursor))), Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)))) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Nat, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c3, cursor)), Matrix.read_offset(ro, span, columns, c3, 1n+cursor), stepped(ro, span, columns, c3, cursor)) :    {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, 1n+cursor), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)), Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, 1n+cursor))), Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)))) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Nat, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c4, cursor)), Matrix.read_offset(ro, span, columns, c4, 1n+cursor), stepped(ro, span, columns, c4, cursor)) :    {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, 1n+cursor), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), Matrix.read_offset(ro, span, columns, c3, 1n+cursor), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)), Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, 1n+cursor))), Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), Matrix.read_offset(ro, span, columns, c3, 1n+cursor), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)))) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Nat, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c5, cursor)), Matrix.read_offset(ro, span, columns, c5, 1n+cursor), stepped(ro, span, columns, c5, cursor)) :    {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, 1n+cursor), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), Matrix.read_offset(ro, span, columns, c3, 1n+cursor), Matrix.read_offset(ro, span, columns, c4, 1n+cursor), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)), Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, 1n+cursor))), Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), Matrix.read_offset(ro, span, columns, c3, 1n+cursor), Matrix.read_offset(ro, span, columns, c4, 1n+cursor), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)))) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Nat, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c6, cursor)), Matrix.read_offset(ro, span, columns, c6, 1n+cursor), stepped(ro, span, columns, c6, cursor)) :    {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, 1n+cursor), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), Matrix.read_offset(ro, span, columns, c3, 1n+cursor), Matrix.read_offset(ro, span, columns, c4, 1n+cursor), Matrix.read_offset(ro, span, columns, c5, 1n+cursor), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)), Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, 1n+cursor))), Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), Matrix.read_offset(ro, span, columns, c3, 1n+cursor), Matrix.read_offset(ro, span, columns, c4, 1n+cursor), Matrix.read_offset(ro, span, columns, c5, 1n+cursor), _, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)))) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  %Equal.sym(Nat, Nat.add(Matrix.stride(ro, columns), Matrix.read_offset(ro, span, columns, c7, cursor)), Matrix.read_offset(ro, span, columns, c7, 1n+cursor), stepped(ro, span, columns, c7, cursor)) :    {Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, 1n+cursor), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), Matrix.read_offset(ro, span, columns, c3, 1n+cursor), Matrix.read_offset(ro, span, columns, c4, 1n+cursor), Matrix.read_offset(ro, span, columns, c5, 1n+cursor), Matrix.read_offset(ro, span, columns, c6, 1n+cursor), _, Matrix.eight_terms(Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Matrix.Eight{Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor))}), Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, 1n+cursor))), Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), Matrix.read_offset(ro, span, columns, c3, 1n+cursor), Matrix.read_offset(ro, span, columns, c4, 1n+cursor), Matrix.read_offset(ro, span, columns, c5, 1n+cursor), Matrix.read_offset(ro, span, columns, c6, 1n+cursor), _)) == (Matrix.Eight{fold_from(2n+rest, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(2n+rest, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(2n+rest, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(2n+rest, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(2n+rest, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(2n+rest, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(2n+rest, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(2n+rest, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}  next# A row run of fuel + 1 terms from cursor folds each cell's replayed words in# increasing k and hands both copies back.def row_eq(+fuel: Nat, +lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +row: Nat, +c0: Nat, +c1: Nat, +c2: Nat, +c3: Nat, +c4: Nat, +c5: Nat, +c6: Nat, +c7: Nat, +cursor: Nat, +a0: F32, +a1: F32, +a2: F32, +a3: F32, +a4: F32, +a5: F32, +a6: F32, +a7: F32,  +row_below: {Nat.is_lt(row, rows) == True{} : Bool}, +left_extents: Fits(lo, span, rows, left),  +cb0: {Nat.is_lt(c0, columns) == True{} : Bool}, +cb1: {Nat.is_lt(c1, columns) == True{} : Bool}, +cb2: {Nat.is_lt(c2, columns) == True{} : Bool}, +cb3: {Nat.is_lt(c3, columns) == True{} : Bool}, +cb4: {Nat.is_lt(c4, columns) == True{} : Bool}, +cb5: {Nat.is_lt(c5, columns) == True{} : Bool}, +cb6: {Nat.is_lt(c6, columns) == True{} : Bool}, +cb7: {Nat.is_lt(c7, columns) == True{} : Bool}, +right_extents: Fits(ro, span, columns, right),  +steps: {Nat.add(cursor, 1n+fuel) == span : Nat},  pl: Array<F32> & F32, +exact_l: {pl == Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, cursor))) : Array<F32> & F32},  pr: Array<F32> & Matrix.Eight, +exact_r: {pr == Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, cursor), Matrix.read_offset(ro, span, columns, c1, cursor), Matrix.read_offset(ro, span, columns, c2, cursor), Matrix.read_offset(ro, span, columns, c3, cursor), Matrix.read_offset(ro, span, columns, c4, cursor), Matrix.read_offset(ro, span, columns, c5, cursor), Matrix.read_offset(ro, span, columns, c6, cursor), Matrix.read_offset(ro, span, columns, c7, cursor)) : Array<F32> & Matrix.Eight}) ->  {Matrix.row_run(fuel, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, row, cursor), Matrix.read_offset(ro, span, columns, c0, cursor), Matrix.read_offset(ro, span, columns, c1, cursor), Matrix.read_offset(ro, span, columns, c2, cursor), Matrix.read_offset(ro, span, columns, c3, cursor), Matrix.read_offset(ro, span, columns, c4, cursor), Matrix.read_offset(ro, span, columns, c5, cursor), Matrix.read_offset(ro, span, columns, c6, cursor), Matrix.read_offset(ro, span, columns, c7, cursor), Matrix.Eight{a0, a1, a2, a3, a4, a5, a6, a7}, pl, pr) == (Matrix.Eight{fold_from(1n+fuel, lo, ro, span, rows, columns, row, c0, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a0), fold_from(1n+fuel, lo, ro, span, rows, columns, row, c1, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a1), fold_from(1n+fuel, lo, ro, span, rows, columns, row, c2, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a2), fold_from(1n+fuel, lo, ro, span, rows, columns, row, c3, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a3), fold_from(1n+fuel, lo, ro, span, rows, columns, row, c4, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a4), fold_from(1n+fuel, lo, ro, span, rows, columns, row, c5, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a5), fold_from(1n+fuel, lo, ro, span, rows, columns, row, c6, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a6), fold_from(1n+fuel, lo, ro, span, rows, columns, row, c7, left, left_fill, left_ops, right, right_fill, right_ops, cursor, a7)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) : Matrix.Eight & (Array<F32> & Array<F32>)}:  match fuel:    case 0n:      row_last(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, lsrc, rsrc, row, c0, c1, c2, c3, c4, c5, c6, c7, cursor, a0, a1, a2, a3, a4, a5, a6, a7, row_below, left_extents, cb0, cb1, cb2, cb3, cb4, cb5, cb6, cb7, right_extents, MatrixIndex.cursor_below(cursor, 0n, span, steps), pl, exact_l, pr, exact_r)    case 1n+rest:      row_next(rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, lsrc, rsrc, row, c0, c1, c2, c3, c4, c5, c6, c7, cursor, a0, a1, a2, a3, a4, a5, a6, a7, row_below, left_extents, cb0, cb1, cb2, cb3, cb4, cb5, cb6, cb7, right_extents, MatrixIndex.cursor_below(cursor, 1n+rest, span, steps), pl, exact_l, pr, exact_r,        row_eq(rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, lsrc, rsrc, row, c0, c1, c2, c3, c4, c5, c6, c7, 1n+cursor, F32.add(a0, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c0, cursor)))), F32.add(a1, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c1, cursor)))), F32.add(a2, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c2, cursor)))), F32.add(a3, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c3, cursor)))), F32.add(a4, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c4, cursor)))), F32.add(a5, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c5, cursor)))), F32.add(a6, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c6, cursor)))), F32.add(a7, F32.mul(Replayed.value(left, left_fill, left_ops, Matrix.read_index(lo, span, rows, row, cursor)), Replayed.value(right, right_fill, right_ops, Matrix.read_index(ro, span, columns, c7, cursor)))), row_below, left_extents, cb0, cb1, cb2, cb3, cb4, cb5, cb6, cb7, right_extents, MatrixIndex.steps_next(cursor, 1n+rest, span, steps),          Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, row, 1n+cursor))), {==},          Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, c0, 1n+cursor), Matrix.read_offset(ro, span, columns, c1, 1n+cursor), Matrix.read_offset(ro, span, columns, c2, 1n+cursor), Matrix.read_offset(ro, span, columns, c3, 1n+cursor), Matrix.read_offset(ro, span, columns, c4, 1n+cursor), Matrix.read_offset(ro, span, columns, c5, 1n+cursor), Matrix.read_offset(ro, span, columns, c6, 1n+cursor), Matrix.read_offset(ro, span, columns, c7, 1n+cursor)), {==}))# A row block of fuel terms holds each cell's fold of its replayed words.def row_block_eq(+fuel: Nat, +lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>, +base: Nat,  +row_below: {Nat.is_lt(Matrix.row_of(columns, base), rows) == True{} : Bool}, +left_extents: Fits(lo, span, rows, left),  +cb0: {Nat.is_lt(Matrix.column_of(columns, base), columns) == True{} : Bool}, +cb1: {Nat.is_lt(Matrix.column_of(columns, Nat.add(1n, base)), columns) == True{} : Bool}, +cb2: {Nat.is_lt(Matrix.column_of(columns, Nat.add(2n, base)), columns) == True{} : Bool}, +cb3: {Nat.is_lt(Matrix.column_of(columns, Nat.add(3n, base)), columns) == True{} : Bool}, +cb4: {Nat.is_lt(Matrix.column_of(columns, Nat.add(4n, base)), columns) == True{} : Bool}, +cb5: {Nat.is_lt(Matrix.column_of(columns, Nat.add(5n, base)), columns) == True{} : Bool}, +cb6: {Nat.is_lt(Matrix.column_of(columns, Nat.add(6n, base)), columns) == True{} : Bool}, +cb7: {Nat.is_lt(Matrix.column_of(columns, Nat.add(7n, base)), columns) == True{} : Bool}, +right_extents: Fits(ro, span, columns, right),  +steps: {fuel == span : Nat}) ->  {Matrix.row_block_run(fuel, lo, ro, span, rows, columns, base, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)) == (ANode{ANode{ANode{ALeaf{fold_from(fuel, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, base), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(fuel, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(1n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}, ANode{ALeaf{fold_from(fuel, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(2n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(fuel, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(3n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}, ANode{ANode{ALeaf{fold_from(fuel, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(4n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(fuel, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(5n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}, ANode{ALeaf{fold_from(fuel, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(6n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(fuel, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(7n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) :    Array<F32> & (Array<F32> & Array<F32>)}:  match fuel:    case 0n:      {==}    case 1n+rest:      +run = row_eq(rest, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, lsrc, rsrc, Matrix.row_of(columns, base), Matrix.column_of(columns, base), Matrix.column_of(columns, Nat.add(1n, base)), Matrix.column_of(columns, Nat.add(2n, base)), Matrix.column_of(columns, Nat.add(3n, base)), Matrix.column_of(columns, Nat.add(4n, base)), Matrix.column_of(columns, Nat.add(5n, base)), Matrix.column_of(columns, Nat.add(6n, base)), Matrix.column_of(columns, Nat.add(7n, base)), 0n, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,        row_below, left_extents, cb0, cb1, cb2, cb3, cb4, cb5, cb6, cb7, right_extents, steps,        Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, Matrix.row_of(columns, base), 0n))), {==}, Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, base), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(1n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(2n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(3n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(4n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(5n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(6n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(7n, base)), 0n)), {==})      %Equal.sym(Matrix.Eight & (Array<F32> & Array<F32>), Matrix.row_run(rest, Matrix.stride(lo, rows), Matrix.stride(ro, columns), Matrix.read_offset(lo, span, rows, Matrix.row_of(columns, base), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, base), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(1n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(2n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(3n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(4n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(5n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(6n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(7n, base)), 0n), Matrix.Eight{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, Array.get(F32, Api.arr(ha, dl, fa), U32.from_nat(Matrix.read_offset(lo, span, rows, Matrix.row_of(columns, base), 0n))), Matrix.read_eight(Api.arr(hb, dr, fb), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, base), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(1n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(2n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(3n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(4n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(5n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(6n, base)), 0n), Matrix.read_offset(ro, span, columns, Matrix.column_of(columns, Nat.add(7n, base)), 0n))), (Matrix.Eight{fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, base), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0), fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(1n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0), fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(2n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0), fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(3n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0), fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(4n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0), fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(5n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0), fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(6n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0), fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(7n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))), run) :        {Matrix.eight_leaves(_) == (ANode{ANode{ANode{ALeaf{fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, base), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(1n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}, ANode{ALeaf{fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(2n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(3n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}, ANode{ANode{ALeaf{fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(4n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(5n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}, ANode{ALeaf{fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(6n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(1n+rest, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(7n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))) :          Array<F32> & (Array<F32> & Array<F32>)}      {==}# A cell of a row block at `position`, in row `row`: its fold is the cell's# spec word.def block_leaf_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +position: Nat, +row: Nat,  +same: {Matrix.row_of(columns, position) == row : Nat}, +below: {Nat.is_lt(position, count) == True{} : Bool}) ->  {out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, position, Nat.is_lt(position, count)) == fold_from(span, lo, ro, span, rows, columns, row, Matrix.column_of(columns, position), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0) : F32}:  %Equal.sym(Bool, Nat.is_lt(position, count), True{}, below) :    {out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, position, _) == fold_from(span, lo, ro, span, rows, columns, row, Matrix.column_of(columns, position), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0) : F32}  %Equal.sym(Nat, Matrix.row_of(columns, position), row, same) :    {DotFold.dot_fold(Laws.product_factors(_, Matrix.column_of(columns, position), lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, span), 0.0) == fold_from(span, lo, ro, span, rows, columns, row, Matrix.column_of(columns, position), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0) : F32}  Equal.sym(F32, fold_from(span, lo, ro, span, rows, columns, row, Matrix.column_of(columns, position), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0),    DotFold.dot_fold(Laws.product_factors(row, Matrix.column_of(columns, position), lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, span), 0.0),    fold_factors(span, lo, ro, span, rows, columns, row, Matrix.column_of(columns, position), left, left_fill, left_ops, right, right_fill, right_ops, 0n, {==}))# A row block: each of its eight cells holds its spec word, and both copies# come back.def row_block_tree(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>,  +output: Shape.Shape,  +left_extents: Fits(lo, span, rows, left),  +right_extents: Fits(ro, span, columns, right),  +output_extents: {Shape.extents(output) == [rows, columns] : List<&2, Nat>},  +count_exact: {count == Shape.logical_numel(Shape.dimensions(output)) : Nat}, +base: Nat,  +one: {True{} == Matrix.one_row(Matrix.Layout{lo, ro, span, rows, columns}, count, base) : Bool}) ->  TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 3n, base, Matrix.row_block(Matrix.Layout{lo, ro, span, rows, columns}, base, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)))):  +h0 = Equal.sym(Bool, True{}, Matrix.one_row(Matrix.Layout{lo, ro, span, rows, columns}, count, base), one)  +below0 = Arith.and_left(Nat.is_lt(base, count), Bool.and(Nat.is_lt(Nat.add(1n, base), count), Bool.and(Nat.is_lt(Nat.add(2n, base), count), Bool.and(Nat.is_lt(Nat.add(3n, base), count), Bool.and(Nat.is_lt(Nat.add(4n, base), count), Bool.and(Nat.is_lt(Nat.add(5n, base), count), Bool.and(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})))))))))))))), h0)  +h1 = Arith.and_right(Nat.is_lt(base, count), Bool.and(Nat.is_lt(Nat.add(1n, base), count), Bool.and(Nat.is_lt(Nat.add(2n, base), count), Bool.and(Nat.is_lt(Nat.add(3n, base), count), Bool.and(Nat.is_lt(Nat.add(4n, base), count), Bool.and(Nat.is_lt(Nat.add(5n, base), count), Bool.and(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})))))))))))))), h0)  +below1 = Arith.and_left(Nat.is_lt(Nat.add(1n, base), count), Bool.and(Nat.is_lt(Nat.add(2n, base), count), Bool.and(Nat.is_lt(Nat.add(3n, base), count), Bool.and(Nat.is_lt(Nat.add(4n, base), count), Bool.and(Nat.is_lt(Nat.add(5n, base), count), Bool.and(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}))))))))))))), h1)  +h2 = Arith.and_right(Nat.is_lt(Nat.add(1n, base), count), Bool.and(Nat.is_lt(Nat.add(2n, base), count), Bool.and(Nat.is_lt(Nat.add(3n, base), count), Bool.and(Nat.is_lt(Nat.add(4n, base), count), Bool.and(Nat.is_lt(Nat.add(5n, base), count), Bool.and(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}))))))))))))), h1)  +below2 = Arith.and_left(Nat.is_lt(Nat.add(2n, base), count), Bool.and(Nat.is_lt(Nat.add(3n, base), count), Bool.and(Nat.is_lt(Nat.add(4n, base), count), Bool.and(Nat.is_lt(Nat.add(5n, base), count), Bool.and(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})))))))))))), h2)  +h3 = Arith.and_right(Nat.is_lt(Nat.add(2n, base), count), Bool.and(Nat.is_lt(Nat.add(3n, base), count), Bool.and(Nat.is_lt(Nat.add(4n, base), count), Bool.and(Nat.is_lt(Nat.add(5n, base), count), Bool.and(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})))))))))))), h2)  +below3 = Arith.and_left(Nat.is_lt(Nat.add(3n, base), count), Bool.and(Nat.is_lt(Nat.add(4n, base), count), Bool.and(Nat.is_lt(Nat.add(5n, base), count), Bool.and(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}))))))))))), h3)  +h4 = Arith.and_right(Nat.is_lt(Nat.add(3n, base), count), Bool.and(Nat.is_lt(Nat.add(4n, base), count), Bool.and(Nat.is_lt(Nat.add(5n, base), count), Bool.and(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}))))))))))), h3)  +below4 = Arith.and_left(Nat.is_lt(Nat.add(4n, base), count), Bool.and(Nat.is_lt(Nat.add(5n, base), count), Bool.and(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})))))))))), h4)  +h5 = Arith.and_right(Nat.is_lt(Nat.add(4n, base), count), Bool.and(Nat.is_lt(Nat.add(5n, base), count), Bool.and(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})))))))))), h4)  +below5 = Arith.and_left(Nat.is_lt(Nat.add(5n, base), count), Bool.and(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}))))))))), h5)  +h6 = Arith.and_right(Nat.is_lt(Nat.add(5n, base), count), Bool.and(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}))))))))), h5)  +below6 = Arith.and_left(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})))))))), h6)  +h7 = Arith.and_right(Nat.is_lt(Nat.add(6n, base), count), Bool.and(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})))))))), h6)  +below7 = Arith.and_left(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}))))))), h7)  +h8 = Arith.and_right(Nat.is_lt(Nat.add(7n, base), count), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}))))))), h7)  +same1 = Arith.and_left(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})))))), h8)  +h9 = Arith.and_right(Nat.is_eq(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})))))), h8)  +same2 = Arith.and_left(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}))))), h9)  +h10 = Arith.and_right(Nat.is_eq(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}))))), h9)  +same3 = Arith.and_left(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})))), h10)  +h11 = Arith.and_right(Nat.is_eq(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})))), h10)  +same4 = Arith.and_left(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}))), h11)  +h12 = Arith.and_right(Nat.is_eq(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}))), h11)  +same5 = Arith.and_left(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})), h12)  +h13 = Arith.and_right(Nat.is_eq(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{})), h12)  +same6 = Arith.and_left(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}), h13)  +h14 = Arith.and_right(Nat.is_eq(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base)), Bool.and(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}), h13)  +same7 = Arith.and_left(Nat.is_eq(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base)), True{}, h14)  +fit0 = MatrixIndex.position_fits(output, rows, columns, output_extents, base,    MatrixIndex.lt_bound(base, count, Shape.logical_numel(Shape.dimensions(output)), count_exact, below0))  +cb0 = Arith.and_left(Nat.is_lt(Matrix.column_of(columns, base), columns), True{},    Arith.and_right(Nat.is_lt(Matrix.row_of(columns, base), rows), Bool.and(Nat.is_lt(Matrix.column_of(columns, base), columns), True{}), fit0))  +fit1 = MatrixIndex.position_fits(output, rows, columns, output_extents, Nat.add(1n, base),    MatrixIndex.lt_bound(Nat.add(1n, base), count, Shape.logical_numel(Shape.dimensions(output)), count_exact, below1))  +cb1 = Arith.and_left(Nat.is_lt(Matrix.column_of(columns, Nat.add(1n, base)), columns), True{},    Arith.and_right(Nat.is_lt(Matrix.row_of(columns, Nat.add(1n, base)), rows), Bool.and(Nat.is_lt(Matrix.column_of(columns, Nat.add(1n, base)), columns), True{}), fit1))  +fit2 = MatrixIndex.position_fits(output, rows, columns, output_extents, Nat.add(2n, base),    MatrixIndex.lt_bound(Nat.add(2n, base), count, Shape.logical_numel(Shape.dimensions(output)), count_exact, below2))  +cb2 = Arith.and_left(Nat.is_lt(Matrix.column_of(columns, Nat.add(2n, base)), columns), True{},    Arith.and_right(Nat.is_lt(Matrix.row_of(columns, Nat.add(2n, base)), rows), Bool.and(Nat.is_lt(Matrix.column_of(columns, Nat.add(2n, base)), columns), True{}), fit2))  +fit3 = MatrixIndex.position_fits(output, rows, columns, output_extents, Nat.add(3n, base),    MatrixIndex.lt_bound(Nat.add(3n, base), count, Shape.logical_numel(Shape.dimensions(output)), count_exact, below3))  +cb3 = Arith.and_left(Nat.is_lt(Matrix.column_of(columns, Nat.add(3n, base)), columns), True{},    Arith.and_right(Nat.is_lt(Matrix.row_of(columns, Nat.add(3n, base)), rows), Bool.and(Nat.is_lt(Matrix.column_of(columns, Nat.add(3n, base)), columns), True{}), fit3))  +fit4 = MatrixIndex.position_fits(output, rows, columns, output_extents, Nat.add(4n, base),    MatrixIndex.lt_bound(Nat.add(4n, base), count, Shape.logical_numel(Shape.dimensions(output)), count_exact, below4))  +cb4 = Arith.and_left(Nat.is_lt(Matrix.column_of(columns, Nat.add(4n, base)), columns), True{},    Arith.and_right(Nat.is_lt(Matrix.row_of(columns, Nat.add(4n, base)), rows), Bool.and(Nat.is_lt(Matrix.column_of(columns, Nat.add(4n, base)), columns), True{}), fit4))  +fit5 = MatrixIndex.position_fits(output, rows, columns, output_extents, Nat.add(5n, base),    MatrixIndex.lt_bound(Nat.add(5n, base), count, Shape.logical_numel(Shape.dimensions(output)), count_exact, below5))  +cb5 = Arith.and_left(Nat.is_lt(Matrix.column_of(columns, Nat.add(5n, base)), columns), True{},    Arith.and_right(Nat.is_lt(Matrix.row_of(columns, Nat.add(5n, base)), rows), Bool.and(Nat.is_lt(Matrix.column_of(columns, Nat.add(5n, base)), columns), True{}), fit5))  +fit6 = MatrixIndex.position_fits(output, rows, columns, output_extents, Nat.add(6n, base),    MatrixIndex.lt_bound(Nat.add(6n, base), count, Shape.logical_numel(Shape.dimensions(output)), count_exact, below6))  +cb6 = Arith.and_left(Nat.is_lt(Matrix.column_of(columns, Nat.add(6n, base)), columns), True{},    Arith.and_right(Nat.is_lt(Matrix.row_of(columns, Nat.add(6n, base)), rows), Bool.and(Nat.is_lt(Matrix.column_of(columns, Nat.add(6n, base)), columns), True{}), fit6))  +fit7 = MatrixIndex.position_fits(output, rows, columns, output_extents, Nat.add(7n, base),    MatrixIndex.lt_bound(Nat.add(7n, base), count, Shape.logical_numel(Shape.dimensions(output)), count_exact, below7))  +cb7 = Arith.and_left(Nat.is_lt(Matrix.column_of(columns, Nat.add(7n, base)), columns), True{},    Arith.and_right(Nat.is_lt(Matrix.row_of(columns, Nat.add(7n, base)), rows), Bool.and(Nat.is_lt(Matrix.column_of(columns, Nat.add(7n, base)), columns), True{}), fit7))  +row_below = Arith.and_left(Nat.is_lt(Matrix.row_of(columns, base), rows), Bool.and(Nat.is_lt(Matrix.column_of(columns, base), columns), True{}), fit0)  %Equal.sym(Array<F32> & (Array<F32> & Array<F32>), Matrix.row_block_run(span, lo, ro, span, rows, columns, base, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)), (ANode{ANode{ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, base), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(1n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}, ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(2n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(3n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}, ANode{ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(4n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(5n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}, ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(6n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(7n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))),    row_block_eq(span, lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, lsrc, rsrc, base, row_below, left_extents, cb0, cb1, cb2, cb3, cb4, cb5, cb6, cb7, right_extents, {==})) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 3n, base, _)  %block_leaf_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, base, Matrix.row_of(columns, base), {==}, below0) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 3n, base, (ANode{ANode{ANode{ALeaf{_}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(1n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}, ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(2n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(3n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}, ANode{ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(4n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(5n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}, ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(6n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(7n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))))  %block_leaf_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, Nat.add(1n, base), Matrix.row_of(columns, base), Arith.eq_true(Matrix.row_of(columns, Nat.add(1n, base)), Matrix.row_of(columns, base), same1), below1) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 3n, base, (ANode{ANode{ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base, Nat.is_lt(base, count))}, ALeaf{_}}, ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(2n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(3n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}, ANode{ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(4n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(5n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}, ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(6n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(7n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))))  %block_leaf_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, Nat.add(2n, base), Matrix.row_of(columns, base), Arith.eq_true(Matrix.row_of(columns, Nat.add(2n, base)), Matrix.row_of(columns, base), same2), below2) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 3n, base, (ANode{ANode{ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base, Nat.is_lt(base, count))}, ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(1n, base), Nat.is_lt(Nat.add(1n, base), count))}}, ANode{ALeaf{_}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(3n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}, ANode{ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(4n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(5n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}, ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(6n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(7n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))))  %block_leaf_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, Nat.add(3n, base), Matrix.row_of(columns, base), Arith.eq_true(Matrix.row_of(columns, Nat.add(3n, base)), Matrix.row_of(columns, base), same3), below3) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 3n, base, (ANode{ANode{ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base, Nat.is_lt(base, count))}, ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(1n, base), Nat.is_lt(Nat.add(1n, base), count))}}, ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(2n, base), Nat.is_lt(Nat.add(2n, base), count))}, ALeaf{_}}}, ANode{ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(4n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(5n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}, ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(6n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(7n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))))  %block_leaf_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, Nat.add(4n, base), Matrix.row_of(columns, base), Arith.eq_true(Matrix.row_of(columns, Nat.add(4n, base)), Matrix.row_of(columns, base), same4), below4) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 3n, base, (ANode{ANode{ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base, Nat.is_lt(base, count))}, ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(1n, base), Nat.is_lt(Nat.add(1n, base), count))}}, ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(2n, base), Nat.is_lt(Nat.add(2n, base), count))}, ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(3n, base), Nat.is_lt(Nat.add(3n, base), count))}}}, ANode{ANode{ALeaf{_}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(5n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}, ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(6n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(7n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))))  %block_leaf_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, Nat.add(5n, base), Matrix.row_of(columns, base), Arith.eq_true(Matrix.row_of(columns, Nat.add(5n, base)), Matrix.row_of(columns, base), same5), below5) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 3n, base, (ANode{ANode{ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base, Nat.is_lt(base, count))}, ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(1n, base), Nat.is_lt(Nat.add(1n, base), count))}}, ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(2n, base), Nat.is_lt(Nat.add(2n, base), count))}, ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(3n, base), Nat.is_lt(Nat.add(3n, base), count))}}}, ANode{ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(4n, base), Nat.is_lt(Nat.add(4n, base), count))}, ALeaf{_}}, ANode{ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(6n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(7n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))))  %block_leaf_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, Nat.add(6n, base), Matrix.row_of(columns, base), Arith.eq_true(Matrix.row_of(columns, Nat.add(6n, base)), Matrix.row_of(columns, base), same6), below6) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 3n, base, (ANode{ANode{ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base, Nat.is_lt(base, count))}, ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(1n, base), Nat.is_lt(Nat.add(1n, base), count))}}, ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(2n, base), Nat.is_lt(Nat.add(2n, base), count))}, ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(3n, base), Nat.is_lt(Nat.add(3n, base), count))}}}, ANode{ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(4n, base), Nat.is_lt(Nat.add(4n, base), count))}, ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(5n, base), Nat.is_lt(Nat.add(5n, base), count))}}, ANode{ALeaf{_}, ALeaf{fold_from(span, lo, ro, span, rows, columns, Matrix.row_of(columns, base), Matrix.column_of(columns, Nat.add(7n, base)), left, left_fill, left_ops, right, right_fill, right_ops, 0n, 0.0)}}}}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))))  %block_leaf_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, Nat.add(7n, base), Matrix.row_of(columns, base), Arith.eq_true(Matrix.row_of(columns, Nat.add(7n, base)), Matrix.row_of(columns, base), same7), below7) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 3n, base, (ANode{ANode{ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, base, Nat.is_lt(base, count))}, ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(1n, base), Nat.is_lt(Nat.add(1n, base), count))}}, ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(2n, base), Nat.is_lt(Nat.add(2n, base), count))}, ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(3n, base), Nat.is_lt(Nat.add(3n, base), count))}}}, ANode{ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(4n, base), Nat.is_lt(Nat.add(4n, base), count))}, ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(5n, base), Nat.is_lt(Nat.add(5n, base), count))}}, ANode{ALeaf{out_leaf(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, Nat.add(6n, base), Nat.is_lt(Nat.add(6n, base), count))}, ALeaf{_}}}}, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))))  ({==}, ({==}, {==}))def block_or_tree_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>,  +output: Shape.Shape,  +left_extents: Fits(lo, span, rows, left),  +right_extents: Fits(ro, span, columns, right),  +output_extents: {Shape.extents(output) == [rows, columns] : List<&2, Nat>},  +count_exact: {count == Shape.logical_numel(Shape.dimensions(output)) : Nat}, +base: Nat, one: Bool,  +decided: {one == Matrix.one_row(Matrix.Layout{lo, ro, span, rows, columns}, count, base) : Bool}) ->  TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 3n, base, Matrix.block_or_tree(Matrix.Layout{lo, ro, span, rows, columns}, count, base, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)), one)):  match one:    case False{}:      tree_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, 3n, base)    case True{}:      row_block_tree(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, base, decided)# A node of the product tree: both halves walked, as tree_node_eq walks a# node of the one-thread tree.def product_node_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +lower: Nat, +base: Nat, low: Array<F32> & (Array<F32> & Array<F32>),  facts: TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lower, base, low),  next: TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lower, Nat.add(Model.capacity(lower), base), Matrix.product_tree(Matrix.Layout{lo, ro, span, rows, columns}, lower, count, Nat.add(Model.capacity(lower), base), (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))))) ->  TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 1n+lower, base, Parallel.node(~Array<F32>, ~Array<F32>, l => r => Matrix.product_tree(Matrix.Layout{lo, ro, span, rows, columns}, lower, count, Nat.add(Model.capacity(lower), base), (l, r)), low)):  (a, inputs) = low  (la, ra) = inputs  (ea, kept) = facts  (el, er) = kept  %Equal.sym(Array<F32>, la, Api.arr(ha, dl, fa), el) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 1n+lower, base, Parallel.join(~(Array<F32> & Array<F32>), a, Matrix.product_tree(Matrix.Layout{lo, ro, span, rows, columns}, lower, count, Nat.add(Model.capacity(lower), base), (_, ra))))  %Equal.sym(Array<F32>, ra, Api.arr(hb, dr, fb), er) :    TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 1n+lower, base, Parallel.join(~(Array<F32> & Array<F32>), a, Matrix.product_tree(Matrix.Layout{lo, ro, span, rows, columns}, lower, count, Nat.add(Model.capacity(lower), base), (Api.arr(ha, dl, fa), _))))  tree_join_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lower, base, a, Matrix.product_tree(Matrix.Layout{lo, ro, span, rows, columns}, lower, count, Nat.add(Model.capacity(lower), base), (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))), ea, next)# The product tree over the copies returns the spec.def product_tree_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>,  +output: Shape.Shape,  +left_extents: Fits(lo, span, rows, left),  +right_extents: Fits(ro, span, columns, right),  +output_extents: {Shape.extents(output) == [rows, columns] : List<&2, Nat>},  +count_exact: {count == Shape.logical_numel(Shape.dimensions(output)) : Nat}, +depth: Nat, +base: Nat) ->  TreeEq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, depth, base, Matrix.product_tree(Matrix.Layout{lo, ro, span, rows, columns}, depth, count, base, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)))):  match depth:    case 0n:      tree_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, 0n, base)    case 1n+d1:      match d1:        case 0n:          tree_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, 1n, base)        case 1n+d2:          match d2:            case 0n:              tree_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, 2n, base)            case 1n+d3:              match d3:                case 0n:                  block_or_tree_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, base, Matrix.one_row(Matrix.Layout{lo, ro, span, rows, columns}, count, base), {==})                case 1n+d4:                  product_node_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, d1, base, Matrix.product_tree(Matrix.Layout{lo, ro, span, rows, columns}, d1, count, base, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))),                    product_tree_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, d1, base),                    product_tree_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, d1, Nat.add(Model.capacity(d1), base)))def fork_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +lower: Nat, +rest: Nat, +base: Nat,  low: {Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, base, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)) == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, lower, base) : Array<F32>},  high: {Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, Nat.add(Model.capacity(lower), base), Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)) == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, lower, Nat.add(Model.capacity(lower), base)) : Array<F32>},  lp: Array<F32> & Array<F32>, +le: {lp == Array.clone(F32, Api.arr(ha, dl, fa)) : Array<F32> & Array<F32>},  rp: Array<F32> & Array<F32>, +re: {rp == Array.clone(F32, Api.arr(hb, dr, fb)) : Array<F32> & Array<F32>}) ->  {Parallel.fork(~Array<F32>, ~Array<F32>, Elementwise.halves(lp, rp), l => r => Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, base, l, r), l => r => Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, Parallel.upper(lower, base), l, r)) == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 1n+lower, base) : Array<F32>}:  (l1, l2) = lp  (r1, r2) = rp  +upper = Nat.add(Model.capacity(lower), base)  %Equal.sym(Array<F32>, l1, Api.arr(ha, dl, fa), Build.clone_first_eq(dl, ha, fa, (l1, l2), le)) :    {ANode{Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, base, _, r1), Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, upper, l2, r2)} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 1n+lower, base) : Array<F32>}  %Equal.sym(Array<F32>, r1, Api.arr(hb, dr, fb), Build.clone_first_eq(dr, hb, fb, (r1, r2), re)) :    {ANode{Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, base, Api.arr(ha, dl, fa), _), Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, upper, l2, r2)} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 1n+lower, base) : Array<F32>}  %Equal.sym(Array<F32>, l2, Api.arr(ha, dl, fa), Build.clone_second_eq(dl, ha, fa, (l1, l2), le)) :    {ANode{Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, base, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)), Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, upper, _, r2)} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 1n+lower, base) : Array<F32>}  %Equal.sym(Array<F32>, r2, Api.arr(hb, dr, fb), Build.clone_second_eq(dr, hb, fb, (r1, r2), re)) :    {ANode{Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, base, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)), Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, upper, Api.arr(ha, dl, fa), _)} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 1n+lower, base) : Array<F32>}  %Equal.sym(Array<F32>, Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, base, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, lower, base), low) :    {ANode{_, Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, upper, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 1n+lower, base) : Array<F32>}  %Equal.sym(Array<F32>, Matrix.product_build(lower, rest, lo, ro, span, rows, columns, count, upper, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, lower, upper), high) :    {ANode{out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, lower, base), _} == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, 1n+lower, base) : Array<F32>}  {==}# Whatever the split, the parallel build over the copies returns the spec.def build_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +count: Nat, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>,  +output: Shape.Shape,  +left_extents: Fits(lo, span, rows, left),  +right_extents: Fits(ro, span, columns, right),  +output_extents: {Shape.extents(output) == [rows, columns] : List<&2, Nat>},  +count_exact: {count == Shape.logical_numel(Shape.dimensions(output)) : Nat}, +depth: Nat, +splits: Nat, +base: Nat) ->  {Matrix.product_build(depth, splits, lo, ro, span, rows, columns, count, base, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)) == out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, depth, base) : Array<F32>}:  match depth splits:    case 1n+lower 1n+rest:      fork_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lower, rest, base, build_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, lower, rest, base),        build_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, lower, rest, Nat.add(Model.capacity(lower), base)),        Array.clone(F32, Api.arr(ha, dl, fa)), {==}, Array.clone(F32, Api.arr(hb, dr, fb)), {==})    case 0n _:      tree_first(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 0n, base, Matrix.product_tree(Matrix.Layout{lo, ro, span, rows, columns}, 0n, count, base, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))), product_tree_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, 0n, base))    case 1n+lower 0n:      tree_first(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, 1n+lower, base, Matrix.product_tree(Matrix.Layout{lo, ro, span, rows, columns}, 1n+lower, count, base, (Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))), product_tree_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, count, lsrc, rsrc, output, left_extents, right_extents, output_extents, count_exact, 1n+lower, base))# The writes of every cell, replayed on the owned storage `created` makes for# the output, give the owned storage the parallel build fills.def output_eq(+lo: Matrix.Order, +ro: Matrix.Order, +span: Nat, +rows: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +ha: List<&2, Api.Effect>, +dl: Nat, +fa: F32, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +hb: List<&2, Api.Effect>, +dr: Nat, +fb: F32, +lsrc: Source<left, left_fill, left_ops, ha, dl, fa>, +rsrc: Source<right, right_fill, right_ops, hb, dr, fb>,  +output: Shape.Shape,  +left_extents: Fits(lo, span, rows, left),  +right_extents: Fits(ro, span, columns, right),  +output_extents: {Shape.extents(output) == [rows, columns] : List<&2, Nat>},  +d: Nat, +fits: {Storage.bounds(d, U32.to_nat(Shape.count(output))) == True{} : Bool}, -f: {Storage.bounds(d, U32.to_nat(Shape.count(output))) == True{} : Bool}) ->  {StorageLaws.replay(writes(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, U32.to_nat(Shape.count(output))), Storage.Owned{d, U32.to_nat(Shape.count(output)), Array.new(F32, d, 0.0), ArrayCore.new_balanced(F32, d, 0.0), f}) == Storage.Owned{d, U32.to_nat(Shape.count(output)), Matrix.product_build(d, Matrix.product_splits(d, span), lo, ro, span, rows, columns, U32.to_nat(Shape.count(output)), 0n, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)), Matrix.product_build_balanced(d, Matrix.product_splits(d, span), lo, ro, span, rows, columns, U32.to_nat(Shape.count(output)), 0n, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)), f} : Storage.Storage}:  Equal.trans(Storage.Storage, StorageLaws.replay(writes(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, U32.to_nat(Shape.count(output))), Storage.Owned{d, U32.to_nat(Shape.count(output)), Array.new(F32, d, 0.0), ArrayCore.new_balanced(F32, d, 0.0), f}),    Storage.Owned{d, U32.to_nat(Shape.count(output)), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, U32.to_nat(Shape.count(output)), d, 0n), out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, U32.to_nat(Shape.count(output)), d, 0n), f},    Storage.Owned{d, U32.to_nat(Shape.count(output)), Matrix.product_build(d, Matrix.product_splits(d, span), lo, ro, span, rows, columns, U32.to_nat(Shape.count(output)), 0n, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)), Matrix.product_build_balanced(d, Matrix.product_splits(d, span), lo, ro, span, rows, columns, U32.to_nat(Shape.count(output)), 0n, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)), f},    chain(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, d, U32.to_nat(Shape.count(output)), f, fits, Shape.count(output), Conversion.le_reflexive(U32.to_nat(Shape.count(output))), U32.to_nat(Shape.count(output)), Conversion.le_reflexive(U32.to_nat(Shape.count(output)))),    Owned.owned_eq(d, U32.to_nat(Shape.count(output)), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, U32.to_nat(Shape.count(output)), d, 0n), Matrix.product_build(d, Matrix.product_splits(d, span), lo, ro, span, rows, columns, U32.to_nat(Shape.count(output)), 0n, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)),      Equal.sym(Array<F32>, Matrix.product_build(d, Matrix.product_splits(d, span), lo, ro, span, rows, columns, U32.to_nat(Shape.count(output)), 0n, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb)), out_spec(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, U32.to_nat(Shape.count(output)), d, 0n),        build_eq(lo, ro, span, rows, columns, left, left_fill, left_ops, ha, dl, fa, right, right_fill, right_ops, hb, dr, fb, U32.to_nat(Shape.count(output)), lsrc, rsrc, output, left_extents, right_extents, output_extents, Reads.count_exact(output), d, Matrix.product_splits(d, span), 0n)),      out_balanced(lo, ro, span, rows, columns, left, left_fill, left_ops, right, right_fill, right_ops, U32.to_nat(Shape.count(output)), d, 0n), f)(Matrix.product_build_balanced(d, Matrix.product_splits(d, span), lo, ro, span, rows, columns, U32.to_nat(Shape.count(output)), 0n, Api.arr(ha, dl, fa), Api.arr(hb, dr, fb))))# The inputs of the parallel product, as the elementwise export takes them.def half_keeps(+shape: Shape.Shape, +fill: F32, +ops: List<&2, StorageLaws.Op>, +index: U32) ->  {Replayed.value(shape, fill, Replayed.snoc(ops, StorageLaws.First{}), index) == Replayed.value(shape, fill, ops, index) : F32}:  Replayed.expected_snoc(ops, StorageLaws.First{}, U32.to_nat(Shape.count(shape)), index, fill)def words_snoc(+shape: Shape.Shape, +fill: F32, +ops: List<&2, StorageLaws.Op>, +previous: Nat, +word: F32, +other: F32,  +before: List<&2, F32>, rest: {Laws.words(shape, fill, ops, previous) == before : List<&2, F32>}, last: {word == other : F32}) ->  {List.append(&2, F32, Laws.words(shape, fill, ops, previous), [word]) == List.append(&2, F32, before, [other]) : List<&2, F32>}:  Equal.trans(List<&2, F32>, List.append(&2, F32, Laws.words(shape, fill, ops, previous), [word]),    List.append(&2, F32, before, [word]), List.append(&2, F32, before, [other]),    Equal.cong(List<&2, F32>, List<&2, F32>, values => List.append(&2, F32, values, [word]), Laws.words(shape, fill, ops, previous), before, rest),    Equal.cong(F32, List<&2, F32>, value => List.append(&2, F32, before, [value]), word, other, last))# The First half of a clone lists the same words.def words_first(+shape: Shape.Shape, +fill: F32, +ops: List<&2, StorageLaws.Op>, +count: Nat) ->  {Laws.words(shape, fill, Replayed.snoc(ops, StorageLaws.First{}), count) == Laws.words(shape, fill, ops, count) : List<&2, F32>}:  match count:    case 0n:      {==}    case 1n+previous:      +position = U32.from_nat(previous)      words_snoc(shape, fill, Replayed.snoc(ops, StorageLaws.First{}), previous,        Replayed.value(shape, fill, Replayed.snoc(ops, StorageLaws.First{}), position), Replayed.value(shape, fill, ops, position),        Laws.words(shape, fill, ops, previous), words_first(shape, fill, ops, previous), half_keeps(shape, fill, ops, position))# `take` of an owned tensor hands back the First half of its clone and the# Second half's array.def take_owned_lift(+shape: Shape.Shape, +d: Nat, +n: Nat, -array: Array<F32>, pair: Array<F32> & Array<F32>,  -same: {pair == Array.clone(F32, array) : Array<F32> & Array<F32>}, -b: Model.Balanced(F32, d, array),  -f: {Storage.bounds(d, n) == True{} : Bool}, -fits: {n == Shape.logical_numel(Shape.dimensions(shape)) : Nat},  -Q: (Core.Dynamic & Array<F32>) -> Type,  h: @-kept: {Lifecycle.logical_length(StorageLaws.owner(Storage.Storage, Storage.finish_clone(d, n, array, pair, same, b, f))) ==    Shape.logical_numel(Shape.dimensions(shape)) : Nat} ->    Q((Core.Packed{shape, Core.TTensor{StorageLaws.owner(Storage.Storage, Storage.finish_clone(d, n, array, pair, same, b, f)), kept}},      Pair.snd(Array<F32>, Array<F32>, pair)))) ->  Q(Elementwise.take_owned(shape, d, n, array, pair, same, b, f, fits)):  (kept, copy) = pair  h(fits)def storage_shift(-shape: Shape.Shape, -s: Storage.Storage, -t: Storage.Storage, e: {s == t : Storage.Storage},  -R: @st: Storage.Storage -> @-k: {Lifecycle.logical_length(st) == Shape.logical_numel(Shape.dimensions(shape)) : Nat} -> Type,  h: @-k: {Lifecycle.logical_length(s) == Shape.logical_numel(Shape.dimensions(shape)) : Nat} -> R(s, k)) ->  @-k: {Lifecycle.logical_length(t) == Shape.logical_numel(Shape.dimensions(shape)) : Nat} -> R(t, k):  %e : (@-k: {Lifecycle.logical_length(_) == Shape.logical_numel(Shape.dimensions(shape)) : Nat} -> R(_, k))  h# What the rest of the product asks of one input's `take`: the kept tensor,# replayed with a history that keeps its words, and the copy the build reads,# with its source.def InputAt(+shape: Shape.Shape, +fill: F32, +ops: List<&2, StorageLaws.Op>, -s: Storage.Storage,  -Q: Core.Dynamic & Array<F32> -> Type) -> Type:  @+kept: List<&2, StorageLaws.Op> ->  @values: (@+other: U32 -> {Replayed.value(shape, fill, kept, other) == Replayed.value(shape, fill, ops, other) : F32}) ->  @words: {Laws.words(shape, fill, kept, Shape.logical_numel(Shape.dimensions(shape))) == Laws.words(shape, fill, ops, Shape.logical_numel(Shape.dimensions(shape))) : List<&2, F32>} ->  @+h: List<&2, Api.Effect> -> @+d: Nat -> @+f: F32 -> @+source: Source<shape, fill, ops, h, d, f> ->  @-kept_fits: {Lifecycle.logical_length(StorageLaws.replay(kept, s)) == Shape.logical_numel(Shape.dimensions(shape)) : Nat} ->    Q((Core.Packed{shape, Core.TTensor{StorageLaws.replay(kept, s), kept_fits}}, Api.arr(h, d, f)))def input_take(+shape: Shape.Shape, +fill: F32, +ops: List<&2, StorageLaws.Op>, -Q: Core.Dynamic & Array<F32> -> Type,  h: InputAt(shape, fill, ops, StorageLaws.created(Shape.count(shape), fill), Q)) ->  @-fits: {Lifecycle.logical_length(Replayed.storage(shape, fill, ops)) == Shape.logical_numel(Shape.dimensions(shape)) : Nat} ->  Q(Elementwise.take(Core.Packed{shape, Core.TTensor{Replayed.storage(shape, fill, ops), fits}})):  Owned.created_lift(Shape.count(shape), fill, Conversion.shape_count_within(shape),    s => (InputAt(shape, fill, ops, s, Q) -> @-fits: {Lifecycle.logical_length(StorageLaws.replay(ops, s)) == Shape.logical_numel(Shape.dimensions(shape)) : Nat} ->      Q(Elementwise.take(Core.Packed{shape, Core.TTensor{StorageLaws.replay(ops, s), fits}}))),    zero => k => fits =>      storage_shift(shape, Storage.Empty{}, StorageLaws.replay(ops, Storage.Empty{}),        Equal.sym(Storage.Storage, StorageLaws.replay(ops, Storage.Empty{}), Storage.Empty{}, Owned.replay_empty(ops)),        st => kk => Q(Elementwise.take(Core.Packed{shape, Core.TTensor{st, kk}})),        kk => storage_shift(shape, StorageLaws.replay(ops, Storage.Empty{}), Storage.Empty{}, Owned.replay_empty(ops),          st => k2 => Q((Core.Packed{shape, Core.TTensor{st, k2}}, Array.new(F32, 0n, 0.0))),          k2 => k(ops)(other => {==})({==})(Nil{})(0n)(0.0)(NoCells{zero})(k2))(kk))(fits),    d => fits_d => f => k => fits =>      Owned.replay_lift(ops, d, U32.to_nat(Shape.count(shape)), fill, Nil{}, Api.hit_of(U32.to_nat(Shape.count(shape)), ops), {==},        ArrayCore.new_balanced(F32, d, fill), f, fits_d,        st => (@-fits: {Lifecycle.logical_length(st) == Shape.logical_numel(Shape.dimensions(shape)) : Nat} ->          (@-kk: {Lifecycle.logical_length(StorageLaws.step(st, StorageLaws.First{})) == Shape.logical_numel(Shape.dimensions(shape)) : Nat} ->            Q((Core.Packed{shape, Core.TTensor{StorageLaws.step(st, StorageLaws.First{}), kk}}, Api.arr(history(shape, ops), d, fill)))) ->          Q(Elementwise.take(Core.Packed{shape, Core.TTensor{st, fits}}))),        c => fits2 => kc =>          take_owned_lift(shape, d, U32.to_nat(Shape.count(shape)), Api.arr(Owned.norm(U32.to_nat(Shape.count(shape)), ops, Nil{}), d, fill),            Array.clone(F32, Api.arr(Owned.norm(U32.to_nat(Shape.count(shape)), ops, Nil{}), d, fill)), {==}, c, f, fits2, Q, kc))(fits)(        storage_shift(shape,          StorageLaws.replay(Replayed.snoc(ops, StorageLaws.First{}), Storage.Owned{d, U32.to_nat(Shape.count(shape)), Array.new(F32, d, fill), ArrayCore.new_balanced(F32, d, fill), f}),          StorageLaws.step(StorageLaws.replay(ops, Storage.Owned{d, U32.to_nat(Shape.count(shape)), Array.new(F32, d, fill), ArrayCore.new_balanced(F32, d, fill), f}), StorageLaws.First{}),          FromValues.replay_snoc(ops, StorageLaws.First{}, Storage.Owned{d, U32.to_nat(Shape.count(shape)), Array.new(F32, d, fill), ArrayCore.new_balanced(F32, d, fill), f}),          st => kk => Q((Core.Packed{shape, Core.TTensor{st, kk}}, Api.arr(history(shape, ops), d, fill))),          k(Replayed.snoc(ops, StorageLaws.First{}))(other => half_keeps(shape, fill, ops, other))(words_first(shape, fill, ops, Shape.logical_numel(Shape.dimensions(shape))))(            history(shape, ops))(d)(fill)(Normal{fits_d, {==}, {==}}))))(h)