MindFormal v1.0.0One Mind

MindFormal.Example.A705SupportPrograms.SharedDecode

The store's calendar and the program's reference semantics: a time in [k/4, (k+1)/4) is in gate k, an act time in [k/4 + .04, (k+1)/4) in aperture k; the program's reference register 11 + k is the NOR of its two named registers, read on the store's register file.

theorem MindFormal.A705SupportPrograms.Shared.firstWindow_eq {β : Type u_1} (l : List (β × Set ℝ)) (d : β) {τ : ℝ} {w : β × Set ℝ} (hw : w ∈ l) (hτ : τ ∈ w.2) (huniq : ∀ w' ∈ l, τ ∈ w'.2 → w'.1 = w.1) :
firstWindow l d τ = w.1
theorem MindFormal.A705SupportPrograms.Shared.firstWindow_none {β : Type u_1} (l : List (β × Set ℝ)) (d : β) {τ : ℝ} (hn : ∀ w ∈ l, τ ∉ w.2) :
firstWindow l d τ = d
theorem MindFormal.A705SupportPrograms.Shared.quarter_unique {k k' : ℕ} {τ : ℝ} (h : τ ∈ Set.Ico (↑k / 4) ((↑k + 1) / 4)) (h' : τ ∈ Set.Ico (↑k' / 4) ((↑k' + 1) / 4)) :
k = k'
theorem MindFormal.A705SupportPrograms.Shared.gateOf_eq (k : Fin 197) {t : ℝ} (ht : t ∈ Set.Ico (↑↑k / 4) ((↑↑k + 1) / 4)) :

A time in [k/4, (k+1)/4) is in gate k.

theorem MindFormal.A705SupportPrograms.Shared.apertureOf_eq (k : Fin 197) {τ : ℝ} (hτ : τ ∈ Set.Ico (↑↑k / 4 + 1 / 25) ((↑↑k + 1) / 4)) :

An act time in [k/4 + .04, (k+1)/4) is in aperture k.

theorem MindFormal.A705SupportPrograms.Shared.apertureOf_mem {τ : ℝ} {k : Fin 197} (h : apertureOf τ = k.castSucc) :
τ ∈ Set.Ico (↑↑k / 4 + 1 / 25) ((↑↑k + 1) / 4)

An act time in aperture k lies in [k/4 + .04, (k+1)/4).

The program's reference semantics.

theorem MindFormal.A705SupportPrograms.Shared.gateStep_bits {r k : ℕ} (hr : r < 2 ^ k) (g : ℕ × ℕ) (i : ℕ) :
(gateStep (r, k) g).1.testBit i = if i < k then r.testBit i else if i = k then !(r.testBit g.1 || r.testBit g.2) else false
theorem MindFormal.A705SupportPrograms.Shared.gateStep_lt {r k : ℕ} (hr : r < 2 ^ k) (g : ℕ × ℕ) :
(gateStep (r, k) g).1 < 2 ^ (k + 1)
theorem MindFormal.A705SupportPrograms.Shared.init_lt {x : ℕ} (hx : x < 512) :
2 ||| x <<< 2 < 2 ^ 11
theorem MindFormal.A705SupportPrograms.Shared.regsAfter_lt {x : ℕ} (hx : x < 512) (m : ℕ) (hm : m ≤ 197) :
(regsAfter x m).1 < 2 ^ (11 + m)
theorem MindFormal.A705SupportPrograms.Shared.regsAfter_keep {x : ℕ} (hx : x < 512) {m m' : ℕ} (hmm : m ≤ m') (hm' : m' ≤ 197) {i : ℕ} (hi : i < 11 + m) :
(regsAfter x m').1.testBit i = (regsAfter x m).1.testBit i

Bits below the write position are kept by every later gate.

The reference bit of gate j and the reference register file.

Equations
Instances For
    theorem MindFormal.A705SupportPrograms.Shared.refReg_eq {x : ℕ} (hx : x < 512) {r : ℕ} (hr : r < 208) :

    On the store's register file the reference registers are the program's registers.

    theorem MindFormal.A705SupportPrograms.Shared.refBit_nor {x : ℕ} (hx : x < 512) {k : ℕ} (hk : k < 197) :

    Each reference bit is the NOR of the registers its gate names.

    The answer register is the last gate's reference bit.