--- configs: - config_name: dataset_rawpairs data_files: dataset_rawpairs.jsonl - config_name: signatures data_files: signature.jsonl --- # FOLIO — Curated Pairs and Signatures Curated FOLIO instances for evaluating LLM-based first-order-logic (FOL) formula curation. Each instance pairs a natural-language sentence with a candidate FOL formalization (`FOL_sentence_old`) and a curated reference (`FOL_sentence`), grouped by story; per-story ontologies (signatures) are provided separately. ## Configurations ### `dataset_rawpairs` — `dataset_rawpairs.jsonl` 275 instances used for held-out evaluation. | Field | Type | Description | |---|---|---| | `id` | string | Instance id (e.g. `story_380`, `concl_380_1`) | | `NL_sentence` | string | Natural-language sentence | | `FOL_sentence` | string | Curated reference FOL formalization | | `FOL_sentence_old` | string | Original (pre-curation) FOL formalization | | `corrected` | bool | Whether the original was corrected | | `ambiguity` | bool | Whether the sentence is ambiguous | | `ambiguity_explanation` | string | Rationale for the ambiguity flag (when applicable) | | `correction_explanation` | string | Rationale for the correction (selection only) | | `label` | string | Gold NLI label for the *curated* formula (`FOL_sentence`). | | `label_z3` | string | Z3-derived NLI label for the curated formula. | | `label_old` | string | Original NLI label from the *original* formula (`FOL_sentence_old`). | | `label_old_z3` | string | Z3-derived NLI label for the original formula. | ```python from datasets import load_dataset ds_sel = load_dataset("/", "dataset_rawpairs") ``` ### `signatures` — `signature.jsonl` Per-story ontology used to render vocabulary blocks in prompts and to type-check formulas. One JSON object per line, 73 stories. | Field | Type | Description | |---|---|---| | `story_id` | int | Story id (matches the `*_{story_id}` suffix in `rawpairs_*.id`) | | `Rel` | object | `{predicate_name → {arity, pos_meaning, neg_meaning}}` | | `Const` | object | `{constant_name → description}` | ```python ds = load_dataset("/", "signatures") ``` ## FOL syntax Unicode operators: - Quantifiers: `∀`, `∃` - Boolean: `¬`, `∧`, `∨`, `→`, `↔`, `⊕` - Predicates: capitalized (e.g. `Human(x)`) - Variables: lowercase; constants: capitalized Example: `∀x (Human(x) → Mortal(x))`