Documentation

LeanPool.SmallUndecidableGroups.Machine.PostMachineThue

PostMachineThue #

Part of the dependency closure of the small undecidable group constructions.

The two head movements of a binary single-tape machine.

Instances For

    One binary-machine transition writes a bit, moves once, and enters a new state. This is the machine model used in Post's 1947 construction and in the Coq Library of Undecidability's SBTM-to-rewriting reduction.

    • next : Q

      The state entered after executing the Post-machine command.

    • write : Bool

      The Boolean symbol written by the Post-machine command.

    • move : Direction

      The tape direction taken by the Post-machine command.

    Instances For
      @[reducible, inline]

      A deterministic Post-machine transition function, with none representing halting.

      Equations
      Instances For

        The left and right lists are stored nearest-to-the-head first.

        • state : Q

          The current control state of a Post-machine configuration.

        • left : List Bool

          The symbols to the left of the head, ordered from nearest to farthest.

        • head : Bool

          The Boolean symbol currently under the tape head.

        • right : List Bool

          The symbols to the right of the head, ordered from nearest to farthest.

        Instances For
          def Undecidability.PostMachine.step {Q : Type u_1} (M : Machine Q) (c : Config Q) :

          Blank cells contain false.

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

            Alphabet of Post's rewriting simulation. Constructor separation makes the marker and unique-state-symbol invariants explicit.

            Instances For

              The word of tape-symbol letters encoding a Boolean tape segment.

              Equations
              Instances For

                A configuration is written L (reverse left) head state right R.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  inductive Undecidability.PostMachine.Rule {Q : Type u_1} (M : Machine Q) :
                  List (Symbol Q) → List (Symbol Q) → Prop

                  Post's rules. The first three constructors clean a halted configuration; the remaining four simulate one boundary case and one interior case for each head direction.

                  Instances For

                    The Thue system comprising the Post-machine transition and halting rules.

                    Equations
                    Instances For

                      The rewriting rule replacing a halting state and scanned symbol by the target markers.

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

                        The rewriting rule erasing a tape symbol on the left during the halting cleanup.

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

                          The rewriting rule erasing a tape symbol on the right during the halting cleanup.

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

                            The rewriting rule simulating a left move at the encoded tape boundary.

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

                              The rewriting rule simulating a left move across an existing neighboring tape symbol.

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

                                The rewriting rule simulating a right move at the encoded tape boundary.

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

                                  The rewriting rule simulating a right move across an existing neighboring tape symbol.

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

                                    A machine with finitely many states produces a finite Thue system. The proof bounds the actual rules by seven finite families, without requiring the transition function itself to carry any computability data.

                                    theorem Undecidability.PostMachine.rule_step {Q : Type u_1} {M : Machine Q} {x y : List (Symbol Q)} (hxy : Rule M x y) (l r : List (Symbol Q)) :
                                    ThueStep (system M) (l ++ x ++ r) (l ++ y ++ r)
                                    theorem Undecidability.PostMachine.simulation_step {Q : Type u_1} {M : Machine Q} {c d : Config Q} (hcd : step M c = some d) :

                                    Every nonhalting machine step is one application of a Post rule.

                                    theorem Undecidability.PostMachine.simulation_halt {Q : Type u_1} {M : Machine Q} {c : Config Q} (hc : step M c = none) :

                                    Once the machine halts, deletion rules remove both finite tape fragments and the final rule produces the fixed target.

                                    The Boolean predicate recognizing control-state letters in the encoded alphabet.

                                    Equations
                                    Instances For

                                      The number of control-state letters in an encoded word.

                                      Equations
                                      Instances For

                                        The boundary-marker sequence extracted from an encoded word.

                                        Equations
                                        Instances For
                                          theorem Undecidability.PostMachine.classify_step {Q : Type u_1} {M : Machine Q} {c d : Config Q} (hstep : step M c = some d) {w : List (Symbol Q)} (hrew : ThueStep (system M) (encode c) w) :
                                          w = encode d ∨ ∃ (p : Config Q), w = encode p ∧ step M p = some c

                                          Post's inverse-simulation invariant for one symmetric rewrite out of a live encoded configuration.

                                          The complete machine-to-fixed-target symmetric-Thue coding.

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

                                            A binary machine terminates exactly when its Post word is equivalent to the fixed word R L.