Back to projects

Research · AI & SaaS

Mental Logic vs. LLMs

Thesis comparing a mental-logic engine and language models in the Food Production Game.

  • Python
  • Streamlit
  • JSON
  • LLMs
  • Prompt engineering

Overview

Thesis at Universidad de Talca, supervised by Martin Schaffernicht and supported by FONDECYT Regular 1240010. It compares a Python and Streamlit mental-logic engine with ChatGPT and DeepSeek, in Spanish and English, on the same almond-farm simulation.

The problem

The thesis asks which reasoning produces better recommendations in a dynamic system with feedback, delays and a limited water stock, looking at both the results and the quality of the justification.

Main features

  • Mental-logic engine in Python and Streamlit, with explicit rules and memory of previous rounds.
  • Six settings of ChatGPT and DeepSeek, standard and DeepThink, prompted in Spanish and English.
  • Food Production Game metrics: profit, sustainability, accumulated profit and estimated water reserves.
  • The conclusions recommend a hybrid architecture for future work — logic engine as control and a language model as copilot — which was not implemented.

My contribution

Co-author of the thesis with Benjamín Josué Soto González. The thesis does not divide the chapters. Supervisor Martin Schaffernicht, with support from FONDECYT Regular 1240010.