op2130_setup_gadgets_safe
In the fixed prefix, repeatable block, and final block that prepare the decision circuit, every intermediate discrepancy coordinate lies between -5 and 5.
Statement
theorem op2130_setup_gadgets_safe :
(op2130_setup_scan (List.replicate 23 0) op2130_setup_pre).all op2130_setup_safe = true ∧
(op2130_setup_scan [3,2,1,0,-1,-2,-3,-4,-1,0,0,0,0,0,0,0,0,0,0,0]
op2130_setup_block).all op2130_setup_safe = true ∧
(op2130_setup_scan [3,2,1,0,-1,-2,-3,-4,-1,0,0,0,0,0,0,0,0,0,0,0]
op2130_setup_finish).all op2130_setup_safe = true- Source
- OP-2130, uniformly bounded decision-circuit preparation
- Verified
- 24 Nov 2026
- Axioms
propext- Built on 3
- op2130_setup_finite_gadgetsA 96-request prefix, a repeatable 185-request block, and a 41-request ending perform the exact finite greedy discrepancy transformations…
- op2130_interval_marginal_recursive_counterexampleFor an explicit 33-request six-vertex path schedule, the recursively enumerated fair-coin greedy process in the list-state representation…
- cFor a group $G$ and an element $s \in G$, the local count $c_G(s)$ is the cardinality of the set of elements $g \in G$ such that…
The proof, explained
The theorem establishes that discrepancy coordinates remain bounded in $[-5, 5]$ throughout three gadget executions: the prefix gadget starting from the 23-dimensional zero vector, and the repeatable block and finishing gadgets starting from a specified 20-dimensional initial vector. Because each sequence of moves is finite and the transition steps are fully constructive, the safety condition reduces to an explicit boolean computation evaluated by `decide`.
The coordinate bound $-5 \le x \le 5$ holds at every step throughout the three gadget trajectories. automation
The claim is a conjunction of three checks over concrete, finite lists: computing the trajectory of state vectors under `op2130_mc_step` starting from known initial configurations, and testing whether every coordinate falls in the interval $[-5, 5]$. Since all inputs are explicit finite lists and the transitions and inequalities are computable, `decide` evaluates the full boolean expression to `true` by direct calculation.
decide
- The proof relies entirely on Lean's kernel computation via `decide`; there are no intermediate deductive lemmas or manual pen-and-paper deduction steps.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
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 maxRecDepth 10000set_option maxHeartbeats 3000000def op2130_setup_safe (d : List ℤ) : Bool := d.all fun x => decide (-5 ≤ x ∧ x ≤ 5)def op2130_setup_scan (d : List ℤ) (es : List (ℕ × Bool)) : List (List ℤ) := es.scanl (fun v (j,c) => op2130_mc_step v j c) dtheorem op2130_setup_gadgets_safe : (op2130_setup_scan (List.replicate 23 0) op2130_setup_pre).all op2130_setup_safe = true ∧ (op2130_setup_scan [3,2,1,0,-1,-2,-3,-4,-1,0,0,0,0,0,0,0,0,0,0,0] op2130_setup_block).all op2130_setup_safe = true ∧ (op2130_setup_scan [3,2,1,0,-1,-2,-3,-4,-1,0,0,0,0,0,0,0,0,0,0,0] op2130_setup_finish).all op2130_setup_safe = true := by decide