English
Lists of lists are translated by concatenating trList encodings and inserting a consₗ marker after each inner list.
Русский
Списки списков переводятся конкатенацией кодировок каждого внутреннего списка и добавлением маркера consₗ после каждого.
LaTeX
$$$\\operatorname{trLList}(L) = \\operatorname{trList}(L_1) \\;\\text{cons}\\_\\ell \\; \\operatorname{trLList}(L_2)\\;\\text{(разбиение }L=(L_1,L_2)\\text{)}$$$
Lean4
/-- Lists of lists are translated with a `consₗ` after each encoded list.
For example:
[] = []
[[]] = [consₗ]
[[], []] = [consₗ, consₗ]
[[0]] = [cons, consₗ]
[[1, 2], [0]] = [bit1, cons, bit0, bit1, cons, consₗ, cons, consₗ]
-/
@[simp]
def trLList : List (List ℕ) → List Γ'
| [] => []
| l :: ls => trList l ++ Γ'.consₗ :: trLList ls