Skip to main content

Module proof_plan

Module proof_plan 

Source
Expand description

The request-only half of a proved average: which proof answers the request, what that proof reads, and the limit and walk direction its path query carries.

An average reads the trees a sum reads, through the same path queries, so it is planned as a SumProofPlan; its range and carrier proofs read each element’s count beside its sum. It is planned apart from a sum because the server routes it by its AverageMode and whether a range clause constrains it, not by sum’s resolved mode, with its own refusals. The server’s average dispatcher proves what the plan names, and the SDK’s verifier rebuilds the path query from the same plan; a client refuses before sending what the plan refuses, in the server’s words. The planner reads no version table, so every protocol version that serves a proved average plans the same proof for the same request.