Repository navigation
Home
Jeremy H. Carroll edited this page Nov 8, 2026
·
2 revisions
Welcome to the technical documentation for SmplCache, a boundary-certified incremental query cache and relational normalization engine for Python (3.11+).
-
Theorem 7 and Boundary Certificates
How
certify_eventandcertify_join_eventclassify every write event intoPRESERVE(KEEP),REPAIR(FIX IN PLACE), orINVALIDATE(REREAD) with machine-readableCertificaterecords and WAL LSN / sequenceboundary_clockwatermarks. -
Simplex Normal Forms and Theorem 9 Lifts
How
smplcache.normal_formscomputes functional dependency closures, minimal covers, candidate keys, Bernstein 3NF synthesis, Tsou-Fischer BCNF decomposition, Tableau Chase losslessness checks, and Class D group-key reductions. -
Bounded Join Maintenance and W-TinyLFU
How
JoinAuxStateandSharedJoinAuxPoolmaintain$O(1)$ primary-key and secondary foreign-key indices under a hard memory budget (max_total_rowsandmax_tombstones) using segmented W-TinyLFU admission and fail-closed tombstone tracking. -
Benchmarks and Live Container Verification
How the test suite verifies
SmplCacheandsmplcache.normal_formsagainst live PostgreSQL 16, SQL Server 2022, and MongoDB 7 containers alongside SQLite and DuckDB cold-rebuild substrates.
# 1. Inspect workload co-invalidation and repair vs. invalidate ratios
smplcache report examples/ecommerce_before.json
# 2. Compute simplicial nerve topology and isolated singleton shapes
smplcache report examples/ecommerce_before.json --topomap
# 3. Inspect SQL ASTs for non-SARGable predicates, implicit conversions, and FD-redundant GROUP BY columns
smplcache doctor examples/ecommerce_before.json
# 4. Synthesize 3NF/BCNF schema lifts, run Tableau Chase verification, and emit PostgreSQL 16 / SQL Server 2022 DDL
smplcache normalize examples/ecommerce_before.json --dialect postgres --format markdown-
What this documentation supports: Scoped engineering reference for the admitted SQL fragment (
SELECT ... FROM ... [INNER | LEFT JOIN] ... WHERE ... GROUP BY), exact integer/Decimal/tuple group aggregation (SUM,COUNT,AVG), andSortedMultisetExtremumCache(MIN,MAX). -
What this documentation does not support: Arbitrary SQL outside the admitted allowlist (such as
HAVING, window functions, recursive CTEs, orRIGHT/FULL OUTER JOIN), or unverified float arithmetic. -
Narrowest defensible claim: Under the declared schema, primary-key uniqueness, and complete CDC/WAL before/after row images,
SmplCacheeither updates cached group aggregates in place or emits a fail-closedINVALIDATE(REREAD) certificate when required evidence is missing or evicted. - Next test needed: Multi-node distributed lease coordination benchmarks under concurrent CDC partition rebalancing.