Objective

Intelligent tutoring systems (ITSs) are computer programs that watch students solve problems and give feedback, including hints about the next step. They can work well, but their hints are often built from templates, so they are not very personal. Large language models (LLMs), the kind of AI behind chatbots such as ChatGPT, could write more flexible hints. The risk is that LLMs sometimes state wrong things (called hallucinations) or give help that is correct but poor teaching.

This study looked at propositional logic, a topic in computer science and mathematics where students build proofs one step at a time using rules such as Modus Ponens. Earlier work tested LLMs on logic questions in plain language but rarely on multi-step symbolic proofs used in teaching.

The research questions were:

  • How accurately can LLMs build step-by-step logic proofs, and how do prompting styles and models differ?
  • How well can the best model write next-step hints, how does accuracy vary by logic rule, and how do experts rate the quality of its explanations?

A prompt is the instruction given to the model, and prompting style means how much guidance and example it includes.

Methods

This was a computational evaluation study. The researchers tested AI models on existing problems and on logs from a tutor, then checked the results with an automatic logic checker and with human experts. It shows how well the models did on these tasks. It does not show whether students learn better with the hints.

Proof construction

The team used two sets of problems: 310 multi-step problems from a symbolic logic dataset and 48 problems from their own Logic Tutor, 358 in total. Each problem gave premises and a conclusion, and the model had to write the full proof. They tested four models: Llama-3-70B-Instruct, Gemini-Pro, GPT-4o and DeepSeek-V3, with six prompting styles, from zero-shot (no examples) to styles that gave two worked examples and encouraged step-by-step reasoning, planning, checking in two directions or a debate among three imagined experts. Temperature, a setting for randomness, was 0.1. The data were split into a validation part (35%) to refine prompts and a test part (65%) for final results. A logic checker verified each step.

Hint generation

Researchers extracted 1050 unique problem-solving states from logs of 30 students solving 18 problems each in the tutor in Fall 2024. The students were randomly chosen computer science majors at a U.S. public university, with ethics approval. The best model wrote a next-step hint and explanation for each state. The checker marked a hint wrong if the step was invalid, already present or used steps not yet derived.

Explanation ratings

Two experts with 2 to 4 years of experience as teaching assistants rated a 20% sample (210 explanations) from 1 to 4 on consistency, clarity, justification and subgoaling. An LLM grader rated them too.

Key Findings

The models built logic proofs well when given examples, but their hints for real student work were less accurate, and their explanations were weak on the why.

Building proofs

  • DeepSeek-V3 was best in most settings. With its best prompting style it reached 85.0% accuracy on the Logic Tutor problems and 86.7% on the other set.
  • GPT-4o was also strong, reaching 83.6% on the second set with one prompting style. Gemini-Pro gave mixed results, and Llama-3 mostly did worse. Its zero-shot accuracy was as low as 24.4% on the tutor problems.
  • With no examples (zero-shot), every model did worse than with examples, so the authors conclude that examples in the prompt matter.
  • Steps were more likely to be wrong when the statements being combined were longer (a difference with p below 0.001 for each model).
  • DeepSeek-V3 was very accurate on simple rules, such as Commutative (99.23%), and weaker on harder rules, such as Conditional Proof (64.07%). Rules that involve negation were the hardest.

Writing hints

  • Using the best model with a simple prompting style, 75% of hints for the 1050 student states were rated correct.
  • Accuracy fell from 87.9% on the first training level to 63.2% as problems got harder.
  • The model offered 4.5 different hints per problem on average, against 3.0 for the tutor's own data-driven method.
  • The authors link the harder levels to a larger set of possible solutions, since each level needs more rules, and they suggest this may explain the lower accuracy and the larger number of different hints.
  • Sometimes it gave sub-optimal hints that followed redundant statements the student had made.

Quality of explanations

  • The most common weak spots for hints were rules that handle negation, such as De Morgan's rule, Modus Tollens and Conditional Proof, along with Addition, which brings in a new variable.
  • The two experts agreed closely (correlations from 0.77 to 0.93).
  • Average human ratings out of 4 were 3.90 for consistency, 3.09 for clarity, 2.24 for justification (why the step helps) and 1.66 for subgoaling (how it fits the larger plan).
  • The LLM grader gave similar scores for consistency and clarity but rated justification (2.39) and especially subgoaling (2.47) higher than the humans did, and its agreement with humans was weaker.

Implications

Authors' suggestions

  • LLM hints should not be put in front of students as they are. The authors say 75% accuracy is not high enough, because students' trust can change quickly after even one wrong or confusing hint, and this can lead them to avoid help.
  • Developers should build hybrid systems in which an LLM proposes candidate hints and a symbolic checker confirms they are valid, and then a review checks that they are pedagogically sound.
  • Developers should give models examples in prompts, as zero-shot prompts did poorly, and might simplify long statements before giving them to the model.
  • Future work should test newer reasoning models and the cost and response time of using them in classrooms.

Our reading (not the authors' recommendation):

  • A teacher who uses a chatbot for logic help in class should check each hint, especially on harder problems, since accuracy dropped as problems got harder.
  • Tutor designers might use LLM text mainly for the clear wording of a hint and keep the choice of the step with a rule-based checker.
  • Human review of explanations seems worth keeping, because an automatic LLM grader rated some areas more generously than people did.

Where evidence is thin

The paper tested no students using these hints, so it cannot say whether they help or hurt learning. Any school or company that wants to use LLM hints should plan its own small trial with a logic checker running behind the scenes and a person reviewing a sample of hints.

Limitations

The authors state several limits. The evaluation covered accuracy of single steps in one domain, propositional logic, and did not check whether the full solutions were the best ones. It left out reasoning models such as OpenAI's o1 and DeepSeek's reasoning models, which may do better. Human experts rated only 20% of the explanations, which may limit how far the ratings apply. The four rubric criteria may also miss other qualities that matter for learning.

The paper does not mention, but no students received the LLM hints, so the study cannot show effects on learning, confidence or help-seeking. The hints were judged only by a checker and by experts.

The paper does not mention, but the student logs came from 30 computer science majors at one university, and the paper gives demographic figures only for that university's graduating class, not for the 30 students. Hints for other groups, other courses or other logic tutors may behave differently.

The paper does not mention, but only two raters scored the explanations, and they also helped design the rubric. Their high agreement could partly reflect shared training. The paper also does not report how results varied between runs, even though the models involve some randomness.

Future Directions

The authors suggest several next steps.

  • Check whether LLM-built full solutions are optimal, and not only whether each single step is correct.
  • Test reasoning models, such as OpenAI's o1 or DeepSeek's reasoning models, to see if they give more sound explanations and proofs, and ask whether they can be used at scale in classrooms given their computing cost and slower responses.
  • Rate more of the explanations with human experts, and add other qualities of good teaching beyond the four used here.
  • Build hybrid systems that combine LLM text with learning science principles and checks for logical validity, to close the gap between what the models can write and what students need.

The study also leaves open how simplifying long logic statements before they reach the model would change accuracy, since the authors suggest this may help.

The bottom line: In tests on logic problems, the best AI model built correct proof steps up to 86.7% of the time and wrote correct hints for 75% of real student work states. Accuracy dropped on harder problems, and experts rated its explanations as consistent and clear but weak at saying why a step helps. These are tests of the model, not of students, so the study cannot show whether the hints help learning. The takeaway for tutor builders is to pair AI wording with a logic checker and expert review before students see it.