[Imprint][Data Privacy Statement][E-Mail]



View long theorem info. View the proof. Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Proof step 3 from proof prepost-split-nodes (previous step)

jmaxino = n, ndx = [], ndx0 = ndx3, ndx1 = ndx3, ndx4 = ndx2 ⊦ ⟪while ndx0 ≠ [] ∧ ndx0.head.flashsize ≤ jmaxino do {/* (prepost-split-nodes: invariant ndx0` = ndx + ndx0 ∧ jmaxino` = ndx.flashsize + jmaxino wfbound # ndx0) */; let nd = ndx0.head in {ndx := ndx + nd; ndx0 := ndx0.tail; jmaxino := jmaxino - nd.flashsize}}⟫ (ndx1 = ndx + ndx0 ∧ ndx.flashsize ≤ n ∧ (ndx0 = [] ∨ ndx.flashsize + ndx0.head.flashsize > n))

Heuristic annotation applied rule annotation right

And obtained the following new goals

Rule argument

rule: invariant right arg: bound: # ndx0 inv: (ndx0 ≠ [] → ndx0 ≠ []) ∧ ndx0` = ndx + ndx0 ∧ jmaxino` = ndx.flashsize + jmaxino fmapos: right 1 pos: right 1

Additional information

Used simplifier rules: ⊦ m ≤ m + n; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ m > n ↔ n < m; (s)% ⊦ m + n < m + n0 ↔ n < n0; (s)% ⊦ m < n ↔ ¬ n ≤ m; (ss)% ⊦ [] + ndx = ndx; (s)%a: ⊦ (ndx + ndx0) + ndx1 = ndx + ndx0 + ndx1; from specification list[node-list]% ⊦ [].flashsize = 0; (s)% ⊦ n + 0 = n; (s) Used formulas: (ndx0 ≠ [] → ndx0 ≠ []) ∧ ndx0` = ndx + ndx0 ∧ jmaxino` = ndx.flashsize + jmaxino, # ndx0 = # ndx0