Named native encoded-word equality #
This module retains the direct one-work-tape zip machine used to compare two encoded words. The first framed word is copied to a work tape; the two words are then scanned in lockstep, including the distinction between a missing symbol and either Boolean symbol. The tidy wrapper and its cleanup are part of the retained machine and of the exact resource formulas.
wordEqBool emits encBool. Branching clients use wordEqTest, which explicitly composes the
charged boolToTest conversion instead of treating [false] as the empty false-test word.
Main definitions #
Turing.MultiTapeTM.Internal.NativeCompiler.ofZipTransducer: retain a direct zip transducer.Turing.MultiTapeTM.Internal.NativeCompiler.wordEqBool: equality with one-bit output.Turing.MultiTapeTM.Internal.NativeCompiler.wordEqTest: equality with empty/nonempty test output.
The constructor view of zip-machine states is injective.
Constructive encoding of the direct zip-machine control states.
Retain a zip transducer through the direct machine and the existing tidy normal form. The clock and workspace expose the kernel bound and every cleanup term.
Compare two words, remembering whether their lengths and every symbol agree.
Equality of two values under a shared injective encoding, with one-bit Boolean output.
Equality in the empty/nonempty branch-test encoding, with the conversion explicitly retained.