Reading Pulpit

plate: dosa mode: hyper-talmudic keys: / search · i inspector · 1/2/3 panes · esc clear etudes spread plates library
Sugya · Text (with lemmas)
focus: Kan square interactive lemmas
Reading pulpit
A staged text with programmable margins. The center speaks, the margins test, the inspector certifies.
· ready

Let (S, ⊔) [L] be a join-semilattice. A state-based CRDT is a monotone system: every update moves upward.

Define merge merge : S × S → S [M] by join. The algebra is commutative, associative, idempotent: merge(x, y) = x ⊔ y.

Let δ : S → S [Δ] be a delta generator. Deltas are partial joins that preserve convergence with smaller payloads.

Operation-based CRDTs expose a log Log(Ops) [Log] ordered by causality (→) [C] ; applying the log is a fold over a commutative monoid.

In lambda calculus, merge is executable: merge = λx.λy. join(x,y) [λ] . The equation is the contract, the program is the proof.

API boundaries declare obligations: Promise/Obligation [API] , then adjunctions explain the UI switch: Lan = expand [Lan] and Ran = filter [Ran] . The user toggles between free construction and invariant projection.

Canonical CRDTs anchor the playbook: OR-Set [OR] , PN-Counter [PN] , LWW-Register [LWW] , and Vector Clocks [VV] . Each has a distinct merge law and boundary contract.

The practical output: a replica protocol Sync/Apply/Replay [P] that is safe under reordering, tolerates loss, and keeps invariants explicit.

Reading rule: click a lemma token ([L],[M],[Δ],[Log],[λ]...) to light up its linked marginalia and open the inspector.
Method: algebra → merge law → executable proof.
Bridge: CRDTs provide the algebra, lambda calculus makes it executable, and adjunctions explain the UI switch between expansion and filtering.
Worked example: Two replicas track a set. Replica A has {a,b}, Replica B has {b,c}. Merge via join = union.
Now apply an inflationary delta Δ = {d}. The new state is {a,b,c,d}. This is monotone and idempotent.
CRDT playbook: OR-Set uses tagged add/remove; PN-Counter tracks separate inc/dec; LWW-Register resolves by timestamp; Vector Clocks certify causality.
Each entry below has a contract and a counterexample note so API obligations stay visible.
Pragmatic checklist: Choose the lattice, define merge, prove inflation, choose transport (state vs delta vs log), then bind the API.
If you cannot name the invariant, you cannot enforce it. Surface the proof in the protocol.
Walkthrough run: Replica B sends Δb with deps [a1]. Replica A has not seen a1, so it queues Δb.
Sync: A requests a1. Apply: once a1 arrives, A merges a1 then Δb. Replay: A replays queued deltas. Invariant holds.
Seven perspectives for distributed page construction: Treat each as a distinct lens with its own apparatus and techniques.
Build graph (DAG + topological order), Dataflow (streams + backpressure), Consistency (lattices + CRDTs), Security (capability policy + proofs), UX (attention + progressive disclosure), Observability (traces + invariants), Deployment (provenance + reproducibility).
Reading Desk
layers filters
Semantic styling map
Syntax and types: underline A
Observation and logs: underline B
Proof moves: pill outline
Error capsule: shield badge
Trace action: monospace capsule
Ledger entries: dashed rail
Annotation layers
surface structural algebraic operational categorical type counterexample
Perspective apparatus
build: DAG, cache graph dataflow: streams, windows consistency: lattice, CRDT security: capabilities, proofs ux: attention + layout observability: traces deployment: provenance
All
Reading desk
Theory
Lesson
Didactic
Spec Console
live panels probes
All
Spec console
Ledger
Endpoints
Inspector
- -
Selected lemma or note details. This panel is the pulpit aside.