~/writing/math-foundations-for-reasoning-models $ ls
Computation as State Transition
Deterministic Computation
Deterministic computation means the current configuration and rules allow at most one next configuration.
~/writing/math-foundations-for-reasoning-models $ cat topic.md
What Is Deterministic Computation?
Definition
Deterministic computation means that the current configuration determines at most one next configuration.
Simple form:
current configuration -> one next configuration
If no rule applies, there may be no next configuration.
But if a next step exists, it is unique.
Deterministic computation = at most one valid next step from each configuration
Why Configuration Matters
Determinism depends on the full current configuration.
In the tape model, that means:
- tape contents
- current position
- current control state
Example:
Tape: [1] [0] [1]
^
Control state: scanning
The system reads:
0
If the rule table has only one rule for:
(scanning, 0)
then the next step is fixed.
Determinism is about the next step from the full current configuration.
Same Configuration, Same Next Step
In deterministic computation, the same configuration always produces the same next step.
Example rule:
(scanning, 0) -> (write 1, move right, next state returning)
Current configuration:
Tape: [1] [0] [1]
^
Control state: scanning
Next configuration:
Tape: [1] [1] [1]
^
Control state: returning
If the system reaches that same starting configuration again, the same rule applies again.
Same configuration + same rules = same next configuration.
Same Input, Same Trace
If a deterministic system starts from the same input and same initial configuration, it produces the same execution trace.
Example:
Input: 3
Rule: subtract 1 until 0
Execution:
3 -> 2 -> 1 -> 0 -> stop
Run it again from the same input:
3 -> 2 -> 1 -> 0 -> stop
The trace is the same because there is no branching choice.
Deterministic computation is repeatable from the same starting condition.
Conditions Can Still Be Deterministic
Deterministic computation can include conditional rules.
Example:
if x is even:
x = x / 2
if x is odd:
x = x - 1
For any integer, exactly one condition applies:
8 -> 4
7 -> 6
The behavior depends on the current state.
But it is still deterministic because each state has only one valid next step.
Conditional behavior is deterministic when the applicable next step is unique.
Conflicting Rules Break Determinism
Determinism fails when the same current situation allows more than one next step.
Example:
Current state: x = 5
Rule 1: x -> x + 1
Rule 2: x -> x - 1
Possible next states:
5 -> 6
5 -> 4
Both rules apply to the same current state.
The next step is not unique.
A deterministic system cannot have competing next steps for the same configuration.
Deterministic Does Not Mean Simple
A deterministic system can still produce complex behavior.
Example:
if x is even:
x = x / 2
else:
x = 3x + 1
For each value of x, the next value is fixed.
But the full execution trace may still be long or difficult to predict mentally.
Deterministic means unique next step, not easy behavior.
Deterministic Does Not Mean Always Halting
A deterministic computation may halt.
Example:
3 -> 2 -> 1 -> 0 -> stop
It may also continue forever.
Example:
0 -> 1 -> 0 -> 1 -> ...
This system is deterministic if each state has only one next state.
It still does not halt.
Deterministic computation can terminate or continue indefinitely.
At Most One Next Step
The phrase "at most one" matters.
There are two allowed cases in deterministic computation:
current configuration -> one next configuration
or:
current configuration -> no next configuration
The second case means execution stops.
What is not allowed is:
current configuration -> next configuration 1
current configuration -> next configuration 2
Determinism allows zero or one next step, but not multiple next steps.
Why This Matters
Deterministic computation matters because it makes execution traceable.
If we know:
- the initial configuration
- the transition rules
- which rule applies at each step
then the trace is fixed.
We can analyze the computation step by step without asking which possible branch was chosen.
Deterministic computation turns execution into a single path.
Final Summary
- Deterministic computation allows at most one next configuration from each current configuration.
- The full configuration matters: tape contents, position, and control state.
- Same configuration and same rules produce the same next step.
- Same input and same initial configuration produce the same trace.
- Conditional rules can still be deterministic.
- Conflicting applicable rules break determinism.
- Deterministic does not mean simple.
- Deterministic does not mean always halting.
- Deterministic execution follows a single path.
~/writing/math-foundations-for-reasoning-models $ open
Continue the series.
Non-Deterministic Computation