~/bend-docscommunity

proof_head.bend checks

raw source on the hub · import 0xeb25eff332574f4f1d48668b83cdda30/proof_head.bend as Proof_head

Proof helpers for bend-osdev-asn1: the header of an element the encoder wrote (identifier octets, then length octets) reads back as the tag, the form and the contents octets written, under any rules.

13 imports
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import ./number.bend as Nu
import ./tag.bend as T
import ./length.bend as L
import ./rules.bend as R
import ./encode.bend as En
import ./asn1.bend as A
import ./proof_nat.bend as AN
import ./proof_list.bend as AL
import ./proof_u32.bend as AU
import ./proof_byte.bend as AB
import ./proof_num.bend as PN

Definitions

def ph.idb_low source · line 18 · raw

@c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @cons:Bool -> @+n:Nat -> @+hn:{Nat.is_lt(n, 31n) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_bytes(c, cons, n) == [0xeb25eff332574f4f1d48668b83cdda30/number.a1.b(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_octet(c, cons, n))] : List<&2, U32>}

def ph.idb_high source · line 22 · raw

@c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @cons:Bool -> @+n:Nat -> @+hn:{Nat.is_lt(n, 31n) == False{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_bytes(c, cons, n) == 0xeb25eff332574f4f1d48668b83cdda30/number.a1.b(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_octet(c, cons, 31n)) <> 0xeb25eff332574f4f1d48668b83cdda30/number.a1.b128(n) : List<&2, U32>}

def ph.id_low source · line 27 · raw

@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+cons:Bool -> @+n:Nat -> @+rest:List<&2, U32> -> @+hn:{Nat.is_lt(n, 31n) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head0(r, List.append(&2, U32, 0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_bytes(c, cons, n), rest)) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.res(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n), r, c, cons, n, rest) : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

a low tag number's identifier octet reads back

def ph.id_high source · line 39 · raw

@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+cons:Bool -> @+n:Nat -> @+rest:List<&2, U32> -> @+hn:{Nat.is_lt(n, 31n) == False{} : Bool} -> @+hk:{Nat.is_le(List.length(&2, U32, 0xeb25eff332574f4f1d48668b83cdda30/number.a1.b128(n)), 6n) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head0(r, List.append(&2, U32, 0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_bytes(c, cons, n), rest)) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.res(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n), r, c, cons, n, rest) : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

a high tag number's identifier octets read back

def ph.id.go source · line 51 · raw

@lt:Bool -> @+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+cons:Bool -> @+n:Nat -> @+rest:List<&2, U32> -> @+hl:{Nat.is_lt(n, 31n) == lt : Bool} -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head0(r, List.append(&2, U32, 0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_bytes(c, cons, n), rest)) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.res(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n), r, c, cons, n, rest) : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.id source · line 59 · raw

@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+cons:Bool -> @+n:Nat -> @+rest:List<&2, U32> -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head0(r, List.append(&2, U32, 0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_bytes(c, cons, n), rest)) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.res(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n), r, c, cons, n, rest) : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

the identifier octets of any tag read back

def ph.when_t source · line 62 · raw

@m:Bool -> {0xeb25eff332574f4f1d48668b83cdda30/rules.a1.when(m, True{}) == True{} : Bool}

def ph.head_tlv source · line 71 · raw

@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+cons:Bool -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+hu:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n) == False{} : Bool} -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> @+hok:{0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head0(r, 0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, cons, n, cs, rest)) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.fit(True{}, 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cons, List.length(&2, U32, cs), List.append(&2, U32, cs, rest)) : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

an element's header, as the encoder writes it, reads back (the contents then taken as cs, by a1.head.fit)

def ph.fit_prim source · line 87 · raw

@+t:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.fit(True{}, t, False{}, List.length(&2, U32, cs), List.append(&2, U32, cs, rest)) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{t, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.fit_def source · line 92 · raw

@+t:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.fit(True{}, t, True{}, List.length(&2, U32, cs), List.append(&2, U32, cs, rest)) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{t, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.head0_prim source · line 97 · raw

@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+hu:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n) == False{} : Bool} -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> @+hok:{0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head0(r, 0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, False{}, n, cs, rest)) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.head0_def source · line 100 · raw

@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+hu:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n) == False{} : Bool} -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> @+hok:{0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head0(r, 0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest)) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.mk source · line 104 · raw

@cons:Bool -> @t:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> @cs:List<&2, U32> -> @rest:List<&2, U32> -> 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head

a header of either form

def ph.hdr_split source · line 114 · raw

@+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+cons:Bool -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> {0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, cons, n, cs, rest) == List.append(&2, U32, 0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.hdr(c, cons, n, List.length(&2, U32, cs)), List.append(&2, U32, cs, rest)) : List<&2, U32>}

an element's octets: the octets before its contents, then the contents

def ph.canon_ok source · line 117 · raw

@+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+cons:Bool -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+hu:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n) == False{} : Bool} -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> @+hok:{0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.canon.ok(c, cons, n, List.length(&2, U32, cs), 0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, cons, n, cs, rest)) == True{} : Bool}

def ph.indef_off_keep source · line 133 · raw

@a:Bool -> @+t:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+cons:Bool -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.indef_off(a, ph.mk(cons, t, cs, rest)) == ph.mk(cons, t, cs, rest) : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.canon_prim source · line 142 · raw

@+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+hu:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n) == False{} : Bool} -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> @+hok:{0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.canon(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, False{}, n, cs, rest), 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest}) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.fin2_prim source · line 155 · raw

@m:Bool -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+hu:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n) == False{} : Bool} -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> @+hok:{0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.fin2(m, 0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, False{}, n, cs, rest), 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest}) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.fin_prim source · line 162 · raw

@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+hu:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n) == False{} : Bool} -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> @+hok:{0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.fin(r, 0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, False{}, n, cs, rest), 0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head0(r, 0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, False{}, n, cs, rest))) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.nend_prim source · line 168 · raw

@xs:List<&2, U32> -> @+t:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.nend(xs, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{t, cs, rest}) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{t, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.head_prim source · line 176 · raw

@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+hu:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n) == False{} : Bool} -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> @+hok:{0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head(r, 0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, False{}, n, cs, rest)) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

the header of an element the encoder wrote, under any rules

def ph.canon_def source · line 182 · raw

@+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+hu:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n) == False{} : Bool} -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> @+hok:{0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.canon(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest), 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest}) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.fin2_def source · line 195 · raw

@m:Bool -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+hu:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n) == False{} : Bool} -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> @+hok:{0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.fin2(m, 0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest), 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest}) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.fin_def source · line 202 · raw

@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+hu:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n) == False{} : Bool} -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> @+hok:{0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.fin(r, 0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest), 0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head0(r, 0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest))) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.nend_def source · line 208 · raw

@xs:List<&2, U32> -> @+t:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.nend(xs, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{t, cs, rest}) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{t, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.head_def source · line 216 · raw

@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+hu:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n) == False{} : Bool} -> @+hid:{0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n) == True{} : Bool} -> @+hok:{0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)) == True{} : Bool} -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head(r, 0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest)) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

the header of an element the encoder wrote, under any rules

def ph.ioff_end source · line 222 · raw

@a:Bool -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.indef_off(a, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HEnd{}) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HEnd{} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.fin2_end source · line 229 · raw

@m:Bool -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.fin2(m, [], 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HEnd{}) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HEnd{} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

def ph.head_nil source · line 237 · raw

@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> {0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head(r, []) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HEnd{} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}

no octets: the end