Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError Exception: DatasetGenerationCastError Message: An error occurred while generating the dataset All the data files must have the same columns, but at some point there are 1 new columns ({'id'}) This happened while the csv dataset builder was generating data using hf://datasets/iforgott/LogicAsker/test.csv (at revision 4e7efbd78738256b0fc9776b289a92dbe4d969c6) Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations) Traceback: Traceback (most recent call last): File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1870, in _prepare_split_single writer.write_table(table) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 622, in write_table pa_table = table_cast(pa_table, self._schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2292, in table_cast return cast_table_to_schema(table, schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2240, in cast_table_to_schema raise CastError( datasets.table.CastError: Couldn't cast id: int64 logic: string rule_category: string rule: string problem: string query: string answer: string -- schema metadata -- pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1043 to {'logic': Value(dtype='string', id=None), 'rule_category': Value(dtype='string', id=None), 'rule': Value(dtype='string', id=None), 'problem': Value(dtype='string', id=None), 'query': Value(dtype='string', id=None), 'answer': Value(dtype='string', id=None)} because column names don't match During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1417, in compute_config_parquet_and_info_response parquet_operations = convert_to_parquet(builder) File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1049, in convert_to_parquet builder.download_and_prepare( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 924, in download_and_prepare self._download_and_prepare( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1000, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1741, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1872, in _prepare_split_single raise DatasetGenerationCastError.from_cast_error( datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset All the data files must have the same columns, but at some point there are 1 new columns ({'id'}) This happened while the csv dataset builder was generating data using hf://datasets/iforgott/LogicAsker/test.csv (at revision 4e7efbd78738256b0fc9776b289a92dbe4d969c6) Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
logic
string | rule_category
string | rule
string | problem
string | query
string | answer
string |
---|---|---|---|---|---|
propositional | equivalent | associative laws | inference | Consider the following premises: It is sunny, or John is working or James is drinking water. Can we infer the following from them? Answer yes or no: It is sunny or John is working, or James is drinking water. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: It is cold, and Richard is a mechanic and Elisabeth is sad. Can we infer the following from them? Answer yes or no: It is cold and Richard is a mechanic, and Elisabeth is sad. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: It is snowing, or David is a doctor or Elisabeth is a soldier. Can we infer the following from them? Answer yes or no: It is snowing or David is a doctor, or Elisabeth is a soldier. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: John is making tea, and Richard is climbing a mountain and Susan is a server. Can we infer the following from them? Answer yes or no: John is making tea and Richard is climbing a mountain, and Susan is a server. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Sarah is a police officer, or it is cold or Barbara is playing squash. Can we infer the following from them? Answer yes or no: Sarah is a police officer or it is cold, or Barbara is playing squash. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Linda is driving a car, and Richard is excited and it is cloudy. Can we infer the following from them? Answer yes or no: Linda is driving a car and Richard is excited, and it is cloudy. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Thomas is playing squash, or Richard is rich or Joseph is sleeping. Can we infer the following from them? Answer yes or no: Thomas is playing squash or Richard is rich, or Joseph is sleeping. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: James is a server, or Sarah is climbing a mountain or it is raining. Can we infer the following from them? Answer yes or no: James is a server or Sarah is climbing a mountain, or it is raining. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Linda is making tea, and James is playing a game and Charles is cooking. Can we infer the following from them? Answer yes or no: Linda is making tea and James is playing a game, and Charles is cooking. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Richard is a taxi driver, and Karen is a writer and Richard is a janitor. Can we infer the following from them? Answer yes or no: Richard is a taxi driver and Karen is a writer, and Richard is a janitor. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Elisabeth is writing a letter, or Robert is climbing a mountain or it is sunny. Can we infer the following from them? Answer yes or no: Elisabeth is writing a letter or Robert is climbing a mountain, or it is sunny. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: William is climbing a mountain, or Richard is a mechanic or Jessica is a police officer. Can we infer the following from them? Answer yes or no: William is climbing a mountain or Richard is a mechanic, or Jessica is a police officer. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: David is cooking, or it is cold or Jennifer is running. Can we infer the following from them? Answer yes or no: David is cooking or it is cold, or Jennifer is running. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Linda is driving a car, and it is sunny and Joseph is sleeping. Can we infer the following from them? Answer yes or no: Linda is driving a car and it is sunny, and Joseph is sleeping. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: James is making tea, and Thomas is bored and Elisabeth is working. Can we infer the following from them? Answer yes or no: James is making tea and Thomas is bored, and Elisabeth is working. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Michael is sad, and it is cold and Mary is a server. Can we infer the following from them? Answer yes or no: Michael is sad and it is cold, and Mary is a server. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Robert is climbing a mountain, and John is playing squash and James is drinking water. Can we infer the following from them? Answer yes or no: Robert is climbing a mountain and John is playing squash, and James is drinking water. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Michael is working, and Jennifer is a musician and Thomas is reading a book. Can we infer the following from them? Answer yes or no: Michael is working and Jennifer is a musician, and Thomas is reading a book. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Mary is working, and Robert is a mechanic and Linda is sleeping. Can we infer the following from them? Answer yes or no: Mary is working and Robert is a mechanic, and Linda is sleeping. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Sarah is playing tennis, and Joseph is driving a car and it is snowing. Can we infer the following from them? Answer yes or no: Sarah is playing tennis and Joseph is driving a car, and it is snowing. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: It is cold, and it is windy and Karen is cooking. Can we infer the following from them? Answer yes or no: It is cold and it is windy, and Karen is cooking. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Thomas is listening to a song, or Robert is reading a book or it is cloudy. Can we infer the following from them? Answer yes or no: Thomas is listening to a song or Robert is reading a book, or it is cloudy. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Linda is climbing a mountain, or it is late or it is cloudy. Can we infer the following from them? Answer yes or no: Linda is climbing a mountain or it is late, or it is cloudy. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Elisabeth is an electrician, and it is raining and it is windy. Can we infer the following from them? Answer yes or no: Elisabeth is an electrician and it is raining, and it is windy. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Jessica is writing a letter, or James is playing a game or William is playing tennis. Can we infer the following from them? Answer yes or no: Jessica is writing a letter or James is playing a game, or William is playing tennis. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: It is cloudy, and Sarah is a writer and Mary is playing tennis. Can we infer the following from them? Answer yes or no: It is cloudy and Sarah is a writer, and Mary is playing tennis. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Karen is writing a letter, and Karen is a sailor and Jessica is a politician. Can we infer the following from them? Answer yes or no: Karen is writing a letter and Karen is a sailor, and Jessica is a politician. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: It is raining, or Michael is cooking or it is cold. Can we infer the following from them? Answer yes or no: It is raining or Michael is cooking, or it is cold. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: It is windy, or Karen is a bartender or John is running. Can we infer the following from them? Answer yes or no: It is windy or Karen is a bartender, or John is running. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: James is a nurse, or Richard is sleeping or Sarah is running. Can we infer the following from them? Answer yes or no: James is a nurse or Richard is sleeping, or Sarah is running. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: It is sunny, and Richard is a writer and it is windy. Can we infer the following from them? Answer yes or no: It is sunny and Richard is a writer, and it is windy. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: James is listening to a song, or it is snowing or it is cloudy. Can we infer the following from them? Answer yes or no: James is listening to a song or it is snowing, or it is cloudy. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Jessica is a server, and Richard is drinking water and Susan is playing tennis. Can we infer the following from them? Answer yes or no: Jessica is a server and Richard is drinking water, and Susan is playing tennis. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Michael is fast, and James is sleeping and Patricia is listening to a song. Can we infer the following from them? Answer yes or no: Michael is fast and James is sleeping, and Patricia is listening to a song. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Thomas is drinking water, or Michael is playing squash or Karen is poor. Can we infer the following from them? Answer yes or no: Thomas is drinking water or Michael is playing squash, or Karen is poor. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: It is snowing, and Linda is sleeping and Joseph is reading a book. Can we infer the following from them? Answer yes or no: It is snowing and Linda is sleeping, and Joseph is reading a book. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: It is windy, and Richard is an electrician and Richard is a scientist. Can we infer the following from them? Answer yes or no: It is windy and Richard is an electrician, and Richard is a scientist. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Mary is playing a game, or it is raining or Jennifer is excited. Can we infer the following from them? Answer yes or no: Mary is playing a game or it is raining, or Jennifer is excited. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Mary is an artist, or Charles is sleeping or it is cloudy. Can we infer the following from them? Answer yes or no: Mary is an artist or Charles is sleeping, or it is cloudy. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: James is playing tennis, and Susan is a musician and William is making tea. Can we infer the following from them? Answer yes or no: James is playing tennis and Susan is a musician, and William is making tea. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Charles is playing a game, or Barbara is running or it is overcast. Can we infer the following from them? Answer yes or no: Charles is playing a game or Barbara is running, or it is overcast. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: It is cold, and Jessica is a sailor and Robert is sad. Can we infer the following from them? Answer yes or no: It is cold and Jessica is a sailor, and Robert is sad. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: It is overcast, and it is sunny and Richard is working. Can we infer the following from them? Answer yes or no: It is overcast and it is sunny, and Richard is working. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Jessica is a server, and it is late and it is snowing. Can we infer the following from them? Answer yes or no: Jessica is a server and it is late, and it is snowing. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Richard is making tea, or Robert is poor or Richard is curious. Can we infer the following from them? Answer yes or no: Richard is making tea or Robert is poor, or Richard is curious. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Jessica is taking a plane, and James is driving a car and it is cold. Can we infer the following from them? Answer yes or no: Jessica is taking a plane and James is driving a car, and it is cold. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Jennifer is making tea, or Thomas is a politician or it is raining. Can we infer the following from them? Answer yes or no: Jennifer is making tea or Thomas is a politician, or it is raining. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: It is snowing, or Jennifer is a soldier or David is a carpenter. Can we infer the following from them? Answer yes or no: It is snowing or Jennifer is a soldier, or David is a carpenter. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: David is an electrician, and David is cooking and Linda is a lawyer. Can we infer the following from them? Answer yes or no: David is an electrician and David is cooking, and Linda is a lawyer. | yes |
propositional | equivalent | associative laws | inference | Consider the following premises: Barbara is climbing a mountain, or Jennifer is playing squash or Karen is a carpenter. Can we infer the following from them? Answer yes or no: Barbara is climbing a mountain or Jennifer is playing squash, or Karen is a carpenter. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: James is a server. Can we infer the following from them? Answer yes or no: James is a server. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Jessica is a lawyer. Can we infer the following from them? Answer yes or no: Jessica is a lawyer. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Charles is running. Can we infer the following from them? Answer yes or no: Charles is running. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Robert is a musician. Can we infer the following from them? Answer yes or no: Robert is a musician. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: John is an astronaut. Can we infer the following from them? Answer yes or no: John is an astronaut. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: William is running. Can we infer the following from them? Answer yes or no: William is running. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Michael is happy. Can we infer the following from them? Answer yes or no: Michael is happy. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: James is running. Can we infer the following from them? Answer yes or no: James is running. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Elisabeth is a lawyer. Can we infer the following from them? Answer yes or no: Elisabeth is a lawyer. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: It is snowing. Can we infer the following from them? Answer yes or no: It is snowing. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Charles is cooking. Can we infer the following from them? Answer yes or no: Charles is cooking. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Susan is writing a letter. Can we infer the following from them? Answer yes or no: Susan is writing a letter. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Mary is a police officer. Can we infer the following from them? Answer yes or no: Mary is a police officer. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: David is a doctor. Can we infer the following from them? Answer yes or no: David is a doctor. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: William is rich. Can we infer the following from them? Answer yes or no: William is rich. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: James is a lawyer. Can we infer the following from them? Answer yes or no: James is a lawyer. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: John is bored. Can we infer the following from them? Answer yes or no: John is bored. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: It is overcast. Can we infer the following from them? Answer yes or no: It is overcast. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: It is late. Can we infer the following from them? Answer yes or no: It is late. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Thomas is a carpenter. Can we infer the following from them? Answer yes or no: Thomas is a carpenter. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Patricia is listening to a song. Can we infer the following from them? Answer yes or no: Patricia is listening to a song. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: William is taking a plane. Can we infer the following from them? Answer yes or no: William is taking a plane. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Sarah is a poet. Can we infer the following from them? Answer yes or no: Sarah is a poet. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: William is a police officer. Can we infer the following from them? Answer yes or no: William is a police officer. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: It is snowing. Can we infer the following from them? Answer yes or no: It is snowing. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Richard is reading a book. Can we infer the following from them? Answer yes or no: Richard is reading a book. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Linda is a scientist. Can we infer the following from them? Answer yes or no: Linda is a scientist. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Patricia is climbing a mountain. Can we infer the following from them? Answer yes or no: Patricia is climbing a mountain. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: It is cold. Can we infer the following from them? Answer yes or no: It is cold. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: It is windy. Can we infer the following from them? Answer yes or no: It is windy. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Karen is writing a letter. Can we infer the following from them? Answer yes or no: Karen is writing a letter. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Jennifer is a carpenter. Can we infer the following from them? Answer yes or no: Jennifer is a carpenter. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: James is playing a game. Can we infer the following from them? Answer yes or no: James is playing a game. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: It is raining. Can we infer the following from them? Answer yes or no: It is raining. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Barbara is taking a plane. Can we infer the following from them? Answer yes or no: Barbara is taking a plane. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Patricia is listening to a song. Can we infer the following from them? Answer yes or no: Patricia is listening to a song. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Richard is a carpenter. Can we infer the following from them? Answer yes or no: Richard is a carpenter. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: William is an artist. Can we infer the following from them? Answer yes or no: William is an artist. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Richard is a politician. Can we infer the following from them? Answer yes or no: Richard is a politician. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: It is sunny. Can we infer the following from them? Answer yes or no: It is sunny. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: James is reading a book. Can we infer the following from them? Answer yes or no: James is reading a book. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Sarah is an electrician. Can we infer the following from them? Answer yes or no: Sarah is an electrician. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Richard is sleeping. Can we infer the following from them? Answer yes or no: Richard is sleeping. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Linda is climbing a mountain. Can we infer the following from them? Answer yes or no: Linda is climbing a mountain. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Sarah is playing a game. Can we infer the following from them? Answer yes or no: Sarah is playing a game. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: It is cloudy. Can we infer the following from them? Answer yes or no: It is cloudy. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: It is windy. Can we infer the following from them? Answer yes or no: It is windy. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Richard is listening to a song. Can we infer the following from them? Answer yes or no: Richard is listening to a song. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: Joseph is playing a game. Can we infer the following from them? Answer yes or no: Joseph is playing a game. | yes |
propositional | equivalent | complement laws | inference | Consider the following premises: William is a poet. Can we infer the following from them? Answer yes or no: William is a poet. | yes |
We present test data which we used in our experiment and a training dataset of size 10.4k for future research.
LogicAsker is a novel approach for evaluating and enhancing the logical reasoning capabilities of large language models (LLMs) such as ChatGPT and GPT-4. Despite LLMs' prowess in tasks like writing assistance, code generation, and machine translation, assessing their ability to reason has been challenging. Traditional evaluations often prioritize accuracy on downstream tasks over direct assessments of reasoning processes. LogicAsker addresses this gap by employing a set of atomic reasoning skills grounded in propositional and predicate logic to systematically examine and improve the reasoning prowess of LLMs. Our methodology reveals significant gaps in LLMs' learning of logical rules, with identified reasoning failures ranging from 29% to 90% across different models. Moreover, we leverage these findings to construct targeted demonstration examples and fine-tune data, notably enhancing logical reasoning in models like GPT-4o by up to 5%. To our knowledge, this is the first effort to utilize test case outcomes to effectively refine LLMs' formal reasoning capabilities.
- Downloads last month
- 57