--- license: gpl-3.0 task_categories: - other pretty_name: TDF — Trilayer, Double Favourable Calabi–Yau database tags: - physics - string-theory - flux-compactifications - calabi-yau - mathematics - toric-geometry - kreuzer-skarke size_categories: - 1M **Mirror convention.** The catalogue exposes Hodge numbers in *catalogue convention* (typically small `h11`, large `h12`). Use `stringforge.LCSDatabase(dataset="tdf")` for the *mirror* convention used by `jaxvacua.lcs.lcs_tree`; it swaps the two columns at the boundary. ## Data splits ### `lcs_data/h11_{N}/` One row per model. Contains the topological data needed to build the Kähler cone and the LCS prepotential. | Column | Description | |---|---| | `ks_id`, `triang_id`, `h11`, `h12`, `chi` | Identity | | `intnums` | Triple intersection numbers $\kappa_{ijk}$ of the mirror (dense tensor) | | `c2` | Second Chern class $c_{2,i}$ | | `generators_kahler_cone` | Kähler-cone generators | | `rays_kahler_cone`, `tip_of_stretched_kahler_cone` | Kähler-cone geometry | | `hyperplanes` | Hyperplane constraints defining the cone | ### `gv/h11_{N}/` Gopakumar–Vafa invariants, one row per model that has GV data. | Column | Description | |---|---| | `ks_id`, `triang_id`, `h11`, `h12` | Identity | | `GVs`, `GWs` | Dictionaries of GV and GW invariants keyed by effective-curve charge | | `grading_vector` | Grading vector used during the computation | ### `conifolds/h11_{N}/` One row per $(\text{ks\_id},\, \text{triang\_id},\, \text{conifold\_id})$ triple. | Column | Description | |---|---| | `ks_id`, `triang_id`, `h11`, `h12`, `conifold_id` | Identity | | `ncf` | GV invariant of the shrinking curve | | `conifold_curve` | Charge vector $c \in \mathbb{Z}^{h^{1,1}}$ of the shrinking cycle | | `basis_change` | Integer basis rotation matrix placing the conifold modulus first | ### `polytope/` One row per `ks_id` (shared across all triangulations of that polytope). | Column | Description | |---|---| | `ks_id` | Identity | | `polytope_points` | Lattice points of the reflexive polytope (2D integer array) | ### `extra/` Miscellaneous scalar fields that vary per model. | Column | Description | |---|---| | `ks_id`, `triang_id`, `h11`, `h12` | Identity | | `chi` | Euler characteristic | | `D3_tadpole` | $\chi/24$ | | ... | Additional precomputed properties | ## Loading without `stringforge` Plain Parquet access with `pandas` + `huggingface_hub`: ```python import pandas as pd from huggingface_hub import hf_hub_download # Download only the catalogue catalog_path = hf_hub_download( repo_id = "aschachner/cy-database", filename = "tdf/catalog.parquet", repo_type = "dataset", ) catalog = pd.read_parquet(catalog_path) # Resolve a specific model's geometry shard row = catalog.query("ks_id == 716 and triang_id == 1").iloc[0] lcs_path = hf_hub_download( repo_id = "aschachner/cy-database", filename = f"tdf/lcs_data/h11_{int(row['h11'])}/data-{int(row['lcs_shard_id']):05d}.parquet", repo_type = "dataset", ) lcs = pd.read_parquet(lcs_path) model_row = lcs.iloc[int(row["lcs_row_index"])] ``` `stringforge.TDFDatabase` (pure I/O) and `stringforge.LCSDatabase(dataset="tdf")` (JAXVacua-compatible model loading) wrap this pattern with a consistent API, caching, mirror-convention handling, and filtering. ## Scope and limitations specific to TDF - Only **trilayer, double favourable** toric hypersurfaces are included. Other toric and non-toric constructions live in separate sub-datasets (e.g. [`cicy/`](../cicy/)). - GV invariants are precomputed only for a subset of models — use `has_gv=True` in queries to filter. - Conifold data is present only for models with at least one conifold limit — use `has_conifolds=True` in queries. ## Building / updating Produced from a local collection of per-model pickle files by the `build_tdf_database` notebook under [`stringforge/private/database/`](https://github.com/AndreasSchachner/stringforge/tree/main/private/database). Builds are incremental: models already in the manifest (by content hash) are skipped; only new or changed models are appended to the existing shards. ## Additional references For citation, licence, and contact details, see the [umbrella `cy-database` card](../README.md).