Cslib.URM.Instr.IsJump
defimported Lean
An instruction is a jump instruction.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in def Cslib.URM.Instr.IsJump : Instr → Prop
- Defined in
- CSLib, `Cslib.URM.Instr.IsJump`
- 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.Instr.IsJump← Cslib.URM.Instr.IsJump (Cslib/Computability/URM/Basic.lean:71): verbatim
- Verified
- 08 Oct 2026
- Axioms
- none listed
- Built on 1
- Cslib.URM.InstrURM instructions. -
Z n: Set register n to zero -S n: Increment register n by one -T m n: Transfer (copy) the contents of register…
- Cslib.URM.InstrURM instructions. -
- Used by 14
- Cslib.URM.Instr.jumpsBoundedBy_of_nonJumpNon-jumping instructions have bounded jumps for any length.
- Cslib.URM.straight_line_halts_from_regsStraight-line programs halt from any starting registers, not just State.init. Useful for chaining: after running one program, we can run…
- Cslib.URM.Step.of_nonJumpA non-jumping instruction produces a step that increments PC by 1.
- Cslib.URM.Instr.S_nonJumpS instruction is not a jump.
- Cslib.URM.Program.IsStraightLine.consCons of non-jumping instruction preserves straight-line.
- Cslib.URM.Instr.instDecidableIsJumpCslib.URM.Instr.instDecidableIsJump
- Cslib.URM.Program.IsStraightLine.singletonSingleton non-jumping instruction is straight-line.
- Cslib.URM.Instr.shiftJumps_of_nonJumpshiftJumps is identity for non-jumping instructions.
- Cslib.URM.Program.IsStraightLine.appendAppend preserves straight-line property.
- Cslib.URM.Instr.Z_nonJumpZ instruction is not a jump.
- Cslib.URM.instDecidableIsStraightLineCslib.URM.instDecidableIsStraightLine
- Cslib.URM.Instr.T_nonJumpT instruction is not a jump.
- Cslib.URM.Program.IsStraightLineA program is "straight-line" if it contains no jump instructions.
- Cslib.URM.Instr.J_IsJumpJ instruction is a jump.
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in /-- An instruction is a jump instruction. -/ def Cslib.URM.Instr.IsJump : Instr → Prop | J _ _ _ => True | _ => False