<?xml version='1.0' encoding='utf-8'?>
<?xml-stylesheet type="text/xsl" href="/sheet.xsl"?><rss version="2.0"><channel><title>Go deh!</title><description>Mainly Tech projects on Python and Electronic Design Automation.</description><item><title>Sparse Ranges</title><link>http://paddy3118.blogspot.com/feeds/4876301501222443352/comments/default</link><ns0:encoded xmlns:ns0="http://purl.org/rss/1.0/modules/content/">&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div _ngcontent-ng-c3428423599="" aria-busy="false" aria-live="polite" class="markdown markdown-main-panel enable-luminous-fast-follows enable-updated-hr-color tutor-markdown-rendering" dir="ltr" id="model-response-message-contentr_62ca493757305bf2" style="--animation-duration: 400ms; --fade-animation-function: ease-out; font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;h3 data-path-to-node="2" style="font-family: Google Sans, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;Implementing &lt;code data-index-in-node="13" data-path-to-node="2" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;sparse_range&lt;/code&gt;: From a Python Discuss Idea to a Sieve Stress Test&lt;/h3&gt;&lt;p data-path-to-node="3" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;I found an interesting thread over on the Python Discuss forum titled &lt;i data-index-in-node="75" data-path-to-node="3" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;"&lt;a href="https://discuss.python.org/t/possibility-to-exclude-ranges-from-range/107885" rel="nofollow" target="_blank"&gt;Possibility to exclude ranges from range&lt;/a&gt;"&lt;/i&gt;. The initial discussion revolved around a common (?), developer need of : how to cleanly skip specific blocks of ints in a range of ints without writing clunky, nested &lt;code data-index-in-node="285" data-path-to-node="3" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;if/continue&lt;/code&gt; logic, and without doing something memory-heavy like casting everything into a massive &lt;code data-index-in-node="384" data-path-to-node="3" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;set&lt;/code&gt;.&lt;/p&gt;&lt;p data-path-to-node="4" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;The consensus was that Python's native &lt;code data-index-in-node="39" data-path-to-node="4" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;range&lt;/code&gt; is beautiful because it’s a lightweight, memory-efficient arithmetic engine. It doesn't store numbers in RAM; it just calculates them on the fly. But the moment you need to punch holes in it—say, "give me all numbers from 1 to 1000, &lt;i data-index-in-node="278" data-path-to-node="4" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;except&lt;/i&gt; for multiples of 5, and &lt;i data-index-in-node="309" data-path-to-node="4" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;except&lt;/i&gt; for the block from 200 to 300"—you lose that structural elegance.&lt;/p&gt;&lt;p data-path-to-node="5" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;This &lt;a href="https://discuss.python.org/t/possibility-to-exclude-ranges-from-range/107885/46" rel="nofollow" target="_blank"&gt;inspired me&lt;/a&gt; to build a clean, production-grade abstraction to solve this kind of thng: &lt;code data-index-in-node="77" data-path-to-node="5" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;b&gt;&lt;i&gt;sparse_range&lt;/i&gt;&lt;/b&gt;&lt;/code&gt;.&lt;/p&gt;&lt;h4 data-path-to-node="6" style="font-family: Google Sans, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;The Architectural Concept&lt;/h4&gt;&lt;p data-path-to-node="7" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;The core idea began with a simple mathematical definition: a Sparse range instance is created by a set of (python) ranges &lt;b&gt;&lt;i&gt;S_in&lt;/i&gt;&lt;/b&gt; that hold possible output values and a set of ranges &lt;b&gt;&lt;i&gt;S_ex&lt;/i&gt;&lt;/b&gt; that exclude possible output values. A Sparse_range &lt;i&gt;instance &lt;/i&gt;can be called with a start, stop, and step argument that generate trial output candidates that are checked against S_in and S_ex to see if they are allowed/filtered. An item is eligible for the final output if its value is present in at least one of our permitted baseline ranges &lt;span class="math-inline" data-index-in-node="174" data-math="S_{in}" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;S_in&lt;/span&gt;, &lt;b data-index-in-node="183" data-path-to-node="7" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;unless&lt;/b&gt; that value happens to be intercepted by one of our forbidden exclusion ranges &lt;span class="math-inline" data-index-in-node="269" data-math="S_{ex}" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;S_ex&lt;/span&gt;. On top of that structure, the outer &lt;code data-index-in-node="314" data-path-to-node="7" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;sparse_range&lt;/code&gt; wrapper behaves like a native Python range—it accepts its own outer &lt;code data-index-in-node="403" data-path-to-node="7" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;start&lt;/code&gt;, &lt;code data-index-in-node="410" data-path-to-node="7" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;stop&lt;/code&gt;, and &lt;code data-index-in-node="420" data-path-to-node="7" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;step&lt;/code&gt; constraints, matching the target window requested by the user.&lt;/p&gt;&lt;p data-path-to-node="8" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;To make the evaluation stateless and fast(?), the engine must evaluate values on the fly. However, native Python &lt;code data-index-in-node="111" data-path-to-node="8" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;range&lt;/code&gt; objects are immutable and opaque; they don't natively maintain operational iteration states, nor do they know how to coordinate with one another.&lt;/p&gt;&lt;p data-path-to-node="9" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;To bridge this gap, the engine internally upgrades every raw Python &lt;i&gt;&lt;b&gt;range &lt;/b&gt;&lt;/i&gt;passed to collections S_in and S_ex into custom &lt;b data-index-in-node="88" data-path-to-node="9" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;code data-index-in-node="88" data-path-to-node="9" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;RangePointers&lt;/code&gt;&lt;/b&gt;.&lt;/p&gt;&lt;div _ngcontent-ng-c2702060661="" class="code-block ng-tns-c2702060661-246 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwi4k8qG4aaVAxUAAAAAHQAAAAAQ_wQ" style="display: block; font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;div _ngcontent-ng-c2702060661="" class="formatted-code-block-internal-container ng-tns-c2702060661-246" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;div _ngcontent-ng-c2702060661="" class="animated-opacity ng-tns-c2702060661-246" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;div _ngcontent-ng-c2702060661="" class="code-block-decoration header-formatted gds-emphasized-body-m ng-tns-c2702060661-246 ng-star-inserted" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;span _ngcontent-ng-c2702060661="" class="ng-tns-c2702060661-246" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&amp;nbsp;&lt;/span&gt;&lt;div style="background-color: #121314; color: #bbbebf; font-family: Consolas, 'Courier New', monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;               +----------------------------------------+&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;Outer Loop: start, stop, step &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+----------------------------------------+&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ Evaluates current candidate value ]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+--------------------------------------------------+&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Is value in any S_in? AND NOT in any S_ex? &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+--------------------------------------------------+&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; (Using forward-aligned &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (Using backward-aligned&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RangePointers for step &amp;gt; 0) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RangePointers for step &amp;lt; 0)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div _ngcontent-ng-c2702060661="" class="buttons ng-tns-c2702060661-246 ng-star-inserted" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;button _ngcontent-ng-c442952589="" aria-label="Download code" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-badge mat-unthemed mat-badge-overlap mat-badge-above mat-badge-after mat-badge-small mat-badge-hidden ng-star-inserted" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;span class="mat-mdc-button-persistent-ripple mdc-icon-button__ripple" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;/span&gt;&lt;span class="mat-focus-indicator" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;/span&gt;&lt;span class="mat-mdc-button-touch-target" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;/span&gt;&lt;/button&gt;&lt;button _ngcontent-ng-c442952589="" aria-label="Copy code" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-badge mat-unthemed mat-badge-overlap mat-badge-above mat-badge-after mat-badge-small mat-badge-hidden ng-star-inserted" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;span class="mat-mdc-button-persistent-ripple mdc-icon-button__ripple" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;/span&gt;&lt;span class="mat-focus-indicator" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;/span&gt;&lt;span class="mat-mdc-button-touch-target" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;/span&gt;&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;pre _ngcontent-ng-c2702060661="" class="ng-tns-c2702060661-246" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;code _ngcontent-ng-c2702060661="" class="code-container formatted ng-tns-c2702060661-246" data-test-id="code-content" role="text" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h4 data-path-to-node="11" style="font-family: Google Sans, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;Why We Need &lt;code data-index-in-node="12" data-path-to-node="11" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;RangePointer&lt;/code&gt; and Direction Alignment&lt;/h4&gt;&lt;p data-path-to-node="12" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;When the outer loop steps through values, the internal component ranges must follow along. If the outer loop is counting &lt;i data-index-in-node="121" data-path-to-node="12" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;upwards&lt;/i&gt; (&lt;code data-index-in-node="130" data-path-to-node="12" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;step &amp;gt; 0&lt;/code&gt;), all internal evaluation cursors must track &lt;i data-index-in-node="184" data-path-to-node="12" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;upwards&lt;/i&gt;. If the outer loop reverses direction and counts &lt;i data-index-in-node="241" data-path-to-node="12" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;downwards&lt;/i&gt; (&lt;code data-index-in-node="252" data-path-to-node="12" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;step &amp;lt; 0&lt;/code&gt;), every single internal range must generate the same values, but in the reverse order, and without using up extra memory for storing values.&lt;/p&gt;&lt;p data-path-to-node="13" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;If they don't match directions, the leapfrogging logic breaks. A forward-running pointer cannot efficiently tell a backward-running outer loop where the next valid alignment boundary is without wasting CPU cycles scanning dead space or whatever.&lt;/p&gt;&lt;p data-path-to-node="14" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;Therefore, when a &lt;code data-index-in-node="18" data-path-to-node="14" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;sparse_range&lt;/code&gt;&amp;nbsp;instance is invoked, the engine inspects the outer &lt;code data-index-in-node="73" data-path-to-node="14" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;step&lt;/code&gt; direction and enforces a unified traversal direction across every single internal &lt;span class="math-inline" data-index-in-node="160" data-math="S_{in}" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;S_in&lt;/span&gt;&amp;nbsp;and &lt;span class="math-inline" data-index-in-node="171" data-math="S_{ex}" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;S_ex&lt;/span&gt;&amp;nbsp;sequence. If an internal range's native direction opposes the outer loop, it must be completely &lt;u&gt;&lt;i&gt;mathematically &lt;/i&gt;&lt;/u&gt;inverted.&lt;/p&gt;&lt;h4 data-path-to-node="15" style="font-family: Google Sans, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;The Range Reversal Formula&lt;/h4&gt;&lt;p data-path-to-node="16" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;Reversing an arithmetic progression isn't as simple as swapping the start and stop boundaries. Because Python ranges stop &lt;i data-index-in-node="122" data-path-to-node="16" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;before&lt;/i&gt; reaching the termination boundary, reversing a range requires recalculating its new alignment based on its exact step constraints.&lt;/p&gt;&lt;p data-path-to-node="17" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;To reverse a range mathematically, the engine computes:&lt;/p&gt;&lt;ol data-path-to-node="18" start="1" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important; padding-inline-start: 32px;"&gt;&lt;li style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;p data-path-to-node="18,0,0" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;b data-index-in-node="0" data-path-to-node="18,0,0" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;New Step:&lt;/b&gt; The step sign is flipped (&lt;code data-index-in-node="36" data-path-to-node="18,0,0" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;-step&lt;/code&gt;).&lt;/p&gt;&lt;/li&gt;&lt;li style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;p data-path-to-node="18,1,0" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;b data-index-in-node="0" data-path-to-node="18,1,0" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;New Start:&lt;/b&gt; The final valid item generated by the original range becomes the new starting point. This is computed using the remainder of the length of the sequence:&lt;/p&gt;&lt;div data-path-to-node="18,1,1" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;div class="math-block" data-math="\text{new\_start} = \text{start} + (\text{length} - 1) \times \text{step}" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;new_start = start + (length - 1) × step&lt;/div&gt;&lt;div class="math-block" data-math="\text{new\_start} = \text{start} + (\text{length} - 1) \times \text{step}" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;p data-path-to-node="18,2,0" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;b data-index-in-node="0" data-path-to-node="18,2,0" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;New Stop:&lt;/b&gt; The original &lt;code data-index-in-node="23" data-path-to-node="18,2,0" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;start&lt;/code&gt; boundary shifts out by one step inverted to act as the non-inclusive terminal wall:&lt;/p&gt;&lt;div data-path-to-node="18,2,1" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;div class="math-block" data-math="\text{new\_stop} = \text{start} - \text{step}" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;new_stop = start - step&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p data-path-to-node="19" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;By normalizing all &lt;code data-index-in-node="19" data-path-to-node="19" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;RangePointer&lt;/code&gt; instances to track in the exact same direction as the outer loop, the engine can efficiently step through candidate numbers, skipping blocks of excluded data in&amp;nbsp;O(1) or O(K) time (where K is the number of active ranges), keeping the memory footprint at absolute zero.&lt;/p&gt;&lt;h4 data-path-to-node="19" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important; text-align: left;"&gt;&lt;b&gt;The code&lt;/b&gt;&lt;/h4&gt;&lt;p data-path-to-node="19" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;sparse_range.py&lt;/p&gt;&lt;p data-path-to-node="19" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="background-color: #121314; color: #bbbebf; font-family: Consolas, 'Courier New', monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #8b949e;"&gt;#!/bin/env python3&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #8b949e;"&gt;# Author: Donald "Paddy" McCarthy. paddy3118@gmail.com&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #8b949e;"&gt;# 27/06/2026&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #8b949e;"&gt;#%%&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;sparse_range - Reusable Sparse Integer Generators&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;===================================================&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;This module provides a configured factory class `sparse_range`. You define your &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;global permitted (`s_in`) and forbidden (`s_ex`) integer lists once, and the &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;resulting object can be called repeatedly with customized window configurations &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;exactly like Python's built-in `range()` function.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;Usage&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;-----&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;from sparse_range import sparse_range&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;# Configure the template rules&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;my_filter = sparse_range(s_in=[range(0, 100, 2)], s_ex=[range(10, 20, 3)])&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;# Call it like the built-in range function&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;sequence = my_filter(0, 30, 3)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;list(sequence)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; [0, 6, 24]&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;Command Line Interface&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;----------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;Run this script directly to run differential limits tests or inspect help files:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; python sparse_range.py&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;import&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;sys&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;from&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;typing&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;import&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Optional&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Iterator&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Set&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Dict&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #8b949e;"&gt;# Explicitly define module exports&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c9d1d9;"&gt;__all__&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; [&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;'sparse_range'&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ff7b72;"&gt;class&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;RangePointer&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; Manages a single sub-range's mathematical cursor.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; Dynamically aligns itself relative to the iteration direction of the caller.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; """&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;def&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;__init__&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""Initializes structural constraints of a single tracking range cursor."""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;stop&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;length&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;len&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# Calculate the actual last element generated by this range&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;length&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;last&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Optional&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; (&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;length&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;last&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;def&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;align_to_or_past&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;direction&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Optional&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;]:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Leapfrogs the cursor instantly to the closest valid element &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; aligned with the runtime's traversal direction.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; """&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;length&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;or&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;last&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;is&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# 1. Check if the target is entirely out of bounds for this sub-range&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;low&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;high&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;min&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;last&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;), &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;max&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;last&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;low&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;direction&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;high&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;direction&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;last&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# 2. Project target onto the arithmetic sequence of this range&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;distance&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;k&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; (&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;distance&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;//&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;distance&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;distance&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;//&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;k&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;distance&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;//&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;distance&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; (&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;distance&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;//&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;candidate&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;k&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# 3. Sweep forward/backward based on global runtime direction&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;direction&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;while&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;candidate&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;candidate&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;low&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;candidate&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;high&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;candidate&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;while&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;candidate&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;candidate&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;low&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;candidate&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;high&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;candidate&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ff7b72;"&gt;class&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;SparseRangeIterable&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""The execution runner returned when a configured sparse_range is called."""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;def&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;__init__&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;], &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_ex&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;]) -&amp;gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""Prepares runtime matrices for specific window iterations."""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;raise&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;ValueError&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"sparse_range loop step argument must not be zero"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;start&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;stop&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;step&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;direction&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;in_ranges&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;RangePointer&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; [&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;RangePointer&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;len&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;ex_ranges&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;RangePointer&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; [&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;RangePointer&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_ex&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;len&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;def&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;__iter__&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Iterator&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;]:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""Iterates through matching sparse elements using double-pointer acceleration."""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;stop&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;dir_mask&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;direction&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;while&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; (&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;dir_mask&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;and&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;or&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; (&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;dir_mask&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;and&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# Align all input sub-ranges and collect their active values&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;active_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Dict&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;RangePointer&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; {}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;p&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;in_ranges&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;p&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;align_to_or_past&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;dir_mask&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;is&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;not&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;active_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;p&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;not&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;active_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;break&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# Align all exclusion sub-ranges&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;active_ex&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Dict&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;RangePointer&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; {}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;p&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;ex_ranges&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;p&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;align_to_or_past&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;dir_mask&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;is&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;not&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;active_ex&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;p&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# Dynamic Execution Strategy Optimization Lookup&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;is_included&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;False&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;len&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;active_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;len&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;active_ex&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;any&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;active_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;values&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;()):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;not&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;any&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;active_ex&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;values&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;()):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;is_included&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;True&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;not&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;any&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;active_ex&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;values&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;()):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;any&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;val&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;active_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;values&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;()):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;is_included&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;True&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;is_included&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;yield&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ff7b72;"&gt;class&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;sparse_range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; A factory pattern configuration setup that caches structural filter limits.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; Instances can be directly invoked exactly like the standard range() construct.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; """&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;def&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;__init__&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Optional&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;]] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_ex&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Optional&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;]] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""Instantiates the filtering template for subsequent executions."""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;_s_in_raw&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;or&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;_s_ex_raw&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_ex&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;or&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; []&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;def&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;__repr__&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;str&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""Returns structural serialization details for troubleshooting."""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;f&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"sparse_range(s_in=&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;_s_in_raw&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;, s_ex=&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;_s_ex_raw&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;)"&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;def&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;__call__&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Optional&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;SparseRangeIterable&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""Mimics the signature properties of Python's default range() function."""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;is&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;start&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;SparseRangeIterable&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;_s_in_raw&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;self&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;_s_ex_raw&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ff7b72;"&gt;def&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;_expensive_sparse_range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;], &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_ex&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;]) -&amp;gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;]:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""Reference high-memory execution harness to generate baseline validation benchmarks."""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;allowed&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;Set&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; (&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;or&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; []):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;allowed&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;update&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; (&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_ex&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;or&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; []):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;allowed&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;difference_update&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;r&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;start&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;direction&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;result&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;while&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; (&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;direction&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;and&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;or&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; (&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;direction&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;and&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;allowed&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;result&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;append&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;target&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;step&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;result&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ff7b72;"&gt;def&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;run_tests&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;() -&amp;gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""Runs structural verification configurations spanning cross-boundary constraints."""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"Running Factory Pattern Limits Verification Suite (-1000 to +1000)...&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# 1. Main dynamic test setup&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;filter_config&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;sparse_range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_in&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;500&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;500&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)],&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_ex&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;50&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;50&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;), &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;200&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;300&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;5&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; )&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;test_windows&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; [&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"Standard positive crawl"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, (&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;200&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"Negative direction crawl"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, (&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;400&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;400&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;5&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"Large step slice jump"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, (&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1000&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1000&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;25&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"Completely out of bounds window"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, (&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;600&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;900&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; ]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# 2. Explicit Empty Input Edge Case Verification Setup&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;empty_filter_config&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;sparse_range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_in&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;), &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;10&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;5&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)], &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_ex&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;100&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)])&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;test_windows&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;append&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;((&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"Empty S_in Edge Case"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, (&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;50&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;passed&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;name&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;args&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;test_windows&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;args&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# Check which config to evaluate against&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;cfg&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;empty_filter_config&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"Empty"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;name&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;filter_config&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;actual_output&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;cfg&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;expected_output&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;_expensive_sparse_range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;stop&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;cfg&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;_s_in_raw&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;cfg&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;_s_ex_raw&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;actual_output&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;expected_output&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;f&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"✅ PASS: &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;name&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;:&amp;lt;35}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt; -&amp;gt; args: (&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;start&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;, &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;stop&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;, &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;step&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;)"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;passed&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;f&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"❌ FAIL: &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;name&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;:&amp;lt;35}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;f&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;" &amp;nbsp; Expected: &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;expected_output&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;f&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;" &amp;nbsp; Got: &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;actual_output&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;f&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;Test Summary: &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;passed&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;/&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;len&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;test_windows&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt; passed successfully."&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;__name__&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"__main__"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;args&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;sys&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;argv&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;not&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;args&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;or&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"--test"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;args&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;run_tests&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;elif&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"--help"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;args&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;or&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"-h"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;args&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""sparse_range Factory Engine&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;---------------------------"""&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;elif&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"--doc"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;args&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;__doc__&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;.&lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;strip&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;())&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p data-path-to-node="19" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p data-path-to-node="19" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;b&gt;A run of included tests&lt;/b&gt;&lt;/p&gt;&lt;p data-path-to-node="19" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&amp;nbsp;Running Factory Pattern Limits Verification Suite (-1000 to +1000)...&lt;br /&gt;&lt;br /&gt;✅ PASS: Standard positive crawl&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;gt; args: (0, 200, 2)&lt;br /&gt;✅ PASS: Negative direction crawl&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; args: (400, -400, -5)&lt;br /&gt;✅ PASS: Large step slice jump&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;gt; args: (-1000, 1000, 25)&lt;br /&gt;✅ PASS: Completely out of bounds window&amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;gt; args: (600, 900, 1)&lt;br /&gt;✅ PASS: Empty S_in Edge Case&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; args: (0, 50, 1)&lt;br /&gt;&lt;br /&gt;Test Summary: 5/5 passed successfully.&lt;/p&gt;&lt;p data-path-to-node="19" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 data-path-to-node="20" style="font-family: Google Sans, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important; text-align: left;"&gt;The Ultimate Stress Test: A Declarative Sieve&lt;/h3&gt;&lt;p data-path-to-node="21" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;It's easy to write a basic range filter that skips a static block of numbers. But to prove that this &lt;code data-index-in-node="101" data-path-to-node="21" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;RangePointer&lt;/code&gt; inversion and alignment math is completely airtight across dozens of concurrent boundaries, I decided to implement a completely declarative &lt;b data-index-in-node="254" data-path-to-node="21" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;Sieve of Eratosthenes&lt;/b&gt;.&lt;/p&gt;&lt;p data-path-to-node="22" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;Instead of allocating a large mutable array of booleans in memory and procedurally striking out composites, we can use pure sequence logic:&lt;/p&gt;&lt;ol data-path-to-node="23" start="1" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important; padding-inline-start: 32px;"&gt;&lt;li style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;p data-path-to-node="23,0,0" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;b data-index-in-node="0" data-path-to-node="23,0,0" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;The Permitted Range &lt;span class="math-inline" data-index-in-node="21" data-math="S_{in}" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;S_in&lt;/span&gt;:&lt;/b&gt; Our baseline pool of candidate of ints starting at 2: &lt;code data-index-in-node="85" data-path-to-node="23,0,0" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;[range(2, limit + 1)]&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&lt;li style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;p data-path-to-node="23,1,0" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;b data-index-in-node="0" data-path-to-node="23,1,0" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;The Exclusion ranges&amp;nbsp;&lt;span class="math-inline" data-index-in-node="23" data-math="S_{ex}" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;S_ex&lt;/span&gt;:&lt;/b&gt; A list of independent arithmetic progression ranges tracking the composites for every factor &lt;b&gt;&lt;i&gt;&lt;span class="math-inline" data-index-in-node="119" data-math="m" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;m&lt;/span&gt;&amp;nbsp;&lt;/i&gt;&lt;/b&gt;up to&amp;nbsp;&lt;b&gt;&lt;i&gt;√&lt;span class="math-inline" data-index-in-node="127" data-math="\sqrt{\text{limit}}" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;(limit)&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p data-path-to-node="24" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;Each exclusion range/stream starts at&amp;nbsp;m × m (instead of m × 2). Any composite smaller than&amp;nbsp;m × m &amp;nbsp;has a prime factor smaller than &lt;span class="math-inline" data-index-in-node="136" data-math="m" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;m&lt;/span&gt;, meaning it has already been intercepted by an earlier stream. For example by the time &lt;span class="math-inline" data-index-in-node="213" data-math="m=5" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;m=5&lt;/span&gt;&amp;nbsp;runs, numbers like 10, 15, and 20 are already masked out by the ranges/streams for 2 and 3. The first unseen composite is &lt;span class="math-inline" data-index-in-node="332" data-math="5 \times 5 = 25" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;5&amp;nbsp;&lt;/span&gt;×&lt;span class="math-inline" data-index-in-node="332" data-math="5 \times 5 = 25" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&amp;nbsp;5 = 25&lt;/span&gt;.&lt;/p&gt;&lt;h4 data-path-to-node="25" style="font-family: Google Sans, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;Putting it to the Test&lt;/h4&gt;&lt;p data-path-to-node="26" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;Although the module sparse_range.py has its own tests, to further verify the integrity of the design I put together a test module called &lt;b&gt;&lt;i&gt;&lt;code data-index-in-node="75" data-path-to-node="26" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;sparse_range_sieve_test.py&lt;/code&gt;.&lt;/i&gt;&lt;/b&gt; It packages the sieve creation into an isolated factory function and validates the output against a traditional, trusted array sieve&lt;i&gt; across both a forward sweep and a reversed backward pass&lt;/i&gt;.&lt;/p&gt;&lt;div _ngcontent-ng-c2702060661="" class="code-block ng-tns-c2702060661-247 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwi4k8qG4aaVAxUAAAAAHQAAAAAQgAU" style="display: block; font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;div _ngcontent-ng-c2702060661="" class="formatted-code-block-internal-container ng-tns-c2702060661-247" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;div _ngcontent-ng-c2702060661="" class="animated-opacity ng-tns-c2702060661-247" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;sparse_range_sieve_test.py&lt;/div&gt;&lt;div _ngcontent-ng-c2702060661="" class="animated-opacity ng-tns-c2702060661-247" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div _ngcontent-ng-c2702060661="" class="animated-opacity ng-tns-c2702060661-247" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&amp;nbsp;&lt;div style="background-color: #121314; color: #bbbebf; font-family: Consolas, 'Courier New', monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #8b949e;"&gt;#!/bin/env python3&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #8b949e;"&gt;# Author: Donald "Paddy" McCarthy. paddy3118@gmail.com&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #8b949e;"&gt;# 27/06/2026&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #8b949e;"&gt;#%%&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;sparse_range_sieve_test - Prime Generation Performance Test Harness&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;===================================================================&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;This module verifies the mathematical integrity of the `sparse_range` tracking&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;engine by utilizing it to implement a declarative Sieve of Eratosthenes. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;It tests overlapping cross-boundary constraints by instantiating dozens of &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;simultaneous exclusion ranges running with diverse step intervals.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;from&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;typing&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;import&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;from&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;sparse_range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;import&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;sparse_range&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ff7b72;"&gt;def&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;traditional_sieve&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;n&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;]:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""Generates prime numbers up to N using a standard boolean array sieve."""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;n&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;sieve&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; [&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;True&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; (&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;n&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;sieve&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;sieve&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;False&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;p&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;n&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;**&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0.5&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;sieve&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;p&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;]:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;i&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;p&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;p&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;n&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;p&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;sieve&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;i&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;False&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; [&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;i&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;i&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;is_prime&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;enumerate&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;sieve&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;is_prime&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ff7b72;"&gt;def&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;build_prime_sieve&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;limit&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;sparse_range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; Constructs a sparse_range configured as a declarative Sieve of Eratosthenes.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; How S_in and S_ex constitute a "sieved" range:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; ----------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; Instead of tracking a mutable array of booleans in memory and crossing off&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; composites procedurally, this factory models the Sieve of Eratosthenes &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; declaratively using pure sequence logic.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; 1. The Permitted Range (S_in):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;We start with the baseline domain of all potential prime candidates. Since&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 is not prime, our domain is a single continuous range starting at 2:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;S_in = [range(2, limit + 1)]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; 2. The Exclusion Streams (S_ex):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;To eliminate non-primes, we generate an independent exclusion range for &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;every integer 'm' from 2 up to sqrt(limit). Each range tracks the periodic &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sequence of composites generated by that factor.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Step factor: The range increments by 'm' (e.g., for m=3, it targets &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;every 3rd number).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Optimization (m * m): Rather than starting at m * 2, each exclusion stream &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;starts at m * m. Any composite number smaller than m * m must possess a &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;prime factor smaller than 'm', meaning it is already guaranteed to be &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;intercepted by a previous exclusion stream.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; When the resulting factory is iterated, the sparse_range engine dynamically&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; clashes these arithmetic progressions together, masking out composites instantly&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; without storing any tables in RAM.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #a5d6ff;"&gt;&amp;nbsp; &amp;nbsp; """&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# Baseline candidate space&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;s_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; [&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;limit&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# Composite elimination progressions&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;s_ex&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; [&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;m&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;m&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;limit&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;m&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;m&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;((&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;limit&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;**&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0.5&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; ]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;sparse_range&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_in&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;s_in&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;s_ex&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;s_ex&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ff7b72;"&gt;def&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;run_sieve_tests&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;limit&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;200&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"""Executes forward and backward verification passes against traditional algorithms."""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;f&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"Beginning Sparse Range Sieve Evaluation Suite (N = &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;limit&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;)..."&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"----------------------------------------------------------------"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# 1. Generate baseline ground-truth primes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;expected_forward&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;traditional_sieve&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;limit&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;expected_backward&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;reversed&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;expected_forward&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;))&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# 2. Build the sieve factory via isolated generator function&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;prime_sieve_factory&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;build_prime_sieve&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;limit&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# 3. Test Forward Generation&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"👉 Running Forward Traversal Validation..."&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;actual_forward&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;prime_sieve_factory&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #ffa657;"&gt;limit&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;actual_forward&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;expected_forward&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;f&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;" &amp;nbsp; ✅ PASS: Forward matching. Found &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;len&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;actual_forward&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt; primes."&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;" &amp;nbsp; ❌ FAIL: Forward mismatch."&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;f&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;" &amp;nbsp; Expected: &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;expected_forward&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;f&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;" &amp;nbsp; Got: &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;actual_forward&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# 4. Test Backward Generation&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"👉 Running Backward Traversal Validation..."&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;actual_backward&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;List&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;prime_sieve_factory&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;limit&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;, &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;actual_backward&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;expected_backward&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;f&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;" &amp;nbsp; ✅ PASS: Backward matching. Reversed sequences match perfectly."&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;" &amp;nbsp; ❌ FAIL: Backward mismatch."&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;f&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;" &amp;nbsp; Expected: &lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;expected_backward&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;print&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;f&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;" &amp;nbsp; Got: &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;{&lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;actual_backward&lt;/span&gt;&lt;span style="color: #ff7b72;"&gt;}&lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #c9d1d9;"&gt;__name__&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt; &lt;/span&gt;&lt;span style="color: #a5d6ff;"&gt;"__main__"&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #8b949e;"&gt;# Test with a limit of 200 elements to keep visualization digestible&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #bbbebf;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #d2a8ff;"&gt;run_sieve_tests&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;(&lt;/span&gt;&lt;span style="color: #ffa657;"&gt;limit&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;200&lt;/span&gt;&lt;span style="color: #bbbebf;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div _ngcontent-ng-c2702060661="" class="animated-opacity ng-tns-c2702060661-247" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h4 data-path-to-node="28" style="font-family: Google Sans, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;The Verdict&lt;/h4&gt;&lt;p data-path-to-node="29" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;When running forward, the generator's internal pointers march sequentially alongside the main consumer loop.&lt;/p&gt;&lt;p data-path-to-node="30" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;The true architectural challenge happens during the backward traversal pass (&lt;code data-index-in-node="77" data-path-to-node="30" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;step = -1&lt;/code&gt;). When executing &lt;code data-index-in-node="104" data-path-to-node="30" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;prime_sieve_factory(limit, 1, -1)&lt;/code&gt;, the engine must manage 13 independent composite exclusion ranges simultaneously&amp;nbsp;(for m = 2, 3, ..., 14).&amp;nbsp;Each sub-range pointer must instantly compute its upper boundary, snap precisely to its maximum valid multiple less than or equal to 200, and step backward in perfect synchronization without dropping or skipping values.&lt;/p&gt;&lt;p data-path-to-node="31" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;The execution checks out perfectly:&lt;/p&gt;&lt;div _ngcontent-ng-c2702060661="" class="code-block ng-tns-c2702060661-248 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwi4k8qG4aaVAxUAAAAAHQAAAAAQgQU" style="display: block; font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;div _ngcontent-ng-c2702060661="" class="formatted-code-block-internal-container ng-tns-c2702060661-248" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;div _ngcontent-ng-c2702060661="" class="animated-opacity ng-tns-c2702060661-248" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;div _ngcontent-ng-c2702060661="" class="code-block-decoration header-formatted gds-emphasized-body-m ng-tns-c2702060661-248 ng-star-inserted" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;br /&gt;&lt;div _ngcontent-ng-c2702060661="" class="buttons ng-tns-c2702060661-248 ng-star-inserted" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;button _ngcontent-ng-c442952589="" aria-label="Download code" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-badge mat-unthemed mat-badge-overlap mat-badge-above mat-badge-after mat-badge-small mat-badge-hidden ng-star-inserted" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;span class="mat-mdc-button-persistent-ripple mdc-icon-button__ripple" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;/span&gt;&lt;span class="mat-focus-indicator" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;/span&gt;&lt;span class="mat-mdc-button-touch-target" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;/span&gt;&lt;/button&gt;&lt;button _ngcontent-ng-c442952589="" aria-label="Copy code" class="mdc-icon-button mat-mdc-icon-button mat-mdc-button-base mat-badge mat-unthemed mat-badge-overlap mat-badge-above mat-badge-after mat-badge-small mat-badge-hidden ng-star-inserted" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;span class="mat-mdc-button-persistent-ripple mdc-icon-button__ripple" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;/span&gt;&lt;span class="mat-focus-indicator" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;/span&gt;&lt;span class="mat-mdc-button-touch-target" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;/span&gt;&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;pre _ngcontent-ng-c2702060661="" class="ng-tns-c2702060661-248" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;code _ngcontent-ng-c2702060661="" class="code-container formatted ng-tns-c2702060661-248" data-test-id="code-content" role="text" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;Beginning Sparse Range Sieve Evaluation Suite (N = 200)...
----------------------------------------------------------------
👉 Running Forward Traversal Validation...
   ✅ PASS: Forward matching. Found 46 primes.
👉 Running Backward Traversal Validation...
   ✅ PASS: Backward matching. Reversed sequences match perfectly.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p data-path-to-node="33" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;If you are following the Python Discuss thread, this demonstrates that handling arbitrary sequence exclusions cleanly and statelessly via pure index-pointer stream math isn't just an elegant idea—it's highly reliable even under heavy algorithmic stress.&lt;/p&gt;&lt;p data-path-to-node="33" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p data-path-to-node="33" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;&lt;b&gt;Disclosure&lt;/b&gt;&lt;/p&gt;&lt;p data-path-to-node="33" style="font-family: Google Sans Text, sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"&gt;I used Gemini AI to help in this. I was able to state algorithms and get Gemini to fill in with implementations, state changes and get Gemini to implement those too. I am used to creating algorithms without AI, this time I was able to state what I wanted in some detail and have Gemini add yet more detail. I could show python, pseudo-code, r textual descriptions as needed and get Gemini to fill in. The tests went from my description to code by Gemini - the sieve example test idea and spec, and debug was by me with Gemini improving my limit on m from m*2 to m*m for example before implementing as told.&lt;/p&gt;&lt;/div&gt;</ns0:encoded><pubDate>Sat, 27 Jun 2026 16:19:06 </pubDate></item><item><title>From all truths to (ir)relevancies</title><link>http://paddy3118.blogspot.com/feeds/7018584544614148995/comments/default</link><ns0:encoded xmlns:ns0="http://purl.org/rss/1.0/modules/content/">&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI6Tg5CMmhqxo3YLYzw2sarTsTkBTDxuJ8nyTzdwG-C-yFwSB2Z-nu8EJcmRQM0Lw-XcY3obH4uBXrbaf9NXblIdLdcIM4lUfhDU8llOBIzzBdOJuh9TTJOhIaJXDiibJ9Tt8ZNV4ag9ee8Vb7lSs3oqy4w-5R4GAEgJvi3MThZYt-BXgUnWgt/s1024/Gemini_Generated_Image_ahywcpahywcpahyw.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="1024" data-original-width="1024" height="508" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI6Tg5CMmhqxo3YLYzw2sarTsTkBTDxuJ8nyTzdwG-C-yFwSB2Z-nu8EJcmRQM0Lw-XcY3obH4uBXrbaf9NXblIdLdcIM4lUfhDU8llOBIzzBdOJuh9TTJOhIaJXDiibJ9Tt8ZNV4ag9ee8Vb7lSs3oqy4w-5R4GAEgJvi3MThZYt-BXgUnWgt/w508-h508/Gemini_Generated_Image_ahywcpahywcpahyw.png" width="508" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div _ngcontent-ng-c2711534780="" class="markdown markdown-main-panel enable-updated-hr-color" dir="ltr" id="model-response-message-contentr_fbb1854db7be6292" style="--animation-duration: 400ms; --fade-animation-function: linear; font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;/p&gt;&lt;div class="attachment-container generated-images" style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;div _ngcontent-ng-c224903204="" class="loader" style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;Following up on &lt;a href="https://paddy3118.blogspot.com/2025/07/all-truth-in-truthtables.html" rel="nofollow" target="_blank"&gt;my previous post&lt;/a&gt; about truth tables,&amp;nbsp;I now ask a subtler question: which inputs actually matter? Some variables, though present, leave no trace on the output. In this post, I uncover those quiet bits — the irrelevant inputs — and learn how to spot them with precision.&lt;/p&gt;&lt;h4 style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px; text-align: left;"&gt;Building on the previous&lt;/h4&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;The previous post showed that for a given number of inputs, there is a finite, but rapidly growing, number of possible truth tables. For two inputs, there are 16. For three inputs, there are 256. This leads to a powerful idea: we can create a standardized format for all truth tables and uniquely identify the parts in each one.&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;/p&gt;&lt;h3 style="font-family: Google Sans, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;The Standardized Truth Table (STT) Format&lt;/h3&gt;&lt;h3 style="font-family: Google Sans, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&amp;nbsp;&lt;/h3&gt;&lt;h3 style="font-family: Google Sans, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #800180; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;&lt;b&gt;i[1] i[0]&lt;/b&gt;&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt; &lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;:&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;   &lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #274e13; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;r&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;=================&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  &lt;b&gt;0    0&lt;/b&gt; &lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;:&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;   &lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #04ff00; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;0&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt; &lt;b&gt; 0    1&lt;/b&gt;  &lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;&lt;b&gt;:&lt;/b&gt;&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;   &lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #04ff00; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;0&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  &lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;1    0 &lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt; &lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;&lt;b&gt;:&lt;/b&gt;&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;   &lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #04ff00; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;0&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  &lt;br /&gt;&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  &lt;b&gt;1    1 &lt;/b&gt; &lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;:&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;   &lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #04ff00; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;&lt;b&gt;1&lt;/b&gt;&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  &lt;/span&gt;&amp;nbsp;&lt;/h3&gt;&lt;p style="font-family: Google Sans, sans-serif; line-height: 1.15; margin-top: 0px; text-align: left;"&gt;&lt;u&gt;&lt;b&gt;Colour Key&lt;/b&gt;&lt;/u&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li style="font-family: Google Sans, sans-serif; line-height: 1.15; margin-top: 0px; text-align: left;"&gt;&lt;span style="color: #800180;"&gt;&lt;b&gt;Inputs&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Google Sans, sans-serif; line-height: 1.15; margin-top: 0px; text-align: left;"&gt;&lt;span style="color: #2b00fe;"&gt;&lt;b&gt;Input count&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="font-family: Google Sans, sans-serif; line-height: 1.15; margin-top: 0px; text-align: left;"&gt;&lt;span style="color: #38761d;"&gt;&lt;b&gt;Result, r&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;/li&gt;&lt;li style="font-family: Google Sans, sans-serif; line-height: 1.15; margin-top: 0px; text-align: left;"&gt;&lt;span style="color: #04ff00;"&gt;&lt;b&gt;Result vector: 0001&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;We have a standardized truth table with&lt;span style="color: #800180;"&gt;&lt;b&gt; &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.6595em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; inputs&lt;/b&gt;&lt;/span&gt;. Each row in the inputs section of the truth table is an increasing binary count from &lt;b&gt;&lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.6444em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="color: #2b00fe; line-height: 1.15; margin-top: 0px;"&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b00fe;"&gt; to &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.908em; line-height: 1.15; margin-top: 0px; vertical-align: -0.0833em;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;2**&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.8247em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.05em; margin-top: 0px; top: -3.063em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2222em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mbin" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;−&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2222em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.6444em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;. The result column for the truth table has &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.8247em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;2**&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.8247em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.05em; margin-top: 0px; top: -3.063em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; rows, leading to &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.9945em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;2&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.9945em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.05em; margin-top: 0px; top: -3.063em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mopen mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;**(&lt;/span&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;2**&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.9021em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0714em; margin-top: 0px; top: -2.931em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.5em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size3 size1 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mclose mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; different possible truth table result vectors for &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.6595em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; inputs.&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;Any one possible result,&lt;span style="color: #38761d;"&gt;&lt;b&gt; &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.4306em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;, of the standardized truth table is read as the binary bits of the output going from the topmost row (where the inputs are all zero) down to the bottom-most row, in order. This single binary number, the "result number" or &lt;span style="color: #04ff00;"&gt;&lt;b&gt;vector&lt;/b&gt;&lt;/span&gt;, uniquely identifies the truth table and the boolean function it represents.&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;/p&gt;&lt;h3 style="font-family: Google Sans, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;Irrelevant Variables in Boolean Expressions&lt;/h3&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;A variable in a boolean expression is considered irrelevant if its value has no effect on the final output. In a truth table, this means that &lt;b&gt;&lt;i&gt;changing the value of that input variable while all other inputs remain the same does not change the output&lt;/i&gt;&lt;/b&gt;.&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;While this is easy to understand, it can be difficult to spot for complex functions. This is where the standardized truth table format, STT, comes in handy.&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;/p&gt;&lt;h3 style="font-family: Google Sans, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;Irrelevancy Calculation&lt;/h3&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;For an &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.6595em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;-input truth table with a &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.9945em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;2**&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.9945em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.05em; margin-top: 0px; top: -3.063em;"&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;2**&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.9021em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0714em; margin-top: 0px; top: -2.931em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.5em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size3 size1 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;bit result, &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.4306em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;, we can efficiently check for irrelevant variables. The key insight is that&lt;i&gt; for any single input variable, say &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.8095em; line-height: 1.15; margin-top: 0px; vertical-align: -0.15em;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.1514em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: 0em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;[n]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;, the other input bits change in the exact same order when &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.8095em; line-height: 1.15; margin-top: 0px; vertical-align: -0.15em;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.1514em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: 0em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;[n]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2778em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mrel" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;=&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2778em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.6444em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; as they do when &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.8095em; line-height: 1.15; margin-top: 0px; vertical-align: -0.15em;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i[&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.1514em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: 0em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;n]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2778em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mrel" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;=&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2778em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.6444em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;, in the input count region of the STT&lt;/i&gt;.&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;Therefore, if the result bits for the rows where &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.8095em; line-height: 1.15; margin-top: 0px; vertical-align: -0.15em;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.1514em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: 0em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;[n]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2778em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mrel" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;=&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2778em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.6444em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; are the same as the result bits for the rows where &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.8095em; line-height: 1.15; margin-top: 0px; vertical-align: -0.15em;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.1514em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: 0em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;[n]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2778em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mrel" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;=&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2778em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.6444em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;, then the input variable &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.8095em; line-height: 1.15; margin-top: 0px; vertical-align: -0.15em;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i[&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.1514em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: 0em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;n]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; has no effect on the output and is therefore &lt;b&gt;&lt;i&gt;irrelevant&lt;/i&gt;&lt;/b&gt;.&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;Let's illustrate with an example for a 3-input truth table.&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;b style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;Example&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;i[2]&lt;/th&gt;
&lt;th&gt;i[1]&lt;/th&gt;
&lt;th&gt;i[0]&lt;/th&gt;
&lt;th&gt;:&lt;/th&gt;
&lt;th align="left"&gt;Output&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;:&lt;/td&gt;
&lt;td align="left"&gt;r0​&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;:&lt;/td&gt;
&lt;td align="left"&gt;r1​&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;:&lt;/td&gt;
&lt;td align="left"&gt;r2​&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;:&lt;/td&gt;
&lt;td align="left"&gt;r3​&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;:&lt;/td&gt;
&lt;td align="left"&gt;r4​&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;:&lt;/td&gt;
&lt;td align="left"&gt;r5​&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;:&lt;/td&gt;
&lt;td align="left"&gt;r6​&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;:&lt;/td&gt;
&lt;td align="left"&gt;r7​&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;Consider checking if &lt;b&gt;&lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 1em; line-height: 1.15; margin-top: 0px; vertical-align: -0.25em;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;span class="mopen" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;[&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;1&lt;/span&gt;&lt;span class="mclose" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; is irrelevant. The values of the other inputs (&lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 1em; line-height: 1.15; margin-top: 0px; vertical-align: -0.25em;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;span class="mopen" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;[&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;2&lt;/span&gt;&lt;span class="mclose" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; and &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 1em; line-height: 1.15; margin-top: 0px; vertical-align: -0.25em;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;span class="mopen" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;[&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;0&lt;/span&gt;&lt;span class="mclose" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;) follow the sequence 00, 01, 10, 11 both when &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 1em; line-height: 1.15; margin-top: 0px; vertical-align: -0.25em;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;span class="mopen" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;[&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;1&lt;/span&gt;&lt;span class="mclose" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; is 0 and when &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 1em; line-height: 1.15; margin-top: 0px; vertical-align: -0.25em;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;span class="mopen" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;[&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;1&lt;/span&gt;&lt;span class="mclose" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; is 1.&lt;/p&gt;&lt;ul style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px; padding-inline-start: 32px;"&gt;&lt;li style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;When&lt;b&gt; &lt;/b&gt;&lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;b&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 1em; line-height: 1.15; margin-top: 0px; vertical-align: -0.25em;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;/b&gt;&lt;span class="mopen" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;[&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;1&lt;/span&gt;&lt;span class="mclose" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;]&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2778em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mrel" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;=&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2778em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.6444em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;, the corresponding output bits are &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.625em; line-height: 1.15; margin-top: 0px; vertical-align: -0.1944em;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mpunct" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;,&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.1667em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mpunct" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;,&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.1667em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mpunct" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;,&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.1667em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;.&lt;/p&gt;&lt;/li&gt;&lt;li style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;When&lt;b&gt; &lt;/b&gt;&lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;b&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 1em; line-height: 1.15; margin-top: 0px; vertical-align: -0.25em;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;/b&gt;&lt;span class="mopen" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;[&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;1&lt;/span&gt;&lt;span class="mclose" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;]&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2778em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mrel" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;=&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.2778em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.6444em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;, the corresponding output bits are &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 0.625em; line-height: 1.15; margin-top: 0px; vertical-align: -0.1944em;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mpunct" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;,&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.1667em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mpunct" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;,&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.1667em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;6&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mpunct" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;,&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.1667em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;7&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;If the sequence of bits &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 1em; line-height: 1.15; margin-top: 0px; vertical-align: -0.25em;"&gt;&lt;/span&gt;&lt;span class="mopen" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;(&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mpunct" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;,&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.1667em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mpunct" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;,&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.1667em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mpunct" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;,&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.1667em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mclose" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; is identical to the sequence of bits &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 1em; line-height: 1.15; margin-top: 0px; vertical-align: -0.25em;"&gt;&lt;/span&gt;&lt;span class="mopen" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;(&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mpunct" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;,&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.1667em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mpunct" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;,&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.1667em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;6&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mpunct" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;,&lt;/span&gt;&lt;span class="mspace" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.1667em; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-right: 0.0278em; margin-top: 0px;"&gt;r&lt;/span&gt;&lt;span class="msupsub" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-t vlist-t2" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.3011em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-left: -0.0278em; margin-right: 0.05em; margin-top: 0px; top: -2.55em;"&gt;&lt;span class="pstrut" face="Google Sans Text, sans-serif !important" style="height: 2.7em; line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;span class="sizing reset-size6 size3 mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="mord mtight" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;7&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-s" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;​&lt;/span&gt;&lt;/span&gt;&lt;span class="vlist-r" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="vlist" face="Google Sans Text, sans-serif !important" style="height: 0.15em; line-height: 1.15; margin-top: 0px;"&gt;&lt;span face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="mclose" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;, then the input variable &lt;span class="math-inline" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="katex" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span aria-hidden="true" class="katex-html" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="base" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;&lt;span class="strut" face="Google Sans Text, sans-serif !important" style="height: 1em; line-height: 1.15; margin-top: 0px; vertical-align: -0.25em;"&gt;&lt;/span&gt;&lt;span class="mord mathnormal" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;i&lt;/span&gt;&lt;span class="mopen" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;[&lt;/span&gt;&lt;span class="mord" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;1&lt;/span&gt;&lt;span class="mclose" face="Google Sans Text, sans-serif !important" style="line-height: 1.15; margin-top: 0px;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; has no effect on the output and is therefore irrelevant.&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;This method allows for a very efficient, algorithmic approach to simplifying boolean expressions.&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;from&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;collections&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;import&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;defaultdict&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;import&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;pprint&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #569cd6;"&gt;def&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;is_irrelevant&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;considered&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;bool&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Determine whether a specific input variable is irrelevant to the output of the truth table.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Args:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; considered: Index of the input variable to test.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; input_count: Total number of input variables.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result_vector: Integer representing the output bits of the truth table.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Returns:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; True if the input is irrelevant, False otherwise.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; """&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;considered_to_resultbits&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; {&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: [], &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: []}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;in_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;**&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;considered_bit&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; (&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;in_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;considered&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;resultbit&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; (&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;in_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;considered_to_resultbits&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;considered_bit&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;].&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;resultbit&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;considered_to_resultbits&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;considered_to_resultbits&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #569cd6;"&gt;def&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;find_irrelevant_ttable_inputs&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Identify which input variables are irrelevant in a standardized truth table.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Args:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; input_count: Number of input variables.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result_vector: Integer representing the output bits of the truth table.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Returns:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List of input indices that are irrelevant.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; """&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrelevant&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; [&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;is_irrelevant&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrelevant&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px; text-align: left;"&gt;Relevant and irrelevant result vectors for STT's&lt;/h3&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px; text-align: left;"&gt;I am interested in the truthtables/boolean expressions of an increasing number of inputs. Previously I was taking all the zero input STT, then all the 1-input, all the 2-input, ...&amp;nbsp;&lt;br /&gt;That had repetitions and irrelevancies. I can now take just the relevant result vectors for each case, or, take the maximum inputs I can handle and sort the result vectors so that those with the most irrelevancies for that maximum number of inputs, come first.&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px; text-align: left;"&gt;Here's the code I used to investigate these properties of irrelevances:&lt;/p&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px; text-align: left;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #569cd6;"&gt;def&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;print_STT_results_sensitive_to_inputs&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;max_input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Print a summary of irrelevance patterns across all standardized truth tables (STTs)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; for input counts from 0 up to `max_input_count - 1`.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; For each input count `i`, the function:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - Computes all possible result vectors (2**(2**i))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - Identifies which inputs are irrelevant for each result&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - Summarizes how many result vectors have at least one irrelevant input&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - Prints spacing patterns (diffs) between result indices with irrelevance&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - Checks whether irrelevance indices for input count `i` begin with those from `i-1`&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Args:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; max_input_count: The exclusive upper bound on input counts to analyze.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; """&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; {}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;max_input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;INPUTS = &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;=========="&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;**&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;**&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" &amp;nbsp;total_possible_tt_results ="&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; {&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:[&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;is_irrelevant&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;txt&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;pprint&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;pformat&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;compact&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;True&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;indent&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;).&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;replace&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt; &amp;nbsp;'&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;txt&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;txt&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;replace&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'{'&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'{&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt; &amp;nbsp; '&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #6a9955;"&gt;#print(" &amp;nbsp;result2irrelevances = ", txt)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; [&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;k&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;k&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;v&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;items&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;v&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrelevances&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;relevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" &amp;nbsp;&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; = &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) = &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;, &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;relevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; = &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;table&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;chop_line&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;format_irrelevance_table_full&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)[&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;], &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;220&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;STT Result Irrelevance vs Input Table"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;table&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# First-order differences between irrelevance indices&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;diff0&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; [&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;j&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;j&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;j&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;))]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #6a9955;"&gt;#print(f" &amp;nbsp; &amp;nbsp;{diff0 = }")&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# Second-order differences between irrelevance indices&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;diff1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; [&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;diff0&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;j&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;diff0&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;j&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;j&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;diff0&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;))]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #6a9955;"&gt;#print(f" &amp;nbsp; &amp;nbsp;{diff1 = }")&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;Irrelevance indices reflected about the center of the r count?"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;is_irrelevance_reflected&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &amp;nbsp;&lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# True so far&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'Irrelevances for `i` inputs begin with those from `i-1`?'&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;previous_prefixed&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;all&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;((&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i0&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;:=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;][:&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i0&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;max_input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" &amp;nbsp;&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;previous_prefixed&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &amp;nbsp;&lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# True so far&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #569cd6;"&gt;def&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;is_irrelevance_reflected&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;ins2irrel&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;dict&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]]) -&amp;gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;bool&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Check whether irrelevance indices are symmetric about the center of the result vector space.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; For each input count `i`, the result vector space has size 2**(2**i).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; This function checks whether for every irrelevance index `r &amp;lt; half_range`,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; its mirror index `full_range - 1 - r` is also marked as irrelevant.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Args:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ins2irrel: Mapping from input count to list of result indices with irrelevance.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Returns:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; True if all irrelevance sets are symmetric about the center, False otherwise.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; """&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;ins2irrel&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;items&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;():&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrel_set&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;full_range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;**&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;**&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;imax&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;half_range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;full_range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;/&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;not&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;all&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;((&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;full_range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrel_set&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrel_set&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;half_range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;False&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;True&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #569cd6;"&gt;def&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;format_irrelevance_table&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;dict&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]], &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;str&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;str&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Create a compact table showing which inputs are irrelevant for each result vector `r`.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Each column is sized to match the width of its corresponding `r` value.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Only includes columns for `r` values that have at least one irrelevant input.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Each row corresponds to an input index, with '@' if that input is irrelevant for that `r`, else blank.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Returns:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A tuple of (plain text table string, markdown table string)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; """&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;msg&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"No inputs to analyze (input_count = 0)."&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"| Input | (none) |&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;|-------|--------|&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;| (none) | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;msg&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;md&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;filtered_r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; [&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrels&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;items&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;() &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;irrels&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;not&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;filtered_r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;msg&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"No irrelevant inputs found for any result vector."&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"| Input | (none) |&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;|-------|--------|&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"| i[&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;] | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;msg&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;md&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# Determine individual column widths based on r string length&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_labels&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; [&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;str&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;filtered_r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_widths&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; [&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_labels&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# Header row&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;8&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;rjust&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;zip&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_labels&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_widths&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"| Input | "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" | "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;rjust&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;zip&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_labels&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_widths&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" |"&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# Markdown separator row&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;separator_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"|-------|"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"|"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"-"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; (&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_widths&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"|"&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# Rows&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"i[&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;]"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;ljust&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;8&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;row_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"@"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; .&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;rjust&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;zip&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;filtered_r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_widths&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;row_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"| "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"i[&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;]"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;ljust&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;5&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" | "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" | "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"@"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; .&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;rjust&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;zip&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;filtered_r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_widths&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" |"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;row_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;row_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;plain_table&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;([&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;markdown_table&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;([&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;separator_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;plain_table&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;markdown_table&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #569cd6;"&gt;def&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;format_irrelevance_table_full&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;dict&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]], &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;str&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;str&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Create a full table showing which inputs are irrelevant for each result vector `r`.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Includes columns for all result vector indices (0 to max(r)).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Each row corresponds to an input index, with '@' if that input is irrelevant for that `r`, else blank.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Returns:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A tuple of (plain text table string, markdown table string)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; """&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;msg&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"No inputs to analyze (input_count = 0)."&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"| Input | (none) |&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;|-------|--------|&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;| (none) | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;msg&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;md&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;all_r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;sorted&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;keys&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;())&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_labels&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; [&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;str&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;all_r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_widths&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; [&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_labels&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# Header row&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;8&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;rjust&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;zip&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_labels&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_widths&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"| Input | "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" | "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;rjust&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;zip&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_labels&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_widths&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" |"&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# Markdown separator row&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;separator_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"|-------|"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"|"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"-"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; (&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_widths&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"|"&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# Rows&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"i[&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;]"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;ljust&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;8&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;row_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;label&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"@"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; .&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;rjust&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;get&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, []) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;zip&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;all_r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_widths&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;row_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"| "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"i[&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;]"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;ljust&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;5&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" | "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" | "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"@"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; .&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;rjust&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result2irrelevances&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;get&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, []) &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" "&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;w&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;zip&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;all_r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_widths&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" |"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;row_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;row_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;plain_table&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;([&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows_plain&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;markdown_table&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;([&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;separator_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows_md&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;plain_table&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;markdown_table&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #569cd6;"&gt;def&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;chop_line&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;table_text&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;str&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;max_length&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) -&amp;gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;str&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Chop each line in a multi-line string to a maximum length.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; If a line exceeds `max_length`, it is truncated to `max_length - 3` and '...' is appended.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Args:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table_text: The full multi-line string to process.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; max_length: The maximum allowed line length.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Returns:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A new multi-line string with long lines chopped and marked with '...'.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; """&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;chopped_lines&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;line&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;table_text&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;splitlines&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;():&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;line&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;max_length&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;chopped_lines&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;line&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[:&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;max_length&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'...'&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;chopped_lines&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;line&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;return&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;chopped_lines&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print_STT_results_sensitive_to_inputs&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;5&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="font-family: Google Sans Text, sans-serif; line-height: 1.15; margin-top: 0px; text-align: left;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;h3 style="text-align: left;"&gt;Irrelevances: Output&lt;/h3&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;INPUTS = 0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;==========&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; total_possible_tt_results = 2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; irrelevances = []&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; len(irrelevances) = 0, relevances = 2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;STT Result Irrelevance vs Input Table&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;No inputs to analyze (input_count = 0).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;INPUTS = 1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;==========&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; total_possible_tt_results = 4&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; irrelevances = [0, 3]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; len(irrelevances) = 2, relevances = 2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;STT Result Irrelevance vs Input Table&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 1 2 3&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;i[0] &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; @&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;INPUTS = 2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;==========&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; total_possible_tt_results = 16&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; irrelevances = [0, 3, 5, 10, 12, 15]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; len(irrelevances) = 6, relevances = 10&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;STT Result Irrelevance vs Input Table&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;i[0] &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; @ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;i[1] &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;INPUTS = 3&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;==========&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; total_possible_tt_results = 256&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; irrelevances = [0, 3, 5, 10, 12, 15, 17, 34, 48, 51, 60, 63, 68, 80, 85, 90, 95, 102, 119, 136, 153, 160, 165, 170, 175, 187, 192, 195, 204, 207, 221, 238, 240, 243, 245, 250, 252, 255]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; len(irrelevances) = 38, relevances = 218&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;STT Result Irrelevance vs Input Table&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;i[0] &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; @ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;i[1] &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;i[2] &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;INPUTS = 4&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;==========&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; total_possible_tt_results = 65536&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; irrelevances = [0, 3, 5, 10, 12, 15, 17, 34, 48, 51, 60, 63, 68, 80, 85, 90, 95, 102, 119, 136, 153, 160, 165, 170, 175, 187, 192, 195, 204, 207, 221, 238, 240, 243, 245, 250, 252, 255, 257, 514, 768, 771, 780, 783, 816, 819, 828, 831, 960, 963, 972, 975, 1008, 1011, 1020, 1023, 1028, 1280, 1285, 1290, 1295, 1360, 1365, 1370, 1375, 1440, 1445, 1450, 1455, 1520, 1525, 1530, 1535, 1542, 1799, 2056, 2313, 2560, 2565, 2570, 2575, 2640, 2645, 2650, 2655, 2720, 2725, 2730, 2735, 2800, 2805, 2810, 2815, 2827, 3072, 3075, 3084, 3087, 3120, 3123, 3132, 3135, 3264, 3267, 3276, 3279, 3312, 3315, 3324, 3327, 3341, 3598, 3840, 3843, 3845, 3850, 3852, 3855, 3888, 3891, 3900, 3903, 3920, 3925, 3930, 3935, 4000, 4005, 4010, 4015, 4032, 4035, 4044, 4047, 4080, 4083, 4085, 4090, 4092, 4095, 4112, 4352, 4369, 4386, 4403, 4420, 4437, 4454, 4471, 4488, 4505, 4522, 4539, 4556, 4573, 4590, 4607, 4626, 4883, 5140, 5397, 5654, 5911, 6168, 6425, 6682, 6939, 7196, 7453, 7710, 7967, 8224, 8481, 8704, 8721, 8738, 8755, 8772, 8789, 8806, 8823, 8840, 8857, 8874, 8891, 8908, 8925, 8942, 8959, 8995, 9252, 9509, 9766, 10023, 10280, 10537, 10794, 11051, 11308, 11565, 11822, 12079, 12288, 12291, 12300, 12303, 12336, 12339, 12348, 12351, 12480, 12483, 12492, 12495, 12528, 12531, 12540, 12543, 12593, 12850, 13056, 13059, 13068, 13071, 13073, 13090, 13104, 13107, 13116, 13119, 13124, 13141, 13158, 13175, 13192, 13209, 13226, 13243, 13248, 13251, 13260, 13263, 13277, 13294, 13296, 13299, 13308, 13311, 13364, 13621, 13878, 14135, 14392, 14649, 14906, 15163, 15360, 15363, 15372, 15375, 15408, 15411, 15420, 15423, 15552, 15555, 15564, 15567, 15600, 15603, 15612, 15615, 15677, 15934, 16128, 16131, 16140, 16143, 16176, 16179, 16188, 16191, 16320, 16323, 16332, 16335, 16368, 16371, 16380, 16383, 16448, 16705, 16962, 17219, 17408, 17425, 17442, 17459, 17476, 17493, 17510, 17527, 17544, 17561, 17578, 17595, 17612, 17629, 17646, 17663, 17733, 17990, 18247, 18504, 18761, 19018, 19275, 19532, 19789, 20046, 20303, 20480, 20485, 20490, 20495, 20560, 20565, 20570, 20575, 20640, 20645, 20650, 20655, 20720, 20725, 20730, 20735, 20817, 21074, 21331, 21588, 21760, 21765, 21770, 21775, 21777, 21794, 21811, 21828, 21840, 21845, 21850, 21855, 21862, 21879, 21896, 21913, 21920, 21925, 21930, 21935, 21947, 21964, 21981, 21998, 22000, 22005, 22010, 22015, 22102, 22359, 22616, 22873, 23040, 23045, 23050, 23055, 23120, 23125, 23130, 23135, 23200, 23205, 23210, 23215, 23280, 23285, 23290, 23295, 23387, 23644, 23901, 24158, 24320, 24325, 24330, 24335, 24400, 24405, 24410, 24415, 24480, 24485, 24490, 24495, 24560, 24565, 24570, 24575, 24672, 24929, 25186, 25443, 25700, 25957, 26112, 26129, 26146, 26163, 26180, 26197, 26214, 26231, 26248, 26265, 26282, 26299, 26316, 26333, 26350, 26367, 26471, 26728, 26985, 27242, 27499, 27756, 28013, 28270, 28527, 28784, 29041, 29298, 29555, 29812, 30069, 30326, 30464, 30481, 30498, 30515, 30532, 30549, 30566, 30583, 30600, 30617, 30634, 30651, 30668, 30685, 30702, 30719, 30840, 31097, 31354, 31611, 31868, 32125, 32382, 32639, 32896, 33153, 33410, 33667, 33924, 34181, 34438, 34695, 34816, 34833, 34850, 34867, 34884, 34901, 34918, 34935, 34952, 34969, 34986, 35003, 35020, 35037, 35054, 35071, 35209, 35466, 35723, 35980, 36237, 36494, 36751, 37008, 37265, 37522, 37779, 38036, 38293, 38550, 38807, 39064, 39168, 39185, 39202, 39219, 39236, 39253, 39270, 39287, 39304, 39321, 39338, 39355, 39372, 39389, 39406, 39423, 39578, 39835, 40092, 40349, 40606, 40863, 40960, 40965, 40970, 40975, 41040, 41045, 41050, 41055, 41120, 41125, 41130, 41135, 41200, 41205, 41210, 41215, 41377, 41634, 41891, 42148, 42240, 42245, 42250, 42255, 42320, 42325, 42330, 42335, 42400, 42405, 42410, 42415, 42480, 42485, 42490, 42495, 42662, 42919, 43176, 43433, 43520, 43525, 43530, 43535, 43537, 43554, 43571, 43588, 43600, 43605, 43610, 43615, 43622, 43639, 43656, 43673, 43680, 43685, 43690, 43695, 43707, 43724, 43741, 43758, 43760, 43765, 43770, 43775, 43947, 44204, 44461, 44718, 44800, 44805, 44810, 44815, 44880, 44885, 44890, 44895, 44960, 44965, 44970, 44975, 45040, 45045, 45050, 45055, 45232, 45489, 45746, 46003, 46260, 46517, 46774, 47031, 47288, 47545, 47802, 47872, 47889, 47906, 47923, 47940, 47957, 47974, 47991, 48008, 48025, 48042, 48059, 48076, 48093, 48110, 48127, 48316, 48573, 48830, 49087, 49152, 49155, 49164, 49167, 49200, 49203, 49212, 49215, 49344, 49347, 49356, 49359, 49392, 49395, 49404, 49407, 49601, 49858, 49920, 49923, 49932, 49935, 49968, 49971, 49980, 49983, 50112, 50115, 50124, 50127, 50160, 50163, 50172, 50175, 50372, 50629, 50886, 51143, 51400, 51657, 51914, 52171, 52224, 52227, 52236, 52239, 52241, 52258, 52272, 52275, 52284, 52287, 52292, 52309, 52326, 52343, 52360, 52377, 52394, 52411, 52416, 52419, 52428, 52431, 52445, 52462, 52464, 52467, 52476, 52479, 52685, 52942, 52992, 52995, 53004, 53007, 53040, 53043, 53052, 53055, 53184, 53187, 53196, 53199, 53232, 53235, 53244, 53247, 53456, 53713, 53970, 54227, 54484, 54741, 54998, 55255, 55512, 55769, 56026, 56283, 56540, 56576, 56593, 56610, 56627, 56644, 56661, 56678, 56695, 56712, 56729, 56746, 56763, 56780, 56797, 56814, 56831, 57054, 57311, 57568, 57825, 58082, 58339, 58596, 58853, 59110, 59367, 59624, 59881, 60138, 60395, 60652, 60909, 60928, 60945, 60962, 60979, 60996, 61013, 61030, 61047, 61064, 61081, 61098, 61115, 61132, 61149, 61166, 61183, 61423, 61440, 61443, 61445, 61450, 61452, 61455, 61488, 61491, 61500, 61503, 61520, 61525, 61530, 61535, 61600, 61605, 61610, 61615, 61632, 61635, 61644, 61647, 61680, 61683, 61685, 61690, 61692, 61695, 61937, 62194, 62208, 62211, 62220, 62223, 62256, 62259, 62268, 62271, 62400, 62403, 62412, 62415, 62448, 62451, 62460, 62463, 62708, 62720, 62725, 62730, 62735, 62800, 62805, 62810, 62815, 62880, 62885, 62890, 62895, 62960, 62965, 62970, 62975, 63222, 63479, 63736, 63993, 64000, 64005, 64010, 64015, 64080, 64085, 64090, 64095, 64160, 64165, 64170, 64175, 64240, 64245, 64250, 64255, 64507, 64512, 64515, 64524, 64527, 64560, 64563, 64572, 64575, 64704, 64707, 64716, 64719, 64752, 64755, 64764, 64767, 65021, 65278, 65280, 65283, 65285, 65290, 65292, 65295, 65297, 65314, 65328, 65331, 65340, 65343, 65348, 65360, 65365, 65370, 65375, 65382, 65399, 65416, 65433, 65440, 65445, 65450, 65455, 65467, 65472, 65475, 65484, 65487, 65501, 65518, 65520, 65523, 65525, 65530, 65532, 65535]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; len(irrelevances) = 942, relevances = 64594&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;STT Result Irrelevance vs Input Table&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;i[0] &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; @ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;i[1] &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;i[2] &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;i[3] &amp;nbsp; &amp;nbsp;@ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;Irrelevance indices reflected about the center of the r count?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; True&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;Irrelevances for `i` inputs begin with those from `i-1`?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; True&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style="text-align: left;"&gt;OEIS&lt;/h3&gt;&lt;p&gt;The sequence of relevances: 2, 2, 10, 218, 64594 is already present as &lt;a href="https://oeis.org/A000371" rel="nofollow" target="_blank"&gt;A000371 &lt;/a&gt;on OEIS.&lt;/p&gt;&lt;p&gt;The sequences of irelevances: 0, 2, 6, 38, 942 had no exact match although &lt;a href="https://oeis.org/search?q=2%2c6%2c38%2c942%20id:A005530" target="_blank"&gt;A005530 &lt;/a&gt;came close&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;END.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</ns0:encoded><pubDate>Sun, 14 Sep 2025 12:51:00 </pubDate></item><item><title>Go Deh celebrations!</title><link>http://paddy3118.blogspot.com/feeds/3066718111574923076/comments/default</link><ns0:encoded xmlns:ns0="http://purl.org/rss/1.0/modules/content/">&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghCYUXmcR6-kfrZKbVof_gfZfqHnOE_cfxQx9l6Iii9pjsuFXpRuudMkEU5_gjPHNfsa34AFbNCefCkvGwfEOaCKGqXGzQfTZTsdoG9YUXkj9oGDfRoozESPySqOszV5PquQUtHDHG2-2snTbL3TAdo1FLEfeemLpuxJXHU7NFbUPKpagEmM48/s1024/A%20jubilant%20Jamaican%202.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="1024" data-original-width="1024" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghCYUXmcR6-kfrZKbVof_gfZfqHnOE_cfxQx9l6Iii9pjsuFXpRuudMkEU5_gjPHNfsa34AFbNCefCkvGwfEOaCKGqXGzQfTZTsdoG9YUXkj9oGDfRoozESPySqOszV5PquQUtHDHG2-2snTbL3TAdo1FLEfeemLpuxJXHU7NFbUPKpagEmM48/s320/A%20jubilant%20Jamaican%202.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_z_l56oVliXpceL0jsn8lbb_wjVN9KF7c4vD0IAzKv76gWTvREQCqDvXJQa-Y7UlxdTCUbSYja7bSwPmRvf5yTo_E4sJW61CZTNdC2-utWn28tI0RuEPhRCbQqfb73_LddRGry9Sa7bNhAp6eDx8x4clBJAkm3__Tjr39byNDqiRlNdJFkQAi/s2048/Gemini_Generated_Image_pvdkv4pvdkv4pvdk.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="2048" data-original-width="2048" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_z_l56oVliXpceL0jsn8lbb_wjVN9KF7c4vD0IAzKv76gWTvREQCqDvXJQa-Y7UlxdTCUbSYja7bSwPmRvf5yTo_E4sJW61CZTNdC2-utWn28tI0RuEPhRCbQqfb73_LddRGry9Sa7bNhAp6eDx8x4clBJAkm3__Tjr39byNDqiRlNdJFkQAi/s320/Gemini_Generated_Image_pvdkv4pvdkv4pvdk.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;This year it's:&amp;nbsp;&lt;/p&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;&lt;b&gt;Fifty years&lt;/b&gt; since I first learned to program!&lt;/li&gt;&lt;li&gt;&lt;b&gt;Thirty years&lt;/b&gt; of programming Python!&lt;/li&gt;&lt;li&gt;And In July, this blog topped &lt;b&gt;one million views&lt;/b&gt; since its inception!&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;I first learned to program&lt;/i&gt;&lt;/b&gt; by crashing an after-school class I saw the private school geeks disappearing to from Central library&amp;nbsp; in Nottingham. One of the Trent Polytechnic lecturers I now see sometimes on Computerphile - he mentioned how the council payed something towards the cost of the computer on the understanding that they have a class for students, but &lt;i&gt;somehow &lt;/i&gt;only the guys from the fee paying Nottingham High School for Boys seemed to get the memo, hmm.&lt;br /&gt;That was s long ago, Paper tape and teletypes.&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;Forward to 1995&lt;/i&gt;&lt;/b&gt;: A new job, amongst engineers where the few of them that could program, programmed in Perl. Perl was big within the chip design industry back then, but Aargh! I thought Perl was awful - for me it did not gel! I went looking for an alternative and found this little known language called Python.&amp;nbsp;&lt;br /&gt;The community on comp.lang.python seemed so nice, they valued readability and "One obvious way to do it" over Perls more than one way. I was hooked, and did my little bit of evangelizing. (OK, I was known as that Python guy - but they couldn't fault the code).&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;Was it eleven years ago that I started the blog?&lt;/i&gt;&lt;/b&gt; It has been one of two main places where I have shown my work - the other is on site&lt;a href="https://rosettacode.org/wiki/User:Paddy3118" rel="nofollow" target="_blank"&gt; rosettacode.org&lt;/a&gt; which, no doubt, has been scraped to death for AI's - it is one of the few places online showing different programming languages solving the same task. I wrote 199 of those RosettaCode tasks over the years, and many more of the examples solving those tasks; (mainly&amp;nbsp; Python and Awk language examples). Most, if not all of those task descriptions were my own work - not copied off other sites - if there are similarities in text then they probably copied from me or the task is so simple that there is going to be convergence).&lt;/p&gt;&lt;p&gt;&amp;nbsp;Lately, as you can tell from the pictures above, I have been dabbling in AI. AI &lt;b&gt;&lt;i&gt;is&lt;/i&gt;&lt;/b&gt; the future, but who knows how AI will affect that future? I am a programmer who can describe coding tasks to other people for them to complete the task. AI is an ever changing field, I think that I am learning to use it better, as it gets better too - I am both more and less precise in my prompting and finding out what the AI remembers and does best. I experiment with the&amp;nbsp; amount of description in the code to cut and paste into new sessions to cut the mistakes and continue from a clean base. I experiment with coding from pseudo-code. I have found that some abilities are universal: when exploring the use of SQL - which I am a hunt-n-peck coder in, I can still spot redundancies "You recompute the first query as part of the second and the second as part of the third, can't you reuse prior results", lead to the AI introducing common table expressions I think it was, and telling me all about them.&lt;/p&gt;&lt;p&gt;I'm still scripting&amp;nbsp; 😊&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</ns0:encoded><pubDate>Sun, 10 Aug 2025 17:22:00 </pubDate></item><item><title>All Truth in Truthtables!</title><link>http://paddy3118.blogspot.com/feeds/1386948987337358897/comments/default</link><ns0:encoded xmlns:ns0="http://purl.org/rss/1.0/modules/content/">&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="text-align: center;"&gt;&amp;nbsp;&lt;img alt="" height="236" src="https://blogger.googleusercontent.com/img/a/AVvXsEjAkKWov5Vkf0RC3lLoj7mdzZPEW2RRK5fqNDoD1wzaRXh8UUXI9pd3gYbneEhapx8xw2MprxeoN3Zmb1E-5scChoMYLZgcygDR8cwG7BaQtEZkWeYlMn8RUPWTWX4jerFY2kU0NR_AkSUfjVx85ifTtOIhzJq1ZQT_IXVIqtqJ3qBATtr2l0w4=w236-h236" width="236" /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&lt;span style="color: #800180;"&gt;&lt;span style="font-size: x-small;"&gt;(Best viewed on a larger than phone screen)&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;To crib from &lt;i&gt;my &lt;/i&gt;&lt;a href="https://rosettacode.org/wiki/Truth_table" rel="nofollow" target="_blank"&gt;RosettaCode tasks&lt;/a&gt; description and examples:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;i&gt;A &lt;a class="extiw" href="https://en.wikipedia.org/wiki/Truth_table" title="wp:Truth table"&gt;truth table&lt;/a&gt; is a display of the inputs to, and the output of a Boolean equation 
organised as a table where each row gives one combination of input 
values and the corresponding value of the equation.&lt;/i&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;And as examples:&lt;/p&gt;&lt;pre&gt;&lt;blockquote&gt;&lt;i&gt;Boolean expression: A ^ B

A B&amp;nbsp;: A ^ B
0 0&amp;nbsp;: 0
0 1&amp;nbsp;: 1
1 0&amp;nbsp;: 1
1 1&amp;nbsp;: 0

Boolean expression: S | ( T ^ U )

S T U&amp;nbsp;: S | ( T ^ U )
0 0 0&amp;nbsp;: 0
0 0 1&amp;nbsp;: 1
0 1 0&amp;nbsp;: 1
0 1 1&amp;nbsp;: 0
1 0 0&amp;nbsp;: 1
1 0 1&amp;nbsp;: 1
1 1 0&amp;nbsp;: 1
1 1 1&amp;nbsp;: 1&lt;/i&gt;&lt;/blockquote&gt;&lt;/pre&gt;&lt;h2 style="text-align: left;"&gt;&amp;nbsp;Format&lt;/h2&gt;&lt;p&gt;A truth table has a&lt;b&gt; header row&lt;/b&gt; of columns showing first the names of &lt;b&gt;inputs &lt;/b&gt;assigned to each column; a visual separator - e.g. ':'; then the column name for the output &lt;b&gt;result&lt;/b&gt;.&lt;/p&gt;&lt;p&gt;The &lt;b&gt;body &lt;/b&gt;of the table, under the&lt;b&gt; inputs section&lt;/b&gt;, contains rows of all binary combinations of the inputs. It is usually arranged as each row of the input section being a binary count &lt;i&gt;from zero to 2**input_count - 1&lt;/i&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The &lt;b&gt;body &lt;/b&gt;of the table, under the&lt;b&gt;&amp;nbsp;result section&lt;/b&gt;, 
contains rows showing the binary output produced from the input configuration in the same row, to the left.&lt;/p&gt;&lt;h3 style="text-align: left;"&gt;Format used&lt;/h3&gt;&lt;p&gt;&amp;nbsp;I am interested in the number of inputs rather than their names so will show vector&lt;b&gt; i&lt;/b&gt; with the most significant indices to the left, (so the binary count in the input sections body looks right).&lt;/p&gt;&lt;p&gt;Similarly I am interested in the bits in the result column rather than a name so will just call the result column &lt;b&gt;r&lt;/b&gt;.&lt;/p&gt;&lt;h2 style="text-align: left;"&gt;From one result to many&lt;/h2&gt;&lt;p&gt;&amp;nbsp;Here's the invocation, and truth tables produced for some simple boolean operators:&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, 'Courier New', monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;OR&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;pp_ttable&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;0b&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1110&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;OR
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;i[1] i[0] :   r  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;=================
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  0    0  :   0  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  0    1  :   1  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  1    0  :   1  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  1    1  :   1  &lt;/span&gt;&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;"&gt;
&lt;/span&gt;&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, 'Courier New', monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;XOR&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;pp_ttable&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;0b&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;110&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;XOR
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;i[1] i[0] :   r  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;=================
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  0    0  :   0  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  0    1  :   1  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  1    0  :   1  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  1    1  :   0  &lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;"&gt;
&lt;/span&gt;&lt;br class="Apple-interchange-newline" /&gt;&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, 'Courier New', monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;AND&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;pp_ttable&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;0b&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1000&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;AND
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;i[1] i[0] :   r  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;=================
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  0    0  :   0  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  0    1  :   0  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  1    0  :   0  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  1    1  :   1  &lt;/span&gt;&lt;/p&gt;&lt;p&gt;For those three inputs, we can extend the table to show result columns for OR, XOR and then AND, like this:&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, 'Courier New', monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;OR, XOR, then AND result *columns*&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;pp_ttable&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, [&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;14&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;6&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;8&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]) &amp;nbsp;&lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# A list of results, (in decimal this time)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;OR, XOR, then AND result *columns*
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;i[1] i[0] : r[0] r[1] r[2] 
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;===========================
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  0    0  :   0    0    0  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  0    1  :   1    1    0  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  1    0  :   1    1    0  
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  1    1  :   1    0    1  &lt;/span&gt;&lt;/p&gt;&lt;h2 style="text-align: left;"&gt;All Truth&lt;/h2&gt;&lt;p&gt;&amp;nbsp;Just how many results are possible?&lt;/p&gt;&lt;p&gt;Well, i = 2 &lt;b&gt;&lt;i&gt;inputs &lt;/i&gt;&lt;/b&gt;gives 2**i = 4 possible input boolean combinations; so a&amp;nbsp;&lt;b&gt;&lt;i&gt;result column&lt;/i&gt;&lt;/b&gt; has &lt;b&gt;2**i &lt;/b&gt;= 4&amp;nbsp; bits.&lt;br /&gt;The number of different result columns is therefore &lt;b&gt;&lt;i&gt;2**(2**i)&lt;/i&gt;&lt;/b&gt; = 2**4 = 16&lt;/p&gt;&lt;p&gt;We can show all possible results by successive results being a binary count, but this time by column in the results section, (with the LSB being closest to the header row)&lt;/p&gt;&lt;p&gt;The pp_table function automatically&amp;nbsp; generates all possible results if a second parameter of None is used&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, 'Courier New', monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;All Truths of two inputs!&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;pp_ttable&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;All Truths of two inputs!
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;i[1]  i[0]  :  r[0]  r[1]  r[2]  r[3]  r[4]  r[5]  r[6]  r[7]  r[8]  r[9] r[10] r[11] r[12] r[13] r[14] r[15] 
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;==============================================================================================================
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  0     0   :   0     1     0     1     0     1     0     1     0     1     0     1     0     1     0     1   
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  0     1   :   0     0     1     1     0     0     1     1     0     0     1     1     0     0     1     1   
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  1     0   :   0     0     0     0     1     1     1     1     0     0     0     0     1     1     1     1   
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #2b00fe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;  1     1   :   0     0     0     0     0     0     0     0     1     1     1     1     1     1     1     1   &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;We &lt;i&gt;might &lt;/i&gt;say that it shows all possible truths for up-to-and-including two inputs. That is because results include outputs not dependent on any or all of those two inputs. For example r[0], and r[15] do not depend on any input as they give constant outputs of 0 and 1, respectively. r[5] is simply ~i[0] and does not depend on i[1]&lt;/p&gt;&lt;h3 style="text-align: left;"&gt;It's Big, Oh!&lt;/h3&gt;&lt;p&gt;The results grow as&amp;nbsp; 2**(2**i), sometimes called &lt;b&gt;&lt;i&gt;double exponential growth&lt;/i&gt;&lt;/b&gt;! it gets large, quickly!!&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe; font-family: courier;"&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;&lt;b&gt;i | 2**(2**i)&lt;/b&gt;
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;--|----------
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;0 | 2
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;1 | 4
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;2 | 16
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;3 | 256
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;4 | 65_536
&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"&gt;5 | 4_294_967_296&lt;/span&gt;&lt;/span&gt;&lt;span style="-webkit-text-stroke-width: 0px; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;"&gt;
&lt;/span&gt;&lt;/p&gt;&lt;h1 style="text-align: left;"&gt;The code&lt;/h1&gt;&lt;p&gt;&amp;nbsp;Contemplating using AI and needing to get it to understand what I wanted, as well as endless prompting to get it to do what I want, the way&lt;b&gt; I&lt;/b&gt; wanted it;&lt;b&gt;&lt;i&gt; I decided on writing it all by myself &lt;/i&gt;&lt;/b&gt;- I knew I wanted it just so, and the coding would be nothing new to me, just nailing what I wanted to show.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, 'Courier New', monospace; font-size: 14px; font-weight: normal; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;Truthtable prettyprinter&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;Author: Paddy3118 &amp;nbsp;2025/07/19&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;# Regions of a truthtable&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;```text&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;+----------------- --+---------+&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp;Inputs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Result &amp;nbsp;|&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;+------------------- +---------+&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;| I[2] | I[1] | I[0] | &amp;nbsp; R &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;|------|------|------|---------|&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;| &amp;nbsp;0 &amp;nbsp; | &amp;nbsp;0 &amp;nbsp; | &amp;nbsp;0 &amp;nbsp; | &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;| &amp;nbsp;0 &amp;nbsp; | &amp;nbsp;0 &amp;nbsp; | &amp;nbsp;1 &amp;nbsp; | &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;| &amp;nbsp;0 &amp;nbsp; | &amp;nbsp;1 &amp;nbsp; | &amp;nbsp;0 &amp;nbsp; | &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;| &amp;nbsp;0 &amp;nbsp; | &amp;nbsp;1 &amp;nbsp; | &amp;nbsp;1 &amp;nbsp; | &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;| &amp;nbsp;1 &amp;nbsp; | &amp;nbsp;0 &amp;nbsp; | &amp;nbsp;0 &amp;nbsp; | &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;| &amp;nbsp;1 &amp;nbsp; | &amp;nbsp;0 &amp;nbsp; | &amp;nbsp;1 &amp;nbsp; | &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;| &amp;nbsp;1 &amp;nbsp; | &amp;nbsp;1 &amp;nbsp; | &amp;nbsp;0 &amp;nbsp; | &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;| &amp;nbsp;1 &amp;nbsp; | &amp;nbsp;1 &amp;nbsp; | &amp;nbsp;1 &amp;nbsp; | &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;+--------------------+---------+&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;```&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;"""&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #6a9955;"&gt;# %%&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #569cd6;"&gt;def&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;pp_ttable&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;|&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;] &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;|&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_vector_name&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;str&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'i'&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector_name&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;str&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'r'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ) -&amp;gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_single&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_mult&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;False&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;match&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;case&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(): &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# single result&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_single&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;True&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_width&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector_name&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; [&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;case&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(): &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# multiple results&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_mult&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;True&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_width&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector_name&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;[&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;]"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;case&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;: &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# All possible results&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;assert&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;4&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"Refuse to write &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;**&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;**&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt; result columns."&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_mult&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;True&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;**&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;**&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_width&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector_name&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;[&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;) &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;]"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;case&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; _:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;raise&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; Typeerror(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"result must be an int, a list of ints, or None."&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_width&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;max&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_vector_name&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;[&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;]"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;), &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_width&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_vector_name&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;[&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;:}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;]"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;:{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_width&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;': '&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;if&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r_single&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector_name&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;:^{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_width&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;else&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector_name&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;[&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;:}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;]"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;:^{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_width&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;''&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;header&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'='&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;])) &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# header row spacer&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_bits&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; [&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;res&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;:0{&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;**&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}b}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[::&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;res&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_vector&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;**&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;row&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_bits&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;:0{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;input_count&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}b}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;bit&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_bits&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;row&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;bit&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;:^{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_width&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;row&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;': '&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;res_bits&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #c586c0;"&gt;in&lt;/span&gt;&lt;span style="color: #cccccc;"&gt; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;result_bits&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;row&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;res_bits&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;[&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;:^{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;col_width&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;append&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;''&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;row&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;))&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;.&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;join&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;rows&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;))&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #6a9955;"&gt;# %%&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;OR&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;pp_ttable&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;0b&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1110&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;XOR&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;pp_ttable&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;0b&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;110&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;AND&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;pp_ttable&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;0b&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1000&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #6a9955;"&gt;# %%&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;OR, XOR, then AND result *columns*&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;pp_ttable&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, [&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;14&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;6&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;8&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;]) &amp;nbsp;&lt;/span&gt;&lt;span style="color: #6a9955;"&gt;# A list of results, (in decimal this time)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #6a9955;"&gt;# %%&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;All Truths of two inputs!&lt;/span&gt;&lt;span style="color: #d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;pp_ttable&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;(&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;, &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;&lt;span style="color: #cccccc;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #6a9955;"&gt;# %%&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h4 style="text-align: left;"&gt;END.&amp;nbsp;&lt;/h4&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</ns0:encoded><pubDate>Sun, 20 Jul 2025 10:28:00 </pubDate></item></channel></rss>