Documentation

LeanPool.ClassificationOfSurfaces.FiniteCyclicWordReduction

Marked finite cyclic word reduction #

This file completes the recursive reduction developed in FiniteCyclicWordReductionCore, carrying the marked normalization state through terminal block normalization and the connected-presentation result.

Invariants carried by every marked normalization state. Protected-name uniqueness is stated on name spines rather than dart-occurrence lists, so completed boundary carriers are counted once.

Instances For

    Surface multiplicities restrict to the erased residual word because separation rules out any residual name from all protected blocks.

    Forget an actionable feature's occurrence decomposition while retaining its extracted block.

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

      An actionable residual feature lifted to a marked word. Extracted blocks occupy whole token segments between the distinguished residual darts, so later rewrites can reorder or reverse those segments without splitting a protected block.

      Instances For

        Residual feature underlying a marked feature.

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

          Marked target: replace the distinguished residual darts by one atomic extracted block while performing the same segment reversal/reordering as the local Gallier--Xu rewrite.

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

            Lift an actionable feature of the erased residual word to the marked token word.

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

              The protected names after one marked extraction are precisely the newly extracted names together with the previously protected names.

              Expanding a separated marked feature gives the genuine feature on the full signed word. The separation invariant is exactly what rules out a selected residual edge from every protected block lying in an intervening token segment.

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

                An inverse pair which is adjacent at marked-token granularity. Unlike adjacency only after erasing protected blocks, this is immediately executable by the ordinary cancellation chain.

                Instances For

                  Expanding a token-adjacent pair gives an ordinary cancellable pair on the full word.

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

                    Separation of residual and protected names passes to the marked tail after deleting the displayed residual pair.

                    A cancellable pair of the erased residual word lifted to its exact marked-token interval. The intervening tokens have empty residual contribution but may contain protected blocks.

                    Instances For

                      Lift an ordinary cancellable pair of the erased residual word to marked-token data.

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

                        When no protected token intervenes, a lifted residual pair is directly cancellable.

                        Equations
                        Instances For

                          A residual inverse pair surrounding one extracted boundary singleton. Reclassifying the three-token succession as one completed boundary block closes the singleton into the canonical loop shape without changing the expanded cyclic presentation.

                          Instances For

                            Exact three-dart spelling of the closed boundary loop.

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

                              Marked target obtained by replacing the displayed succession with one atomic protected word.

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

                                The source expansion is a cyclic rotation of the exact boundary-closure target expansion.

                                Surface multiplicity forces the loop carrier to be absent from the remaining marked tail.

                                Closing a boundary singleton preserves separation of the remaining residual names from all protected loop and block names.

                                Closing a raw boundary singleton transfers its residual carrier into protected ownership without duplicating any protected name.

                                A raw boundary atom followed by a protected interval inside a residual inverse pair. One Dyck move rotates the raw atom behind that interval, exposing the next protected atom.

                                Instances For

                                  Exact marked target of moving the raw boundary atom to the end of its protected interval.

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

                                    The same residual pair surrounds the rotated protected interval at the exact marked target.

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

                                      A completed boundary-loop atom at the head of a protected residual-pair interval. One LoopGrouping move commutes this atom out of that interval.

                                      Instances For

                                        Exact marked target after commuting the completed boundary loop out of the residual pair.

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

                                          A completed crosscap at the head of a protected residual-pair interval. Commuting it through the pair exchanges the residual and completed carriers and shortens that protected interval.

                                          Instances For

                                            Exact marked target of contextual crosscap commuting.

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

                                              Contextual crosscap commuting preserves separation of residual and protected edge names.

                                              Crosscap commuting exchanges a protected carrier with a fresh residual carrier while preserving unique protected-name ownership.

                                              A completed handle at the head of a protected residual-pair interval.

                                              Instances For

                                                Exact marked target after moving the completed handle outside the residual pair.

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

                                                  Two adjacent extracted boundary singletons which form a P1-subdivided boundary segment.

                                                  Instances For
                                                    def LeanEval.Topology.ClassificationOfSurfaces.FiniteCyclicPresentation.WordReduction.Pairing.MarkedBoundaryPairContraction.ofRotatedOfProtectedNodup {n : } {tokens : List (ReductionToken (n + 1))} (first second : Fin (n + 1)) (firstNegative secondNegative : Bool) (tailTokens : List (ReductionToken (n + 1))) (rotated : tokens ~r [ReductionToken.extracted (ExtractedBlock.boundary first firstNegative), ReductionToken.extracted (ExtractedBlock.boundary second secondNegative)] ++ tailTokens) (separated : ReductionToken.IsSeparated tokens) (protectedNodup : (ReductionToken.protectedNames tokens).Nodup) :

                                                    Build a boundary contraction from a displayed adjacent pair. Separation rules the protected names out of the residual tail, while duplicate-freeness of protected names supplies distinctness and rules them out of every protected tail token.

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

                                                      Exact marked target after contracting the second boundary subdivision edge.

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

                                                        Expansion of the marked source is the adjacent-boundary contraction source spelling.

                                                        Boundary-subdivision contraction preserves separation of residual and protected names.

                                                        After commuting a completed boundary loop, the same residual pair surrounds exactly the strictly shorter protected interval.

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

                                                          After contextual crosscap commuting, the old crosscap carrier is the new residual carrier around exactly the strict tail of the protected interval.

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

                                                            After commuting a completed handle, the same residual pair surrounds exactly the strict tail of the protected interval.

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

                                                              Under the classified-state invariant, the interval crossed by a lifted residual cancellation is an exact finite list of typed protected atoms.

                                                              A raw boundary atom with a nonempty protected suffix exposes the Dyck transition which moves that raw atom behind the suffix.

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

                                                                Two raw boundary atoms at the head of a protected residual-pair interval expose an adjacent P1 contraction after one cyclic token rotation.

                                                                Equations
                                                                • One or more equations did not get rendered due to their size.
                                                                Instances For
                                                                  noncomputable def LeanEval.Topology.ClassificationOfSurfaces.FiniteCyclicPresentation.WordReduction.Pairing.MarkedResidualCancellablePair.boundaryContractionTargetPair {n : } {tokens : List (ReductionToken (n + 1))} (pair : MarkedResidualCancellablePair tokens) (first second : Fin (n + 1)) (firstNegative secondNegative : Bool) (insideTokens : List (ReductionToken (n + 1))) (hbetween : pair.betweenTokens = [ReductionToken.extracted (ExtractedBlock.boundary first firstNegative), ReductionToken.extracted (ExtractedBlock.boundary second secondNegative)] ++ insideTokens) (separated : ReductionToken.IsSeparated tokens) (protectedNodup : (ReductionToken.protectedNames tokens).Nodup) :
                                                                  MarkedResidualCancellablePair (pair.toBoundaryPairContraction first second firstNegative secondNegative insideTokens hbetween separated protectedNodup).targetTokens

                                                                  After contracting the first two raw boundary atoms, the same residual inverse pair surrounds their merged singleton followed by the strict tail of the old protected interval.

                                                                  Equations
                                                                  • One or more equations did not get rendered due to their size.
                                                                  Instances For
                                                                    theorem LeanEval.Topology.ClassificationOfSurfaces.FiniteCyclicPresentation.WordReduction.Pairing.MarkedResidualCancellablePair.boundaryContractionTargetPair_between_length_lt {n : } {tokens : List (ReductionToken (n + 1))} (pair : MarkedResidualCancellablePair tokens) (first second : Fin (n + 1)) (firstNegative secondNegative : Bool) (insideTokens : List (ReductionToken (n + 1))) (hbetween : pair.betweenTokens = [ReductionToken.extracted (ExtractedBlock.boundary first firstNegative), ReductionToken.extracted (ExtractedBlock.boundary second secondNegative)] ++ insideTokens) (separated : ReductionToken.IsSeparated tokens) (protectedNodup : (ReductionToken.protectedNames tokens).Nodup) :
                                                                    (pair.boundaryContractionTargetPair first second firstNegative secondNegative insideTokens hbetween separated protectedNodup).betweenTokens.length < pair.betweenTokens.length

                                                                    A boundary contraction removes one protected atom from the selected residual-pair interval.

                                                                    A lifted residual pair surrounding exactly one boundary singleton is a boundary closure.

                                                                    Equations
                                                                    • One or more equations did not get rendered due to their size.
                                                                    Instances For
                                                                      def LeanEval.Topology.ClassificationOfSurfaces.FiniteCyclicPresentation.WordReduction.Pairing.MarkedResidualCancellablePair.toBoundaryBlockCommute {n : } {tokens : List (ReductionToken (n + 1))} (pair : MarkedResidualCancellablePair tokens) (carrier hole : Fin (n + 1)) (carrierNegative holeNegative : Bool) (insideTokens : List (ReductionToken (n + 1))) (hbetween : pair.betweenTokens = ReductionToken.completed (CompletedBlock.boundary carrier hole carrierNegative holeNegative) :: insideTokens) (hcarrierHole : carrier hole) (hcarrierOuter : carrier pair.edge) (hcarrierInside : carrierList.map edgeOfDart (ReductionToken.expand insideTokens)) (hcarrierOutside : carrierList.map edgeOfDart (ReductionToken.expand pair.tailTokens)) :

                                                                      A lifted residual pair whose protected interval begins with a completed boundary loop exposes the exact boundary-block commute transition.

                                                                      Equations
                                                                      • One or more equations did not get rendered due to their size.
                                                                      Instances For
                                                                        noncomputable def LeanEval.Topology.ClassificationOfSurfaces.FiniteCyclicPresentation.WordReduction.Pairing.MarkedResidualCancellablePair.toBoundaryBlockCommuteOfValid {n : } {tokens : List (ReductionToken (n + 1))} (pair : MarkedResidualCancellablePair tokens) (carrier hole : Fin (n + 1)) (carrierNegative holeNegative : Bool) (insideTokens : List (ReductionToken (n + 1))) (hbetween : pair.betweenTokens = ReductionToken.completed (CompletedBlock.boundary carrier hole carrierNegative holeNegative) :: insideTokens) (valid : (Dyck.oneFace (ReductionToken.expand tokens)).IsSurfaceValid) :

                                                                        Surface multiplicity supplies all freshness conditions needed to commute a completed boundary-loop atom at the head of a lifted residual-pair interval.

                                                                        Equations
                                                                        • One or more equations did not get rendered due to their size.
                                                                        Instances For
                                                                          def LeanEval.Topology.ClassificationOfSurfaces.FiniteCyclicPresentation.WordReduction.Pairing.MarkedResidualCancellablePair.toCrosscapBlockCommute {n : } {tokens : List (ReductionToken (n + 1))} (pair : MarkedResidualCancellablePair tokens) (carrier : Fin (n + 1)) (carrierNegative : Bool) (insideTokens : List (ReductionToken (n + 1))) (hbetween : pair.betweenTokens = ReductionToken.completed (CompletedBlock.crosscap carrier carrierNegative) :: insideTokens) (hcarrierOuter : carrier pair.edge) (hcarrierInside : carrierList.map edgeOfDart (ReductionToken.expand insideTokens)) (hcarrierOutside : carrierList.map edgeOfDart (ReductionToken.expand pair.tailTokens)) (houterInside : pair.edgeList.map edgeOfDart (ReductionToken.expand insideTokens)) (houterOutside : pair.edgeList.map edgeOfDart (ReductionToken.expand pair.tailTokens)) :

                                                                          A lifted residual pair whose protected interval begins with a completed crosscap exposes the exact contextual crosscap transition.

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

                                                                            Surface multiplicity supplies every freshness condition needed for a contextual crosscap transition at the head of a lifted residual-pair interval.

                                                                            Equations
                                                                            Instances For
                                                                              def LeanEval.Topology.ClassificationOfSurfaces.FiniteCyclicPresentation.WordReduction.Pairing.MarkedResidualCancellablePair.toHandleBlockCommute {n : } {tokens : List (ReductionToken (n + 1))} (pair : MarkedResidualCancellablePair tokens) (first second : Fin (n + 1)) (insideTokens : List (ReductionToken (n + 1))) (hbetween : pair.betweenTokens = ReductionToken.completed (CompletedBlock.handle first second) :: insideTokens) (hfirstSecond : first second) (hfirstOuter : first pair.edge) (hsecondOuter : second pair.edge) (hfirstInside : firstList.map edgeOfDart (ReductionToken.expand insideTokens)) (hfirstOutside : firstList.map edgeOfDart (ReductionToken.expand pair.tailTokens)) (hsecondInside : secondList.map edgeOfDart (ReductionToken.expand insideTokens)) (hsecondOutside : secondList.map edgeOfDart (ReductionToken.expand pair.tailTokens)) (houterInside : pair.edgeList.map edgeOfDart (ReductionToken.expand insideTokens)) (houterOutside : pair.edgeList.map edgeOfDart (ReductionToken.expand pair.tailTokens)) :

                                                                              A lifted residual pair whose protected interval begins with a completed handle exposes the exact contextual handle transition.

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

                                                                                Surface multiplicity supplies every distinction and freshness condition needed for a contextual handle transition.

                                                                                Equations
                                                                                Instances For

                                                                                  Exhaustive local disposition of a lifted residual inverse pair. The first two constructors are already executable. The final constructor isolates the remaining contextual move: commuting a nontrivial protected interval out of the inverse pair before cancellation.

                                                                                  Instances For

                                                                                    Classify every lifted residual pair into the two completed executable cases or the exact remaining contextual case.

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

                                                                                      Classified-state refinement of Disposition: every genuinely contextual interval exposes its first typed protected atom and the exact remaining atom list.

                                                                                      Instances For

                                                                                        Exhaustively expose the typed protected interval of a lifted residual pair. A singleton raw boundary atom is kept as the dedicated executable boundary-closure case.

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

                                                                                          A complete proof-relevant decomposition trace. Each step extracts one certified block, then pair-reduces the strictly shorter residual before continuing.

                                                                                          Instances For

                                                                                            The normal-form parameters selected by a complete block decomposition. In the presence of any crosscap, each handle contributes two additional crosscaps via Gallier--Xu Step 5.

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

                                                                                              Every extracted block belongs to exactly one of the three block classes.

                                                                                              A decomposition of a nonempty word extracts at least one block.

                                                                                              Every edge recorded by a decomposition occurs in that decomposition's source word.

                                                                                              One descent step from a directed opposite arc: either an immediately extractable feature, or a strictly shorter opposite arc nested inside it.

                                                                                              Instances For

                                                                                                Inspect the first dart of a nonempty opposite arc. A boundary or equal-orientation edge is immediately actionable. An opposite edge either crosses the selected pair, yielding a handle, or closes inside it, yielding a strictly shorter directed arc.

                                                                                                Surface-valid words supply the residual multiplicity hypothesis required by one opposite-arc descent step.

                                                                                                @[irreducible]

                                                                                                Well-founded descent through nested opposite pairs terminates at a boundary, crosscap, or interleaved handle feature.

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

                                                                                                  Validity-specialized spelling of the residual opposite-arc descent.

                                                                                                  Equations
                                                                                                  Instances For

                                                                                                    In a pair-reduced word, the two darts of an opposite form have a nonempty intervening word.

                                                                                                    Proof-producing extraction of the easy pairing features #

                                                                                                    The displayed cyclic word carried by an interleaved-pair certificate.

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

                                                                                                      The adjacent handle block produced by the three-Dyck extraction chain.

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

                                                                                                        When b is encountered negative inside the a-pair, reverse that edge to obtain the positive-first source spelling required by handle extraction.

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

                                                                                                          A certified interleaved pair produces an adjacent handle block through the existing three-Dyck normalization chain. If the inner occurrence of b is negative, the chain begins by reversing the orientation assigned to b.

                                                                                                          Displaying a certified boundary occurrence at the head is already a normalization equivalence: it is only a cyclic change of the distinguished face word.

                                                                                                          The grouped spelling produced from a certified crosscap occurrence. The segment after the second occurrence is reversed, exactly as in the Gallier--Xu crosscap rewrite.

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

                                                                                                            A certified equally oriented pair can be moved to an adjacent crosscap block by an exact normalization chain. Both signs are supported; the grouped block retains the input sign.

                                                                                                            Each local extraction target is definitionally its extracted block followed by the residual word used by the global recursion.

                                                                                                            A proof-producing result of acting on one certified pairing feature. The constructor records the exact extracted spelling, its transported validity, and the normalization chain from the original word.

                                                                                                            Instances For

                                                                                                              Feature whose local normalization chain was executed.

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

                                                                                                                Valid presentation reached by one actionable extraction.

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

                                                                                                                  Normalization equivalence certified by one actionable extraction.

                                                                                                                  Normalization equivalence to the stable exact block-plus-residual spelling.

                                                                                                                  Execute an actionable pairing feature using the corresponding proof-producing rewrite endpoint.

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

                                                                                                                    Proof-producing execution of an extraction on a marked word, with the exact marked target retained as its public endpoint.

                                                                                                                    Instances For

                                                                                                                      Execute a marked feature by expanding it, applying the corresponding Gallier--Xu move, and transporting the result back to the exact marked target spelling.

                                                                                                                      Proof-producing cancellation of a token-adjacent inverse pair, retaining the lowered marked target rather than flattening previously extracted blocks.

                                                                                                                      Instances For

                                                                                                                        Execute an inverse pair which is genuinely adjacent in the marked word. The nonempty-tail hypothesis selects the ordinary cancellation endpoint; the empty-tail sphere endpoint remains handled by the outer cancellation recursion.

                                                                                                                        Proof-producing reclassification of a residual inverse pair and boundary singleton as one atomic protected loop.

                                                                                                                        Instances For

                                                                                                                          Close an extracted boundary singleton into an atomic loop. The underlying signed word changes only by cyclic rotation, while the residual measure drops by the two carrier darts.

                                                                                                                          Proof-producing Dyck rotation of a raw boundary atom behind a protected interval.

                                                                                                                          Instances For

                                                                                                                            Execute the raw-boundary rotation through the exact signed Dyck chain.

                                                                                                                            Proof-producing commute of one completed boundary loop out of a contextual residual pair.

                                                                                                                            Instances For

                                                                                                                              Execute the contextual boundary-loop commute through the exact word-level LoopGrouping chain, supporting either orientation of the loop carrier.

                                                                                                                              Proof-producing commute of one completed crosscap through a contextual residual pair.

                                                                                                                              Instances For

                                                                                                                                Execute contextual crosscap commuting through the exact two-crosscap word chain.

                                                                                                                                Proof-producing commute of one completed handle through a contextual residual pair.

                                                                                                                                Instances For

                                                                                                                                  Execute contextual handle commuting through the exact four-Dyck word chain.

                                                                                                                                  Proof-producing contraction of two adjacent extracted boundary subdivisions.

                                                                                                                                  Instances For

                                                                                                                                    Execute one adjacent-boundary P1 contraction, lowering the ambient edge type by one.

                                                                                                                                    One certified transition which strictly shortens the protected interval of a lifted residual pair while preserving the total number of residual darts.

                                                                                                                                    Instances For
                                                                                                                                      def LeanEval.Topology.ClassificationOfSurfaces.FiniteCyclicPresentation.WordReduction.Pairing.MarkedResidualPairShortening.prepend {n m : } {tokens : List (ReductionToken n)} (pair : MarkedResidualCancellablePair tokens) (state : MarkedExecutionState tokens) {middleTokens : List (ReductionToken m)} (middlePair : MarkedResidualCancellablePair middleTokens) (middleState : MarkedExecutionState middleTokens) (stepEquivalent : NormalizationEquivalent { presentation := Dyck.oneFace (ReductionToken.expand tokens), valid := } { presentation := Dyck.oneFace (ReductionToken.expand middleTokens), valid := }) (residualLengthEq : (ReductionToken.residualDarts middleTokens).length = (ReductionToken.residualDarts tokens).length) (betweenLengthEq : middlePair.betweenTokens.length = pair.betweenTokens.length) (rawBoundaryCountTailEq : ReductionToken.rawBoundaryCount middlePair.tailTokens = ReductionToken.rawBoundaryCount pair.tailTokens) (tail : MarkedResidualPairShortening middlePair middleState) :

                                                                                                                                      Prepend a residual- and interval-length-preserving marked transition to a strict shortening.

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

                                                                                                                                        One certified transition which preserves both residual length and protected-interval length.

                                                                                                                                        Instances For

                                                                                                                                          Move a leading raw boundary atom behind a nonempty protected suffix without changing either the residual or protected-interval measure.

                                                                                                                                          Equations
                                                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                                                          Instances For
                                                                                                                                            @[simp]
                                                                                                                                            theorem LeanEval.Topology.ClassificationOfSurfaces.FiniteCyclicPresentation.WordReduction.Pairing.MarkedResidualCancellablePair.rotateBoundaryAtom_targetPair_betweenTokens {n : } {tokens : List (ReductionToken n)} (pair : MarkedResidualCancellablePair tokens) (state : MarkedExecutionState tokens) (protectedNonempty : ReductionToken.protectedNames tokens []) (hole : Fin n) (holeNegative : Bool) (insideTokens : List (ReductionToken n)) (hbetween : pair.betweenTokens = ReductionToken.extracted (ExtractedBlock.boundary hole holeNegative) :: insideTokens) :
                                                                                                                                            (pair.rotateBoundaryAtom state protectedNonempty hole holeNegative insideTokens hbetween).targetPair.betweenTokens = insideTokens ++ [ReductionToken.extracted (ExtractedBlock.boundary hole holeNegative)]
                                                                                                                                            noncomputable def LeanEval.Topology.ClassificationOfSurfaces.FiniteCyclicPresentation.WordReduction.Pairing.MarkedResidualCancellablePair.shortenBoundaryBlock {n : } {tokens : List (ReductionToken (n + 1))} (pair : MarkedResidualCancellablePair tokens) (state : MarkedExecutionState tokens) (protectedNonempty : ReductionToken.protectedNames tokens []) (carrier hole : Fin (n + 1)) (carrierNegative holeNegative : Bool) (insideTokens : List (ReductionToken (n + 1))) (hbetween : pair.betweenTokens = ReductionToken.completed (CompletedBlock.boundary carrier hole carrierNegative holeNegative) :: insideTokens) :

                                                                                                                                            Commute a completed boundary loop out of a lifted pair, producing a strict interval shortening.

                                                                                                                                            Equations
                                                                                                                                            • One or more equations did not get rendered due to their size.
                                                                                                                                            Instances For
                                                                                                                                              noncomputable def LeanEval.Topology.ClassificationOfSurfaces.FiniteCyclicPresentation.WordReduction.Pairing.MarkedResidualCancellablePair.shortenCrosscapBlock {n : } {tokens : List (ReductionToken (n + 1))} (pair : MarkedResidualCancellablePair tokens) (state : MarkedExecutionState tokens) (carrier : Fin (n + 1)) (carrierNegative : Bool) (insideTokens : List (ReductionToken (n + 1))) (hbetween : pair.betweenTokens = ReductionToken.completed (CompletedBlock.crosscap carrier carrierNegative) :: insideTokens) :

                                                                                                                                              Commute a completed crosscap out of a lifted pair, producing a strict interval shortening.

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

                                                                                                                                                Commute a completed handle out of a lifted pair, producing a strict interval shortening.

                                                                                                                                                Equations
                                                                                                                                                • One or more equations did not get rendered due to their size.
                                                                                                                                                Instances For
                                                                                                                                                  noncomputable def LeanEval.Topology.ClassificationOfSurfaces.FiniteCyclicPresentation.WordReduction.Pairing.MarkedResidualCancellablePair.shortenBoundaryPair {n : } {tokens : List (ReductionToken (n + 1))} (pair : MarkedResidualCancellablePair tokens) (state : MarkedExecutionState tokens) (first second : Fin (n + 1)) (firstNegative secondNegative : Bool) (insideTokens : List (ReductionToken (n + 1))) (hbetween : pair.betweenTokens = [ReductionToken.extracted (ExtractedBlock.boundary first firstNegative), ReductionToken.extracted (ExtractedBlock.boundary second secondNegative)] ++ insideTokens) :

                                                                                                                                                  Contract two adjacent raw boundary atoms, producing a strict interval shortening in the lowered ambient edge type.

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

                                                                                                                                                    Certified elimination of one lifted residual inverse pair. The target may have a smaller ambient edge type after P1 cancellation or boundary contraction, but always has strictly fewer residual darts and retains at least one protected name.

                                                                                                                                                    Instances For
                                                                                                                                                      def LeanEval.Topology.ClassificationOfSurfaces.FiniteCyclicPresentation.WordReduction.Pairing.MarkedResidualPairResolution.prepend {n m : } {tokens : List (ReductionToken n)} (pair : MarkedResidualCancellablePair tokens) (state : MarkedExecutionState tokens) {middleTokens : List (ReductionToken m)} (middlePair : MarkedResidualCancellablePair middleTokens) (middleState : MarkedExecutionState middleTokens) (stepEquivalent : NormalizationEquivalent { presentation := Dyck.oneFace (ReductionToken.expand tokens), valid := } { presentation := Dyck.oneFace (ReductionToken.expand middleTokens), valid := }) (residualLengthEq : (ReductionToken.residualDarts middleTokens).length = (ReductionToken.residualDarts tokens).length) (rawBoundaryCountTailEq : ReductionToken.rawBoundaryCount middlePair.tailTokens = ReductionToken.rawBoundaryCount pair.tailTokens) (tail : MarkedResidualPairResolution middlePair middleState) :

                                                                                                                                                      Prepend a residual-length-preserving marked transition to a completed pair resolution.

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

                                                                                                                                                        Eliminate an adjacent lifted pair by ordinary cancellation. A protected-name witness rules out the exceptional empty-tail sphere endpoint.

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

                                                                                                                                                          Eliminate a lifted pair surrounding one raw boundary atom by reclassifying the three displayed tokens as one completed boundary loop.

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

                                                                                                                                                            Resolve one lifted residual inverse pair. The fuel measures the protected interval: every contextual step strictly shortens it, while the terminal cases eliminate the residual pair.

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

                                                                                                                                                              Eliminate one lifted residual inverse pair by the terminating protected-interval resolver.

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

                                                                                                                                                                Certified marked endpoint after all cancellable pairs have been removed from the erased residual word. Already protected names remain present, even when cancellations lower the ambient edge type.

                                                                                                                                                                Instances For
                                                                                                                                                                  @[irreducible]

                                                                                                                                                                  Fuel-bounded execution of residual inverse-pair reduction inside a classified marked word. Each resolved pair strictly decreases the erased residual length.

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

                                                                                                                                                                    Execute all residual inverse-pair cancellations in a marked state which already owns at least one protected name.

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

                                                                                                                                                                      The local feature exposed at a selected edge of a pair-reduced valid word.

                                                                                                                                                                      Instances For

                                                                                                                                                                        Every pair-reduced valid word with at least one edge exposes either a boundary dart, an equally oriented crosscap pair, or a nondegenerate opposite pair.

                                                                                                                                                                        Every nonempty pair-reduced valid word exposes a feature with a complete local normalization chain: a boundary edge, a crosscap pair, or an interleaved pair ready for handle extraction.

                                                                                                                                                                        Residual form of actionable-feature existence. It needs only a nonempty residual word, surface multiplicities for names still used there, and pair reduction; already-grouped ambient edge names may be absent.

                                                                                                                                                                        @[irreducible]

                                                                                                                                                                        Fuel-bounded decomposition of a pair-reduced residual word into boundary, crosscap, and handle blocks. Pair cancellation after each extraction restores the induction hypothesis.

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

                                                                                                                                                                          Every pair-reduced residual word with valid used-edge multiplicities admits a terminating block decomposition.

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

                                                                                                                                                                            Surface-valid pair-reduced one-face words admit the residual block decomposition needed by the global Gallier--Xu normalization recursion.

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

                                                                                                                                                                              Normal-form parameters computed from the certified decomposition of a pair-reduced valid one-face word.

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

                                                                                                                                                                                The normal-form parameters selected from a pair-reduced valid word satisfy the exact Lean-Eval admissibility predicate.

                                                                                                                                                                                Find and execute one certified normalization step on any nonempty pair-reduced valid word.

                                                                                                                                                                                Equations
                                                                                                                                                                                Instances For

                                                                                                                                                                                  Certified endpoint of the marked extraction recursion: no residual darts remain, every token is classified, and at least one protected name survives.

                                                                                                                                                                                  Instances For
                                                                                                                                                                                    @[irreducible]

                                                                                                                                                                                    Fuel-bounded marked Gallier--Xu extraction after at least one protected block has been created. Every extraction strictly shortens the residual word, and the intervening marked pair reducer restores pair reduction before the recursive call.

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

                                                                                                                                                                                      Finish marked extraction from a pair-reduced state which already owns a protected name.

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

                                                                                                                                                                                        Execute the complete marked extraction recursion from an arbitrary pair-reduced valid one-face word. The first extraction establishes protected-name ownership; subsequent calls use finishExtractions.

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

                                                                                                                                                                                          Exact atom-level endpoint of the marked recursion. Its name spine is duplicate-free, its word is surface-valid, and at least one protected atom remains.

                                                                                                                                                                                          Instances For

                                                                                                                                                                                            Validity-bundled finite-cyclic presentation displayed by a terminal atom word.

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

                                                                                                                                                                                              Marked target of the boundary envelope: the fresh opposite carrier pair surrounds all retained terminal atoms.

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

                                                                                                                                                                                                The fresh boundary-envelope carrier as an actionable marked residual pair.

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

                                                                                                                                                                                                  Execute the existing protected-interval resolver on the fresh boundary envelope.

                                                                                                                                                                                                  Equations
                                                                                                                                                                                                  Instances For

                                                                                                                                                                                                    Boundary enveloping followed by the existing marked resolver preserves the realization of the original terminal protected word.

                                                                                                                                                                                                    Finish the fresh-carrier resolution at a certified residual-empty marked endpoint.

                                                                                                                                                                                                    Equations
                                                                                                                                                                                                    Instances For

                                                                                                                                                                                                      Forget the marked-token implementation of a residual-empty state and retain its exact terminal protected-atom word.

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

                                                                                                                                                                                                        Exact block-level endpoint after every raw boundary singleton has been completed.

                                                                                                                                                                                                        Instances For

                                                                                                                                                                                                          Validity-bundled finite-cyclic presentation displayed by a terminal completed-block word.

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

                                                                                                                                                                                                            Atom-level terminal word returned by the fully executed fresh boundary envelope.

                                                                                                                                                                                                            Equations
                                                                                                                                                                                                            Instances For

                                                                                                                                                                                                              Extract the unique completed-block sequence from a raw-free terminal atom word.

                                                                                                                                                                                                              Equations
                                                                                                                                                                                                              Instances For

                                                                                                                                                                                                                Completed-block endpoint selected by the fully executed boundary normalization.

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

                                                                                                                                                                                                                  Exact normal form selected after constructive raw-boundary completion.

                                                                                                                                                                                                                  Equations
                                                                                                                                                                                                                  Instances For

                                                                                                                                                                                                                    The isolated terminal obligation after the terminating marked recursion: normalize a valid, classified marked word whose residual contribution is empty.

                                                                                                                                                                                                                    Instances For

                                                                                                                                                                                                                      Narrow completed-block obligation: order and orient a valid, nonempty, duplicate-free block sequence and perform the nonorientable handle conversion.

                                                                                                                                                                                                                      Instances For

                                                                                                                                                                                                                        Narrow terminal obligation at the proof's stable seam: normalize a duplicate-free nonempty sequence of protected atoms to the exact canonical presentation selected after boundary completion.

                                                                                                                                                                                                                        Instances For

                                                                                                                                                                                                                          Package a protected-word terminal equivalence as the standard exact normalization result.

                                                                                                                                                                                                                          Equations
                                                                                                                                                                                                                          Instances For

                                                                                                                                                                                                                            A protected-word normalizer discharges the token-level terminal interface used by the marked extraction recursion.

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

                                                                                                                                                                                                                              A terminal block normalizer supplies the remaining PairReducedNormalizer field after the now-complete marked extraction recursion.

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

                                                                                                                                                                                                                                The universal connected normalization theorem is reduced to the explicit terminal block normalizer, with face merging, initial cancellation, marked extraction, and canonical-result composition already discharged.

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