court-lattice-count
The groupant beside yom-hadin/src/court.rs in the Mova repository: what the code computes, what it never does, how to go back from its outputs, its invariants, cost and checks.
Facts
Implementation material. A Mova code model describes this code at one source revision: partial models, finite checks and their stated scope. It is not a reviewed general exposition, and its labels are shown as written, never raised.
Components
| component | label | where |
|---|---|---|
| approximant | partial | approximant |
| ast | partial | ../syntax.json |
| cost | partial | model.md |
| descriptant | present | descriptant |
| invariant | partial | Invariant |
| tests | finite native checks | tests |
Obernants
The typed relations around the forward model: the behaviour complement (what the code never does), the reverse reconstruction (every input compatible with an output) and specialised views.
| id | type | label | where |
|---|---|---|---|
behavior_complement | behavior_complement | partial source derived model | behavior_complement |
reverse_reconstruction | reverse_reconstruction | partial source derived model | reverse_reconstruction |
blocked_fiber | blocked_fiber | partial source derived model | blocked_fiber |
empty_cartesian | empty_cartesian | partial source derived model | empty_cartesian |
mixed_radix | mixed_radix | partial source derived model | mixed_radix |
arithmetic_limit | arithmetic_limit | partial source derived model | arithmetic_limit |
Model text
descriptant
Binary local-firing fibers with full global mixed-radix enumeration.
Epoch 2026-10-31
Prospective review preceded test edits. Runtime logic unchanged; three sources gain tests. Synthetic witnesses do not validate legal conclusions.
Composition: Enumerate2^n masks; blocked rules admit only failure with weight2^k; unblocked rules fire weight1 or fail weight2^k-1. Enumerate all globals, evaluate representative and add weight.
Retained limits: partial syntax, opaque macros; no live corpus, teacher, parser model, production filesystem or frozen gold. Complete semantics and executable approximants remain open.
approximant
Forward model
Binary local-firing fibers with full global mixed-radix enumeration.
Enumerate2^n masks; blocked rules admit only failure with weight2^k; unblocked rules fire weight1 or fail weight2^k-1. Enumerate all globals, evaluate representative and add weight.
Not an executable substitute. Percentage approximation is unsupported without a useful metric; future profiles limited to 1/2/5/10% require actual-reference comparison.
models
Typed models: Binary local-firing fibers with full global mixed-radix enumeration.
Subject: yom-hadin/src/court.rs, SHA-256 c780d974b015dcefc5018d326ca5f1e0ec47af0c8fbd23927213a8848285b099. Domain: bounded finite synthetic rules/cases; valid indices and successful allocation unless a section narrows this. Each relation observes implementation, not legal authority. Status: partial source-derived model, finite evidence mapped in tests.md.
behavior_complement
Impossible mask with blocked firing or unblocked k0 nonfiring contributes no count.
Operator: stated relation on this source projection. Assumptions: named domain and unchanged dependencies. Evidence: tests.md maps finite observations; other branches remain source review only.
reverse_reconstruction
Verdict count is sum over all masks/globals leading there; stored representative recovers one valid witness, not all assignments or unique mask.
Operator: stated relation on this source projection. Assumptions: named domain and unchanged dependencies. Evidence: tests.md maps finite observations; other branches remain source review only.
blocked_fiber
Blocked rule's2^k local choices all fail irrespective of held options; do not replace with2^k-1.
Operator: stated relation on this source projection. Assumptions: named domain and unchanged dependencies. Evidence: tests.md maps finite observations; other branches remain source review only.
empty_cartesian
n0 and no globals has one mask and empty product1, evaluate yields no-rule count1.
Operator: stated relation on this source projection. Assumptions: named domain and unchanged dependencies. Evidence: tests.md maps finite observations; other branches remain source review only.
mixed_radix
Global point0 cycles fastest; each digit c%size followed c/=size enumerates Cartesian combinations once for nonzero sizes.
Operator: stated relation on this source projection. Assumptions: named domain and unchanged dependencies. Evidence: tests.md maps finite observations; other branches remain source review only.
arithmetic_limit
n<=16 holds for lattice constructor, but k>=128 and huge products remain unsupported. Claim exact counts only with representable shifts/products.
Operator: stated relation on this source projection. Assumptions: named domain and unchanged dependencies. Evidence: tests.md maps finite observations; other branches remain source review only.
tests
Checks and evidence
External run label: octopus-wave31-court-2026-10-31; exact commands in native-commands.json, per-source observations in source-test-map.json, numeric exits and named outcomes in raw logs.
19 exact selected native tests twice debug and twice release execute actual linked code on bounded hand-built cases. CLI covers argument helpers only. Full extraction/model initialization, actual jurisdiction loading, protocol disk errors, resource exhaustion and malformed public lattices are unexecuted. Module declarations have compile evidence only.
Three compiled source-behavior mutants: count weight, precedence tie, modal tie; each requires compile success, named assertion failure, exact byte/hash restoration and positive rerun. Legacy fixture interventions count separately. Final observations: external evidence-summary.md.
This node observes: Binary local-firing fibers with full global mixed-radix enumeration.. Unmapped models remain source-derived/prospective, not verified by the whole test count.
Parent source witness map: source-evidence.md. Only the described fragment observation is supported; parent test names do not imply every fragment branch executed.
invariant-and-cost
Invariant and cost
Invariant
Within binary local generated domain, weights partition assignment space and totals equal sum of counts.
Cost
O(2^n*(n+p+g*E)); u128 shifts/adds/mults and usize global product must fit; no overflow validation.
Symbolic bounds, not timings. Resource exhaustion is not tested.
This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/yom-hadin/src/court.rs.groupant/count.groupant/