Checked addressed dyadic frontiers #
An inductive tree makes coverage structural. A flat list of paths is convenient for untrusted search, serialization, and parallel replay. This module connects the two with a small checker that reconstructs a tree and accepts only its exact canonical leaf list. Acceptance certifies that the decoded paths form a complete binary cover; correspondence between those paths and any external proof or evaluation records must be maintained by the producer of those records.
A complete binary subdivision tree. A leaf means that the corresponding closed cell is part of the certificate frontier.
- leaf : DyadicSubdivisionTree
- split (left right : DyadicSubdivisionTree) : DyadicSubdivisionTree
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
- LeanCert.Core.instDecidableEqDyadicSubdivisionTree.decEq LeanCert.Core.DyadicSubdivisionTree.leaf LeanCert.Core.DyadicSubdivisionTree.leaf = isTrue ⋯
- LeanCert.Core.instDecidableEqDyadicSubdivisionTree.decEq LeanCert.Core.DyadicSubdivisionTree.leaf (left.split right) = isFalse ⋯
- LeanCert.Core.instDecidableEqDyadicSubdivisionTree.decEq (left.split right) LeanCert.Core.DyadicSubdivisionTree.leaf = isFalse ⋯
Instances For
Canonical root-relative paths of all leaves, ordered left to right.
Equations
Instances For
Every point in the root belongs to at least one closed leaf cell.
Maximum submitted path length, used only as reconstruction fuel.
Equations
- LeanCert.Core.DyadicFrontier.maxDepth [] = 0
- LeanCert.Core.DyadicFrontier.maxDepth (path :: rest) = max (List.length path) (LeanCert.Core.DyadicFrontier.maxDepth rest)
Instances For
Structurally check a flat, canonically ordered list of addressed leaves. On success the returned tree is a proof-friendly reconstruction of precisely those leaves. This does not independently associate the paths with external leaf evidence.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Successful checking pins the reconstructed tree to the submitted paths.
Golden coverage theorem for an accepted flat frontier.