Generating flat encodings of directly recursive inductive types #
Implementation of the recursive branch of enc_inductive. Scalar payloads use the explicitly
supplied embeddings. Every constructor contributes exactly one framed token; recursive children
contribute their streams without further framing. Parameters select a family and its scalar
embeddings and are not serialized. Tags use the declaration order and right-nested encSum.
def Turing.MultiTapeTM.Internal.elabRecursiveInductive (doc : Option (Lean.TSyntax `Lean.Parser.Command.docComment)) (eT : Lean.Ident) (ps : Array Lean.Ident) (pts : Array Lean.Term) (T : Lean.Term) (cs : Array Lean.Ident) (encss : Array (Array Lean.Term)) :
Generate the flat recursive representation after checking all constructors and fields. Explicit parameters are section variables during checking and explicit binders in every output.