# CSQL and ATLAS database construction

- **Registry ID:** `catagi-csql`
- **Book:** Categories for AGI
- **Documentation status:** `curation-required`
- **Experimental status:** qualitative and descriptive database demonstrations
- **Canonical documentation URL:** https://categorical-ai.sridharmahadevan.com/experiments/catagi-csql

## Purpose

Document-to-schema mapping and checked categorical SQL node/edge instances.

## Book location

- Chapter 21: Csql: Mapping Documents into Topos Causal Model Databases

## Documented studies

- Document-to-CSQL schema construction
- Merged ATLAS provenance audit
- Causal hub and path queries
- Source-edge deletion sensitivity analysis

## Associated code packages

- `atlas-csql-archive` — ATLAS CSQL database archive; **local-not-public**; license decision pending. Checked categorical SQL database instances and summaries used by the CSQL chapter.
- `democritus-openai` — [Democritus causal-claim extraction](https://github.com/sridharmahadevan/Democritus_OpenAI/tree/0fb1f8ba2f67f2906de5a3435c464751fe20c6d9); **public**; not specified. Document-to-causal-claim pipeline, including the Geometric Transformer manifold branch used by the current Democritus account.

## Start here

These concrete files are selected from the complete resolved source surface. They orient the reader; they are not a claim that every family is independently reproducible.

- **implementation · staged-not-public** — `atlas-csql-archive:atlas_WaPoHumanOrigins/atlas_queries.sql`. Locate this file in the curated companion packet; no public download is currently offered.
- **implementation · staged-not-public** — `atlas-csql-archive:atlas_WaPoHumanOrigins/atlas_queries_quant.sql`. Locate this file in the curated companion packet; no public download is currently offered.
- **implementation · staged-not-public** — `atlas-csql-archive:atlas_WaPoHumanOrigins/ncsql_starter_colab.ipynb`. Locate this file in the curated companion packet; no public download is currently offered.

## Entry points

- `ATLAS database builders`

## Result artifacts

- `atlas_summary.md`
- `checked Parquet relations`

## Resolved code surfaces (3)

- **implementation** — `atlas-csql-archive:atlas_WaPoHumanOrigins/atlas_queries.sql`
- **implementation** — `atlas-csql-archive:atlas_WaPoHumanOrigins/atlas_queries_quant.sql`
- **implementation** — `atlas-csql-archive:atlas_WaPoHumanOrigins/ncsql_starter_colab.ipynb`

## Frozen run records (0)

- No frozen run-level record is registered. Consult the result-artifact list and evidence boundary above for the exact surviving evidence; absence of a run record is not evidence that no experiment was run.

## Evidence boundary

Source-edge deletion is an ablation, not a Pearl intervention or counterfactual.

A code or artifact link establishes traceability. It does not by itself establish independent reproduction, statistical adequacy, correctness, or support for a claim beyond this boundary.
