aschachner commited on
Commit
f8122c5
·
verified ·
1 Parent(s): b71bc8b

Upload README_CICY.md

Browse files
Files changed (1) hide show
  1. cicy/README_CICY.md +207 -0
cicy/README_CICY.md ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gpl-3.0
3
+ task_categories:
4
+ - other
5
+ pretty_name: CICY — Complete-intersection Calabi–Yau threefold database
6
+ tags:
7
+ - physics
8
+ - string-theory
9
+ - flux-compactifications
10
+ - calabi-yau
11
+ - complete-intersection
12
+ - mathematics
13
+ size_categories:
14
+ - 1K<n<10K
15
+ configs:
16
+ - config_name: cicy
17
+ data_files:
18
+ - split: catalog
19
+ path: cicy/catalog.parquet
20
+ ---
21
+
22
+ # CICY — Complete-intersection Calabi–Yau threefold database
23
+
24
+ **Complete-intersection Calabi–Yau (CICY) threefolds, precomputed for use with [`stringforge`](https://github.com/AndreasSchachner/stringforge) and [`jaxvacua`](https://github.com/AndreasSchachner/jaxvacua).**
25
+
26
+ This is one sub-dataset of the larger [`cy-database`](../) repository. For shared conventions (lazy access, cache modes, offline mode, schema versioning, mirror convention) see the [umbrella card](../README.md).
27
+
28
+ ## Scope
29
+
30
+ CICY covers the 7\,890 complete-intersection Calabi–Yau threefolds first classified by Candelas et al., realised as the vanishing locus of a set of homogeneous polynomials inside a product of complex projective spaces. Each model is uniquely identified by
31
+
32
+ - `cicy_id` — the integer index in the CICY list, with $1 \le \text{cicy\_id} \le 7\,890$.
33
+
34
+ For each model the dataset provides (when computed):
35
+
36
+ - **Topological data**: triple intersection numbers $\kappa_{ijk}$ (stored in coordinate / "COO" form), second Chern class $c_2$, $a$-matrix, Hodge numbers $h^{1,1}$ and $h^{2,1}$, Euler characteristic $\chi$, Kähler-cone generators and rays, Mori-cone rays, hyperplane constraints, and an integer basis change to a tractable working basis.
37
+ - **Gopakumar–Vafa invariants** $n_q^0$ in sparse form (`gv_charges`, `gv_invariants`) together with the grading vector used during the computation.
38
+ - **Extra data**: per-model auxiliary fields stored as a dictionary column (`extra_data`).
39
+
40
+ The current catalogue contains **7\,406 models** with Hodge ranges $h^{1,1} \in \{0,\, \dots,\, 101\}$ and $h^{2,1} \in \{0,\, \dots,\, 19\}$ in catalogue convention (equivalently, $h^{1,1} \in \{0,\, \dots,\, 19\}$ and $h^{2,1} \in \{0,\, \dots,\, 101\}$ in mirror convention). Of these, **4\,511 models** carry precomputed GV invariants.
41
+
42
+ ## Quick start
43
+
44
+ ```bash
45
+ pip install stringforge
46
+ ```
47
+
48
+ ### Pure I/O (no JAXVacua)
49
+
50
+ ```python
51
+ from stringforge import CICYDatabase
52
+
53
+ db = CICYDatabase() # downloads catalogue only
54
+ df = db.query(h11=3) # catalogue-level filter
55
+ print(df.head())
56
+ ```
57
+
58
+ ### Model loading in mirror convention (recommended for JAXVacua)
59
+
60
+ ```python
61
+ from stringforge import LCSDatabase
62
+
63
+ lcs = LCSDatabase(dataset="cicy") # mirror-convention wrapper
64
+ df = lcs.query(h12=3, has_gv=True) # h12 in mirror convention
65
+
66
+ tree = lcs.load(
67
+ cicy_id = int(df.iloc[0]["cicy_id"]),
68
+ include_gv = True,
69
+ )
70
+
71
+ # Or construct a fully initialised FluxVacuaFinder
72
+ finder = lcs.load_model(
73
+ cicy_id = int(df.iloc[0]["cicy_id"]),
74
+ include_gv = True,
75
+ maximum_degree = 2,
76
+ )
77
+ ```
78
+
79
+ ### Streaming batches without local-disk accumulation
80
+
81
+ ```python
82
+ from stringforge import LCSDatabase
83
+
84
+ lcs_lean = LCSDatabase(dataset="cicy", cache_mode="none")
85
+ for tree in lcs_lean.iter_batch(h12=3, include_gv=True):
86
+ ...
87
+ ```
88
+
89
+ ## Sub-dataset layout
90
+
91
+ ```
92
+ cicy/
93
+ README.md ← this file
94
+ catalog.parquet ← main index, one row per cicy_id
95
+ schema.json ← schema version + description
96
+ manifest.json ← incremental-build manifest
97
+
98
+ lcs_data/h11_{N}/ ← geometry data, sharded by h^{1,1}
99
+ data-00000.parquet
100
+ ...
101
+ gv/ ← Gopakumar–Vafa invariants (flat split)
102
+ data-00000.parquet
103
+ ...
104
+ ```
105
+
106
+ Unlike the [TDF sub-dataset](../tdf/), CICY does **not** carry per-conifold or polytope splits: the construction is a complete intersection in an ambient projective product, so reflexive-polytope data and shrinking-curve / conifold metadata are not part of the standard model identity.
107
+
108
+ ### Why $h^{1,1}$-bucketed?
109
+
110
+ The `lcs_data` split is bucketed by $h^{1,1}$ because the per-row sizes (intersection-number tensors $O(h^3)$, $a$-matrices $O(h^2)$, GV charge vectors $O(h)$) scale strongly with the rank. Bucketing keeps fixed-width Parquet columns at the size appropriate for each rank, and lets `db.load_batch(h11=k)` pull only the `h11_k/` directory.
111
+
112
+ The `gv` split is *flat* (not $h^{1,1}$-bucketed) because GV invariants are stored in sparse coordinate form, so each row's size is determined by the number of effective curves rather than by $h$.
113
+
114
+ ## Catalogue schema
115
+
116
+ The main `catalog.parquet` is the entry point. One row per `cicy_id`, with shard pointers into the data splits.
117
+
118
+ | Column | Type | Description |
119
+ |---|---|---|
120
+ | `cicy_id` | `int64` | CICY list index, $1 \le \text{cicy\_id} \le 7\,890$ |
121
+ | `h11` | `int64` | Hodge number $h^{1,1}(X)$ (catalogue convention) |
122
+ | `h12` | `int64` | Hodge number $h^{2,1}(X)$ (catalogue convention) |
123
+ | `chi` | `int64` | Euler characteristic $\chi(X) = 2\,(h^{1,1} - h^{2,1})$ |
124
+ | `lcs_shard_id` | `Int64` (nullable) | Shard index in `lcs_data/h11_{h11}/` |
125
+ | `lcs_row_index` | `Int64` (nullable) | Row within that shard |
126
+ | `gv_shard_id` | `Int64` (nullable) | Shard index in `gv/` — null if GV data unavailable |
127
+ | `gv_row_index` | `Int64` (nullable) | Row within that shard |
128
+ | `has_gv` | `bool` | Whether GV data is present |
129
+
130
+ > **Mirror convention.** The catalogue exposes Hodge numbers in *catalogue convention*. Use `stringforge.LCSDatabase(dataset="cicy")` for the *mirror* convention used by `jaxvacua.lcs.lcs_tree`; it swaps the two columns at the boundary.
131
+
132
+ ## Data splits
133
+
134
+ ### `lcs_data/h11_{N}/`
135
+
136
+ One row per model. Contains the topological data needed to build the Kähler cone and the LCS prepotential.
137
+
138
+ | Column | Description |
139
+ |---|---|
140
+ | `cicy_id`, `h11`, `h12`, `chi` | Identity |
141
+ | `intnums_coo_i`, `intnums_coo_j`, `intnums_coo_k`, `intnums_coo_v` | Triple intersection numbers $\kappa_{ijk}$ in coordinate (COO) sparse form |
142
+ | `c2` | Second Chern class $c_{2,i}$ |
143
+ | `a_matrix` | Symmetrised second-derivative matrix $a_{ij}$ entering the LCS prepotential |
144
+ | `hyperplanes` | Hyperplane constraints defining the Kähler cone |
145
+ | `kahler_generators` | Kähler-cone generators in the working basis |
146
+ | `kahler_rays` | Rays of the Kähler cone |
147
+ | `mori_rays` | Rays of the Mori cone |
148
+ | `basis_change` | Integer change-of-basis matrix to the working basis |
149
+ | `extra_data` | Per-model auxiliary fields, stored as a dictionary column |
150
+
151
+ ### `gv/`
152
+
153
+ Gopakumar–Vafa invariants in sparse form, one row per model that has GV data.
154
+
155
+ | Column | Description |
156
+ |---|---|
157
+ | `cicy_id`, `h11`, `h12` | Identity |
158
+ | `gv_charges` | Array of effective-curve charge vectors $q \in \mathbb{Z}^{h^{1,1}}$ |
159
+ | `gv_invariants` | Array of integer GV invariants $n_q^0$, aligned with `gv_charges` |
160
+ | `grading_vector` | Grading vector used during the computation |
161
+
162
+ ## Loading without `stringforge`
163
+
164
+ Plain Parquet access with `pandas` + `huggingface_hub`:
165
+
166
+ ```python
167
+ import pandas as pd
168
+ from huggingface_hub import hf_hub_download
169
+
170
+ # Download only the catalogue
171
+ catalog_path = hf_hub_download(
172
+ repo_id = "aschachner/cy-database",
173
+ filename = "cicy/catalog.parquet",
174
+ repo_type = "dataset",
175
+ )
176
+ catalog = pd.read_parquet(catalog_path)
177
+
178
+ # Resolve one model's geometry shard
179
+ row = catalog.query("cicy_id == 7884").iloc[0]
180
+ lcs_path = hf_hub_download(
181
+ repo_id = "aschachner/cy-database",
182
+ filename = f"cicy/lcs_data/h11_{int(row['h11'])}/data-{int(row['lcs_shard_id']):05d}.parquet",
183
+ repo_type = "dataset",
184
+ )
185
+ lcs = pd.read_parquet(lcs_path)
186
+ model_row = lcs.iloc[int(row["lcs_row_index"])]
187
+ ```
188
+
189
+ `stringforge.CICYDatabase` (pure I/O) and `stringforge.LCSDatabase(dataset="cicy")` (JAXVacua-compatible model loading) wrap this pattern with a consistent API, caching, mirror-convention handling, and filtering.
190
+
191
+ ## Scope and limitations specific to CICY
192
+
193
+ - Models are stored in the working basis defined by `basis_change`; downstream code that needs the original CICY-list basis should apply the inverse rotation.
194
+ - GV invariants are precomputed only for a subset of models — use `has_gv=True` in queries to filter.
195
+ - CICY threefolds in the standard list **do not carry conifold or polytope metadata**: this dataset has no `conifold_catalog.parquet`, no `conifolds/` split, and no `polytope/` split. Conifold-aware workflows should use the [TDF sub-dataset](../tdf/).
196
+ - The catalogue currently lists **7\,406** models out of the canonical 7\,890; missing entries reflect ongoing computation of the topological data and will be back-filled in incremental rebuilds.
197
+
198
+ ## Building / updating
199
+
200
+ Produced by `build_cicy_database.ipynb` under [`stringforge/private/database/`](https://github.com/AndreasSchachner/stringforge/tree/main/private/database) from a local collection of per-model computations. Builds are incremental: models already in the manifest (by content hash) are skipped; only new or changed models are appended to the existing shards.
201
+
202
+ ## References
203
+
204
+ - P. Candelas, A. M. Dale, C. A. Lütken, R. Schimmrigk, *Complete Intersection Calabi–Yau Manifolds*, Nucl. Phys. B 298 (1988) 493.
205
+ - A. Constantin, J. Gray, A. Lukas, *Hodge Numbers for All CICY Quotients*, [arXiv:1606.04893](https://arxiv.org/abs/1606.04893).
206
+
207
+ For citation, licence, and contact details, see the [umbrella `cy-database` card](../README.md).