The Observation Theory EncyclopediaFrom TSKAboutBy kindBy chapterBy Lean fileLedgerProvenance

replica concept

DefinitionA copy of a database kept on another machine. Its lag is how far it trails the primary. Chapter 13.
ExampleA replica 50 writes behind the primary returns the old value for those 50 rows.
BookData Mining as Observation, draft 0.2, commit f3914f0; entry id replica, kind concept.
Statusno ledger row names this entry. Corrections: none recorded.
Defining equation

Book equation 0.26.

Assumptions and scope
  • A copy of a database kept on another machine, trailing the primary by a lag. The keys stale under a lag grow with the lag and vanish at no lag. A naive certificate that clears every read has coverage one and a false-clear rate equal to the stale fraction, and a witness-backed certificate that clears only keys outside the lag has a false-clear rate of zero at the price of coverage.
  • Which reads are stale is consumer-relative, since two readers of the same replica have different coherence times, and the measured false-clear rates on ZooKeeper, Postgres, and MongoDB are the ledger’s numbers.
Prior artnone recorded
Evidencelean/DataMiningAsObservation/Replica.lean
Reviewednot yet reviewed; generated 2026-09-10 from records at the commits on the provenance page.
timestale for this readerprimaryreplica
A copy of a database on another machine, trailing the primary.

Equation

Book equation 0.26.

\[\mathrm{FC}=\Pr\big[W\ \text{refutes}\ \big|\ \mathcal C_t\ \text{clears}\big],\qquad \text{coverage}=\Pr\big[\mathcal C_t\ \text{clears}\big].\]

Conditions

Conditions are curated in entries.toml rather than read from a record.

Ledger

none

First stated

Chapter 13 section 13.3 of Data Mining as Observation, with the program’s substrate measurements in observation-theory-campaigns/analysis/mongo/PREREG-XPROTO-MG.md and the database rows of the freshness track.

Measurements

none

Failures and corrections

none

Invariance envelope

none declared

Machine checked

lean/DataMiningAsObservation/Replica.lean, theorems stale_mono, stale_zero, naive_certificate, witnessed_certificate, witnessed_coverage, at observation-data-mining f3914f0; what the check covers is stated in the book’s appendix C.

Used in

Data Mining as Observation chapters 1, 4, 13.

Related

freshness; certificate; witness; false-clear rate; coverage.

See also

Book equations stated beside the entry’s terms, not defining it: 13.1.

Ledger rows that cite the entry’s records without naming it: OT-11.

Sources-table rows that share a record with the entry without naming it: chapter 13 section 13.3.

Status

Generated 2026-09-10 by encyclopedia/generate.py; book at observation-data-mining f3914f0; the commit of every record is listed in the encyclopedia’s provenance.

← reliability weightrerank →