AFTD Auto-Formalizing Theoretical Domains

Cslib.URM.Instr.capJump

defimported Lean

Cap a jump target to be at most len. Non-jump instructions are unchanged.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
@[scoped grind =]
def Cslib.URM.Instr.capJump (len : ℕ) : Instr → Instr
Defined in
CSLib, `Cslib.URM.Instr.capJump`
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.
Verified
08 Oct 2026
Axioms
none listed
Built on 3
Used by 13

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
/-- Cap a jump target to be at most `len`. Non-jump instructions are unchanged. -/
@[scoped grind =]
def Cslib.URM.Instr.capJump (len : ℕ) : Instr → Instr
  | Z n => Z n
  | S n => S n
  | T m n => T m n
  | J m n q => J m n (min q len)
See it in the graphDiscuss this resultChallenge it