MindFormal v1.0.0One Mind

MindFormal.Tools.A695LogicPaper.IntegerSequence

Instances For

    Every command allocates its actual arithmetic gates. Assignment updates only the variable's address map, keeping all previously computed registers.

    Equations
    Instances For
      theorem MindFormal.A695LogicPaper.IntegerProgram.compile_cost (b zeroReg one : ℕ) (cs : List Command) (p : Placement b) :
      (compile b zeroReg one cs p).code.length ≤ cs.length * (100 * (b + 1) ^ 2)
      theorem MindFormal.A695LogicPaper.IntegerProgram.compile_fresh (b zeroReg one : ℕ) (cs : List Command) (p : Placement b) :
      (compile b zeroReg one cs p).placement.fresh = p.fresh + (compile b zeroReg one cs p).code.length
      theorem MindFormal.A695LogicPaper.IntegerProgram.compile_preserves (b zeroReg one : ℕ) (cs : List Command) (p : Placement b) (mem : BooleanArithmetic.Memory) (i : ℕ) (hi : i < p.fresh) :
      BooleanArithmetic.run (compile b zeroReg one cs p).code mem i = mem i
      theorem MindFormal.A695LogicPaper.IntegerProgram.compile_bound (b zeroReg one : ℕ) (cs : List Command) (p : Placement b) (hw : ∀ (r : ℕ) (i : Fin (b + 1)), p.words r i < p.fresh) (hz : zeroReg < p.fresh) (ho : one < p.fresh) (r : ℕ) (i : Fin (b + 1)) :
      (compile b zeroReg one cs p).placement.words r i < (compile b zeroReg one cs p).placement.fresh
      theorem MindFormal.A695LogicPaper.IntegerProgram.compile_correct (b zeroReg one : ℕ) (cs : List Command) (p : Placement b) (hw : ∀ (r : ℕ) (i : Fin (b + 1)), p.words r i < p.fresh) (hz : zeroReg < p.fresh) (ho : one < p.fresh) (mem : BooleanArithmetic.Memory) (hzero : mem zeroReg = false) (hone : mem one = true) (hfit : Fits b cs (readWords b p.words mem)) :
      readWords b (compile b zeroReg one cs p).placement.words (BooleanArithmetic.run (compile b zeroReg one cs p).code mem) = evaluate cs (readWords b p.words mem)

      The complete unpruned arithmetic list is executed by the represented NOR gates. Fits is only the printed width requirement for all intermediates; no optimizer, sampled integer or successful output is supplied.