From Prompts to Propositions: A Logic-Based Lens on Student-LLM Interactions
Not on the map. Why?
Abstract (arXiv)
Background and Context. The increasing integration of large language models (LLMs) in computing education presents an emerging challenge in understanding how students use LLMs and craft prompts to solve computational tasks. Prior research has used both qualitative and quantitative methods to analyze prompting behavior, but these approaches lack scalability or fail to effectively capture the semantic evolution of prompts. Objective. In this paper, we investigate whether students prompts can be systematically analyzed using propositional logic constraints. We examine whether this approach can identify patterns in prompt evolution, detect struggling students, and provide insights into effective and ineffective strategies. Method. We introduce Prompt2Constraints, a novel method that translates students prompts into logical constraints. The constraints are able to represent the intent of the prompts in succinct and quantifiable ways. We used this approach to analyze a dataset of 1,872 prompts from 203 students solving introductory programming tasks. Findings. We find that while successful and unsuccessful attempts tend to use a similar number of constraints overall, when students fail, they often modify their prompts more significantly, shifting problem-solving strategies midway. We also identify points where specific interventions could be most helpful to students for refining their prompts. Implications. This work offers a new and scalable way to detect students who struggle in solving natural language programming tasks. This work could be extended to investigate more complex tasks and integrated into programming tools to provide real-time support.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 24 of its 34 references that are in the map. First posted on arXiv 25 Apr 2025.
Builds on
24 of 34 references.
References · 24
- 2023Using an LLM to Help With Code Understandingcited by 228
- 2022Automatic Generation of Programming Exercises and Code Explanations using Large Language Modelscited by 126
- 2023The Metacognitive Demands and Opportunities of Generative AIcited by 87
- 2022Conversing with Copilot: Exploring Prompt Engineering for Solving CS1 Problems Using Natural Languagecited by 82
- 2023"It's Weird That it Knows What I Want": Usability and Interactions with Copilot for Novice Programmerscited by 64
- 2023Comparing Code Explanations Created by Students and Large Language Modelscited by 64
- 2023LLM-Assisted Content Analysis: Using Large Language Models to Support Deductive Codingcited by 64
- 2023Computing Education in the Era of Generative AIcited by 52
- 2024The Widening Gap: The Benefits and Harms of Generative AI for Novice Programmerscited by 48
- 2023StudentEval: A Benchmark of Student-Written Prompts for Large Language Models of Codecited by 32
- 2023Prompt Problems: A New Programming Exercise for the Generative AI Eracited by 31
- 2024Desirable Characteristics for AI Teaching Assistants in Programming Educationcited by 17
12 more
- 2023Trust in Generative AI among students: An Exploratory Studycited by 16
- 2024Exploring the Design Space of Cognitive Engagement Techniques with AI-Generated Code for Enhanced Learningcited by 16
- 2023Which is better? Exploring Prompting Strategy For LLM-based Metricscited by 14
- 2024Student-AI Interaction: A Case Study of CS1 studentscited by 12
- 2024Explaining Code with a Purpose: An Integrated Approach for Developing Code Comprehension and Prompting Skillscited by 11
- 2025Towards Detecting Prompt Knowledge Gaps for Improved LLM-guided Issue Resolutioncited by 11
- 2024An Empirical Study on Developers Shared Conversations with ChatGPT in GitHub Pull Requests and Issuescited by 9
- 2024Understanding the Human-LLM Dynamic: A Literature Survey of LLM Use in Programming Taskscited by 9
- 2023QualiGPT: GPT as an easy-to-use tool for qualitative codingcited by 8
- 2024Substance Beats Style: Why Beginning Students Fail to Code with LLMscited by 5
- 2024BugSpotter: Automated Generation of Code Debugging Exercisescited by 5
- 2024Revisiting Human Information Foraging: Adaptations for LLM-based Chatbotscited by 1
Built on by
Citing papers per year: 2025: 3; 2026: 1.
4 papers.
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AIcited by 42
- 2025GenAI Voice Mode in Programming Educationcited by 0
- 2025PEPS: Quantum-Inspired Reinforcement Learning for Coherent Reasoning Traces in LLMscited by 0
- 2026How Much Prompt Is Enough? A Blackbox Minimization of Few-Shots in LLMscited by 0
- 2026How Much Prompt Is Enough? A Blackbox Minimization of Few-Shots in LLMs28 Sep 2026
- 2025PEPS: Quantum-Inspired Reinforcement Learning for Coherent Reasoning Traces in LLMs24 Sep 2025
- 2025GenAI Voice Mode in Programming Education12 Sep 2025
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AI26 May 2025