def independent_planned_pair
bendtorch-core@0.1.0.0 · src/tensor/core_PROOF.bend:1106
import bendtorch-core@0.1.0.0/src/tensor/core_PROOF.bend as CorePROOF
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise
import bendtorch-core@0.1.0.0/src/tensor/core_LAWS.bend as Laws
1106def independent_planned_pair(+operation: Elementwise.Operation, -left: Core.Dynamic, -right: Core.Dynamic,
1107 result: (Core.Dynamic & Core.Dynamic) & Result<&2, &1, Core.Error, Core.Dynamic>,
1108 plan: Result<&2, &2, Shape.Error, Shape.BroadcastPlan>, -shared: Elementwise.PlannedMeaning(operation, left, right, result, plan)) ->
1109 IndependentPlannedModel<operation, left, right, result, plan>:
1110 match plan:
1111 case Fail{error}:
1112 IndependentPlannedModel{Unit{}}
1113 case Done{+plan}:
1114 IndependentPlannedModel{{\{Laws.IndependentModel: independent => independent} : Laws.IndependentModel<operation, plan, left, right, result> -> Laws.IndependentMapping(operation, plan, left, right, result)}(independent_pair_mapping(operation, plan, left, right, result, shared))}