MindFormal v1.0.0One Mind

MindFormal.Tools.A595Paper.CompareRestore

@[simp]
theorem MindFormal.A595Paper.clearMark_progress (f : ℤ → Cell) (a b : ℤ) (i j : ℕ) (z : ℤ) :
clearMark (progress f a b i j z) = clearMark (f z)
theorem MindFormal.A595Paper.CompareFields.clear_a {f : ℤ → Cell} {a b : ℤ} {na nb i j : ℕ} (hf : CompareFields f a b na nb) (hi : i ≤ na) (hj : j ≤ nb) :
mapSegment (progress f a b i j) (a + 1) na clearMark = progress f a b 0 j
theorem MindFormal.A595Paper.CompareFields.clear_b {f : ℤ → Cell} {a b : ℤ} {na nb j : ℕ} (hf : CompareFields f a b na nb) (hj : j ≤ nb) :
mapSegment (progress f a b 0 j) (b + 1) nb clearMark = f
@[reducible, inline]
Equations
Instances For
    theorem MindFormal.A595Paper.CompareFields.restore {f : ℤ → Cell} {a b : ℤ} {na nb i j : ℕ} (hf : CompareFields f a b na nb) (hi : i ≤ na) (hj : j ≤ nb) (equal : Bool) (h : ℤ) (hh : h ≤ a) :
    MachineRun compareTable (compareConfig (progress f a b i j) h (CompareState.restoreSeekA equal)) ((a - h).toNat + 1 + na + 1 + (a + ↑na - b).toNat + 1 + nb + 1) (compareConfig f (b + ↑nb + 2) (CompareState.finish equal))