1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//! Per-realization σ-axis wiring macros.
//!
//! Every realization is identical except for its canonical-form input
//! carrier: the ψ-tower, the bounds, and the resolver tower are shared,
//! and the κ-derivation verb body is the same four-ψ composition
//! (`k_invariants ∘ homotopy_groups ∘ postnikov_tower ∘ nerve`). The only
//! per-σ-axis variation is the bound `H`, the per-axis output shape, and
//! the κ-label byte width.
//!
//! foundation 0.5.1's resolver tower admits only `Hasher<32>` axes, so a
//! realization wires the four 32-byte axes ([`crate::hash`]). These macros
//! emit the four per-axis verbs ([`addr_verbs!`]) and the four per-axis
//! [`PrismModel`](prism::pipeline::PrismModel) declarations
//! ([`addr_models!`]) from a single per-realization invocation, keeping the
//! per-realization source to the carrier handle + the public entry points.
/// Emit one κ-derivation `verb!` per σ-axis. `input` is the carrier type as
/// it appears in a `verb!` signature (e.g. `JsonCarrier<'_>` or
/// `RingElement`); each `{ shape, verb }` names the axis's output shape and
/// the generated verb function.
/// Emit one `PrismModel` declaration per σ-axis, binding the shared
/// [`AddrBounds`](crate::bounds::AddrBounds) profile and the shared
/// [`AddressResolverTuple`](crate::resolvers::AddressResolverTuple)
/// ψ-tower. `input` is the carrier type as it appears in a `prism_model!`
/// `type Input` clause (e.g. `JsonCarrier<'a>` or `RingElement`); each
/// axis names its hasher, output shape, model + route structs, and the
/// verb function (in scope) the route delegates to.
// Brought into crate scope via `#[macro_use] mod realization;` in lib.rs;
// every format module declared after it may invoke them unqualified.