def and_right
import bendtorch-core@0.1.0.0/src/tensor/permutation_mapping.bend as PermutationMappingimport Base
import bendtorch-core@0.1.0.0/src/tensor/lifecycle.bend as Lifecycle
26def and_right(a: Bool, -b: Bool, equal: {True{} == Bool.and(a, b) : Bool}) -> {True{} == b : Bool}:
27 match a:
28 case False{}:
29 Empty.absurd({True{} == b : Bool}, Lifecycle.false_true(equal))
30 case True{}:
31 equal
Uses (4)
Used by (7)
- bendtorch-core@0.1.0.0/src/tensor/transform_PROOF:words_equal
- bendtorch-core@0.1.0.0/src/tensor/transform_PROOF:inverse_axes_naturals
- bendtorch-core@0.1.0.0/src/tensor/permutation_mapping:plan_bounded_success
- bendtorch-core@0.1.0.0/src/tensor/permutation_mapping:plan_unique_success
- bendtorch-core@0.1.0.0/src/tensor/transform_PROOF:route_allowed
- …