the-homeless-god commited on
Commit
ceb701f
·
verified ·
1 Parent(s): e75b16e

publish fts-specgen-dataset: 15 files (134.3 MiB)

Browse files
.gitattributes CHANGED
@@ -58,3 +58,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ negative_control/mutants.jsonl filter=lfs diff=lfs merge=lfs -text
62
+ hf/negative_control.jsonl filter=lfs diff=lfs merge=lfs -text
63
+ data/train.jsonl filter=lfs diff=lfs merge=lfs -text
64
+ hf/train.jsonl filter=lfs diff=lfs merge=lfs -text
MANIFEST.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "generated_at": "2026-08-07T09:09:59+00:00",
3
+ "repo_id": "digitable-lol/fts-specgen-dataset",
4
+ "repo_type": "dataset",
5
+ "note": "sha256 of every file as published. The hash is the record, not the filename: a repository is the same artefact as this manifest only if every digest matches.",
6
+ "files": [
7
+ {
8
+ "path_in_repo": "README.md",
9
+ "sha256": "a05446f4c157bfd1398a5b7e5883efcd80cba3f08cf4136456b6b14f83056150",
10
+ "size_bytes": 26060
11
+ },
12
+ {
13
+ "path_in_repo": "data/holdout.jsonl",
14
+ "sha256": "4a73ec2a6c402af91e7a130b5af3ac12efe8106432e588dd415ccb9bd1ba5e1c",
15
+ "size_bytes": 7270701
16
+ },
17
+ {
18
+ "path_in_repo": "data/train.jsonl",
19
+ "sha256": "d50c09795840a8548010f3ecf7ccc460b3c1be60ee8ba4c071a775ff0abdacc2",
20
+ "size_bytes": 48929988
21
+ },
22
+ {
23
+ "path_in_repo": "fts.gbnf",
24
+ "sha256": "d8b3fc451c4e6339c1c3c3ef6a1f8533b870ea20c6c05573b6c28d8bb8a2573e",
25
+ "size_bytes": 6765
26
+ },
27
+ {
28
+ "path_in_repo": "hf/holdout.jsonl",
29
+ "sha256": "93b80ff1b68927baa1a0db692f545612c30832b1d3033f111142f5790fb877f5",
30
+ "size_bytes": 7823602
31
+ },
32
+ {
33
+ "path_in_repo": "hf/negative_control.jsonl",
34
+ "sha256": "b9808a3afa16f2ed6beb67479f1d5f2d4a4843dd22a11f73fc3fda0b0f61e7ee",
35
+ "size_bytes": 12016316
36
+ },
37
+ {
38
+ "path_in_repo": "hf/train.jsonl",
39
+ "sha256": "7f645f250af1eca9cc9a3b01065dc4deb287ad5dcbc39a73a395c05c8f703910",
40
+ "size_bytes": 52279316
41
+ },
42
+ {
43
+ "path_in_repo": "negative_control/gate_sensitivity.json",
44
+ "sha256": "9abe437ff59bbdf127b13dbecc104d170999c0bbcfdef33f88dfbbdd981a193e",
45
+ "size_bytes": 2264
46
+ },
47
+ {
48
+ "path_in_repo": "negative_control/mutants.jsonl",
49
+ "sha256": "af893c1c07d43e1c91f9b61b2a350ce1f347d03d6ca02e77de12bf94c4334e4c",
50
+ "size_bytes": 11066486
51
+ },
52
+ {
53
+ "path_in_repo": "negative_control/verdicts.jsonl",
54
+ "sha256": "3efe28177d11b2aa9e79e5d1ef4820158823dcff190442a5d3f7d6ebfb1aee23",
55
+ "size_bytes": 1430563
56
+ },
57
+ {
58
+ "path_in_repo": "reports/coverage_vs_corpus.json",
59
+ "sha256": "1104e2c43954cc6dd6bb8f90d6562b67880415209f2b313ca0786ca710401b70",
60
+ "size_bytes": 7034
61
+ },
62
+ {
63
+ "path_in_repo": "reports/grammar_conformance.json",
64
+ "sha256": "af31ab5cd4a386fd4a103b5988212866675363b58cdf0d43dccc5b46f1ecab94",
65
+ "size_bytes": 126
66
+ },
67
+ {
68
+ "path_in_repo": "reports/split.json",
69
+ "sha256": "587333373bfe4a1452abdb0c8d6edb9b2580c35b1499c2f3e8cf459accb171bd",
70
+ "size_bytes": 3637
71
+ },
72
+ {
73
+ "path_in_repo": "reports/stats.json",
74
+ "sha256": "53d05cc3e6a5fa0a7aeae9c3311802f3ec7d88af4902fc3fe954a0987115c1fe",
75
+ "size_bytes": 9327
76
+ }
77
+ ]
78
+ }
README.md ADDED
@@ -0,0 +1,445 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: bsd-2-clause
3
+ language:
4
+ - ru
5
+ task_categories:
6
+ - text-generation
7
+ tags:
8
+ - formal-specification
9
+ - executable-specification
10
+ - fts
11
+ - russian
12
+ - synthetic
13
+ - verified
14
+ - compiler-checked
15
+ - negative-control
16
+ size_categories:
17
+ - 10K<n<100K
18
+ configs:
19
+ - config_name: default
20
+ data_files:
21
+ - split: train
22
+ path: hf/train.jsonl
23
+ - split: holdout
24
+ path: hf/holdout.jsonl
25
+ - config_name: negative_control
26
+ data_files:
27
+ - split: train
28
+ path: hf/negative_control.jsonl
29
+ ---
30
+
31
+ # fts-specgen-dataset
32
+
33
+ **10 500 pairs of "task in ordinary Russian → executable FTS specification".**
34
+ 9 000 train, 1 500 holdout. **Every single document was run through the real FTS compiler**
35
+ — parsed, type checked, its examples executed, its theorem proved and certified — and only
36
+ what passed the whole gate is in these files.
37
+
38
+ It also ships the thing that makes that sentence worth anything: **a negative control of
39
+ 4 400 deliberately corrupted documents**, eleven kinds of corruption, with the gate's
40
+ verdict on every one. The gate catches **91.6 %**, and the card tells you which 8.4 % it
41
+ misses and why.
42
+
43
+ This is what trained [`digitable-lol/specgen-qwen3-1.7b`](https://huggingface.co/digitable-lol/specgen-qwen3-1.7b).
44
+
45
+ ---
46
+
47
+ ## 1. Read this first
48
+
49
+ ### 1.1 "Passed the compiler" is a claim about form, not about meaning
50
+
51
+ The gate proves that a document **compiles, type checks, executes its own examples, and
52
+ proves its own theorem**. It does not prove that the document means what the task text
53
+ asked for.
54
+
55
+ **Semantic fidelity was never measured.** The generator builds the task text and the
56
+ document from the same underlying structure, so a divergence can only arise as a bug in
57
+ `tools/task.py` — but the rate of such bugs is unknown, and "unknown" is the honest word.
58
+ If you need a corpus where the natural-language request is guaranteed to describe the
59
+ formal artefact, this is not verified to be one.
60
+
61
+ ### 1.2 A hole in this dataset, found by the model that trained on it
62
+
63
+ **Not one of the 9 000 training documents contains a utility and a theorem at the same
64
+ time.**
65
+
66
+ | training documents | count |
67
+ |---|---:|
68
+ | utility, no theorem | 6 451 |
69
+ | theorem, no utility | 1 185 |
70
+ | neither | 1 364 |
71
+ | **both** | **0** |
72
+
73
+ The holdout does contain the combination — template `CMB-UTL-THM`, 129 documents — because
74
+ that template was assigned to the holdout side of the split. The consequence showed up
75
+ downstream, in the model: of the 127 `CMB-UTL-THM` documents it produced that compiled
76
+ cleanly, **0 contained the theorem the task asked for**, while on the other 324
77
+ theorem-bearing holdout documents it scored 324/324.
78
+
79
+ This is a defect of the data, not of the model, and it is a good demonstration of § 1.1:
80
+ the compiler accepts a specification with no theorem, because a specification with no
81
+ theorem is formally valid. Nothing in the gate could have caught it. It was found by
82
+ comparing generated documents against their reference structure — a check this dataset's
83
+ own construction never had to perform.
84
+
85
+ If you train on this corpus, the model you get will not learn to combine a utility with a
86
+ theorem in one document, because it will never have seen it done.
87
+
88
+ ### 1.3 Russian only, and one specific language
89
+
90
+ Every task text is Russian and every document uses the **Russian surface syntax** of FTS.
91
+ The English surface of the language is not covered at all. The documents are also specific
92
+ to FTS as implemented by [`@digitable-lol/fts`](https://github.com/digitable-lol/flang) —
93
+ this is not a general formal-methods corpus.
94
+
95
+ ## 2. What is in it
96
+
97
+ | | |
98
+ |---|---|
99
+ | documents | **10 500** (9 000 train / 1 500 holdout) |
100
+ | passed the gate | **10 500 of 10 500** generated candidates |
101
+ | rejected in the final run | 0 |
102
+ | subject areas | **62** (50 train, 12 holdout) |
103
+ | structural templates | **33** (25 train, 8 holdout) |
104
+ | language constructs tracked | **74 — all 74 present in both train and holdout** |
105
+ | conforms to the GBNF grammar | **10 500 of 10 500 (100 %)** |
106
+ | gate throughput | 4 200–4 470 documents/second, in-process |
107
+ | size | 47 MiB train + 6.9 MiB holdout |
108
+
109
+ Language elements across the corpus: **32 609** `пример`, **28 549** fields, **12 670**
110
+ `правило`, **11 990** `объект`/`структура`, **7 166** `утилита`, **5 328** `морфизм`,
111
+ **5 227** `свойство`, **1 638** `теорема`.
112
+
113
+ ### The three holdout strata
114
+
115
+ The split divides the **space of templates and subject areas** and is written to
116
+ `reports/split.json` *before the first document is generated*. A document is training data
117
+ only if **both** its template and its area are on the training side.
118
+
119
+ | stratum | documents | what is new |
120
+ |---|---:|---|
121
+ | `новая_область` | 501 | familiar structural form, unseen subject area |
122
+ | `новый_шаблон` | 501 | unseen structural form, familiar area |
123
+ | `новый_шаблон_новая_область` | 498 | **neither was ever seen** — the strict one |
124
+
125
+ Measured leakage invariants (`reports/stats.json → leakage_check`, all hold): 0 shared
126
+ documents, 0 shared task texts, 0 holdout templates leaked into train, 0 holdout areas
127
+ leaked into train, and the strict stratum verifiably uses only unseen templates and only
128
+ unseen areas.
129
+
130
+ One constraint is enforced while building the split rather than checked afterwards: every
131
+ tracked language construct must survive in at least one training template, or the model
132
+ would never see it at all.
133
+
134
+ ## 3. The negative control — the part that is worth more than the corpus
135
+
136
+ A dataset whose every row "passed the filter" tells you nothing until you know whether the
137
+ filter can fail anything. So 4 400 known-good documents were corrupted on purpose, eleven
138
+ ways, and put back through the same gate.
139
+
140
+ **4 030 of 4 400 caught — 91.6 %.**
141
+
142
+ | corruption | caught | what the gate said |
143
+ |---|---:|---|
144
+ | example: expected value changed | **100.0 %** | `FTS_EXAMPLE_MISMATCH` |
145
+ | syntax: C-like (`field: type`) | **100.0 %** | `PARSE_ERROR` |
146
+ | field not declared, used in a rule | **100.0 %** | `FTS_UTILITY_FIELD` |
147
+ | example: required field dropped | **100.0 %** | `FTS_UTILITY_EXAMPLE_FIELD` |
148
+ | indentation: four spaces instead of two | **100.0 %** | `PARSE_ERROR` |
149
+ | theorem: unknown morphism | **100.0 %** | `PARSE_ERROR` |
150
+ | type: string where a number belongs | **100.0 %** | `FTS_UTILITY_EXAMPLE_TYPE` |
151
+ | utility: different return type | **100.0 %** | `FTS_UTILITY_INITIAL_TYPE` |
152
+ | name: unclosed guillemet | 74.5 % | `PARSE_ERROR` |
153
+ | **rule: threshold moved by one** | **72.8 %** | `FTS_EXAMPLE_MISMATCH` |
154
+ | **morphism: reversed** | **60.2 %** | `PARSE_ERROR` |
155
+ | **total** | **91.6 %** | |
156
+
157
+ The last two rows are the limits of the method, and they are the reason this section
158
+ exists:
159
+
160
+ * **Threshold moved by one** is the only *semantic* corruption in the list — the document
161
+ stays well-formed and well-typed and simply computes something else. Before the
162
+ generator was changed, the gate caught **5.0 %** of these: the examples in a document
163
+ never happened to touch the boundary they were testing. Adding a pair of examples
164
+ "exactly at the threshold" and "one below it" moved it to **72.8 %**, and moved the
165
+ overall catch rate from **85.8 % to 91.6 %**. That change was made *because of this
166
+ measurement*, not before it — which is the argument for running a negative control at
167
+ all.
168
+ * **A reversed morphism** is caught only when it breaks a theorem's type chain. In a
169
+ document with no theorem, a reversed morphism is still a perfectly correct document. The
170
+ reference toolchain records exactly this case in
171
+ `fts-gate/examples/fallacies/reversed-morphism.fts`.
172
+
173
+ So the honest formulation, and the one the model card repeats:
174
+
175
+ > The gate guarantees that a document compiles, type checks, executes its examples and
176
+ > proves its theorem. It does **not** guarantee that the document means what was asked.
177
+
178
+ ### 3.1 The grammar is not the compiler
179
+
180
+ The same 4 400 mutants were run through the GBNF recogniser: it **accepts 3 302 and
181
+ rejects 1 098**. The grammar catches syntactic corruption and nothing else — type errors
182
+ and semantic errors pass it cleanly. Constrained decoding is not a correctness check, and
183
+ this is the measurement that says so.
184
+
185
+ ### 3.2 It ships as data, not as a table
186
+
187
+ `negative_control/` contains all 4 400 mutated documents and the gate's verdict on each,
188
+ so you can re-run the whole thing against your own checker instead of taking the table
189
+ above on trust. It is deterministic (`random.Random(11)` over the shipped corpus) and was
190
+ regenerated and re-verified for this publication: **4 030/4 400, every per-mutation count
191
+ and every diagnostic code identical to the published summary.**
192
+
193
+ ## 4. Two other things that were measured about the gate
194
+
195
+ **It rejected 17.2 % during development.** On the first full run the gate threw out
196
+ **1 787 of 10 400** candidates, all `PARSE_ERROR`, all from a single bug: a name of the
197
+ form `«Признак «есть медсправка» установлен»` terminated at the first closing guillemet.
198
+ The compiler found it; review had not. The final run's 0 rejections are what a fixed
199
+ generator looks like, not what a blind filter looks like.
200
+
201
+ **The same gate on the pre-existing hand-written corpus.** Of 141 unique `.fts` documents
202
+ found on the machine, **92 parse and pass**; 42 do not parse at all (module wrappers,
203
+ fragments, deliberately broken examples from `fts-gate/examples/fallacies` and
204
+ `refusals`), 6 fail on their examples, 1 on types. The gate is not tuned to accept
205
+ everything it is shown.
206
+
207
+ ## 5. Coverage: this corpus is denser than the corpus it came from
208
+
209
+ In those 92 hand-written documents, **11** of the 74 tracked constructs never appear at
210
+ all and **21** appear in five documents or fewer. In this dataset the minimum is **127
211
+ training documents** (`сравн:больше`) and **19 holdout documents**.
212
+
213
+ | construct | hand-written corpus (92 docs) | train | holdout |
214
+ |---|---:|---:|---:|
215
+ | `вложена структура` | 0 | 243 | 21 |
216
+ | `не равно` | 0 | 267 | 25 |
217
+ | `затем применить морфизм` | 0 | 304 | 147 |
218
+ | `получаем` | 0 | 392 | 153 |
219
+ | `возвращает дату` | 0 | 396 | 21 |
220
+ | `применить морфизм` | 0 | 589 | 166 |
221
+ | `морфизм: из` / `в` | 0 | 786 | 302 |
222
+ | `структура` | 0 | 882 | 61 |
223
+ | `является текстом` | 0 | 1 131 | 80 |
224
+ | `вложен объект` | 1 | 249 | 19 |
225
+ | `является датой` | 2 | 1 035 | 169 |
226
+ | `возвращает признак` | 3 | 1 182 | 61 |
227
+
228
+ Full table for all 74 constructs: `reports/coverage_vs_corpus.json`.
229
+
230
+ ## 6. Row format
231
+
232
+ ```json
233
+ {"id": "...", "split": "train", "stratum": null,
234
+ "prompt": "<task in Russian>",
235
+ "completion": "<the FTS specification>",
236
+ "meta": {"skeleton": "...", "domain": "...", "register": "...", "quote_style": "...",
237
+ "constructs": [...], "gate": {...}, "summary": {...}, "context": {...},
238
+ "sha256": "..."}}
239
+ ```
240
+
241
+ The **system prompt is not duplicated into every row** — it is one line, it is identical
242
+ for all 10 500, and it lives in `reports/stats.json → system_prompt`:
243
+
244
+ ```
245
+ Ты пишешь исполняемые спецификации на языке FTS (русская поверхность). Ответ — только текст спецификации, без пояснений и без ограждений кода.
246
+ ```
247
+
248
+ Build `messages` from that plus the `prompt`/`completion` pair.
249
+
250
+ `meta.gate` records what the gate saw for that document, including
251
+ `certificate_digest` for the 1 638 documents with a theorem. `meta.context` is the data a
252
+ theorem is proved against, and is present only for those documents.
253
+
254
+ ### Task variety
255
+
256
+ Task texts are written in **five registers**, roughly evenly distributed: `тз` (technical
257
+ brief in prose), `тикет` (bulleted ticket), `письмо` (letter from a client), `регламент`
258
+ (numbered clauses), `просьба` (a short imperative). **The registers are deliberately shared
259
+ between train and holdout**: the holdout measures transfer to an unseen structural form and
260
+ an unseen subject area, not to an unseen writing style.
261
+
262
+ A task must fully determine its document — thresholds, initial value, properties and every
263
+ test case are named explicitly — or the model would be learning to guess rather than to
264
+ translate.
265
+
266
+ ## 7. Files and loading
267
+
268
+ ```
269
+ data/train.jsonl 9 000 rows, canonical
270
+ data/holdout.jsonl 1 500 rows, canonical, each with `stratum`
271
+ hf/train.jsonl, hf/holdout.jsonl the same rows, Arrow-safe (see below)
272
+ hf/negative_control.jsonl 4 400 mutants joined to their verdicts
273
+ negative_control/mutants.jsonl 4 400 corrupted documents
274
+ negative_control/verdicts.jsonl the gate's verdict on each
275
+ negative_control/gate_sensitivity.json the summary table of § 3
276
+ reports/split.json the template/area split, written before generation
277
+ reports/stats.json full statistics, coverage, leakage checks
278
+ reports/coverage_vs_corpus.json the language tail (§ 5)
279
+ reports/grammar_conformance.json 10 500 / 10 500 accepted
280
+ fts.gbnf the grammar, for constrained decoding
281
+ MANIFEST.json sha256 of every published file
282
+ ```
283
+
284
+ ```python
285
+ from datasets import load_dataset
286
+
287
+ ds = load_dataset("digitable-lol/fts-specgen-dataset") # train, holdout
288
+ nc = load_dataset("digitable-lol/fts-specgen-dataset", "negative_control")
289
+ ```
290
+
291
+ **Why the dataset is here twice.** `meta` is a free-form object: `meta.context` alone takes
292
+ **55 distinct key-sets** across the corpus — one per subject area — and `meta` itself has
293
+ two key-sets, because only documents with a theorem carry `context`.
294
+
295
+ On **`datasets` ≥ 5 this is fine**, and that was checked rather than assumed:
296
+ `load_dataset("json", data_files="data/train.jsonl")` was run on `datasets` 5.0.1, loads
297
+ all 9 000 rows, and types the column as `Json`, handing back a plain dict. Earlier versions
298
+ infer an Arrow struct from a sample of rows and fail on the union.
299
+
300
+ `hf/` sidesteps the question entirely and is what the dataset viewer and the `configs`
301
+ above point at: `meta_json` carries the original object as a string (`json.loads`
302
+ round-trips it exactly), alongside lifted scalar columns `skeleton`, `domain`, `register`,
303
+ `quote_style`, `n_utilities`, `n_examples`, `n_theorems`, `has_context`, so you can filter
304
+ without parsing. **Train on `data/`; browse and filter with `hf/`.** The same problem and
305
+ the same fix are documented in
306
+ [`digitable-lol/digit-router-dataset`](https://huggingface.co/datasets/digitable-lol/digit-router-dataset).
307
+
308
+ ## 8. Reproduction
309
+
310
+ ```bash
311
+ python3 tools/generate.py --train 9000 --holdout 1500
312
+ node tools/verify.mjs < dataset/candidates.jsonl > work/verdicts.jsonl
313
+ python3 tools/assemble.py
314
+ python3 tools/check_dataset.py # independent re-check: 10500/10500
315
+ node tools/grammar_check.mjs dataset/train.jsonl dataset/holdout.jsonl
316
+
317
+ # the negative control
318
+ python3 tools/mutate.py work/final.jsonl work/mutants.jsonl 400
319
+ node tools/verify.mjs < work/mutants.jsonl > work/mutant_verdicts.jsonl
320
+ ```
321
+
322
+ The split is deterministic (`SPLIT_SEED = 20260806`) and so is generation
323
+ (`random.Random(f"{seed}:{skeleton}:{domain}:{round}")`), so a re-run reproduces the same
324
+ files. Reproducing the gate verdicts requires the FTS compiler.
325
+
326
+ ## 9. Limits — read before using
327
+
328
+ 1. **Semantic fidelity is unmeasured** (§ 1.1). The largest gap.
329
+ 2. **No document combines a utility with a theorem** (§ 1.2). A measured hole with a
330
+ measured downstream consequence.
331
+ 3. **Synthetic throughout.** Task texts are composed from registers and templates, not
332
+ collected from people. Indirect, elliptical and under-specified requests — the normal
333
+ way humans ask for things — are absent by construction, because a task here must fully
334
+ determine its document.
335
+ 4. **Russian only**, and one language's Russian surface (§ 1.3).
336
+ 5. **33 templates and 62 areas** is not the space of specifications anyone might want. It
337
+ is the space this generator covers.
338
+ 6. **The gate's own blind spots are 8.4 %**, itemised in § 3, and they are concentrated in
339
+ exactly the corruption that matters most: a semantically wrong threshold in a
340
+ syntactically perfect document.
341
+ 7. **Coverage warnings are not rejections.** `FTS_COVERAGE_HOLE`, `FTS_RULE_OVERLAP`,
342
+ `FTS_PROPERTY_UNATTAINABLE` and `FTS_PROPERTY_VIOLATED` are recorded in
343
+ `meta.gate.coverage_warnings` but do not fail a document. This is measured, not assumed:
344
+ the toolchain's own reference example
345
+ `flang-v6/examples/utilities/discount.fts` raises `FTS_PROPERTY_VIOLATED` and
346
+ `FTS_PROPERTY_UNATTAINABLE` itself, because the language has no way to declare that a
347
+ money field is non-negative, so the analyser always finds a negative input. Rejecting on
348
+ that signal would mean rejecting an idiom of the language.
349
+
350
+ ## 10. Origin and licensing
351
+
352
+ **BSD-2-Clause.**
353
+
354
+ The FTS language and its compiler
355
+ ([`@digitable-lol/fts`](https://github.com/digitable-lol/flang)) and the verification gate
356
+ (`@digitable-lol/fts-gate`) are both BSD-2-Clause and both belong to this organisation.
357
+ The corpus was generated from them by this project's own code, and `fts.gbnf` is shipped
358
+ here under the same terms.
359
+
360
+ No teacher model was used anywhere in the pipeline. Every document was constructed
361
+ programmatically and then checked by the compiler; expected example values come from the
362
+ language's own reference interpreter and property bounds from conservative analytic
363
+ estimates.
364
+
365
+ There is no third-party copyleft question here, which is a deliberate contrast with
366
+ [`digitable-lol/digit-router-dataset`](https://huggingface.co/datasets/digitable-lol/digit-router-dataset),
367
+ where there is one and where this organisation says so rather than picking a convenient tag.
368
+
369
+ ## 11. Integrity
370
+
371
+ `MANIFEST.json` lists the sha256 of every published file, recorded at upload time on the
372
+ machine that produced it. Each document additionally carries its own `meta.sha256`.
373
+
374
+ ---
375
+
376
+ ## 12. По-русски
377
+
378
+ **Что это.** 10 500 пар «задание на обычном русском → исполняемая спецификация FTS»:
379
+ 9 000 train, 1 500 holdout. **Каждый документ прогнан через настоящий компилятор FTS** —
380
+ разобран, типизирован, его примеры исполнены, его теорема доказана и сертифицирована; в
381
+ файлы попало только то, что прошло гейт целиком. Это те данные, на которых обучен
382
+ [`digitable-lol/specgen-qwen3-1.7b`](https://huggingface.co/digitable-lol/specgen-qwen3-1.7b).
383
+
384
+ **Главная оговорка.** «Прошло компилятор» — утверждение о форме, не о смысле. Гейт
385
+ доказывает, что документ компилируется, типизируется, исполняет свои примеры и доказывает
386
+ свою теорему. Что он означает ровно то, что просили словами в задании, — **не измерено**.
387
+ Генератор строит задание и документ из одной структуры, поэтому расхождение возможно
388
+ только как ошибка в `tools/task.py`, и её масштаб неизвестен.
389
+
390
+ **Дыра в датасете, найденная обученной на нём моделью.** **Ни один из 9 000 обучающих
391
+ документов не содержит утилиту и теорему одновременно**: 6 451 с утилитой без теоремы,
392
+ 1 185 с теоремой без утилиты, 1 364 без того и другого, **ноль** с обоими. В holdout
393
+ комбинация есть — шаблон `CMB-UTL-THM`, 129 документов. Последствие проявилось в модели:
394
+ из 127 таких документов, которые она написала и которые чисто скомпилировались, теорему
395
+ содержат **0**, при 324/324 на остальных теоремах holdout. Компилятор здесь бессилен:
396
+ документ без теоремы формально валиден. Это дефект данных, и он тут написан.
397
+
398
+ **Негативный контроль — самое ценное в этой публикации.** Фраза «все примеры прошли
399
+ фильтр» ничего не значит, пока не известно, способен ли фильтр вообще что-то отвергнуть.
400
+ 4 400 заведомо исправных документов испорчены намеренно — **одиннадцатью способами** — и
401
+ пропущены через тот же гейт. **Поймано 4 030 из 4 400 — 91,6 %.** Восемь видов порчи
402
+ ловятся на 100 %; три — нет: незакрытая ёлочка 74,5 %, **сдвинутый на единицу порог
403
+ 72,8 %**, **перевёрнутый морфизм 60,2 %**.
404
+
405
+ Две последние строки — граница метода. *Сдвинутый порог* — единственная чисто смысловая
406
+ порча в списке: документ остаётся корректным и просто считает другое. До появления
407
+ граничных примеров ловилось **5,0 %** — примеры просто не задевали проверяемую границу;
408
+ после добавления пары «ровно на пороге» и «на единицу ниже» стало 72,8 %, а общая доля
409
+ выросла с **85,8 % до 91,6 %**. Это изменение сделано **по результату замера**, а не
410
+ заранее, и в этом весь смысл негативного контроля. *Перевёрнутый морфизм* ловится только
411
+ когда ломает типовую цепочку теоремы: в документе без теоремы он остаётся корректным
412
+ документом.
413
+
414
+ **Негативный контроль опубликован данными, а не таблицей:** все 4 400 испорченных
415
+ документов и вердикт гейта по каждому лежат в `negative_control/`, так что таблицу выше
416
+ можно перепроверить своим инструментом. Он детерминирован и был перегенерирован и
417
+ перепроверен при подготовке этой публикации — **4 030/4 400, все счётчики и все коды
418
+ диагностик совпали с опубликованной сводкой**.
419
+
420
+ **Грамматика — не компилятор.** Тот же распознаватель GBNF на тех же 4 400 мутантах
421
+ принимает 3 302 и отвергает 1 098: синтаксическую порчу он ловит, типовую и смысловую —
422
+ нет. Constrained decoding не является проверкой корректности, и это то измерение, которое
423
+ об этом говорит.
424
+
425
+ **Разделение — до генерации.** `reports/split.json` делит пространство шаблонов и
426
+ областей и пишется **до построения первого документа**. Три страты: `новая_область` (501),
427
+ `новый_шаблон` (501), `новый_шаблон_новая_область` (498, самая строгая). Утечка измерена и
428
+ равна нулю по всем пяти инвариантам.
429
+
430
+ **Что ещё измерено про гейт.** По ходу разработки он отверг **1 787 из 10 400 (17,2 %)** —
431
+ все `PARSE_ERROR` из-за одной ошибки в именах с вложенными ёлочками; нашёл её компилятор,
432
+ а не ревью. Тот же гейт на исходном рукописном корпусе: из 141 документа проходят **92**,
433
+ 42 не разбираются вовсе, 6 падают на примерах, 1 — на типах. Гейт не устроен так, чтобы
434
+ принимать всё подряд.
435
+
436
+ **Ограничения:** смысловая верность не измерена; нет ни одного документа с утилитой и
437
+ теоремой сразу; всё синтетическое — живых пользовательских формулир��вок нет по построению;
438
+ только русский; 33 шаблона и 62 области — это охват генератора, а не пространство
439
+ спецификаций; слепые зоны гейта — 8,4 %, и они сосредоточены ровно там, где важнее всего.
440
+
441
+ **Лицензия — BSD-2-Clause.** Язык FTS, компилятор и гейт принадлежат этой же организации и
442
+ лицензированы так же; teacher-модель не использовалась нигде. Нерешённого вопроса о
443
+ копилефте здесь нет — в отличие от
444
+ [`digit-router-dataset`](https://huggingface.co/datasets/digitable-lol/digit-router-dataset),
445
+ где он есть и где мы это пишем прямо, а не выбираем удобный тег.
data/holdout.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d50c09795840a8548010f3ecf7ccc460b3c1be60ee8ba4c071a775ff0abdacc2
3
+ size 48929988
fts.gbnf ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FTS natural (Russian) surface — GBNF grammar for constrained decoding.
2
+ #
3
+ # Derived from the natural-surface parser of @digitable/fts. Scope and known gaps are
4
+ # documented in grammars/README.md; verify with `npm run grammar:check`.
5
+ #
6
+ # Каждое правило — в одну строку, какой бы длинной она ни вышла. Перенос
7
+ # альтернативы на следующую строку читается лучше, но llama.cpp завершает
8
+ # правило на переводе строки вне скобок и отказывается грузить файл целиком:
9
+ # «expecting name at |». Наш чекер этого не ловил — он разбирает грамматику
10
+ # своим парсером и на переносы не смотрит, поэтому зелёный `grammar:check`
11
+ # ничего про пригодность к constrained decoding не говорил. Замер: до склейки
12
+ # двух таких строк llama.cpp не грузил грамматику вовсе; после — грузит, и на
13
+ # одной и той же модели синтаксически чистых генераций стало 25/25 вместо
14
+ # 17/25. Проверку на продолжения добавили в scripts/check-grammar.mjs.
15
+ #
16
+ # Covered: категория / объект / структура / морфизм / утилита / теорема,
17
+ # including правило, свойство, пример, all comparison phrases, percent and
18
+ # field operands, guillemet and bare names, `//` comments and blank lines.
19
+ #
20
+ # Deliberate restrictions relative to the parser (a strict subset — every
21
+ # string this grammar accepts is accepted by the parser, not the converse):
22
+ # * indentation is exactly two spaces per level, never tabs;
23
+ # * the English surface and the legacy braced syntax are out of scope;
24
+ # * `принимает` / `возвращает` / `начинает с` appear in that fixed order;
25
+ # * at most one теорема, and it comes last;
26
+ # * `/* … */` block comments are out of scope.
27
+
28
+ root ::= skip document
29
+
30
+ document ::= category-line body
31
+
32
+ category-line ::= "категория " name eol
33
+
34
+ body ::= declaration* theorem?
35
+
36
+ declaration ::= object | morphism | utility
37
+
38
+ # ---------------------------------------------------------------- объекты
39
+
40
+ object ::= (" объект " | " структура ") name eol field+
41
+
42
+ field ::= plain-field | nested-field
43
+
44
+ plain-field ::= " " name (" является " | " иногда является ") field-type eol
45
+
46
+ # A field type is a built-in, a state witness type, or any nominal type name.
47
+ # The parser accepts arbitrary nominal types (`является Email`), so the grammar
48
+ # does too: it constrains syntax, never the domain vocabulary.
49
+ field-type ::= builtin-type | state-type | name
50
+
51
+ builtin-type ::= "строкой" | "текстом" | "числом" | "датой" | "деньгами" | "признаком"
52
+
53
+ state-type ::= "состоянием " name
54
+
55
+ nested-field ::= " " ("вложен объект " | "вложена структура ") name eol
56
+
57
+ # --------------------------------------------------------------- морфизмы
58
+
59
+ morphism ::= " морфизм " name eol morphism-domain morphism-codomain morphism-law?
60
+
61
+ morphism-domain ::= (" если " | " из ") name eol
62
+
63
+ morphism-codomain ::= (" то " | " в ") name eol
64
+
65
+ morphism-law ::= " по закону " name eol
66
+
67
+ # --------------------------------------------------------------- утилиты
68
+
69
+ utility ::= " утилита " name eol utility-accepts utility-returns utility-initial utility-member+
70
+
71
+ utility-accepts ::= " принимает " name eol
72
+
73
+ utility-returns ::= " возвращает " return-type eol
74
+
75
+ return-type ::= "строку" | "число" | "дату" | "деньги" | "признак"
76
+
77
+ utility-initial ::= " начинает с " scalar eol
78
+
79
+ utility-member ::= rule | property | example
80
+
81
+ rule ::= " правило " name eol rule-if rule-and* rule-then
82
+
83
+ rule-if ::= " если " name " " comparison eol
84
+
85
+ rule-and ::= " и " name " " comparison eol
86
+
87
+ rule-then ::= rule-add | rule-set
88
+
89
+ rule-add ::= " то добавить " operand eol
90
+
91
+ rule-set ::= " то результат " equality " " operand eol
92
+
93
+ property ::= " свойство " name eol " результат " comparison eol
94
+
95
+ example ::= " пример " name eol given+ expected
96
+
97
+ given ::= " дано " name " " equality " " scalar eol
98
+
99
+ expected ::= " ожидается результат " equality " " scalar eol
100
+
101
+ comparison ::= comparison-operator " " operand
102
+
103
+ comparison-operator ::= "не меньше" | "не больше" | "не равен" | "не равна" | "не равно" | "равен" | "равна" | "равно" | "больше" | "меньше"
104
+
105
+ equality ::= "равен" | "равна" | "равно"
106
+
107
+ operand ::= result-operand | percent-operand | field-operand | scalar
108
+
109
+ result-operand ::= "результат"
110
+
111
+ percent-operand ::= number " " ("процентов" | "процента" | "процент") " от поля " name
112
+
113
+ field-operand ::= "поле " name
114
+
115
+ # --------------------------------------------------------------- теоремы
116
+
117
+ theorem ::= " теорема " name eol theorem-given theorem-lookup theorem-step* theorem-conclusion?
118
+
119
+ theorem-given ::= " дано " name " имеет " name " равное " scalar eol
120
+
121
+ theorem-lookup ::= " в данных " name " найти где " name " равен " scalar eol
122
+
123
+ theorem-step ::= (" по морфизму " | " затем по морфизму " | " применить морфизм " | " затем применить морфизм ") name eol
124
+
125
+ theorem-conclusion ::= (" следовательно " | " получаем ") name eol
126
+
127
+ # ------------------------------------------------------- имена и значения
128
+
129
+ # A name is either a guillemet-quoted phrase (any characters but the closing
130
+ # guillemet and a newline) or a single bare identifier without spaces.
131
+ name ::= quoted-name | bare-name
132
+
133
+ quoted-name ::= "«" [^«»\n]+ "»"
134
+
135
+ bare-name ::= [a-zA-Zа-яёА-ЯЁ_] [a-zA-Z0-9а-яёА-ЯЁ_-]*
136
+
137
+ scalar ::= boolean | null-value | number | name
138
+
139
+ boolean ::= "да" | "нет"
140
+
141
+ null-value ::= "ничто"
142
+
143
+ number ::= "-"? ("0" | [1-9] [0-9]*) ("." [0-9]+)?
144
+
145
+ # -------------------------------------------------------- строки и пробелы
146
+
147
+ # Every logical line ends here. Blank lines and `//` comment lines are
148
+ # discarded by the parser, so the grammar lets them appear between any lines.
149
+ eol ::= "\n" skip
150
+
151
+ skip ::= (" "* "//" [^\n]* "\n" | "\n")*
hf/holdout.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
hf/negative_control.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9808a3afa16f2ed6beb67479f1d5f2d4a4843dd22a11f73fc3fda0b0f61e7ee
3
+ size 12016316
hf/train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f645f250af1eca9cc9a3b01065dc4deb287ad5dcbc39a73a395c05c8f703910
3
+ size 52279316
negative_control/gate_sensitivity.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total": 4400,
3
+ "caught": 4030,
4
+ "catch_rate": 0.9159,
5
+ "by_mutation": {
6
+ "пример: другое ожидание": {
7
+ "total": 400,
8
+ "caught": 400,
9
+ "rate": 1.0,
10
+ "codes": {
11
+ "examples:FTS_EXAMPLE_MISMATCH": 400
12
+ }
13
+ },
14
+ "синтаксис: C-подобный": {
15
+ "total": 400,
16
+ "caught": 400,
17
+ "rate": 1.0,
18
+ "codes": {
19
+ "compile:PARSE_ERROR": 400
20
+ }
21
+ },
22
+ "поле: незадекларированное в правиле": {
23
+ "total": 400,
24
+ "caught": 400,
25
+ "rate": 1.0,
26
+ "codes": {
27
+ "validate:FTS_UTILITY_FIELD": 400
28
+ }
29
+ },
30
+ "морфизм: перевёрнут": {
31
+ "total": 400,
32
+ "caught": 241,
33
+ "rate": 0.6025,
34
+ "codes": {
35
+ "compile:PARSE_ERROR": 241
36
+ }
37
+ },
38
+ "пример: пропущено обязательное поле": {
39
+ "total": 400,
40
+ "caught": 400,
41
+ "rate": 1.0,
42
+ "codes": {
43
+ "validate:FTS_UTILITY_EXAMPLE_FIELD": 400
44
+ }
45
+ },
46
+ "отступы: четыре пробела": {
47
+ "total": 400,
48
+ "caught": 400,
49
+ "rate": 1.0,
50
+ "codes": {
51
+ "compile:PARSE_ERROR": 400
52
+ }
53
+ },
54
+ "имя: незакрытая ёлочка": {
55
+ "total": 400,
56
+ "caught": 298,
57
+ "rate": 0.745,
58
+ "codes": {
59
+ "compile:PARSE_ERROR": 298
60
+ }
61
+ },
62
+ "теорема: неизвестный морфизм": {
63
+ "total": 400,
64
+ "caught": 400,
65
+ "rate": 1.0,
66
+ "codes": {
67
+ "compile:PARSE_ERROR": 400
68
+ }
69
+ },
70
+ "тип: строка вместо числа в примере": {
71
+ "total": 400,
72
+ "caught": 400,
73
+ "rate": 1.0,
74
+ "codes": {
75
+ "validate:FTS_UTILITY_EXAMPLE_TYPE": 400
76
+ }
77
+ },
78
+ "утилита: другой возвращаемый тип": {
79
+ "total": 400,
80
+ "caught": 400,
81
+ "rate": 1.0,
82
+ "codes": {
83
+ "validate:FTS_UTILITY_INITIAL_TYPE": 400
84
+ }
85
+ },
86
+ "правило: порог сдвинут (семантика, не синтаксис)": {
87
+ "total": 400,
88
+ "caught": 291,
89
+ "rate": 0.7275,
90
+ "codes": {
91
+ "examples:FTS_EXAMPLE_MISMATCH": 291
92
+ }
93
+ }
94
+ }
95
+ }
negative_control/mutants.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af893c1c07d43e1c91f9b61b2a350ce1f347d03d6ca02e77de12bf94c4334e4c
3
+ size 11066486
negative_control/verdicts.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
reports/coverage_vs_corpus.json ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "категория": {
3
+ "corpus_docs": 77,
4
+ "train": 9000,
5
+ "holdout": 1500
6
+ },
7
+ "объект": {
8
+ "corpus_docs": 77,
9
+ "train": 8118,
10
+ "holdout": 1439
11
+ },
12
+ "структура": {
13
+ "corpus_docs": 0,
14
+ "train": 882,
15
+ "holdout": 61
16
+ },
17
+ "морфизм": {
18
+ "corpus_docs": 31,
19
+ "train": 1972,
20
+ "holdout": 624
21
+ },
22
+ "утилита": {
23
+ "corpus_docs": 44,
24
+ "train": 6451,
25
+ "holdout": 715
26
+ },
27
+ "теорема": {
28
+ "corpus_docs": 21,
29
+ "train": 1185,
30
+ "holdout": 453
31
+ },
32
+ "является": {
33
+ "corpus_docs": 77,
34
+ "train": 9000,
35
+ "holdout": 1500
36
+ },
37
+ "иногда является": {
38
+ "corpus_docs": 2,
39
+ "train": 397,
40
+ "holdout": 127
41
+ },
42
+ "вложен объект": {
43
+ "corpus_docs": 1,
44
+ "train": 249,
45
+ "holdout": 19
46
+ },
47
+ "вложена структура": {
48
+ "corpus_docs": 0,
49
+ "train": 243,
50
+ "holdout": 21
51
+ },
52
+ "тип:строкой": {
53
+ "corpus_docs": 45,
54
+ "train": 3098,
55
+ "holdout": 950
56
+ },
57
+ "тип:текстом": {
58
+ "corpus_docs": 0,
59
+ "train": 1131,
60
+ "holdout": 80
61
+ },
62
+ "тип:числом": {
63
+ "corpus_docs": 25,
64
+ "train": 6653,
65
+ "holdout": 730
66
+ },
67
+ "тип:датой": {
68
+ "corpus_docs": 2,
69
+ "train": 1035,
70
+ "holdout": 169
71
+ },
72
+ "тип:деньгами": {
73
+ "corpus_docs": 31,
74
+ "train": 4568,
75
+ "holdout": 483
76
+ },
77
+ "тип:признаком": {
78
+ "corpus_docs": 32,
79
+ "train": 3532,
80
+ "holdout": 421
81
+ },
82
+ "тип:состоянием": {
83
+ "corpus_docs": 34,
84
+ "train": 1972,
85
+ "holdout": 744
86
+ },
87
+ "тип:номинальный": {
88
+ "corpus_docs": 3,
89
+ "train": 633,
90
+ "holdout": 44
91
+ },
92
+ "морфизм:если": {
93
+ "corpus_docs": 31,
94
+ "train": 1186,
95
+ "holdout": 322
96
+ },
97
+ "морфизм:то": {
98
+ "corpus_docs": 31,
99
+ "train": 1186,
100
+ "holdout": 322
101
+ },
102
+ "морфизм:из": {
103
+ "corpus_docs": 0,
104
+ "train": 786,
105
+ "holdout": 302
106
+ },
107
+ "морфизм:в": {
108
+ "corpus_docs": 0,
109
+ "train": 786,
110
+ "holdout": 302
111
+ },
112
+ "по закону": {
113
+ "corpus_docs": 25,
114
+ "train": 396,
115
+ "holdout": 539
116
+ },
117
+ "принимает": {
118
+ "corpus_docs": 44,
119
+ "train": 6451,
120
+ "holdout": 715
121
+ },
122
+ "возвращает:строку": {
123
+ "corpus_docs": 1,
124
+ "train": 393,
125
+ "holdout": 150
126
+ },
127
+ "возвращает:число": {
128
+ "corpus_docs": 17,
129
+ "train": 1584,
130
+ "holdout": 209
131
+ },
132
+ "возвращает:дату": {
133
+ "corpus_docs": 0,
134
+ "train": 396,
135
+ "holdout": 21
136
+ },
137
+ "возвращает:деньги": {
138
+ "corpus_docs": 25,
139
+ "train": 2896,
140
+ "holdout": 274
141
+ },
142
+ "возвращает:признак": {
143
+ "corpus_docs": 3,
144
+ "train": 1182,
145
+ "holdout": 61
146
+ },
147
+ "начинает с": {
148
+ "corpus_docs": 44,
149
+ "train": 6451,
150
+ "holdout": 715
151
+ },
152
+ "правило": {
153
+ "corpus_docs": 44,
154
+ "train": 6451,
155
+ "holdout": 715
156
+ },
157
+ "свойство": {
158
+ "corpus_docs": 33,
159
+ "train": 3690,
160
+ "holdout": 569
161
+ },
162
+ "пример": {
163
+ "corpus_docs": 42,
164
+ "train": 6451,
165
+ "holdout": 715
166
+ },
167
+ "правило:если": {
168
+ "corpus_docs": 44,
169
+ "train": 6451,
170
+ "holdout": 715
171
+ },
172
+ "правило:и": {
173
+ "corpus_docs": 19,
174
+ "train": 397,
175
+ "holdout": 20
176
+ },
177
+ "то добавить": {
178
+ "corpus_docs": 34,
179
+ "train": 4480,
180
+ "holdout": 483
181
+ },
182
+ "то результат": {
183
+ "corpus_docs": 17,
184
+ "train": 1971,
185
+ "holdout": 232
186
+ },
187
+ "свойство:результат": {
188
+ "corpus_docs": 33,
189
+ "train": 3690,
190
+ "holdout": 569
191
+ },
192
+ "дано(пример)": {
193
+ "corpus_docs": 42,
194
+ "train": 6451,
195
+ "holdout": 715
196
+ },
197
+ "ожидается результат": {
198
+ "corpus_docs": 42,
199
+ "train": 6451,
200
+ "holdout": 715
201
+ },
202
+ "сравн:не меньше": {
203
+ "corpus_docs": 35,
204
+ "train": 5665,
205
+ "holdout": 547
206
+ },
207
+ "сравн:не больше": {
208
+ "corpus_docs": 32,
209
+ "train": 2108,
210
+ "holdout": 233
211
+ },
212
+ "сравн:не равен": {
213
+ "corpus_docs": 6,
214
+ "train": 591,
215
+ "holdout": 159
216
+ },
217
+ "сравн:не равна": {
218
+ "corpus_docs": 0,
219
+ "train": 323,
220
+ "holdout": 45
221
+ },
222
+ "сравн:не равно": {
223
+ "corpus_docs": 0,
224
+ "train": 267,
225
+ "holdout": 25
226
+ },
227
+ "сравн:равен": {
228
+ "corpus_docs": 62,
229
+ "train": 7636,
230
+ "holdout": 1039
231
+ },
232
+ "сравн:равна": {
233
+ "corpus_docs": 25,
234
+ "train": 4672,
235
+ "holdout": 433
236
+ },
237
+ "сравн:равно": {
238
+ "corpus_docs": 18,
239
+ "train": 2703,
240
+ "holdout": 370
241
+ },
242
+ "сравн:больше": {
243
+ "corpus_docs": 24,
244
+ "train": 127,
245
+ "holdout": 134
246
+ },
247
+ "сравн:меньше": {
248
+ "corpus_docs": 12,
249
+ "train": 1190,
250
+ "holdout": 59
251
+ },
252
+ "операнд:результат": {
253
+ "corpus_docs": 2,
254
+ "train": 393,
255
+ "holdout": 21
256
+ },
257
+ "операнд:процентов от поля": {
258
+ "corpus_docs": 25,
259
+ "train": 1650,
260
+ "holdout": 204
261
+ },
262
+ "операнд:процента от поля": {
263
+ "corpus_docs": 6,
264
+ "train": 1316,
265
+ "holdout": 112
266
+ },
267
+ "операнд:процент от поля": {
268
+ "corpus_docs": 1,
269
+ "train": 395,
270
+ "holdout": 20
271
+ },
272
+ "операнд:поле": {
273
+ "corpus_docs": 9,
274
+ "train": 524,
275
+ "holdout": 30
276
+ },
277
+ "теорема:дано": {
278
+ "corpus_docs": 21,
279
+ "train": 1185,
280
+ "holdout": 453
281
+ },
282
+ "в данных": {
283
+ "corpus_docs": 21,
284
+ "train": 1185,
285
+ "holdout": 453
286
+ },
287
+ "по морфизму": {
288
+ "corpus_docs": 21,
289
+ "train": 596,
290
+ "holdout": 287
291
+ },
292
+ "затем по морфизму": {
293
+ "corpus_docs": 6,
294
+ "train": 697,
295
+ "holdout": 296
296
+ },
297
+ "применить морфизм": {
298
+ "corpus_docs": 0,
299
+ "train": 589,
300
+ "holdout": 166
301
+ },
302
+ "затем применить морфизм": {
303
+ "corpus_docs": 0,
304
+ "train": 304,
305
+ "holdout": 147
306
+ },
307
+ "следовательно": {
308
+ "corpus_docs": 21,
309
+ "train": 793,
310
+ "holdout": 175
311
+ },
312
+ "получаем": {
313
+ "corpus_docs": 0,
314
+ "train": 392,
315
+ "holdout": 153
316
+ },
317
+ "скаляр:да": {
318
+ "corpus_docs": 44,
319
+ "train": 4781,
320
+ "holdout": 637
321
+ },
322
+ "скаляр:нет": {
323
+ "corpus_docs": 26,
324
+ "train": 3569,
325
+ "holdout": 309
326
+ },
327
+ "скаляр:ничто": {
328
+ "corpus_docs": 3,
329
+ "train": 390,
330
+ "holdout": 23
331
+ },
332
+ "скаляр:число": {
333
+ "corpus_docs": 45,
334
+ "train": 6451,
335
+ "holdout": 715
336
+ },
337
+ "скаляр:отрицательное число": {
338
+ "corpus_docs": 8,
339
+ "train": 394,
340
+ "holdout": 20
341
+ },
342
+ "скаляр:дробное число": {
343
+ "corpus_docs": 4,
344
+ "train": 1305,
345
+ "holdout": 325
346
+ },
347
+ "имя:«ёлочки»": {
348
+ "corpus_docs": 78,
349
+ "train": 8996,
350
+ "holdout": 1499
351
+ },
352
+ "имя:голое": {
353
+ "corpus_docs": 54,
354
+ "train": 2369,
355
+ "holdout": 380
356
+ },
357
+ "комментарий //": {
358
+ "corpus_docs": 76,
359
+ "train": 5058,
360
+ "holdout": 828
361
+ }
362
+ }
reports/grammar_conformance.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total": 10500,
3
+ "accepted": 10500,
4
+ "rejected": 0,
5
+ "samples": [],
6
+ "accept_rate": 1,
7
+ "rejected_by_skeleton": {}
8
+ }
reports/split.json ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "seed": 20260806,
3
+ "rule": "train = train-скелет И train-область; всё прочее — holdout",
4
+ "holdout_skeletons": [
5
+ "CMB-UTL-THM",
6
+ "MOR-FROM-TO-LAW",
7
+ "OBJ-OPTIONAL",
8
+ "OBJ-STATES",
9
+ "THM-APPLY",
10
+ "THM-NOCONCL",
11
+ "UTL-NUM-FRACT",
12
+ "UTL-STR-BYTEXT"
13
+ ],
14
+ "train_skeletons": [
15
+ "CMB-MOR-UTL",
16
+ "CMB-STRUCT-UTL",
17
+ "CMB-TWO-UTIL",
18
+ "MOR-IF-THEN",
19
+ "OBJ-BUILTIN",
20
+ "OBJ-NESTED",
21
+ "OBJ-NESTED-STRUCT",
22
+ "OBJ-TEXT-DATE",
23
+ "THM-CLASSIC",
24
+ "THM-LONG",
25
+ "THM-SHORT",
26
+ "UTL-DATE",
27
+ "UTL-FLAG-NEGATIVE",
28
+ "UTL-FLAG-NOTNULL",
29
+ "UTL-FLAG-SET",
30
+ "UTL-MONEY-FIELD",
31
+ "UTL-MONEY-FRACT",
32
+ "UTL-MONEY-MULTICOND",
33
+ "UTL-MONEY-NEG",
34
+ "UTL-MONEY-PCT",
35
+ "UTL-MONEY-PCT-SINGULAR",
36
+ "UTL-NUM-CONST",
37
+ "UTL-NUM-FIELDPROP",
38
+ "UTL-NUM-RESULT",
39
+ "UTL-STR-CLASSIFY"
40
+ ],
41
+ "holdout_domains": [
42
+ "agro",
43
+ "datacenter",
44
+ "gov",
45
+ "gym",
46
+ "insurance",
47
+ "livestock",
48
+ "museum",
49
+ "pharmacy",
50
+ "print",
51
+ "retail",
52
+ "telecom",
53
+ "theatre"
54
+ ],
55
+ "train_domains": [
56
+ "ads",
57
+ "airline",
58
+ "archive",
59
+ "autoservice",
60
+ "banking_ops",
61
+ "carsharing",
62
+ "cinema",
63
+ "clinic",
64
+ "construction",
65
+ "credit",
66
+ "customs",
67
+ "delivery_food",
68
+ "ecom",
69
+ "energy",
70
+ "forestry",
71
+ "fuel",
72
+ "hiring",
73
+ "hosting",
74
+ "hotel",
75
+ "hr",
76
+ "infosec",
77
+ "isp",
78
+ "itsm",
79
+ "lab",
80
+ "leasing",
81
+ "legal",
82
+ "library",
83
+ "logistics",
84
+ "manufacturing",
85
+ "mfc",
86
+ "notary",
87
+ "parking",
88
+ "payroll",
89
+ "procurement",
90
+ "qc",
91
+ "rail",
92
+ "realty",
93
+ "restaurant",
94
+ "saas",
95
+ "school",
96
+ "security",
97
+ "sport",
98
+ "tax",
99
+ "taxi",
100
+ "tourism",
101
+ "university",
102
+ "utilities_jkh",
103
+ "warehouse",
104
+ "waste",
105
+ "water"
106
+ ],
107
+ "constructs_covered_by_train_skeletons": [
108
+ "в данных",
109
+ "вложен объект",
110
+ "вложена структура",
111
+ "возвращает:дату",
112
+ "возвращает:деньги",
113
+ "возвращает:признак",
114
+ "возвращает:строку",
115
+ "возвращает:число",
116
+ "затем по морфизму",
117
+ "затем применить морфизм",
118
+ "иногда является",
119
+ "морфизм",
120
+ "морфизм:в",
121
+ "морфизм:если",
122
+ "морфизм:из",
123
+ "морфизм:то",
124
+ "объект",
125
+ "операнд:поле",
126
+ "операнд:процент от поля",
127
+ "операнд:процента от поля",
128
+ "операнд:процентов от поля",
129
+ "операнд:результат",
130
+ "по закону",
131
+ "по морфизму",
132
+ "получаем",
133
+ "правило:и",
134
+ "применить морфизм",
135
+ "пример",
136
+ "свойство",
137
+ "скаляр:да",
138
+ "скаляр:дробное число",
139
+ "скаляр:нет",
140
+ "скаляр:ничто",
141
+ "скаляр:отрицательное число",
142
+ "следовательно",
143
+ "сравн:больше",
144
+ "сравн:меньше",
145
+ "сравн:не больше",
146
+ "сравн:не равен",
147
+ "структура",
148
+ "теорема",
149
+ "теорема:дано",
150
+ "тип:датой",
151
+ "тип:деньгами",
152
+ "тип:номинальный",
153
+ "тип:признаком",
154
+ "тип:состоянием",
155
+ "тип:строкой",
156
+ "тип:текстом",
157
+ "тип:числом",
158
+ "то добавить",
159
+ "то результат",
160
+ "утилита"
161
+ ]
162
+ }
reports/stats.json ADDED
@@ -0,0 +1,412 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "system_prompt": "Ты пишешь исполняемые спецификации на языке FTS (русская поверхность). Ответ — только текст спецификации, без пояснений и без ограждений кода.",
3
+ "generated_candidates": 10500,
4
+ "passed_gate": 10500,
5
+ "rejected_by_gate": 0,
6
+ "gate_pass_rate": 1.0,
7
+ "train": 9000,
8
+ "holdout": 1500,
9
+ "gate_verdicts": {
10
+ "ok:": 10500
11
+ },
12
+ "leakage_check": {
13
+ "shared_document_hashes": 0,
14
+ "shared_prompt_hashes": 0,
15
+ "holdout_skeletons_leaked_into_train": [],
16
+ "holdout_domains_leaked_into_train": [],
17
+ "strict_stratum_size": 498,
18
+ "strict_stratum_uses_only_unseen_skeletons": true,
19
+ "strict_stratum_uses_only_unseen_domains": true
20
+ },
21
+ "by_stratum": {
22
+ "новая_область": 501,
23
+ "новый_шаблон": 501,
24
+ "новый_шаблон_новая_область": 498
25
+ },
26
+ "by_skeleton": {
27
+ "train": {
28
+ "CMB-TWO-UTIL": 396,
29
+ "UTL-MONEY-MULTICOND": 397,
30
+ "UTL-MONEY-FRACT": 394,
31
+ "UTL-MONEY-PCT": 399,
32
+ "OBJ-BUILTIN": 237,
33
+ "UTL-FLAG-SET": 396,
34
+ "UTL-DATE": 396,
35
+ "OBJ-TEXT-DATE": 242,
36
+ "THM-LONG": 396,
37
+ "MOR-IF-THEN": 393,
38
+ "UTL-NUM-CONST": 397,
39
+ "UTL-MONEY-FIELD": 127,
40
+ "CMB-MOR-UTL": 394,
41
+ "OBJ-NESTED": 249,
42
+ "UTL-STR-CLASSIFY": 393,
43
+ "UTL-MONEY-PCT-SINGULAR": 395,
44
+ "UTL-FLAG-NOTNULL": 390,
45
+ "UTL-FLAG-NEGATIVE": 396,
46
+ "OBJ-NESTED-STRUCT": 243,
47
+ "THM-SHORT": 392,
48
+ "UTL-NUM-RESULT": 393,
49
+ "UTL-NUM-FIELDPROP": 397,
50
+ "UTL-MONEY-NEG": 394,
51
+ "CMB-STRUCT-UTL": 397,
52
+ "THM-CLASSIC": 397
53
+ },
54
+ "holdout": {
55
+ "CMB-STRUCT-UTL": 19,
56
+ "OBJ-STATES": 120,
57
+ "THM-LONG": 23,
58
+ "OBJ-NESTED-STRUCT": 21,
59
+ "THM-NOCONCL": 125,
60
+ "MOR-FROM-TO-LAW": 130,
61
+ "OBJ-OPTIONAL": 108,
62
+ "UTL-MONEY-NEG": 20,
63
+ "UTL-STR-BYTEXT": 127,
64
+ "CMB-UTL-THM": 129,
65
+ "UTL-DATE": 21,
66
+ "UTL-NUM-FRACT": 128,
67
+ "OBJ-BUILTIN": 20,
68
+ "UTL-MONEY-PCT-SINGULAR": 20,
69
+ "UTL-NUM-FIELDPROP": 20,
70
+ "OBJ-NESTED": 19,
71
+ "OBJ-TEXT-DATE": 21,
72
+ "UTL-MONEY-MULTICOND": 20,
73
+ "THM-APPLY": 132,
74
+ "CMB-TWO-UTIL": 20,
75
+ "UTL-FLAG-NEGATIVE": 18,
76
+ "MOR-IF-THEN": 22,
77
+ "UTL-MONEY-FIELD": 6,
78
+ "UTL-NUM-RESULT": 21,
79
+ "THM-SHORT": 21,
80
+ "UTL-NUM-CONST": 21,
81
+ "UTL-FLAG-NOTNULL": 23,
82
+ "UTL-STR-CLASSIFY": 23,
83
+ "THM-CLASSIC": 23,
84
+ "UTL-FLAG-SET": 20,
85
+ "UTL-MONEY-FRACT": 22,
86
+ "CMB-MOR-UTL": 19,
87
+ "UTL-MONEY-PCT": 18
88
+ }
89
+ },
90
+ "by_domain_count": {
91
+ "train": 50,
92
+ "holdout": 62
93
+ },
94
+ "by_register": {
95
+ "train": {
96
+ "просьба": 1882,
97
+ "тз": 1876,
98
+ "регламент": 1748,
99
+ "тикет": 1787,
100
+ "письмо": 1707
101
+ },
102
+ "holdout": {
103
+ "тикет": 255,
104
+ "письмо": 226,
105
+ "просьба": 367,
106
+ "тз": 326,
107
+ "регламент": 326
108
+ }
109
+ },
110
+ "language_elements_total": {
111
+ "structures": 11990,
112
+ "fields": 28549,
113
+ "functors": 5328,
114
+ "utilities": 7166,
115
+ "rules": 12670,
116
+ "properties": 5227,
117
+ "examples": 32609,
118
+ "theorem": 1638
119
+ },
120
+ "construct_coverage": {
121
+ "категория": {
122
+ "train": 9000,
123
+ "holdout": 1500
124
+ },
125
+ "объект": {
126
+ "train": 8118,
127
+ "holdout": 1439
128
+ },
129
+ "структура": {
130
+ "train": 882,
131
+ "holdout": 61
132
+ },
133
+ "морфизм": {
134
+ "train": 1972,
135
+ "holdout": 624
136
+ },
137
+ "утилита": {
138
+ "train": 6451,
139
+ "holdout": 715
140
+ },
141
+ "теорема": {
142
+ "train": 1185,
143
+ "holdout": 453
144
+ },
145
+ "является": {
146
+ "train": 9000,
147
+ "holdout": 1500
148
+ },
149
+ "иногда является": {
150
+ "train": 397,
151
+ "holdout": 127
152
+ },
153
+ "вложен объект": {
154
+ "train": 249,
155
+ "holdout": 19
156
+ },
157
+ "вложена структура": {
158
+ "train": 243,
159
+ "holdout": 21
160
+ },
161
+ "тип:строкой": {
162
+ "train": 3098,
163
+ "holdout": 950
164
+ },
165
+ "тип:текстом": {
166
+ "train": 1131,
167
+ "holdout": 80
168
+ },
169
+ "тип:числом": {
170
+ "train": 6653,
171
+ "holdout": 730
172
+ },
173
+ "тип:датой": {
174
+ "train": 1035,
175
+ "holdout": 169
176
+ },
177
+ "тип:деньгами": {
178
+ "train": 4568,
179
+ "holdout": 483
180
+ },
181
+ "тип:признаком": {
182
+ "train": 3532,
183
+ "holdout": 421
184
+ },
185
+ "тип:состоянием": {
186
+ "train": 1972,
187
+ "holdout": 744
188
+ },
189
+ "тип:номинальный": {
190
+ "train": 633,
191
+ "holdout": 44
192
+ },
193
+ "морфизм:если": {
194
+ "train": 1186,
195
+ "holdout": 322
196
+ },
197
+ "морфизм:то": {
198
+ "train": 1186,
199
+ "holdout": 322
200
+ },
201
+ "морфизм:из": {
202
+ "train": 786,
203
+ "holdout": 302
204
+ },
205
+ "морфизм:в": {
206
+ "train": 786,
207
+ "holdout": 302
208
+ },
209
+ "по закону": {
210
+ "train": 396,
211
+ "holdout": 539
212
+ },
213
+ "принимает": {
214
+ "train": 6451,
215
+ "holdout": 715
216
+ },
217
+ "возвращает:строку": {
218
+ "train": 393,
219
+ "holdout": 150
220
+ },
221
+ "возвращает:число": {
222
+ "train": 1584,
223
+ "holdout": 209
224
+ },
225
+ "возвращает:дату": {
226
+ "train": 396,
227
+ "holdout": 21
228
+ },
229
+ "возвращает:деньги": {
230
+ "train": 2896,
231
+ "holdout": 274
232
+ },
233
+ "возвращает:признак": {
234
+ "train": 1182,
235
+ "holdout": 61
236
+ },
237
+ "начинает с": {
238
+ "train": 6451,
239
+ "holdout": 715
240
+ },
241
+ "правило": {
242
+ "train": 6451,
243
+ "holdout": 715
244
+ },
245
+ "свойство": {
246
+ "train": 3690,
247
+ "holdout": 569
248
+ },
249
+ "пример": {
250
+ "train": 6451,
251
+ "holdout": 715
252
+ },
253
+ "правило:если": {
254
+ "train": 6451,
255
+ "holdout": 715
256
+ },
257
+ "правило:и": {
258
+ "train": 397,
259
+ "holdout": 20
260
+ },
261
+ "то добавить": {
262
+ "train": 4480,
263
+ "holdout": 483
264
+ },
265
+ "то результат": {
266
+ "train": 1971,
267
+ "holdout": 232
268
+ },
269
+ "свойство:результат": {
270
+ "train": 3690,
271
+ "holdout": 569
272
+ },
273
+ "дано(пример)": {
274
+ "train": 6451,
275
+ "holdout": 715
276
+ },
277
+ "ожидается результат": {
278
+ "train": 6451,
279
+ "holdout": 715
280
+ },
281
+ "сравн:не меньше": {
282
+ "train": 5665,
283
+ "holdout": 547
284
+ },
285
+ "сравн:не больше": {
286
+ "train": 2108,
287
+ "holdout": 233
288
+ },
289
+ "сравн:не равен": {
290
+ "train": 591,
291
+ "holdout": 159
292
+ },
293
+ "сравн:не равна": {
294
+ "train": 323,
295
+ "holdout": 45
296
+ },
297
+ "сравн:не равно": {
298
+ "train": 267,
299
+ "holdout": 25
300
+ },
301
+ "сравн:равен": {
302
+ "train": 7636,
303
+ "holdout": 1039
304
+ },
305
+ "сравн:равна": {
306
+ "train": 4672,
307
+ "holdout": 433
308
+ },
309
+ "сравн:равно": {
310
+ "train": 2703,
311
+ "holdout": 370
312
+ },
313
+ "сравн:больше": {
314
+ "train": 127,
315
+ "holdout": 134
316
+ },
317
+ "сравн:меньше": {
318
+ "train": 1190,
319
+ "holdout": 59
320
+ },
321
+ "операнд:результат": {
322
+ "train": 393,
323
+ "holdout": 21
324
+ },
325
+ "операнд:процентов от поля": {
326
+ "train": 1650,
327
+ "holdout": 204
328
+ },
329
+ "операнд:процента от поля": {
330
+ "train": 1316,
331
+ "holdout": 112
332
+ },
333
+ "операнд:процент от поля": {
334
+ "train": 395,
335
+ "holdout": 20
336
+ },
337
+ "операнд:поле": {
338
+ "train": 524,
339
+ "holdout": 30
340
+ },
341
+ "теорема:дано": {
342
+ "train": 1185,
343
+ "holdout": 453
344
+ },
345
+ "в данных": {
346
+ "train": 1185,
347
+ "holdout": 453
348
+ },
349
+ "по морфизму": {
350
+ "train": 596,
351
+ "holdout": 287
352
+ },
353
+ "затем по морфизму": {
354
+ "train": 697,
355
+ "holdout": 296
356
+ },
357
+ "применить морфизм": {
358
+ "train": 589,
359
+ "holdout": 166
360
+ },
361
+ "затем применить морфизм": {
362
+ "train": 304,
363
+ "holdout": 147
364
+ },
365
+ "следовательно": {
366
+ "train": 793,
367
+ "holdout": 175
368
+ },
369
+ "получаем": {
370
+ "train": 392,
371
+ "holdout": 153
372
+ },
373
+ "скаляр:да": {
374
+ "train": 4781,
375
+ "holdout": 637
376
+ },
377
+ "скаляр:нет": {
378
+ "train": 3569,
379
+ "holdout": 309
380
+ },
381
+ "скаляр:ничто": {
382
+ "train": 390,
383
+ "holdout": 23
384
+ },
385
+ "скаляр:число": {
386
+ "train": 6451,
387
+ "holdout": 715
388
+ },
389
+ "скаляр:отрицательное число": {
390
+ "train": 394,
391
+ "holdout": 20
392
+ },
393
+ "скаляр:дробное число": {
394
+ "train": 1305,
395
+ "holdout": 325
396
+ },
397
+ "имя:«ёлочки»": {
398
+ "train": 8996,
399
+ "holdout": 1499
400
+ },
401
+ "имя:голое": {
402
+ "train": 2369,
403
+ "holdout": 380
404
+ },
405
+ "комментарий //": {
406
+ "train": 5058,
407
+ "holdout": 828
408
+ }
409
+ },
410
+ "constructs_missing_in_train": [],
411
+ "constructs_missing_in_holdout": []
412
+ }