<?xml version="1.0"?>
<div class="add">

<span class="kw">let </span><font color="Maroon" title="c1">SOURCE</font> be   non  <a href="xboole_0.html#V1" title="XBOOLE_0:attr.1">empty</a>   <a href="finset_1.html#V1" title="FINSET_1:attr.1">finite</a>   <a href="hidden.html#M2" title="HIDDEN:mode.2">set</a> ; <a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide">  for <font color="Olive" title="b1">p</font> being    <a href="prob_1.html#M2" title="PROB_1:mode.2">Probability</a> of  <a href="random_1.html#K1" title="RANDOM_1:func.1">Trivial-SigmaField</a> <font color="Maroon" title="c1">SOURCE</font><br/>  for <font color="Olive" title="b2">T</font> being    <a href="huffman1.html#M2" title="HUFFMAN1:mode.2">BinHuffmanTree</a> of <font color="Olive" title="b1">p</font> holds   <a href="trees_2.html#K6" title="TREES_2:func.6">Leaves</a> <font color="Olive" title="b2">T</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"> { <span class="default"> <font color="Olive" title="b3">z</font> where <font color="Olive" title="b3">z</font> is    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of <span class="p1"><a href="zfmisc_1.html#K2" title="ZFMISC_1:func.2">[:</a><span class="default"><a href="numbers.html#NK1" title="NUMBERS:NK.1">NAT</a>,<a href="numbers.html#K1" title="NUMBERS:func.1">REAL</a></span><a href="zfmisc_1.html#K2" title="ZFMISC_1:func.2">:]</a></span> :  ex <font color="Olive" title="b4">x</font> being    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of <font color="Maroon" title="c1">SOURCE</font> st <font color="Olive" title="b3">z</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"><a href="tarski.html#K4" title="TARSKI:func.4">[</a><span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><span class="p4">(<span class="default"><a href="finseq_1.html#K20" title="FINSEQ_1:func.20">canFS</a> <font color="Maroon" title="c1">SOURCE</font></span>)</span> <a href="funct_1.html#K2" title="FUNCT_1:func.2">"</a></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b4">x</font></span>)</span>,<span class="p2">(<span class="default"><font color="Olive" title="b1">p</font> <a href="funct_2.html#K3" title="FUNCT_2:func.3">.</a> <span class="p3"><a href="domain_1.html#K6" title="DOMAIN_1:func.6">{</a><span class="default"><font color="Olive" title="b4">x</font></span><a href="domain_1.html#K6" title="DOMAIN_1:func.6">}</a></span></span>)</span></span><a href="tarski.html#K4" title="TARSKI:func.4">]</a></span> </span> } </span> </span><br/><span class="kw">let </span><font color="Maroon" title="c2">p</font> be    <a href="prob_1.html#M2" title="PROB_1:mode.2">Probability</a> of  <a href="random_1.html#K1" title="RANDOM_1:func.1">Trivial-SigmaField</a> <font color="Maroon" title="c1">SOURCE</font>; <a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide">  for <font color="Olive" title="b1">T</font> being    <a href="huffman1.html#M2" title="HUFFMAN1:mode.2">BinHuffmanTree</a> of <font color="Maroon" title="c2">p</font> holds   <a href="trees_2.html#K6" title="TREES_2:func.6">Leaves</a> <font color="Olive" title="b1">T</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"> { <span class="default"> <font color="Olive" title="b2">z</font> where <font color="Olive" title="b2">z</font> is    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of <span class="p1"><a href="zfmisc_1.html#K2" title="ZFMISC_1:func.2">[:</a><span class="default"><a href="numbers.html#NK1" title="NUMBERS:NK.1">NAT</a>,<a href="numbers.html#K1" title="NUMBERS:func.1">REAL</a></span><a href="zfmisc_1.html#K2" title="ZFMISC_1:func.2">:]</a></span> :  ex <font color="Olive" title="b3">x</font> being    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of <font color="Maroon" title="c1">SOURCE</font> st <font color="Olive" title="b2">z</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"><a href="tarski.html#K4" title="TARSKI:func.4">[</a><span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><span class="p4">(<span class="default"><a href="finseq_1.html#K20" title="FINSEQ_1:func.20">canFS</a> <font color="Maroon" title="c1">SOURCE</font></span>)</span> <a href="funct_1.html#K2" title="FUNCT_1:func.2">"</a></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b3">x</font></span>)</span>,<span class="p2">(<span class="default"><font color="Maroon" title="c2">p</font> <a href="funct_2.html#K3" title="FUNCT_2:func.3">.</a> <span class="p3"><a href="domain_1.html#K6" title="DOMAIN_1:func.6">{</a><span class="default"><font color="Olive" title="b3">x</font></span><a href="domain_1.html#K6" title="DOMAIN_1:func.6">}</a></span></span>)</span></span><a href="tarski.html#K4" title="TARSKI:func.4">]</a></span> </span> } </span> </span><br/><span class="kw">let </span><font color="Maroon" title="c3">T</font> be    <a href="huffman1.html#M2" title="HUFFMAN1:mode.2">BinHuffmanTree</a> of <font color="Maroon" title="c2">p</font>; <a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide">  <a href="trees_2.html#K6" title="TREES_2:func.6">Leaves</a> <font color="Maroon" title="c3">T</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"> { <span class="default"> <font color="Olive" title="b1">z</font> where <font color="Olive" title="b1">z</font> is    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of <span class="p1"><a href="zfmisc_1.html#K2" title="ZFMISC_1:func.2">[:</a><span class="default"><a href="numbers.html#NK1" title="NUMBERS:NK.1">NAT</a>,<a href="numbers.html#K1" title="NUMBERS:func.1">REAL</a></span><a href="zfmisc_1.html#K2" title="ZFMISC_1:func.2">:]</a></span> :  ex <font color="Olive" title="b2">x</font> being    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of <font color="Maroon" title="c1">SOURCE</font> st <font color="Olive" title="b1">z</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"><a href="tarski.html#K4" title="TARSKI:func.4">[</a><span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><span class="p4">(<span class="default"><a href="finseq_1.html#K20" title="FINSEQ_1:func.20">canFS</a> <font color="Maroon" title="c1">SOURCE</font></span>)</span> <a href="funct_1.html#K2" title="FUNCT_1:func.2">"</a></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b2">x</font></span>)</span>,<span class="p2">(<span class="default"><font color="Maroon" title="c2">p</font> <a href="funct_2.html#K3" title="FUNCT_2:func.3">.</a> <span class="p3"><a href="domain_1.html#K6" title="DOMAIN_1:func.6">{</a><span class="default"><font color="Olive" title="b2">x</font></span><a href="domain_1.html#K6" title="DOMAIN_1:func.6">}</a></span></span>)</span></span><a href="tarski.html#K4" title="TARSKI:func.4">]</a></span> </span> } </span> </span><br/>





<span class="kw">consider </span><font color="Maroon" title="c4">Tseq</font> being    <a href="trees_4.html#M1" title="TREES_4:mode.1">FinSequence</a> of  <a href="huffman1.html#K3" title="HUFFMAN1:func.3">BoolBinFinTrees</a> <a href="huffman1.html#K1" title="HUFFMAN1:func.1">IndexedREAL</a>, <font color="Maroon" title="c5">q</font> being    <a href="finseq_1.html#M2" title="FINSEQ_1:mode.2">FinSequence</a> of  <a href="numbers.html#NK1" title="NUMBERS:NK.1">NAT</a> <span class="kw"> such that </span><br/><a NAME="E2:39"/><span class="lab"><font color="Green" title="E27">A1</font></span>: 
( <font color="Maroon" title="c4">Tseq</font>,<font color="Maroon" title="c5">q</font>,<font color="Maroon" title="c2">p</font> <a href="huffman1.html#R1" title="HUFFMAN1:pred.1">is_constructingBinHuffmanTree</a>  &amp; <span class="p1"><a href="tarski.html#K1" title="TARSKI:func.1">{</a><span class="default"><font color="Maroon" title="c3">T</font></span><a href="tarski.html#K1" title="TARSKI:func.1">}</a></span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c4">Tseq</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <span class="p1">(<span class="default"><a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <font color="Maroon" title="c4">Tseq</font></span>)</span> )
 <span class="kw">by</span> <span class="lab"><a class="ref" href="huffman1.html#D13" target="_self" onmouseover="rs('huffman1/D13')" onmouseout="rh()">Def13</a></span>;<br/>
<a NAME="E3:39"/>
1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a>  <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <font color="Maroon" title="c4">Tseq</font>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="nat_1.html#T14" onmouseover="rs('nat_1/T14')" onmouseout="rh()">NAT_1:14</a>, <a class="txt" href="#E2:39"><span class="lab"><font color="Green" title="E27">A1</font></span></a></span>;<br/>
<a NAME="E4:39"/><span class="kw">then </span><span class="lab"><font color="Green" title="E28">A2</font></span>: 
 <a href="tarski.html#K3" title="TARSKI:func.3">union</a> <span class="p1">(<span class="default"><a href="huffman1.html#K10" title="HUFFMAN1:func.10">LeavesSet</a> <span class="p2"><a href="tarski.html#K1" title="TARSKI:func.1">{</a><span class="default"><font color="Maroon" title="c3">T</font></span><a href="tarski.html#K1" title="TARSKI:func.1">}</a></span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"> { <span class="default"> <font color="Olive" title="b1">z</font> where <font color="Olive" title="b1">z</font> is    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of <span class="p1"><a href="zfmisc_1.html#K2" title="ZFMISC_1:func.2">[:</a><span class="default"><a href="numbers.html#NK1" title="NUMBERS:NK.1">NAT</a>,<a href="numbers.html#K1" title="NUMBERS:func.1">REAL</a></span><a href="zfmisc_1.html#K2" title="ZFMISC_1:func.2">:]</a></span> :  ex <font color="Olive" title="b2">x</font> being    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of <font color="Maroon" title="c1">SOURCE</font> st <font color="Olive" title="b1">z</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"><a href="tarski.html#K4" title="TARSKI:func.4">[</a><span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><span class="p4">(<span class="default"><a href="finseq_1.html#K20" title="FINSEQ_1:func.20">canFS</a> <font color="Maroon" title="c1">SOURCE</font></span>)</span> <a href="funct_1.html#K2" title="FUNCT_1:func.2">"</a></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b2">x</font></span>)</span>,<span class="p2">(<span class="default"><font color="Maroon" title="c2">p</font> <a href="funct_2.html#K3" title="FUNCT_2:func.3">.</a> <span class="p3"><a href="domain_1.html#K6" title="DOMAIN_1:func.6">{</a><span class="default"><font color="Olive" title="b2">x</font></span><a href="domain_1.html#K6" title="DOMAIN_1:func.6">}</a></span></span>)</span></span><a href="tarski.html#K4" title="TARSKI:func.4">]</a></span> </span> } </span> 
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="huffman1.html#T19" target="_self" onmouseover="rs('huffman1/T19')" onmouseout="rh()">Th19</a>, <a class="txt" href="#E2:39"><span class="lab"><font color="Green" title="E27">A1</font></span></a></span>;<br/>
<a NAME="E5:39"/>
 <a href="huffman1.html#K10" title="HUFFMAN1:func.10">LeavesSet</a> <span class="p1"><a href="tarski.html#K1" title="TARSKI:func.1">{</a><span class="default"><font color="Maroon" title="c3">T</font></span><a href="tarski.html#K1" title="TARSKI:func.1">}</a></span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"><a href="domain_1.html#K6" title="DOMAIN_1:func.6">{</a><span class="default"><span class="p2">(<span class="default"><a href="trees_2.html#K6" title="TREES_2:func.6">Leaves</a> <font color="Maroon" title="c3">T</font></span>)</span></span><a href="domain_1.html#K6" title="DOMAIN_1:func.6">}</a></span>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="huffman1.html#T7" target="_self" onmouseover="rs('huffman1/T7')" onmouseout="rh()">Th7</a></span>;<br/>
<span class="kw">hence </span><a NAME="E6:39"/>
 <a href="trees_2.html#K6" title="TREES_2:func.6">Leaves</a> <font color="Maroon" title="c3">T</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"> { <span class="default"> <font color="Olive" title="b1">z</font> where <font color="Olive" title="b1">z</font> is    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of <span class="p1"><a href="zfmisc_1.html#K2" title="ZFMISC_1:func.2">[:</a><span class="default"><a href="numbers.html#NK1" title="NUMBERS:NK.1">NAT</a>,<a href="numbers.html#K1" title="NUMBERS:func.1">REAL</a></span><a href="zfmisc_1.html#K2" title="ZFMISC_1:func.2">:]</a></span> :  ex <font color="Olive" title="b2">x</font> being    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of <font color="Maroon" title="c1">SOURCE</font> st <font color="Olive" title="b1">z</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"><a href="tarski.html#K4" title="TARSKI:func.4">[</a><span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><span class="p4">(<span class="default"><a href="finseq_1.html#K20" title="FINSEQ_1:func.20">canFS</a> <font color="Maroon" title="c1">SOURCE</font></span>)</span> <a href="funct_1.html#K2" title="FUNCT_1:func.2">"</a></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b2">x</font></span>)</span>,<span class="p2">(<span class="default"><font color="Maroon" title="c2">p</font> <a href="funct_2.html#K3" title="FUNCT_2:func.3">.</a> <span class="p3"><a href="domain_1.html#K6" title="DOMAIN_1:func.6">{</a><span class="default"><font color="Olive" title="b2">x</font></span><a href="domain_1.html#K6" title="DOMAIN_1:func.6">}</a></span></span>)</span></span><a href="tarski.html#K4" title="TARSKI:func.4">]</a></span> </span> } </span> 
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E4:39"><span class="lab"><font color="Green" title="E28">A2</font></span></a>, <a class="ref" href="zfmisc_1.html#T25" onmouseover="rs('zfmisc_1/T25')" onmouseout="rh()">ZFMISC_1:25</a></span>; <a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide"> verum</span><br/>


</div>
