Documentation

LeanPool.OrderMaintenance.Impl.CM

M6: concrete syntax for the core language #

cm{ … } writes a statement of the core language and cme{ … } an expression:

cm{ gp := G[g].prev
    if gp ≠ 0 then G[gp].next := gl
    if C[c].first = g then C[c].first := gl else { x := 1; fail }
    labL ← labBeforeP(g) }

Statements are separated by newlines (aligned) or ;, and { … } groups them. This is notation only: each form expands to the constructor term written with the helpers of Notation.lean (Exp.gF, Stm.wgF, ;;, ::=, =ₑ, …), so the proofs see the same terms.

Field selectors in the core-program surface syntax.

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

      Expressions in the core-program surface syntax.

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

          Statements in the core-program surface syntax.

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

              Statements separated by ; or by line breaks at the same column.

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

                A field given by its identifier.

                Equations
                Instances For

                  A field supplied as an embedded Lean term.

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

                    A natural-number literal in a core expression.

                    Equations
                    Instances For

                      A register, parameter, scalar or optional-job field in a core expression.

                      Equations
                      Instances For

                        A parenthesized core expression.

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

                          An embedded Lean expression term.

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

                            A field read from an indexed core record.

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

                              A read from a core array.

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

                                A first or second component read from a stored list entry.

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

                                  The length of a stored core list.

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

                                    The number of allocated table records.

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

                                      A read of one chunk ancestor-path entry.

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

                                        The maximum of two core expressions.

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

                                          The most-significant-bit index of a core expression.

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

                                            Boolean negation, represented by zero or one.

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

                                              Left shift of a core expression.

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

                                                Right shift of a core expression.

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

                                                  Multiplication of core expressions.

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

                                                    Natural-number division of core expressions.

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

                                                      Natural-number remainder of core expressions.

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

                                                        Addition of core expressions.

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

                                                          Guarded subtraction of core expressions.

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

                                                            Truncated subtraction of core expressions.

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

                                                              Strict comparison of core expressions, returning zero or one.

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

                                                                Nonstrict comparison of core expressions, returning zero or one.

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

                                                                  Equality comparison of core expressions, returning zero or one.

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

                                                                    Inequality comparison of core expressions, returning zero or one.

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

                                                                      Boolean conjunction of core expressions.

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

                                                                        Boolean disjunction of core expressions.

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

                                                                          An existing core statement named by an identifier.

                                                                          Equations
                                                                          Instances For

                                                                            An embedded Lean statement term.

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

                                                                              A grouped sequence of core statements.

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

                                                                                Assignment to a local register named by an identifier.

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

                                                                                  Assignment to a register supplied as a Lean term.

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

                                                                                    Allocation of a fresh core record with its index assigned to a local.

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

                                                                                      Assignment to an indexed core-record field.

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

                                                                                        Assignment to a core-array entry.

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

                                                                                          Assignment to a first or second component of a stored list entry.

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

                                                                                            Appending a pair to a stored core list.

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

                                                                                              Removing the last stored-list entry.

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

                                                                                                Clearing a stored core list.

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

                                                                                                  Conditional execution of core statements.

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

                                                                                                    A bounded core loop with a local counter.

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

                                                                                                      Handling a recoverable core guard failure.

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

                                                                                                        Assignment to a chunk ancestor-path entry.

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

                                                                                                          A core statement constructor applied to expression arguments.

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

                                                                                                            A named procedure call returning one local.

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

                                                                                                              A named procedure call returning a tuple of locals.

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

                                                                                                                A named procedure call without returned locals.

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

                                                                                                                  An embedded procedure call returning one local.

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

                                                                                                                    An embedded procedure call returning a tuple of locals.

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

                                                                                                                      An embedded procedure call without returned locals.

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

                                                                                                                        ns.f for a field identifier f, or the embedded term.

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

                                                                                                                          The single name component of an identifier, as a string.

                                                                                                                          Equations
                                                                                                                          Instances For

                                                                                                                            P.k and S.k: the table prefix and the field.

                                                                                                                            Equations
                                                                                                                            Instances For

                                                                                                                              Recognize built-in stored-list kind identifiers in core syntax.

                                                                                                                              Equations
                                                                                                                              Instances For

                                                                                                                                A list kind: an LK constructor, or else a Lean variable of type LK.

                                                                                                                                Equations
                                                                                                                                Instances For

                                                                                                                                  Decode a list-component selector, rejecting names other than fst and snd.

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

                                                                                                                                    Construct a core binary expression with the named machine primitive.

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

                                                                                                                                      Count syntax nodes without depending on the non-executable SizeOf Syntax instance.

                                                                                                                                      Equations
                                                                                                                                      Instances For

                                                                                                                                        Expand a core expression using structural syntax fuel.

                                                                                                                                        Equations
                                                                                                                                        Instances For

                                                                                                                                          Expand a sequence of core-expression arguments.

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

                                                                                                                                            p.call [args] [dsts].

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

                                                                                                                                              Expand a statement sequence using structural syntax fuel.

                                                                                                                                              Equations
                                                                                                                                              Instances For

                                                                                                                                                Expand one core statement using structural syntax fuel.

                                                                                                                                                Equations
                                                                                                                                                Instances For

                                                                                                                                                  Expand a statement sequence with a structural bound from its syntax tree.

                                                                                                                                                  Equations
                                                                                                                                                  Instances For

                                                                                                                                                    Surface notation embedding a core statement sequence as a Lean term.

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

                                                                                                                                                      Surface notation embedding a core expression as a Lean term.

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

                                                                                                                                                        Expand a complete core statement with fuel derived from its syntax tree.

                                                                                                                                                        Equations
                                                                                                                                                        Instances For

                                                                                                                                                          Expand a complete core expression with fuel derived from its syntax tree.

                                                                                                                                                          Equations
                                                                                                                                                          Instances For