Cslib.URM.Step.no_step_of_halted
theoremverifiedformalizationimported Lean
A halted state has no successor in the step relation.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable (p : Program) in variable {p : Program} in theorem Cslib.URM.Step.no_step_of_halted {s s' : State} (hhalted : s.isHalted p) : ¬Step p s s'
- Formalizes
- CSLib, `Cslib.URM.Step.no_step_of_halted`
- Lean proof
- By Jesse Alama, from github.com/leanprover/cslib at
3951377e5a3f(Copyright (c) 2026 Jesse Alama. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.33.0.Cslib.URM.Step.no_step_of_halted← Cslib.URM.Step.no_step_of_halted (Cslib/Computability/URM/Execution.lean:90): verbatim
- Verified
- 08 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 7
- Cslib.URM.State.instDecidableIsHaltedCslib.URM.State.instDecidableIsHalted
- Cslib.URM.State.isHaltedA state is halted if the program counter is at or beyond the program length.
- Cslib.URM.State.instInhabitedCslib.URM.State.instInhabited
- Cslib.URM.State.instReprCslib.URM.State.instRepr
- Cslib.URM.StepSingle-step execution relation for URMs. Each constructor corresponds to one of the four instruction types: -
zero: ExecuteZ n(set… - Cslib.URM.StateMachine state: program counter (0-indexed) and register contents.
- Cslib.URM.ProgramA URM program is a list of instructions.
- Used by 1
- Cslib.URM.isHalted_iff_normalA state is halted iff it is normal (has no successor) in the reduction system.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option autoImplicit true inset_option relaxedAutoImplicit true invariable (p : Program) invariable {p : Program} in/-- A halted state has no successor in the step relation. -/theorem Cslib.URM.Step.no_step_of_halted {s s' : State} (hhalted : s.isHalted p) : ¬Step p s s' := by grind [State.isHalted]