Myers.band_keep_last: def of bend-edit-distance@0.2.2.0 Import: import bend-edit-distance@0.2.2.0/src/Myers.bend as Myers Lines 230-237 of bend-edit-distance@0.2.2.0/src/Myers.bend: https://jend.leeeet.dev/read.txt?path=bend-edit-distance@0.2.2.0/src/Myers.bend&start_line=230&end_line=237 import Base # Edlib's conservative Ukkonen block bounds, rearranged so every term is # nonnegative Nat arithmetic. Rows/columns here count consumed characters. # The 62/63 constants adapt 2*WORD_SIZE-2/-1 from the pinned 64-bit code. def band_keep_last(+score: Nat, bottom: Nat, +maximum: Nat, length: Nat, target_length: Nat, column: Nat) -> Bool: Bool.and(Nat.is_lt(score, Nat.add(maximum, 32n)), Nat.is_le(Nat.add(Nat.add(bottom, score), target_length), Nat.add(Nat.add(Nat.add(maximum, length), column), 63n))) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_le https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_lt