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

<span class="kw">let </span><font color="Maroon" title="c1">n</font> be   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</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">a</font> being   non  <a href="zfmisc_1.html#V1" title="ZFMISC_1:attr.1">trivial</a>  <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a> holds  <span class="p1">(<span class="default"><span class="p2">(<span class="default"><a href="hilb10_1.html#K1" title="HILB10_1:func.1">Px</a> (<font color="Olive" title="b1">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Olive" title="b1">a</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="hilb10_1.html#K2" title="HILB10_1:func.2">Py</a> (<font color="Olive" title="b1">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1</span><br/><span class="kw">let </span><font color="Maroon" title="c2">a</font> be   non  <a href="zfmisc_1.html#V1" title="ZFMISC_1:attr.1">trivial</a>  <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</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"> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><a href="hilb10_1.html#K1" title="HILB10_1:func.1">Px</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="hilb10_1.html#K2" title="HILB10_1:func.2">Py</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1</span><br/>



<span class="kw">set </span><font color="Maroon" title="c3">m</font> =  <a href="pells_eq.html#K1" title="PELLS_EQ:func.1">min_Pell's_solution_of</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span>;<br/>
<div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="13_1"><span class="kw">per </span></a><a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="kw">cases </span></a><span class="hide"><a NAME="E1:13_1"/>
( <font color="Maroon" title="c1">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  or <font color="Maroon" title="c1">n</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  )
 </span>;<br/><div class="add"><div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="13_1_1"><span class="kw">suppose </span></a><a NAME="E1:13_1_1"/>
<font color="Maroon" title="c1">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</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"> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><a href="hilb10_1.html#K1" title="HILB10_1:func.1">Px</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="hilb10_1.html#K2" title="HILB10_1:func.2">Py</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1</span><br/><div class="add"><a NAME="E2:13_1_1"/><span class="kw">then </span>
(  <a href="hilb10_1.html#K1" title="HILB10_1:func.1">Px</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1 &amp;  <a href="hilb10_1.html#K2" title="HILB10_1:func.2">Py</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  )
 <span class="kw">by</span> <span class="lab"><a class="ref" href="hilb10_1.html#T3" target="_self" onmouseover="rs('hilb10_1/T3')" onmouseout="rh()">Th6</a></span>;<br/><span class="kw">hence </span><a NAME="E3:13_1_1"/>
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><a href="hilb10_1.html#K1" title="HILB10_1:func.1">Px</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="hilb10_1.html#K2" title="HILB10_1:func.2">Py</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1
 ; <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><span class="kw">end;</span></div><div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="13_1_2"><span class="kw">suppose </span></a><a NAME="E1:13_1_2"/><span class="lab"><font color="Green" title="E13">A1</font></span>: 
<font color="Maroon" title="c1">n</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</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"> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><a href="hilb10_1.html#K1" title="HILB10_1:func.1">Px</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="hilb10_1.html#K2" title="HILB10_1:func.2">Py</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1</span><br/><div class="add"><a NAME="E2:13_1_2"/>
<span class="p1">(<span class="default"><a href="hilb10_1.html#K1" title="HILB10_1:func.1">Px</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><a href="hilb10_1.html#K2" title="HILB10_1:func.2">Py</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><a href="square_1.html#K3" title="SQUARE_1:func.3">sqrt</a> <span class="p3">(<span class="default"><span class="p4">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span></span>)</span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="pells_eq.html#K1" title="PELLS_EQ:func.1">min_Pell's_solution_of</a> <span class="p4">(<span class="default"><span class="p5">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span></span>)</span> <a href="domain_1.html#K2" title="DOMAIN_1:func.2">`1</a></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><span class="p4">(<span class="default"><a href="pells_eq.html#K1" title="PELLS_EQ:func.1">min_Pell's_solution_of</a> <span class="p5">(<span class="default"><span class="p0">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span></span>)</span> <a href="domain_1.html#K3" title="DOMAIN_1:func.3">`2</a></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p3">(<span class="default"><a href="square_1.html#K3" title="SQUARE_1:func.3">sqrt</a> <span class="p4">(<span class="default"><span class="p5">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span></span>)</span></span>)</span></span>)</span> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <font color="Maroon" title="c1">n</font>
 <span class="kw">by</span> <span class="lab"><a class="ref" href="hilb10_1.html#D2" target="_self" onmouseover="rs('hilb10_1/D2')" onmouseout="rh()">Def2</a></span>;<br/><span class="kw">then </span><span class="kw">reconsider </span><font color="Maroon" title="c4">PP</font> = <span class="p1"><a href="tarski.html#K4" title="TARSKI:func.4">[</a><span class="default"><span class="p2">(<span class="default"><a href="hilb10_1.html#K1" title="HILB10_1:func.1">Px</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span>,<span class="p2">(<span class="default"><a href="hilb10_1.html#K2" title="HILB10_1:func.2">Py</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span></span><a href="tarski.html#K4" title="TARSKI:func.4">]</a></span> as   <a href="pells_eq.html#V1" title="PELLS_EQ:attr.1">positive</a>   <a href="pells_eq.html#M1" title="PELLS_EQ:mode.1">Pell's_solution</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:13_1_2"><span class="lab"><font color="Green" title="E13">A1</font></span></a>, <a class="ref" href="pells_eq.html#T20" onmouseover="rs('pells_eq/T20')" onmouseout="rh()">PELLS_EQ:20</a></span>;<br/><a NAME="E4:13_1_2"/>
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c4">PP</font> <a href="domain_1.html#K2" title="DOMAIN_1:func.2">`1</a></span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c4">PP</font> <a href="domain_1.html#K3" title="DOMAIN_1:func.3">`2</a></span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1
 <span class="kw">by</span> <span class="lab"><a class="ref" href="pells_eq.html#D1" onmouseover="rs('pells_eq/D1')" onmouseout="rh()">PELLS_EQ:def 1</a></span>;<br/><span class="kw">hence </span><a NAME="E5:13_1_2"/>
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><a href="hilb10_1.html#K1" title="HILB10_1:func.1">Px</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="hilb10_1.html#K2" title="HILB10_1:func.2">Py</a> (<font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">n</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1
 ; <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><span class="kw">end;</span></div></div><span class="kw">end;</span></div>

</div>
