How to argue about state transitions?
Statement
Computing differs from math by its dependence on state changes, among other things. A program can be seen as a composition of state transitions, and it would be nice to have an inverse function to map a program text back to mathematics. You might also compare with transformations caused by changes of coordinate system. So:
How does one argue mathematically about equality of one expression's value in state to another's in state , i.e. , and relate it to properties of the state transition ?
Do not just refer to functional programming, because it circumvents the need to discuss state changes. I am familiar with it and have reasons to look for alternatives.
Specifically I would like to argue in terms of informal expressions like with varying over program expressions, over states, and both and over expressions. Similar expressions are used for model-based semantics of programming languages, only with as a notation for an ordinary function (i.e. with varying over a domain of values).
The problem concerns arguing about an …
Posed by J Steensgaard · computer-science
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-86316.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-86316.lean
import Mathlib /-! # How to argue about state transitions? Source: https://mathoverflow.net/questions/86316 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_86316 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_86316