PROOF.sp.short_split: def of bend-osdev-mode-core@0.1.0.0 Import: import bend-osdev-mode-core@0.1.0.0/PROOF.bend as PROOF Lines 421-491 of bend-osdev-mode-core@0.1.0.0/PROOF.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-mode-core@0.1.0.0/PROOF.bend&start_line=421&end_line=491 import Base import bend-osdev-bytes@0.1.1.0/bytes.bend as B import bend-osdev-mode-core@0.1.0.0/mode_core.bend as M # fewer than 16 bytes are all tail def sp.short_split(ys: List<&2, U32>) -> {Nat.is_lt(B.len(ys), 16n) == True{} : Bool} -> {M.cm.split(ys) == M.CmSplit{Nil{}, ys} : M.CmSplit}: match ys: case Nil{}: h => {==} case Con{+y0, +r0}: match r0: case Nil{}: h => {==} case Con{+y1, +r1}: match r1: case Nil{}: h => {==} case Con{+y2, +r2}: match r2: case Nil{}: h => {==} case Con{+y3, +r3}: match r3: case Nil{}: h => {==} case Con{+y4, +r4}: match r4: case Nil{}: h => {==} case Con{+y5, +r5}: match r5: case Nil{}: h => {==} case Con{+y6, +r6}: match r6: case Nil{}: h => {==} case Con{+y7, +r7}: match r7: case Nil{}: h => {==} case Con{+y8, +r8}: match r8: case Nil{}: h => {==} case Con{+y9, +r9}: match r9: case Nil{}: h => {==} case Con{+y10, +r10}: match r10: case Nil{}: h => {==} case Con{+y11, +r11}: match r11: case Nil{}: h => {==} case Con{+y12, +r12}: match r12: case Nil{}: h => {==} case Con{+y13, +r13}: match r13: case Nil{}: h => {==} case Con{+y14, +r14}: match r14: case Nil{}: h => {==} case Con{+y15, +t}: match t: case Nil{}: h => bo.absurd({M.cm.split(Con{y0, Con{y1, Con{y2, Con{y3, Con{y4, Con{y5, Con{y6, Con{y7, Con{y8, Con{y9, Con{y10, Con{y11, Con{y12, Con{y13, Con{y14, Con{y15, Nil{}}}}}}}}}}}}}}}}}) == M.CmSplit{Nil{}, Con{y0, Con{y1, Con{y2, Con{y3, Con{y4, Con{y5, Con{y6, Con{y7, Con{y8, Con{y9, Con{y10, Con{y11, Con{y12, Con{y13, Con{y14, Con{y15, Nil{}}}}}}}}}}}}}}}}}} : M.CmSplit}, h) case Con{+z, +zs}: h => bo.absurd({M.cm.split(Con{y0, Con{y1, Con{y2, Con{y3, Con{y4, Con{y5, Con{y6, Con{y7, Con{y8, Con{y9, Con{y10, Con{y11, Con{y12, Con{y13, Con{y14, Con{y15, Con{z, zs}}}}}}}}}}}}}}}}}) == M.CmSplit{Nil{}, Con{y0, Con{y1, Con{y2, Con{y3, Con{y4, Con{y5, Con{y6, Con{y7, Con{y8, Con{y9, Con{y10, Con{y11, Con{y12, Con{y13, Con{y14, Con{y15, Con{z, zs}}}}}}}}}}}}}}}}}} : M.CmSplit}, h) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_lt https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=len https://jend.leeeet.dev/definition.txt?path=bend-osdev-mode-core@0.1.0.0/PROOF.bend&name=bo.absurd https://jend.leeeet.dev/definition.txt?path=bend-osdev-mode-core@0.1.0.0/mode_core.bend&name=CmSplit https://jend.leeeet.dev/definition.txt?path=bend-osdev-mode-core@0.1.0.0/mode_core.bend&name=cm.split