<?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>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><item><title>Incremental combinations without caching</title><link>http://paddy3118.blogspot.com/feeds/6157910081675774828/comments/default</link><ns0:encoded xmlns:ns0="http://purl.org/rss/1.0/modules/content/">&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/a/AVvXsEiDhcFwRluMUmESYsqTtkwNppqf1z4krD48fhecEBVWqwxG6UN6vaA1CctLiNef3T3kEUip9mQsHGaK6zfHGNo-PICWgj2vo9mFdMU-xSGImhgl8PRc3wgI172uD1R1zRtYCja71vCLWxIZvitL-xTN0cFNHb8jTdTL-JqBYlp50D4CjJuJRuz2" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="" data-original-height="1024" data-original-width="1024" height="534" src="https://blogger.googleusercontent.com/img/a/AVvXsEiDhcFwRluMUmESYsqTtkwNppqf1z4krD48fhecEBVWqwxG6UN6vaA1CctLiNef3T3kEUip9mQsHGaK6zfHGNo-PICWgj2vo9mFdMU-xSGImhgl8PRc3wgI172uD1R1zRtYCja71vCLWxIZvitL-xTN0cFNHb8jTdTL-JqBYlp50D4CjJuJRuz2=w534-h534" width="534" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Irie server room&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Someone had &lt;a href="https://discuss.python.org/t/incremental-combination-generation-from-laggy-generators/85052/2" rel="nofollow" target="_blank"&gt;a problem&lt;/a&gt; where they received initial data d1, worked on all &lt;b&gt;r&lt;/b&gt; combinations of the data initially received, but by the time they had finished that, they checked and found there was now extra data d2, and they need to, in total, process the &lt;b&gt;r&lt;/b&gt; combinations of all data d1+d2.&lt;/p&gt;&lt;p&gt;They don't want to process combinations twice, and the solutions given seemed to generate and store the combinations of&amp;nbsp; d1, then generate the combinations of d1+d2 but test and reject any combination that was found previously.&lt;/p&gt;&lt;p&gt;Seems like a straight-forward answer that is easy to follow, but I thought: &lt;b&gt;&lt;i&gt;Is there a way to create just the extra combinations but without storing all the combinations from before?&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;h2 style="text-align: left;"&gt;My methods&lt;/h2&gt;&lt;p&gt;It's out with Vscode as my IDE. I'll be playing with a lot of code that will end up deleted, modified, rerun. I could use a Jupyter notebook, but I can't publish them to my blog satisfactorily. I'll develop a .py file but with cells: a line comment of # %% visually splits the file into cells in the IDE adding buttons and editor commands to execute cells and selected code, in any order, on a restartable kernel running in an interactive window that also runs Ipython.&lt;/p&gt;&lt;p&gt;When doodling like this, I often create long lines, spaced to highlight comparisons between other lines. I refactor names to be concise at the time, as what you can take in at a glance helps find patterns. Because of that, &lt;b&gt;&lt;i&gt;&lt;span style="color: #2b00fe;"&gt;this blog post is not written to be read on the small screens of phones&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;.&lt;/p&gt;&lt;p&gt;&amp;nbsp;So, its combinations; binomials, nCr.&lt;/p&gt;&lt;h2 style="text-align: left;"&gt;A start&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;First thing was to try and see patterns in the combinations of d1+d2 &lt;i&gt;minus &lt;/i&gt;those of just d1.&lt;/li&gt;&lt;li&gt;Dealing with sets of values; sets are unordered, so will at some&amp;nbsp; time need a function to print them in order to aid pattern finding.&lt;/li&gt;&lt;li&gt;Combinations can be large - use combinations of ints then later work with any type.&lt;/li&gt;&lt;li&gt;Initial combinations of 0 to n-1 ints I later found to be more awkward to reason about so changed to work with combinations of 1 to n ints. extending to n+x added ints n+1 to n+x to combinations.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #6a9955;"&gt;#!/bin/env python3&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;Check patterns in extending combinations nCr&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: #6a9955;"&gt;# %%&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;from&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;functools&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;import&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;reduce&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;from&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;itertools&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;import&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;from&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;pprint&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;import&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;pformat&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;from&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;typing&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;import&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;Any&lt;/span&gt;, &lt;span style="color: #4ec9b0;"&gt;Iterable&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: #dcdcaa;"&gt;nCr&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;n&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: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;r&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: #dcdcaa;"&gt;pf_set&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;s&lt;/span&gt;: &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;) -&amp;gt; &lt;span style="color: #4ec9b0;"&gt;str&lt;/span&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #ce9178;"&gt;"Format set with sorted elements for printing"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; &amp;nbsp;&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;{{&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;pformat&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;sorted&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;s&lt;/span&gt;), &lt;span style="color: #9cdcfe;"&gt;width&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;120&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: #b5cea8;"&gt;1&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: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #d7ba7d;"&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: #6a9955;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style="text-align: left;"&gt;Diffs&lt;/h3&gt;&lt;p&gt;In the following cell I create combinations for r = 3, and n in some range n_range in c and print successive combinations, and differences between successive combinations.&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&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: #9cdcfe;"&gt;r&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #9cdcfe;"&gt;n_range&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;7&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&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;# Investigate combinations nCr for &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;=}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;, and &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;n_range&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;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #6a9955;"&gt;# generate some combinations&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #9cdcfe;"&gt;c&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; {&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;: &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;nCr&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;)) &lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;n_range&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: #ce9178;"&gt;"c = {"&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;key&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;val&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;c&lt;/span&gt;.&lt;span style="color: #dcdcaa;"&gt;items&lt;/span&gt;():&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #dcdcaa;"&gt;print&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;key&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;:2}&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;pf_set&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;val&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: #dcdcaa;"&gt;print&lt;/span&gt;(&lt;span style="color: #ce9178;"&gt;" &amp;nbsp; &amp;nbsp;}"&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: #dcdcaa;"&gt;pp_diffsby&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;c&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;n_range&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;delta_n&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #ce9178;"&gt;"Print nCr in c diffs by delta_n"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #dcdcaa;"&gt;print&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;Diffs by &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;delta_n&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;&amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;all_n&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n_range&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;n1&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;all_n&lt;/span&gt;[&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;]&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;(&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;" &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;n1&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;C&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;}&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;pf_set&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;c&lt;/span&gt;[&lt;span style="color: #9cdcfe;"&gt;n1&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;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;n1&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;n2&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;zip&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;all_n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;all_n&lt;/span&gt;[&lt;span style="color: #9cdcfe;"&gt;delta_n&lt;/span&gt;:]):&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #dcdcaa;"&gt;print&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;n2&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;C&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;}&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;n1&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;C&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;}&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;pf_set&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;c&lt;/span&gt;[&lt;span style="color: #9cdcfe;"&gt;n2&lt;/span&gt;] &lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;c&lt;/span&gt;[&lt;span style="color: #9cdcfe;"&gt;n1&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;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;pp_diffsby&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;c&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;n_range&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;pp_diffsby&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;c&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;n_range&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;)&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style="text-align: left;"&gt;Cell output:&lt;/h4&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;# Investigate combinations nCr for r=3, and n_range=range(3, 7)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;c = {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; 3: {(1, 2, 3)},&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; 4: {(1, 2, 3), (1, 2, 4), (1, 3, 4), (2, 3, 4)},&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; 5: {(1, 2, 3), (1, 2, 4), (1, 2, 5), (1, 3, 4), (1, 3, 5), (1, 4, 5), (2, 3, 4), (2, 3, 5), (2, 4, 5), (3, 4, 5)},&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; 6: {(1, 2, 3), (1, 2, 4), (1, 2, 5), (1, 2, 6), (1, 3, 4), (1, 3, 5), (1, 3, 6), (1, 4, 5), (1, 4, 6), (1, 5, 6),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp;(2, 3, 4), (2, 3, 5), (2, 3, 6), (2, 4, 5), (2, 4, 6), (2, 5, 6), (3, 4, 5), (3, 4, 6), (3, 5, 6), (4, 5, 6)},&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: #ce9178;"&gt;Diffs by 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3C3 = {(1, 2, 3)}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;4C3 - 3C3 = {(1, 2, 4), (1, 3, 4), (2, 3, 4)}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;5C3 - 4C3 = {(1, 2, 5), (1, 3, 5), (1, 4, 5), (2, 3, 5), (2, 4, 5), (3, 4, 5)}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;6C3 - 5C3 = {(1, 2, 6), (1, 3, 6), (1, 4, 6), (1, 5, 6), (2, 3, 6), (2, 4, 6), (2, 5, 6), (3, 4, 6), (3, 5, 6), (4, 5, 6)}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;Diffs by 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3C3 = {(1, 2, 3)}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;5C3 - 3C3 = {(1, 2, 4), (1, 2, 5), (1, 3, 4), (1, 3, 5), (1, 4, 5), (2, 3, 4), (2, 3, 5), (2, 4, 5), (3, 4, 5)}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;6C3 - 4C3 = {(1, 2, 5), (1, 2, 6), (1, 3, 5), (1, 3, 6), (1, 4, 5), (1, 4, 6), (1, 5, 6), (2, 3, 5), (2, 3, 6), (2, 4, 5),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp;(2, 4, 6), (2, 5, 6), (3, 4, 5), (3, 4, 6), (3, 5, 6), (4, 5, 6)}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style="text-align: left;"&gt;Patterns&lt;/h2&gt;&lt;p&gt;Looking at diffs 4C3 - 3C3 each tuple is like they took 3C2 = {(1,2), (1,3), (2,3)} and tagged the extra 4 on to every inner tuple. &lt;br /&gt;Lets call this modification &lt;b&gt;extending&lt;/b&gt;,&lt;/p&gt;&lt;p&gt;5C3 - 4C3 &lt;i&gt;seems &lt;/i&gt;to follow the same pattern.&lt;/p&gt;&lt;h3 style="text-align: left;"&gt;Function extend&lt;/h3&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&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: #569cd6;"&gt;def&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extend&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;s&lt;/span&gt;: &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;[&lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;[&lt;span style="color: #9cdcfe;"&gt;Any&lt;/span&gt;]], &lt;span style="color: #9cdcfe;"&gt;value&lt;/span&gt;: &lt;span style="color: #9cdcfe;"&gt;Any&lt;/span&gt;) -&amp;gt; &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;[&lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;[&lt;span style="color: #9cdcfe;"&gt;Any&lt;/span&gt;]]:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &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; Returns set of tuples of s with each tuple extended by value&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;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;((&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;tpl&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;value&lt;/span&gt;) &lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;tpl&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;s&lt;/span&gt;)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #9cdcfe;"&gt;s&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; {(&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;), (&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;), (&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;)}&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&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;s&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;extend&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;s&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&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: #c586c0;"&gt;assert&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extend&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;s&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt; {(&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;), (&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;), (&lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&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;h3 style="text-align: left;"&gt;Rename nCr to bino and check extend works&lt;/h3&gt;&lt;p&gt;nCr&amp;nbsp; was originally working with 0..n-1 and bino was 1..n. Now they both do&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&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: #6a9955;"&gt;# binomial combinations of ints 1..&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: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;: &lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;: &lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;) -&amp;gt; &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;[&lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;[&lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;]]:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &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; All combinations of 1..n ints taken r at a time&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; bino(4, 3) == {(1, 2, 3), (1, 2, 4), (1, 3, 4), (2, 3, 4)}&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;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;n&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: #9cdcfe;"&gt;r&lt;/span&gt;))&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&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: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;4&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt; (&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;|&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extend&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;), &lt;span style="color: #9cdcfe;"&gt;value&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;4&lt;/span&gt;))) &amp;nbsp;= &amp;nbsp;&lt;span style="color: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;)&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style="text-align: left;"&gt;Cell output:&lt;/h4&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;div style="line-height: 19px;"&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;(bino(4, 3) == (bino(3, 3) | extend(bino(3, 2), value=4))) &amp;nbsp;= &amp;nbsp;True&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h2 style="text-align: left;"&gt;Pascal&lt;/h2&gt;&lt;div&gt;After finding that pattern I went searching for it using Gemini AI. My question was:&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;blockquote&gt;show that comb(n+1, r) = comb(n, r) + (n+1)* comb(n, r-1)&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;The answer said I got my text prompt wrong and mentioned &lt;a href="https://en.wikipedia.org/wiki/Pascal%27s_rule" rel="nofollow" target="_blank"&gt;Pascals Rule&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;I scanned the page, as I no time for how things were expressed but it seemed reasonable that I had the algorithm right,&lt;i&gt; and that there were relations of some kind for bigger differences in n&lt;/i&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style="text-align: left;"&gt;Pascals rule checker&lt;/h3&gt;&lt;div&gt;I wrote a function to do the check then exercised it&amp;nbsp; (a few times, now deleted).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&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: #dcdcaa;"&gt;pascals_rule&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;: &lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;: &lt;span style="color: #4ec9b0;"&gt;int&lt;/span&gt;) -&amp;gt; &lt;span style="color: #4ec9b0;"&gt;bool&lt;/span&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #ce9178;"&gt;"check C(n+1, r) == C(n, r) | extend(C(n, r-1), n + 1)"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&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: #9cdcfe;"&gt;r&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;|&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extend&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&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: #9cdcfe;"&gt;n&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;br /&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;assert&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;pascals_rule&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;6&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;)&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style="text-align: left;"&gt;Diff by 1 extra item "done", attempting diff by 2.&lt;/h2&gt;&lt;div&gt;Looking back at the diffs by 2 table and looking for patterns I thought I might need different types of extension functions modifying the tuples within sets in different ways - it seemed "mathematical" so...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&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: #6a9955;"&gt;# Some functions that may be needed&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: #dcdcaa;"&gt;extend_mul&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;s&lt;/span&gt;: &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;[&lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;[&lt;span style="color: #9cdcfe;"&gt;Any&lt;/span&gt;]], &lt;span style="color: #9cdcfe;"&gt;e&lt;/span&gt;: &lt;span style="color: #4ec9b0;"&gt;Iterable&lt;/span&gt;) -&amp;gt; &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;[&lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;[&lt;span style="color: #9cdcfe;"&gt;Any&lt;/span&gt;]]:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &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; set where each tuple of s is extended in turn, by every item in e&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; s = {(1, 2, 3), (1, 2, 4), (1, 3, 4), (2, 3, 4)}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; extend_mul(s, (5, 6)) == {(1, 2, 3, 5), (1, 2, 3, 6),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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; (1, 2, 4, 5), (1, 2, 4, 6),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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; (1, 3, 4, 5), (1, 3, 4, 6),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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; (2, 3, 4, 5), (2, 3, 4, 6)}&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;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; {(&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;t&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt;) &lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;t&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;s&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;e&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: #dcdcaa;"&gt;extend_muli&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;s&lt;/span&gt;: &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;[&lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;[&lt;span style="color: #9cdcfe;"&gt;Any&lt;/span&gt;]], &lt;span style="color: #9cdcfe;"&gt;e&lt;/span&gt;: &lt;span style="color: #4ec9b0;"&gt;Iterable&lt;/span&gt;) -&amp;gt; &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;[&lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;[&lt;span style="color: #9cdcfe;"&gt;Any&lt;/span&gt;]]:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &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; set where each tuple of s is extended in turn, by every *item in e&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; s = {(1, 2, 3), (1, 2, 4), (1, 3, 4), (2, 3, 4)}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; extend_muli(s, ((5,), (6,))) == {(1, 2, 3, 5), (1, 2, 3, 6),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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; (1, 2, 4, 5), (1, 2, 4, 6),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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; (1, 3, 4, 5), (1, 3, 4, 6),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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; (2, 3, 4, 5), (2, 3, 4, 6)}&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;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; {(&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;t&lt;/span&gt;, &lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt;) &lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;t&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;s&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;item&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;e&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: #dcdcaa;"&gt;extend_add&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;s&lt;/span&gt;: &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;[&lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;[&lt;span style="color: #9cdcfe;"&gt;Any&lt;/span&gt;]], &lt;span style="color: #9cdcfe;"&gt;e&lt;/span&gt;: &lt;span style="color: #4ec9b0;"&gt;Iterable&lt;/span&gt;) -&amp;gt; &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;[&lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;[&lt;span style="color: #9cdcfe;"&gt;Any&lt;/span&gt;]]:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &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; set where each tuple of s is extended once, all &amp;nbsp;items of *e&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; s = {(1, 2, 3), (1, 2, 4), (1, 3, 4), (2, 3, 4)}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; extend_add(s, (5, 6)) == {(1, 2, 3, 5, 6), (1, 2, 4, 5, 6),&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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; (1, 3, 4, 5, 6), (2, 3, 4, 5, 6)}&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;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; {(&lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;t&lt;/span&gt;, &lt;span style="color: #d4d4d4;"&gt;*&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;e&lt;/span&gt;) &lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;t&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;s&lt;/span&gt;}&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style="text-align: left;"&gt;Diff by 2 pattern finding&lt;/h2&gt;&lt;p&gt;It was incremental - find a pattern in 3C?, subtract it from 5C3, Find a pattern in 3C? that covers part of the remainder; repeat.&lt;br /&gt;(Where ? &amp;lt;=3).&lt;/p&gt;&lt;p&gt;I also shortened function pf_set to pf so it would take less space when printing formatted expressions in f-strings&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&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: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"To simplify formatted printing of sets: &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;pf&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;:=&lt;/span&gt;&lt;span style="color: #dcdcaa;"&gt;pf_set&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;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&lt;/span&gt;(&lt;span style="color: #ce9178;"&gt;"# Looking again at the diffs by 2 i.e. `5C3 - 3C3`"&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;x&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&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: #dcdcaa;"&gt;print&lt;/span&gt;(&lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"5C3 - 3C3 = &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;pf&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;5&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&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: #dcdcaa;"&gt;print&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;There's &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;pf&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&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: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt; in there with each tuple extended by 4 and by 5 "&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&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: #9cdcfe;"&gt;pf&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;extend_mul&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&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: #b5cea8;"&gt;3&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: #b5cea8;"&gt;3&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: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&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;Whats left: &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;pf&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;tmp1&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;:=&lt;/span&gt; (&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;5&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extend_mul&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&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: #b5cea8;"&gt;3&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: #b5cea8;"&gt;3&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: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&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; &amp;nbsp;Now &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;pf&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&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: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&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; &amp;nbsp;So &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;pf&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;tmp2&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;:=&lt;/span&gt; (&lt;span style="color: #dcdcaa;"&gt;extend_add&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&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: #b5cea8;"&gt;3&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: #b5cea8;"&gt;3&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: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&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;Finally: &lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;pf&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;tmp1&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;tmp2&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;h4 style="text-align: left;"&gt;Cell output:&lt;/h4&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;To simplify formatted printing of sets: (pf:=pf_set) = &amp;lt;function pf_set at 0x7f1bd45365c0&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;# Looking again at the diffs by 2 i.e. `5C3 - 3C3`&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;5C3 - 3C3 = {(1, 2, 4), (1, 2, 5), (1, 3, 4), (1, 3, 5), (1, 4, 5), (2, 3, 4), (2, 3, 5), (2, 4, 5), (3, 4, 5)}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; There's pf(bino(3, 3-1)) = '{(1, 2), (1, 3), (2, 3)}' in there with each tuple extended by 4 and by 5 &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; pf(extend_mul(bino(3, 3-1), (3+1, 3+2))) = '{(1, 2, 4), (1, 2, 5), (1, 3, 4), (1, 3, 5), (2, 3, 4), (2, 3, 5)}'&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; Whats left: pf(tmp1 := (bino(5, 3) - bino(3, 3) - extend_mul(bino(3, 3-1), (3+1, 3+2)))) = '{(1, 4, 5), (2, 4, 5), (3, 4, 5)}'&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; Now pf(bino(3, 3-2)) = '{(1,), (2,), (3,)}'&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; So pf(tmp2 := (extend_add(bino(3, 3-2), (3+1, 3+2)))) = '{(1, 4, 5), (2, 4, 5), (3, 4, 5)}'&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; Finally: pf(tmp1 - tmp2) = '{}'&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style="text-align: left;"&gt;Behold Diff by 2&lt;/h3&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #6a9955;"&gt;# %%&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;x&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #569cd6;"&gt;None&lt;/span&gt;, &lt;span style="color: #569cd6;"&gt;None&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: #dcdcaa;"&gt;print&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;# lets set some variables and use those for the diffs by 2"&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style="color: #dcdcaa;"&gt;print&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;n&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;:=&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;), (&lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;:=&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;3&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: #dcdcaa;"&gt;print&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: #dcdcaa;"&gt;len&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&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: #9cdcfe;"&gt;r&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: #dcdcaa;"&gt;print&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: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&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: #9cdcfe;"&gt;r&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt; (&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;|&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extend_mul&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&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: #9cdcfe;"&gt;n&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: #9cdcfe;"&gt;n&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: #dcdcaa;"&gt;extend_add&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&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: #9cdcfe;"&gt;n&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: #9cdcfe;"&gt;n&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: #569cd6;"&gt;}&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"&lt;/span&gt;)&lt;/div&gt;&lt;/div&gt;&lt;h4 style="text-align: left;"&gt;Cell output:&lt;/h4&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;# lets set some variables and use those for the diffs by 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; (n:=3), (r:=3) = (3, 3)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; len(bino(n+2, r)) = 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; bino(n+2, r) == (bino(n, r) | extend_mul(bino(n, r-1), (n+1, n+2)) | extend_add(bino(n, r-2), (n+1, n+2))) = True&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h2 style="text-align: left;"&gt;Pascals rules for increasing diffs&lt;/h2&gt;&lt;p&gt;I followed the same method for diffs of three and ended up with these three functions:&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&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: #6a9955;"&gt;# By similar observation and much checking:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #569cd6;"&gt;def&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;pascal_rule_1&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;) -&amp;gt; &lt;span style="color: #4ec9b0;"&gt;bool&lt;/span&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &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; Checks bino(n+1, r) == (bino(n, r)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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; | extend_add(bino(n, r-1), (n+1,)))&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;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&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: #9cdcfe;"&gt;r&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt; (&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;)&lt;/div&gt;&lt;div&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 style="color: #d4d4d4;"&gt;|&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extend_add&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&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: #9cdcfe;"&gt;n&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;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #569cd6;"&gt;def&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;pascal_rule_2&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;) -&amp;gt; &lt;span style="color: #4ec9b0;"&gt;bool&lt;/span&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &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; Checks bino(n+2, r) == (bino(n, r)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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; | extend_mul(bino(n, r-1), (n+1, n+2))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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; | extend_add(bino(n, r-2), (n+1, n+2)))&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;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&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: #9cdcfe;"&gt;r&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt; (&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;)&lt;/div&gt;&lt;div&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 style="color: #d4d4d4;"&gt;|&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extend_mul&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&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: #9cdcfe;"&gt;n&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: #9cdcfe;"&gt;n&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;))&lt;/div&gt;&lt;div&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 style="color: #d4d4d4;"&gt;|&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extend_add&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&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: #9cdcfe;"&gt;n&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: #9cdcfe;"&gt;n&lt;/span&gt;&lt;span style="color: #d4d4d4;"&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: #569cd6;"&gt;def&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;pascal_rule_3&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;) -&amp;gt; &lt;span style="color: #4ec9b0;"&gt;bool&lt;/span&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &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; Checks bino(n+3, r) == (bino(n, r)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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; | extend_muli(bino(n, r-1), tuple(combinations((n+1, n+2, n+3), 1)))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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; | extend_muli(bino(n, r-2), tuple(combinations((n+1, n+2, n+3), 2)))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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; | extend_muli(bino(n, r-3), tuple(combinations((n+1, n+2, n+3), 3)))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&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;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; """&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;extra_n&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&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: #9cdcfe;"&gt;n&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;4&lt;/span&gt;)) &amp;nbsp;&lt;span style="color: #6a9955;"&gt;# n..n+3 inclusive&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt; (&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;)&lt;/div&gt;&lt;div&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 style="color: #d4d4d4;"&gt;|&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extend_muli&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&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: #4ec9b0;"&gt;tuple&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;extra_n&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;)))&lt;/div&gt;&lt;div&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 style="color: #d4d4d4;"&gt;|&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extend_muli&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&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: #4ec9b0;"&gt;tuple&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;extra_n&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;)))&lt;/div&gt;&lt;div&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 style="color: #d4d4d4;"&gt;|&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extend_muli&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;), &lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;extra_n&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;)))&lt;/div&gt;&lt;div&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;/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: #6a9955;"&gt;# Simple Checks&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;assert&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;pascal_rule_1&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;7&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;4&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;assert&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;pascal_rule_2&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;9&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;4&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;assert&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;pascal_rule_3&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;11&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;4&lt;/span&gt;)&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style="text-align: left;"&gt;Generalised Pascals rule&lt;/h3&gt;&lt;p&gt;What can I say, I looked for patterns in the pascals rule functions for discrete diffs and tried to find patterns. I looked deeper into identities between the extend functions.&lt;/p&gt;&lt;p&gt;I finally found the following function that passed my tests, (many not shown).&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; line-height: 19px; white-space: pre;"&gt;&lt;div&gt;&lt;span style="color: #6a9955;"&gt;# %%&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #6a9955;"&gt;# from pascal_rule_3 to pascal_rule_x&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: #dcdcaa;"&gt;pascal_rule_x&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;x&lt;/span&gt;) -&amp;gt; &lt;span style="color: #4ec9b0;"&gt;bool&lt;/span&gt;:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &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; Checks bino(n+x, r) == union_reduce(&amp;lt;extend_muli selections of bino(n, 0 &amp;lt; r &amp;lt; r)&amp;gt; )&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; ie if already used bino(n, r) and along comes x more for n then it shows how to&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; calculate bino(n+x, r) without the need for storing bino(n, r)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; """&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;extra_n&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&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: #9cdcfe;"&gt;n&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;x&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;)) &amp;nbsp;&lt;span style="color: #6a9955;"&gt;# n..n+x inclusive&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;n_r_terms&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; (&lt;span style="color: #dcdcaa;"&gt;extend_muli&lt;/span&gt;((&lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;) &lt;span style="color: #c586c0;"&gt;if&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt; &lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;else&lt;/span&gt; {()}), &amp;nbsp; &lt;span style="color: #6a9955;"&gt;# extend this&lt;/span&gt;&lt;/div&gt;&lt;div&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;&lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;extra_n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;))) &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #6a9955;"&gt;# by this&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;min&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;x&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&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;&amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;reduction&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;reduce&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;.&lt;span style="color: #dcdcaa;"&gt;union&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;n_r_terms&lt;/span&gt;, &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;())&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;bino&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;x&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;reduction&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;assert&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;pascal_rule_x&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;11&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;4&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;) &amp;nbsp;&lt;span style="color: #6a9955;"&gt;# n, r, x&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;assert&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;pascal_rule_x&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;11&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;5&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;4&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;assert&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;pascal_rule_x&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;2&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;)&lt;/div&gt;&lt;/div&gt;&lt;p&gt;I don't like the&amp;nbsp;&lt;span style="background-color: #1f1f1f; color: #c586c0; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;"&gt;if&lt;/span&gt;&lt;span style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;"&gt; &lt;/span&gt;&lt;span style="background-color: #1f1f1f; color: #9cdcfe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;"&gt;r&lt;/span&gt;&lt;span style="background-color: #1f1f1f; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;"&gt;-&lt;/span&gt;&lt;span style="background-color: #1f1f1f; color: #9cdcfe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;"&gt;i&lt;/span&gt;&lt;span style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;"&gt; &lt;/span&gt;&lt;span style="background-color: #1f1f1f; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;"&gt; &lt;/span&gt;&lt;span style="background-color: #1f1f1f; color: #b5cea8; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;"&gt;0&lt;/span&gt;&lt;span style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;"&gt; &lt;/span&gt;&lt;span style="background-color: #1f1f1f; color: #c586c0; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;"&gt;else&lt;/span&gt;&lt;span style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;"&gt; {()}&lt;/span&gt;&amp;nbsp;bit as it doesn't seem elegant. There is probably some identity to be found that would make it disappear but, you know.&lt;/p&gt;&lt;h1 style="text-align: left;"&gt;Back to the original problem&lt;/h1&gt;&lt;p&gt;If comb(d1, r) is processed and then we find an extra d2 items, then we want to process extra_comb(d1, r, d2) where extra_comb does not include or save comb of d1.&lt;/p&gt;&lt;p&gt;We just need to exclude the nCr term in reduction of function pascal_rule_x.&lt;/p&gt;&lt;p&gt;Eventually I arrive at&lt;/p&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&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: #9cdcfe;"&gt;first&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt;(&lt;span style="color: #ce9178;"&gt;'abcd'&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;))&lt;/div&gt;&lt;div&gt;&lt;span style="color: #9cdcfe;"&gt;first&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #6a9955;"&gt;# %%&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #9cdcfe;"&gt;all&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;list&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt;(&lt;span style="color: #ce9178;"&gt;'abcdef'&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;))&lt;/div&gt;&lt;div&gt;&lt;span style="color: #6a9955;"&gt;# %%&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #9cdcfe;"&gt;extra&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;sorted&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;all&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;first&lt;/span&gt;))&lt;/div&gt;&lt;div&gt;&lt;span style="color: #9cdcfe;"&gt;extra&lt;/span&gt;&lt;/div&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: #569cd6;"&gt;def&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extra_combs&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;orig&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'abcd'&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;delta&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;'ef'&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #4ec9b0;"&gt;C&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt; &amp;nbsp;&lt;span style="color: #6a9955;"&gt;# Less typing&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;extra_n&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;delta&lt;/span&gt;) &amp;nbsp;&lt;span style="color: #6a9955;"&gt;# n..n+x inclusive&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;orig&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;n_r_terms&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; (&lt;span style="color: #dcdcaa;"&gt;extend_muli&lt;/span&gt;((&lt;span style="color: #4ec9b0;"&gt;C&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;) &lt;span style="color: #c586c0;"&gt;if&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;-&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;&amp;gt;&lt;/span&gt; &lt;span style="color: #b5cea8;"&gt;0&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;else&lt;/span&gt; {()}), &amp;nbsp; &lt;span style="color: #6a9955;"&gt;# extend this&lt;/span&gt;&lt;/div&gt;&lt;div&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;&lt;span style="color: #4ec9b0;"&gt;tuple&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;C&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;extra_n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;))) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #6a9955;"&gt;# by this&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;(&lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;, &lt;span style="color: #dcdcaa;"&gt;min&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;extra_n&lt;/span&gt;), &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;) &lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt; &lt;span style="color: #b5cea8;"&gt;1&lt;/span&gt;)) &amp;nbsp; &amp;nbsp; &lt;span style="color: #6a9955;"&gt;# miss C(n, r)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;reduction&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;reduce&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;.&lt;span style="color: #dcdcaa;"&gt;union&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;n_r_terms&lt;/span&gt;, &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;())&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #6a9955;"&gt;# set(C(n+extra_n, r)) - reduction == set(C(n, r))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;return&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;reduction&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;delta&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #ce9178;"&gt;'abcd'&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #ce9178;"&gt;'efg'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;assert&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;delta&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;)) \&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;)).&lt;span style="color: #dcdcaa;"&gt;union&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;extra_combs&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;delta&lt;/span&gt;))&lt;/div&gt;&lt;/div&gt;&lt;h2 style="text-align: left;"&gt;Tests&lt;/h2&gt;&lt;div style="background-color: #1f1f1f; color: #cccccc; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;"&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: #6a9955;"&gt;# Test comb(n+x, r) == comb(n, r) | extra_combs(n, r, x)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;delta_&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #ce9178;"&gt;'abcdefg'&lt;/span&gt;, &lt;span style="color: #b5cea8;"&gt;3&lt;/span&gt;, &lt;span style="color: #ce9178;"&gt;'hijkl'&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;)):&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;delta&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; (&lt;span style="color: #9cdcfe;"&gt;delta_&lt;/span&gt;[:&lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt;] &lt;span style="color: #c586c0;"&gt;for&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;i&lt;/span&gt; &lt;span style="color: #c586c0;"&gt;in&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;range&lt;/span&gt;(&lt;span style="color: #dcdcaa;"&gt;len&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;delta_&lt;/span&gt;))):&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;combnx&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;&lt;span style="color: #d4d4d4;"&gt;+&lt;/span&gt;&lt;span style="color: #9cdcfe;"&gt;delta&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;))&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;combn&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #4ec9b0;"&gt;set&lt;/span&gt;(&lt;span style="color: #4ec9b0;"&gt;combinations&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;))&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #9cdcfe;"&gt;extra&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;=&lt;/span&gt; &lt;span style="color: #dcdcaa;"&gt;extra_combs&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;delta&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;assert&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;combnx&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;==&lt;/span&gt; (&lt;span style="color: #9cdcfe;"&gt;combn&lt;/span&gt; &lt;span style="color: #d4d4d4;"&gt;|&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;extra&lt;/span&gt;), &lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"Whoops! For &amp;nbsp;&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;delta&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;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #6a9955;"&gt;# checks that extra does not generate any of combn&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color: #c586c0;"&gt;assert&lt;/span&gt; &lt;span style="color: #569cd6;"&gt;not&lt;/span&gt; &lt;span style="color: #9cdcfe;"&gt;extra&lt;/span&gt;.&lt;span style="color: #dcdcaa;"&gt;intersection&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;combn&lt;/span&gt;), &lt;span style="color: #569cd6;"&gt;f&lt;/span&gt;&lt;span style="color: #ce9178;"&gt;"Whoops! For &amp;nbsp;&lt;/span&gt;&lt;span style="color: #569cd6;"&gt;{&lt;/span&gt;(&lt;span style="color: #9cdcfe;"&gt;n&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;r&lt;/span&gt;, &lt;span style="color: #9cdcfe;"&gt;delta&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;br /&gt;&lt;/div&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;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;</ns0:encoded><pubDate>Sun, 23 Mar 2025 08:54:00 UTC</pubDate></item></channel></rss>