Tables.Gf8Tab.inv: def of bend-osdev-gf@0.1.2.0 Import: import bend-osdev-gf@0.1.2.0/tables.bend as Tables Lines 117-120 of bend-osdev-gf@0.1.2.0/tables.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-gf@0.1.2.0/tables.bend&start_line=117&end_line=120 import Base import bend-osdev-gf@0.1.2.0/gf.bend as G # a^-1 = exp[255 - log a], and the inverse of 0 is 0 def Gf8Tab.inv(t: Gf8Tab, a: U32) -> Gf8Tab & U32: +x = G.Gf8.elt(a) gf8tab.inv.pick(U32.is_eq(x, 0), t, x) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=bend-osdev-gf@0.1.2.0/gf.bend&name=Gf8.elt https://jend.leeeet.dev/definition.txt?path=bend-osdev-gf@0.1.2.0/tables.bend&name=Gf8Tab https://jend.leeeet.dev/definition.txt?path=bend-osdev-gf@0.1.2.0/tables.bend&name=gf8tab.inv.pick