MindFormal v1.0.0One Mind

MindFormal.Tools.A695LogicPaper.AcceptFlag

def MindFormal.A695LogicPaper.IntegerProgram.acceptFlag (one total denominator oldScore newScore : ℕ) :

Normalization and strict improvement are both computed, including on rejected counter tuples. The fixed tie rule therefore retains the old row.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem MindFormal.A695LogicPaper.IntegerProgram.acceptFlag_safe (one total denominator oldScore newScore : ℕ) :
    Safe (acceptFlag one total denominator oldScore newScore)
    theorem MindFormal.A695LogicPaper.IntegerProgram.acceptFlag_spec (one total denominator oldScore newScore n : ℕ) (v : Values) (ho : one < n) (ht : total < n) (hd : denominator < n) (hb : oldScore < n) (hs : newScore < n) (hone : v one = 1) :
    (acceptFlag one total denominator oldScore newScore n).commands.length = 6 ∧ (acceptFlag one total denominator oldScore newScore n).result < (acceptFlag one total denominator oldScore newScore n).next ∧ evaluate (acceptFlag one total denominator oldScore newScore n).commands v (acceptFlag one total denominator oldScore newScore n).result = (decide (v total = v denominator ∧ v oldScore < v newScore)).toNat