Documentation

LeanPool.OrderMaintenance.Impl.Group

M6: groups (Model/Core.lean: group splits) #

Each procedure is a sequence of field writes. A write is a modify of one record (evalF_wrG_ok …), consecutive writes to one record merge (Array.modify_modify_same), and the blocks follow Level F's lets, so a conditional write needs a two-way split only.

Writes #

theorem OrderMaintenance.Impl.evalF_wrG_ok {κ : Caps} {s : Model.Core} {L : Loc} {k : GF} {i e : Exp} {j w : ℕ} (hi : Exp.ev κ s L i = some j) (he : Exp.ev κ s L e = some w) (hj : j < s.Gs.size) (hk : GF.ok w k = true) :
evalF κ (Stm.wr (Fld.g k) i e) s L = Res.ok { P := s.P, E := s.E, Gs := s.Gs.modify j fun (x : Model.Group) => GF.set x w k, C := s.C, freeG := s.freeG, count := s.count, head := s.head, tail := s.tail, firstGroup := s.firstGroup, firstChunk := s.firstChunk, ready := s.ready, prep := s.prep, resJob := s.resJob, fallbacks := s.fallbacks, pqHead := s.pqHead, pqNext := s.pqNext, pqPrev := s.pqPrev, pqWhere := s.pqWhere, nbNext := s.nbNext, nbPrev := s.nbPrev, pqHi := s.pqHi, pqLo := s.pqLo, nodes := s.nodes, path := s.path, cin := s.cin, lpar := s.lpar } L (1 + i.cost + e.cost)
theorem OrderMaintenance.Impl.evalF_wrC_ok {κ : Caps} {s : Model.Core} {L : Loc} {k : CF} {i e : Exp} {j w : ℕ} (hi : Exp.ev κ s L i = some j) (he : Exp.ev κ s L e = some w) (hj : j < s.C.size) (hk : CF.ok w k = true) :
evalF κ (Stm.wr (Fld.c k) i e) s L = Res.ok { P := s.P, E := s.E, Gs := s.Gs, C := s.C.modify j fun (x : Model.Chunk) => CF.set x w k, freeG := s.freeG, count := s.count, head := s.head, tail := s.tail, firstGroup := s.firstGroup, firstChunk := s.firstChunk, ready := s.ready, prep := s.prep, resJob := s.resJob, fallbacks := s.fallbacks, pqHead := s.pqHead, pqNext := s.pqNext, pqPrev := s.pqPrev, pqWhere := s.pqWhere, nbNext := s.nbNext, nbPrev := s.nbPrev, pqHi := s.pqHi, pqLo := s.pqLo, nodes := s.nodes, path := s.path, cin := s.cin, lpar := s.lpar } L (1 + i.cost + e.cost)
theorem OrderMaintenance.Impl.evalF_wrS_ok {κ : Caps} {s : Model.Core} {L : Loc} {k : SF} {e : Exp} {w : ℕ} (he : Exp.ev κ s L e = some w) (hk : SF.ok w k = true) :
evalF κ (Stm.wr (Fld.s k) 0 e) s L = Res.ok (SF.set s w k) L (1 + 1 + e.cost)

linkGroupPair #

Initialize and link the left overflow group before its source.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Initialize and link the right overflow group after its source.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Mark the source group as splitting and record its two overflow siblings.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        linkGroupPair: link gl, gr around g (locals g gl gr labL labR).

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem OrderMaintenance.Impl.five_wrG {κ : Caps} {s : Model.Core} {L : Loc} {x : Machine.Reg} {j : ℕ} {k1 k2 k3 k4 k5 : GF} {e1 e2 e3 e4 e5 : Exp} {w1 w2 w3 w4 w5 : ℕ} (hx : L x = j) (hj : j < s.Gs.size) (h1 : ∀ (s' : Model.Core), Exp.ev κ s' L e1 = some w1) (h2 : ∀ (s' : Model.Core), Exp.ev κ s' L e2 = some w2) (h3 : ∀ (s' : Model.Core), Exp.ev κ s' L e3 = some w3) (h4 : ∀ (s' : Model.Core), Exp.ev κ s' L e4 = some w4) (h5 : ∀ (s' : Model.Core), Exp.ev κ s' L e5 = some w5) (o1 : GF.ok w1 k1 = true) (o2 : GF.ok w2 k2 = true) (o3 : GF.ok w3 k3 = true) (o4 : GF.ok w4 k4 = true) (o5 : GF.ok w5 k5 = true) :
          evalF κ (Stm.wr (Fld.g k1) (Exp.var x) e1;; Stm.wr (Fld.g k2) (Exp.var x) e2;; Stm.wr (Fld.g k3) (Exp.var x) e3;; Stm.wr (Fld.g k4) (Exp.var x) e4;; Stm.wr (Fld.g k5) (Exp.var x) e5) s L = Res.ok { P := s.P, E := s.E, Gs := s.Gs.modify j fun (X : Model.Group) => GF.set (GF.set (GF.set (GF.set (GF.set X w1 k1) w2 k2) w3 k3) w4 k4) w5 k5, C := s.C, freeG := s.freeG, count := s.count, head := s.head, tail := s.tail, firstGroup := s.firstGroup, firstChunk := s.firstChunk, ready := s.ready, prep := s.prep, resJob := s.resJob, fallbacks := s.fallbacks, pqHead := s.pqHead, pqNext := s.pqNext, pqPrev := s.pqPrev, pqWhere := s.pqWhere, nbNext := s.nbNext, nbPrev := s.nbPrev, pqHi := s.pqHi, pqLo := s.pqLo, nodes := s.nodes, path := s.path, cin := s.cin, lpar := s.lpar } L (5 + 5 + e1.cost + e2.cost + e3.cost + e4.cost + e5.cost)

          Five writes to one group.

          theorem OrderMaintenance.Impl.ite_skip_ok {κ : Caps} {c : Exp} {t : Stm} {s s' : Model.Core} {L : Loc} {ct : ℕ} (b : Bool) (hc : Exp.ev κ s L c = some (if b = true then 1 else 0)) (ht : b = true → evalF κ t s L = Res.ok s' L ct) (hs : b = false → s' = s) :
          ∃ (n : ℕ), evalF κ (Stm.ite c t Stm.skip) s L = Res.ok s' L n ∧ n ≤ 1 + c.cost + max ct 1
          theorem OrderMaintenance.Impl.write_firstGroup_if_zero {κ : Caps} {s : Model.Core} {L : Loc} {prev w : ℕ} {r : Machine.Reg} (hp : L "gp" = prev) (hw : L r = w) :
          ∃ (n : ℕ), evalF κ (Stm.ite (Exp.bin Machine.BinOp.eq (Exp.var "gp") 0) (Stm.wsc SF.firstGroup (Exp.var r)) Stm.skip) s L = Res.ok { P := s.P, E := s.E, Gs := s.Gs, C := s.C, freeG := s.freeG, count := s.count, head := s.head, tail := s.tail, firstGroup := if (prev != Model.NIL) = true then s.firstGroup else w, firstChunk := s.firstChunk, ready := s.ready, prep := s.prep, resJob := s.resJob, fallbacks := s.fallbacks, pqHead := s.pqHead, pqNext := s.pqNext, pqPrev := s.pqPrev, pqWhere := s.pqWhere, nbNext := s.nbNext, nbPrev := s.nbPrev, pqHi := s.pqHi, pqLo := s.pqLo, nodes := s.nodes, path := s.path, cin := s.cin, lpar := s.lpar } L n ∧ n ≤ 1 + (Exp.bin Machine.BinOp.eq (Exp.var "gp") 0).cost + 3

          Update the first-group pointer exactly when its predecessor is absent.

          theorem OrderMaintenance.Impl.append_free_group_ok {κ : Caps} {s : Model.Core} {L : Loc} {g : ℕ} (hg : L "g" = g) (hc : s.freeG.length + 1 ≤ κ.lcap LK.freeG) (hr : 0 < κ.lrec LK.freeG) :
          evalF κ (Stm.lgrow LK.freeG 0 (Exp.var "g") 0) s L = Res.ok { P := s.P, E := s.E, Gs := s.Gs, C := s.C, freeG := g :: s.freeG, count := s.count, head := s.head, tail := s.tail, firstGroup := s.firstGroup, firstChunk := s.firstChunk, ready := s.ready, prep := s.prep, resJob := s.resJob, fallbacks := s.fallbacks, pqHead := s.pqHead, pqNext := s.pqNext, pqPrev := s.pqPrev, pqWhere := s.pqWhere, nbNext := s.nbNext, nbPrev := s.nbPrev, pqHi := s.pqHi, pqLo := s.pqLo, nodes := s.nodes, path := s.path, cin := s.cin, lpar := s.lpar } L 22

          Append a group index to the reversed free-list view, updating the model free list.

          theorem OrderMaintenance.Impl.linkGroupPairS_agree (κ : Caps) (σ : Model.Core) (L : Loc) {g gl gr labL labR : ℕ} (hg : L "g" = g) (hgl : L "gl" = gl) (hgr : L "gr" = gr) (hlL : L "labL" = labL) (hlR : L "labR" = labR) (hgG : g < σ.Gs.size) (hglG : gl < σ.Gs.size) (hgrG : gr < σ.Gs.size) (hpG : (σ.Gs.getX g).prev < σ.Gs.size) (hnG : (σ.Gs.getX g).next < σ.Gs.size) (hcC : (σ.Gs.getX g).chk < σ.C.size) (hG : σ.Gs.size ≤ κ.tbl Tbl.G) (hC : σ.C.size ≤ κ.tbl Tbl.C) :
          ∃ (L' : Loc) (n : ℕ), evalF κ linkGroupPairS σ L = Res.ok (Model.linkGroupPair σ g gl gr labL labR) L' n ∧ n ≤ 150

          linkGroupPairS computes linkGroupPair.

          unlinkGroup #

          Test whether the group being removed is its chunk's only group.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Mark a removed group dead and clear its list links.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              unlinkGroup: unlink g from the group list and its chunk, and free it (local g).

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                theorem OrderMaintenance.Impl.unlinkGroupS_agree (κ : Caps) (σ : Model.Core) (L : Loc) {g : ℕ} (hg : L "g" = g) (hgG : g < σ.Gs.size) (hpG : (σ.Gs.getX g).prev < σ.Gs.size) (hnG : (σ.Gs.getX g).next < σ.Gs.size) (hcC : (σ.Gs.getX g).chk < σ.C.size) (hG : σ.Gs.size ≤ κ.tbl Tbl.G) (hC : σ.C.size ≤ κ.tbl Tbl.C) (hF : σ.freeG.length + 1 ≤ κ.lcap LK.freeG) (hF0 : 0 < κ.lrec LK.freeG) :
                ∃ (L' : Loc) (n : ℕ), evalF κ unlinkGroupS σ L = Res.ok (Model.unlinkGroup σ g) L' n ∧ L' "g" = g ∧ n ≤ 150

                Moving one element #

                theorem OrderMaintenance.Impl.evalF_wrE_ok {κ : Caps} {s : Model.Core} {L : Loc} {k : EF} {i e : Exp} {j w : ℕ} (hi : Exp.ev κ s L i = some j) (he : Exp.ev κ s L e = some w) (hj : j < s.E.size) (hk : EF.ok w k = true) :
                evalF κ (Stm.wr (Fld.e k) i e) s L = Res.ok { P := s.P, E := s.E.modify j fun (x : Model.Elem) => EF.set x w k, Gs := s.Gs, C := s.C, freeG := s.freeG, count := s.count, head := s.head, tail := s.tail, firstGroup := s.firstGroup, firstChunk := s.firstChunk, ready := s.ready, prep := s.prep, resJob := s.resJob, fallbacks := s.fallbacks, pqHead := s.pqHead, pqNext := s.pqNext, pqPrev := s.pqPrev, pqWhere := s.pqWhere, nbNext := s.nbNext, nbPrev := s.nbPrev, pqHi := s.pqHi, pqLo := s.pqLo, nodes := s.nodes, path := s.path, cin := s.cin, lpar := s.lpar } L (1 + i.cost + e.cost)

                Remove an endpoint element from its source group, clearing both endpoints if empty.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For

                  Attach a moving element to the corresponding end of its destination group.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    Set the moving element's containing group and new label.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      Move the first or last element of g to the corresponding end of d, with label lab. The first of g goes to the end of d (first), or the last of g to the front of d (locals g d e lab).

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        theorem OrderMaintenance.Impl.moveS_agree (κ : Caps) (σ : Model.Core) (L : Loc) (first : Bool) {g d e lab : ℕ} (hg : L "g" = g) (hd : L "d" = d) (he : L "e" = e) (hl : L "lab" = lab) (hgG : g < σ.Gs.size) (hdG : d < σ.Gs.size) (heE : e < σ.E.size) (hG : σ.Gs.size ≤ κ.tbl Tbl.G) (hE : σ.E.size ≤ κ.tbl Tbl.E) :
                        ∃ (L' : Loc) (n : ℕ), evalF κ (moveS first) σ L = Res.ok (if first = true then Model.moveFirstLeft σ g d e lab else Model.moveLastRight σ g d e lab) L' n ∧ n ≤ 80

                        Label primitives #

                        lab := between a b (locals a b).

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For

                          lab := after a D B (locals a D B).

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For

                            lab := before b D (locals b D).

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              theorem OrderMaintenance.Impl.between_inv {a b : ℕ} {why : String} {s s' : Model.Core} {v : ℕ} (h : EStateM.run (Model.between a b why) s = EStateM.Result.ok v s') :
                              s' = s ∧ a + 1 < b ∧ v = (a + b) / 2
                              theorem OrderMaintenance.Impl.after_inv {a D B : ℕ} {why : String} {s s' : Model.Core} {v : ℕ} (h : EStateM.run (Model.after a D B why) s = EStateM.Result.ok v s') :
                              s' = s ∧ a + D < 1 <<< B ∧ a < a + D ∧ v = a + D
                              theorem OrderMaintenance.Impl.before_inv {b D : ℕ} {why : String} {s s' : Model.Core} {v : ℕ} (h : EStateM.run (Model.before b D why) s = EStateM.Result.ok v s') :
                              s' = s ∧ D ≤ b ∧ D ≠ 0 ∧ v = b - D
                              theorem OrderMaintenance.Impl.betweenS_ok {κ : Caps} {s : Model.Core} {L : Loc} {a b : ℕ} (ha : L "a" = a) (hb : L "b" = b) (h : a + 1 < b) :
                              ∃ (c : ℕ), evalF κ betweenS s L = Res.ok s (Machine.State.upd L "lab" ((a + b) / 2)) c ∧ c ≤ 15
                              theorem OrderMaintenance.Impl.afterS_ok {κ : Caps} {s : Model.Core} {L : Loc} {a D B : ℕ} (ha : L "a" = a) (hD : L "D" = D) (hB : L "B" = B) (h1 : a + D < 1 <<< B) (h2 : a < a + D) :
                              ∃ (c : ℕ), evalF κ afterS s L = Res.ok s (Machine.State.upd (Machine.State.upd L "v" (a + D)) "lab" (a + D)) c ∧ c ≤ 20
                              theorem OrderMaintenance.Impl.beforeS_ok {κ : Caps} {s : Model.Core} {L : Loc} {b D : ℕ} (hb : L "b" = b) (hD : L "D" = D) (h1 : D ≤ b) (h2 : D ≠ 0) :
                              evalF κ beforeS s L = Res.ok s (Machine.State.upd L "lab" (b - D)) 12

                              labBefore, labAfter #

                              lab := labBefore g (local g).

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                lab := labAfter g (local g).

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  theorem OrderMaintenance.Impl.labBeforeS_agree (κ : Caps) (σ : Model.Core) (L : Loc) {g : ℕ} (hg : L "g" = g) (hgT : g < κ.tbl Tbl.G) (hcT : (σ.Gs.getX g).chk < κ.tbl Tbl.C) (hpT : (σ.Gs.getX g).prev < κ.tbl Tbl.G) {v : ℕ} {σ' : Model.Core} (h : EStateM.run (Model.labBefore g) σ = EStateM.Result.ok v σ') :
                                  σ' = σ ∧ ∃ (L' : Loc) (c : ℕ), evalF κ labBeforeS σ L = Res.ok σ L' c ∧ L' "lab" = v ∧ L' "g" = g ∧ c ≤ 50
                                  theorem OrderMaintenance.Impl.labAfterS_agree (κ : Caps) (σ : Model.Core) (L : Loc) {g : ℕ} (hg : L "g" = g) (hgT : g < κ.tbl Tbl.G) (hcT : (σ.Gs.getX g).chk < κ.tbl Tbl.C) (hnT : (σ.Gs.getX g).next < κ.tbl Tbl.G) {v : ℕ} {σ' : Model.Core} (h : EStateM.run (Model.labAfter g) σ = EStateM.Result.ok v σ') :
                                  σ' = σ ∧ ∃ (L' : Loc) (c : ℕ), evalF κ labAfterS σ L = Res.ok σ L' c ∧ L' "lab" = v ∧ L' "g" = g ∧ c ≤ 50

                                  newGroup #

                                  Clear a reused group's links and endpoints and set its containing chunk.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For

                                    Clear a reused group's label, size, split state, source and left sibling.

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For

                                      Clear a reused group's right sibling and mark it alive.

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For

                                        gn := newGroup c: reuse the last freed group, or push a new one (local c).

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For

                                          The record update corresponding to the first reused-group reset stage.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For

                                            The record update corresponding to the second reused-group reset stage.

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For
                                              theorem OrderMaintenance.Impl.resetGS_ok {κ : Caps} {s : Model.Core} {L : Loc} {j c : ℕ} (hj : L "gn" = j) (hc : L "c" = c) (hjs : j < s.Gs.size) :
                                              ∃ (n : ℕ), evalF κ resetGS s L = Res.ok { P := s.P, E := s.E, Gs := s.Gs.modify j fun (x : Model.Group) => { chk := c }, C := s.C, freeG := s.freeG, count := s.count, head := s.head, tail := s.tail, firstGroup := s.firstGroup, firstChunk := s.firstChunk, ready := s.ready, prep := s.prep, resJob := s.resJob, fallbacks := s.fallbacks, pqHead := s.pqHead, pqNext := s.pqNext, pqPrev := s.pqPrev, pqWhere := s.pqWhere, nbNext := s.nbNext, nbPrev := s.nbPrev, pqHi := s.pqHi, pqLo := s.pqLo, nodes := s.nodes, path := s.path, cin := s.cin, lpar := s.lpar } L n ∧ n ≤ 40
                                              theorem OrderMaintenance.Impl.newGroup_run (c : ℕ) (σ : Model.Core) :
                                              EStateM.run (Model.newGroup c) σ = match σ.freeG with | i :: rest => EStateM.Result.ok i { P := σ.P, E := σ.E, Gs := σ.Gs.set! i { chk := c }, C := σ.C, freeG := rest, count := σ.count, head := σ.head, tail := σ.tail, firstGroup := σ.firstGroup, firstChunk := σ.firstChunk, ready := σ.ready, prep := σ.prep, resJob := σ.resJob, fallbacks := σ.fallbacks, pqHead := σ.pqHead, pqNext := σ.pqNext, pqPrev := σ.pqPrev, pqWhere := σ.pqWhere, nbNext := σ.nbNext, nbPrev := σ.nbPrev, pqHi := σ.pqHi, pqLo := σ.pqLo, nodes := σ.nodes, path := σ.path, cin := σ.cin, lpar := σ.lpar } | [] => EStateM.Result.ok σ.Gs.size { P := σ.P, E := σ.E, Gs := σ.Gs.push { chk := c }, C := σ.C, freeG := σ.freeG, count := σ.count, head := σ.head, tail := σ.tail, firstGroup := σ.firstGroup, firstChunk := σ.firstChunk, ready := σ.ready, prep := σ.prep, resJob := σ.resJob, fallbacks := σ.fallbacks, pqHead := σ.pqHead, pqNext := σ.pqNext, pqPrev := σ.pqPrev, pqWhere := σ.pqWhere, nbNext := σ.nbNext, nbPrev := σ.nbPrev, pqHi := σ.pqHi, pqLo := σ.pqLo, nodes := σ.nodes, path := σ.path, cin := σ.cin, lpar := σ.lpar }
                                              theorem OrderMaintenance.Impl.newGroupS_agree (κ : Caps) (σ : Model.Core) (L : Loc) {c : ℕ} (hc : L "c" = c) {i : ℕ} {σ' : Model.Core} (h : EStateM.run (Model.newGroup c) σ = EStateM.Result.ok i σ') (hG : σ.Gs.size < κ.tbl Tbl.G) (hfree : ∀ x ∈ σ.freeG, x < σ.Gs.size) (hF0 : 0 < κ.lrec LK.freeG) (hF : σ.freeG.length ≤ κ.lcap LK.freeG) :
                                              ∃ (L' : Loc) (n : ℕ), evalF κ newGroupS σ L = Res.ok σ' L' n ∧ L' "gn" = i ∧ L' "c" = c ∧ n ≤ 80

                                              startGroupSplit #

                                              theorem OrderMaintenance.Impl.newGroup_eff {c i : ℕ} {σ σ' : Model.Core} (h : EStateM.run (Model.newGroup c) σ = EStateM.Result.ok i σ') (hfree : ∀ x ∈ σ.freeG, x < σ.Gs.size) :
                                              (∀ (x : ℕ), σ'.Gs.getX x = if x = i then { chk := c } else σ.Gs.getX x) ∧ σ.Gs.size ≤ σ'.Gs.size ∧ σ'.Gs.size ≤ σ.Gs.size + 1 ∧ i < σ'.Gs.size ∧ σ'.C = σ.C ∧ σ'.P = σ.P ∧ σ'.freeG.length ≤ σ.freeG.length ∧ ∀ x ∈ σ'.freeG, x ∈ σ.freeG

                                              Procedure selecting a group label before the given group.

                                              Equations
                                              Instances For

                                                Procedure selecting a group label after the given group.

                                                Equations
                                                Instances For

                                                  Procedure allocating or reusing a group in a chunk.

                                                  Equations
                                                  Instances For

                                                    startGroupSplit g, guarded by Level F; every successful run satisfies the guard.

                                                    Equations
                                                    • One or more equations did not get rendered due to their size.
                                                    Instances For
                                                      theorem OrderMaintenance.Impl.startGroupSplitS_agree (κ : Caps) (σ : Model.Core) (L : Loc) {g : ℕ} (hg : L "g" = g) (hG2 : σ.Gs.size + 2 ≤ κ.tbl Tbl.G) (hC : σ.C.size ≤ κ.tbl Tbl.C) (hpG : (σ.Gs.getX g).prev < σ.Gs.size) (hnG : (σ.Gs.getX g).next < σ.Gs.size) (hcC : (σ.Gs.getX g).chk < σ.C.size) (hfree : ∀ x ∈ σ.freeG, x < σ.Gs.size) (hF0 : 0 < κ.lrec LK.freeG) (hF : σ.freeG.length ≤ κ.lcap LK.freeG) {σ' : Model.Core} (h : EStateM.run (Model.startGroupSplit g) σ = EStateM.Result.ok () σ') :
                                                      ∃ (L' : Loc) (n : ℕ), evalF κ startGroupSplitS σ L = Res.ok σ' L' n ∧ n ≤ 600