Count · Apply
Count verb → Loom / associations
The Count verb realized as Loom — it computes agreement (cosine), delta, and interaction (Hadamard) between slots to build the agreement graph of which ideas relate. It depends on slots staying unflattened.
Two records' slots point in nearly the same direction under several lenses. What does Count record between them?
A strong agreement edge. Loom (the Count verb) computes agreement as cosine between slots, plus delta (how they differ) and interaction (Hadamard). High agreement across lenses becomes a bright edge in the agreement graph — "these two ideas relate." None of this is possible if the slots were flattened first.
Source: calyxdocs/10 (Loom)
Two records' slots point in nearly the same direction under several lenses. What does Count record between them?
A strong agreement edge. Loom (the Count verb) computes agreement as cosine between slots, plus delta (how they differ) and interaction (Hadamard). High agreement across lenses becomes a bright edge in the agreement graph — "these two ideas relate." None of this is possible if the slots were flattened first.
Lines drawn between the stars
The Count verb is realized as Loom. Where Measure built the constellations, Count draws the lines between them — which ideas agree, which differ, which interact. The result is an agreement graph: a map of how the records in a vault relate.
Three measurements per pair of slots
For two slots, Loom computes:
- Agreement — the cosine between them: how aligned the two views are;
- Delta — how they differ: the part one slot carries that the other doesn’t;
- Interaction — the Hadamard (element-wise) product: where the two views reinforce.
Doing this per lens, across every pair, builds the graph of associations. Crucially, it only works because the no-flatten doctrine kept the slots separate — there have to be distinct slots to compare before “agreement” means anything. Count feeds straight into Differentiate, which asks the sharper question: of all this agreement, how much is new signal versus redundancy?
Practise to master it
Sign in to practise — practice items are graded per learner and update your mastery toward the lesson gate.
Where this sits in the concept graph
Build on first
Related
- Calculus of Association
- Compose verb → Lodestar / grounding kernel
- Differentiate verb → Assay / signal bits
- Embedding & cosine distance
- Forge (math runtime)
- Measure verb → Registry / lenses
- No-flatten doctrine
- The four verbs
Sources
- calyxdocs/10 (Loom)
- PRD 06_LOOM_DDA