Documentation

LeanPool.OrderMaintenance.Impl.Notation

M6: notation for the core language, and procedures #

Strict comparison of two machine expressions.

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

    Non-strict comparison of two machine expressions.

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

      Equality comparison of two machine expressions.

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

        Boolean conjunction of two machine expressions.

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

          Boolean disjunction of two machine expressions.

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

            Boolean negation of a machine expression.

            Equations
            Instances For

              Sequential composition of two machine statements.

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

                Assignment of a machine expression to a local register.

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

                  Truncated subtraction (Level F's - on Nat).

                  Equations
                  Instances For

                    if c then a else 0, for a condition c worth 0 or 1.

                    Equations
                    Instances For

                      Assign a typed expression to a core scalar field.

                      Equations
                      Instances For

                        Read one entry of a selected plain numeric array.

                        Equations
                        Instances For

                          Write one entry of a selected plain numeric array.

                          Equations
                          Instances For

                            Field k of element, group or chunk i, and writes to it.

                            Equations
                            Instances For

                              Read a selected numeric field of a group record.

                              Equations
                              Instances For

                                Read a selected numeric field of a chunk record.

                                Equations
                                Instances For

                                  Write a selected numeric field of an element record.

                                  Equations
                                  Instances For

                                    Write a selected numeric field of a group record.

                                    Equations
                                    Instances For

                                      Write a selected numeric field of a chunk record.

                                      Equations
                                      Instances For
                                        theorem OrderMaintenance.Impl.Exp.ev_max (κ : Caps) (s : Model.Core) (L : Loc) {a b : Exp} {x y : ℕ} (ha : ev κ s L a = some x) (hb : ev κ s L b = some y) :
                                        ev κ s L (a.max b) = some (x.max y)
                                        theorem OrderMaintenance.Impl.Exp.ev_monus (κ : Caps) (s : Model.Core) (L : Loc) {a b : Exp} {x y : ℕ} (ha : ev κ s L a = some x) (hb : ev κ s L b = some y) :
                                        ev κ s L (a.monus b) = some (x - y)
                                        @[simp]
                                        theorem OrderMaintenance.Impl.Exp.cost_monus (a b : Exp) :
                                        (a.monus b).cost = 8 + 3 * a.cost + 4 * b.cost

                                        A procedure of the core language.

                                        • name : String

                                          Diagnostic name carried by a procedure call.

                                        • params : List Machine.Reg

                                          Local registers receiving the argument values.

                                        • Local registers whose final values are returned.

                                        • body : Stm

                                          Statement executed in the procedure’s local frame.

                                        Instances For

                                          Invoke a typed procedure with argument expressions and destination locals.

                                          Equations
                                          Instances For

                                            Stepping through evalF #

                                            theorem OrderMaintenance.Impl.evalF_seq_ok {κ : Caps} {A B : Stm} {s s1 : Model.Core} {L L1 : Loc} {c1 : ℕ} (h : evalF κ A s L = Res.ok s1 L1 c1) :
                                            evalF κ (A;; B) s L = Res.addCost c1 (evalF κ B s1 L1)
                                            theorem OrderMaintenance.Impl.evalF_call_ok {κ : Caps} {q : Proc} {args : List Exp} {ds : List Machine.Reg} {s s' : Model.Core} {L L' : Loc} {vs : List ℕ} {c : ℕ} (ha : evList κ s L args = some vs) (hb : evalF κ q.body s (Machine.State.setLocs (fun (x : Machine.Reg) => 0) q.params vs) = Res.ok s' L' c) :
                                            evalF κ (q.call args ds) s L = Res.ok s' (Machine.State.setLocs L ds (List.map L' q.rets)) (1 + costList args + ds.length + c)
                                            theorem OrderMaintenance.Impl.Res.addCost_ok {s : Model.Core} {L : Loc} {c c' : ℕ} :
                                            addCost c (ok s L c') = ok s L (c + c')
                                            theorem OrderMaintenance.Impl.run_bind_ok {α β : Type} {m : Model.CM α} {f : α → Model.CM β} {s s' : Model.Core} {b : β} (h : EStateM.run (m >>= f) s = EStateM.Result.ok b s') :

                                            A Level F bind that succeeded: both parts succeeded.