MindFormal v1.0.0One Mind

MindFormal.Tools.A695LogicPaper.NativeStrategy

def MindFormal.A695LogicPaper.IntegerProgram.nativeStrategy {m n : ℕ} (Q : ℕ) (pay : Fin (m + 1) → Fin (n + 1) → ℕ) (zeroReg one bound : ℕ) (candidates : List ℕ) :
Builder (Fin 3 → ℕ)
Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem MindFormal.A695LogicPaper.IntegerProgram.nativeStrategy_safe {m n : ℕ} (Q : ℕ) (pay : Fin (m + 1) → Fin (n + 1) → ℕ) (zeroReg one bound : ℕ) (candidates : List ℕ) :
    Safe (nativeStrategy Q pay zeroReg one bound candidates)
    theorem MindFormal.A695LogicPaper.IntegerProgram.nativeStrategy_spec {m n : ℕ} (Q : ℕ) (pay : Fin (m + 1) → Fin (n + 1) → ℕ) (table : Fin (m + 1) → Fin (n + 1) → ℚ) (zeroReg one bound : ℕ) (candidates : List ℕ) (fresh : ℕ) (v : Values) (hp : ∀ (i : Fin (m + 1)) (j : Fin (n + 1)), pay i j < fresh) (hz : zeroReg < fresh) (ho : one < fresh) (hq : bound < fresh) (hx : ∀ r ∈ candidates, r < fresh) (hzero : v zeroReg = 0) (hone : v one = 1) (hbound : v bound + 1 = Q) (htable : ∀ (i : Fin (m + 1)) (j : Fin (n + 1)), v (pay i j) = SecurityProgram.encodedTable table i j) :
    (nativeStrategy Q pay zeroReg one bound candidates fresh).commands.length = Q + (2 * (m + 1) + n * (2 * (m + 1) + 2)) + (Q + 1) ^ (m + 1) * (n * (2 * (m + 1) + 2) + 5 * (m + 1) + 7) + 5 * candidates.length + 4 * m + 1 ∧ (∀ (i : Fin 3), (nativeStrategy Q pay zeroReg one bound candidates fresh).result i < (nativeStrategy Q pay zeroReg one bound candidates fresh).next) ∧ have accepted := List.foldl (remember Q) none (List.map v candidates); ∀ (i : Fin 3), evaluate (nativeStrategy Q pay zeroReg one bound candidates fresh).commands v ((nativeStrategy Q pay zeroReg one bound candidates fresh).result i) = ![sampleState accepted 0, sampleState accepted 1, ↑(SecurityProgram.selectCount (SecurityProgram.optimize table Q) (accepted.getD 0))] i

    A single command list computes the rational-table grid optimizer, rejects its own candidate words, computes the selected row and writes the found/sample/action triple. The inputs include no strategy or optimizer.