OAI/NumberTheory/Ostmann/Tree/PreorderNodePaths.lean
8 declarations, 0 contain sorry, 0 declared as axioms
Explicit preorder indices for internal nodes and their ancestors
- def
OAI.Ostmann.nodePathIndexline 11Source documentation
falsedescends left,truedescends right.def nodePathIndex : ℕ → List Bool → ℕ | 0, _ => 0 | _ + 1, [] => 0 | n + 1, b :: p => (if b then 2 ^ n else 1) + nodePathIndex n p
- theorem
OAI.Ostmann.nodePathIndex_ltline 16 - def
OAI.Ostmann.preorderNodePathline 34 - theorem
OAI.Ostmann.preorderNodePath_lengthline 48 - theorem
OAI.Ostmann.nodePathIndex_preorderNodePathline 59 - theorem
OAI.Ostmann.preorderNodePath_nodePathIndexline 72 - theorem
OAI.Ostmann.nodePathIndex_nonempty_posline 96 - theorem
OAI.Ostmann.nodePathIndex_proper_prefixline 107