|
Download README.md from Hsu0204/LogicEquivalentData: direct link, hf CLI and curl.
- Browser
- Download file 2.89 kB
-
https://huggingface.co/datasets/Hsu0204/LogicEquivalentData/resolve/main/README.md
- Command line
-
hf download hf://datasets/Hsu0204/LogicEquivalentData/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Hsu0204/LogicEquivalentData/resolve/main/README.md
2.89 kB
metadata
license: mit
configs:
- config_name: original_dataset
data_files:
- split: test
path: LogicEquivalentData/original_dataset.parquet
- config_name: implication_to_disjunction
data_files:
- split: test
path: LogicEquivalentData/implication_to_disjunction.parquet
- config_name: add_double_negation
data_files:
- split: test
path: LogicEquivalentData/add_double_negation.parquet
- config_name: add_double_negation_and_simplify
data_files:
- split: test
path: LogicEquivalentData/add_double_negation_and_simplify.parquet
- config_name: mixed_reasoning
data_files:
- split: test
path: LogicEquivalentData/mixed_reasoning.parquet
LogicEquivalentData
Logic-equivalent evaluation sets from When Form Changes but Logic Doesn't: Building Logic-invariant LLMs through Logical Structure (LoGIST, NeurIPS 2026, arXiv:2610.25402). Each subset poses the same problems with their rules rewritten by an equivalence law, while facts, query and label stay fixed. Text only: the ROBDD graph features used by LoGIST are not included.
| Subset | Rules rewritten with | Rows |
|---|---|---|
original_dataset |
none (Base) | 915 |
implication_to_disjunction |
material implication | 915 |
add_double_negation |
double negation | 915 |
add_double_negation_and_simplify |
De Morgan's laws | 915 |
mixed_reasoning |
one of none / material implication / double negation per rule, listed in mixed_laws |
610 |
Fields:
context: the premises shown to the model, i.e. the sentences ofnl2foljoined in order.question,options,answer: the query, the choices (True / False / Uncertain) and the gold letter.nl2fol: JSON object mapping each premise to its first-order-logic formula.conclusion_folis the formula of the queried statement.reasoning_length: number of reasoning steps needed to reach the answer.background_story: the story ProverGen generated the problem from.
Loading a subset and building the evaluation prompt:
import json
from datasets import load_dataset
ex = load_dataset("Hsu0204/LogicEquivalentData", "implication_to_disjunction", split="test")[0]
premises = json.loads(ex["nl2fol"]) # {sentence: FOL formula}
prompt = (
"You will be given a logical reasoning question with context information. Analyze the given "
"information carefully and determine the correct answer from the provided options. \n\n"
f"Context:\n{ex['context']}\n\nQuestion:\n{ex['question']}\n\nOptions:\n"
+ "\n".join(ex["options"]) + "\n\n Let's think step by step: "
)
Acknowledgement
We built the initial dataset using ProverGen, from Large Language Models Meet Symbolic Provers for Logical Reasoning Evaluation (Qi et al., ICLR 2025, arXiv:2502.06563).