Skip to content

Commit 158e7d0

Browse files
committed
Remove orphaned loopBody definition and lemma
These became unused after removing minimizeProgram_eq_setup_loop_output in the previous cleanup.
1 parent 5e874f5 commit 158e7d0

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

Urm/Minimization/Construction.lean

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,6 @@ def minimizeProgram (n : ℕ) (pF : Program) : Program :=
113113
setupPhase_length, loopPrologue_length, shiftJumps_length,
114114
loopEpilogue_length, outputPhase_length, setupPhaseLength, loopPrologueLength]
115115

116-
/-! ## Program structure helpers -/
117-
118-
/-- The loop body (prologue + pF + epilogue). -/
119-
def loopBody (n : ℕ) (pF : Program) : Program :=
120-
loopPrologue n pF ++ pF.shiftJumps (pFOffset n pF) ++ loopEpilogue n pF
121-
122-
@[simp] theorem loopBody_length (n : ℕ) (pF : Program) :
123-
(loopBody n pF).length = loopPrologueLength n pF + pF.length + 3 := by
124-
simp only [loopBody, List.length_append, loopPrologue_length,
125-
shiftJumps_length, loopEpilogue_length]
126-
127116
/-! ## Epilogue instruction lemmas
128117
129118
These lemmas provide direct access to epilogue instructions at specific PCs.

0 commit comments

Comments
 (0)