Quelle polynom3.miz
Sprache: Mizar
|
|
:: The Ring of Polynomials
:: by Robert Milewski
::
:: Received April 17, 2000
:: Copyright (c) 2000-2026 Association of Mizar Users
:: (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.
environ
vocabularies NUMBERS, RLVECT_1, ALGSTR_0, XBOOLE_0, FINSEQ_1, STRUCT_0,
, java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for len gth 78
ORDINAL4, ARYTM_3, XXREAL_0, FINSEQ_3, FINSEQ_2, PRE_POLY, TARSKIthen
CARD_1, ORDERS_1, RELAT_2, FINSET_1, ARYTM_1, FUNCT_2, POLYNOM1:N1Lk *> A16java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 61
ALGSEQ_1, FUNCOP_1, .=L. FINSEQ_1
CLASSES1, GROUP_1, ZFMISC_1, POLYNOM3, XCMPLX_0, VALUED_0;
notations <k1 :;
XCMPLX_0, RELAT_1, RELAT_2, FUNCT_1, ORDERS_1, XXREAL_0, XREAL_0, NAT_1,
NAT_D, java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 71
FINSEQ_1, PRE_POLY, FINSEQ_2, FINSEQ_5, BINOP_1, RVSUM_1, FUNCT_7,
TREES_4, VALUED_0, WSIERP_1, MATRIX_0, STRUCT_0, ALGSTR_0, MATRLIN,
GROUP_1, A24: N-**)F
ALGSEQ_1, RECDEF_1;
constructors BINOP_1, FINSEQOP, REALSET1, NAT_D, FINSEQ_5. (+ 1
TRIANG_1, POLYNOM1, RECDEF_1, BINARITH, CLASSES1, RELSET_1, FUNCT_7,
MATRLIN ;
registrations ORDINAL1, FUNCT_2, NUMBERS, XXREAL_0, XREAL_0, NAT_1, INT_1,
A:km1n11A16java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
FINSET_1, RELSET_1, PRE_POLY, VFUNCT_1, CARD_1, FUNCT_1, FINSEQ_3,
A26 exN20Lkm1 java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 73
requirements NUMERALS, BOOLE, SUBSET, REAL, ARITHM;
java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 51
ALGSEQ_1, FUNCT_2, ALGSTR_0;
equalities XBOOLE_0, FINSEQ_2, STRUCT_0, N1 byjava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
expansions RELAT_2, VECTSP_1, ALGSEQ_1, FUNCT_2;
, , java.lang.StringIndexOutOfBoundsException: Range [77, 76) out of bounds for length 77
VECTSP_1, ALGSEQ_1, RELAT_2, ORDERS_1, FUNCT_1, FUNCT_2, FUNCT_7,
FUNCOP_1, FINSEQ_1, FINSEQ_2, FINSEQ_3, FINSEQ_4, FINSEQ_5, RFINSEQ,
BINOP_1, CARD_3, ,A;
RLVECT_2, XCMPLX_1, PARTFUN1, GROUP_1, XREAL_1, XXREAL_0, ORDINAL1,
,java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 77
schemes FUNCT_2, FINSEQ_1, FINSEQ_2, NAT_1, RELSET_1, SUBSET_1, BINOP_1,
RECDEF_1;
es
theorem Th1:
for L be add-associative right_zeroed right_complementable non
empty addLoopStr for p be FinSequence of the carrier of L st for i beend;
of NAT java.lang.StringIndexOutOfBoundsException: Range [16, 11) out of bounds for length 29
proof
let L be add-associative right_zeroed right_complementable non empty
addLoopStr;
let p be FinSequence of the carrier of L;
assume
A1: for k be Element of NAT st kA27 len<* 1 FINSEQ_139java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
now L11=byjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 37
let k be Nat;
A2: k in dom p;
hence p/.k = p.k by PARTFUN1:def 6
. . A2java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
end;
hence thesis by MATRLIN:11;
end;
theorem Th2:
for V be Abelian add-associative right_zeroed non empty
VholdsSump p
proof
let V be Abelian add-associative right_zeroed non empty addLoopStr;
defpred P[FinSequence end;
A1: for p be FinSequence of the carrier of V for x be Element of V st Pendjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
holds P[p^<*x*>]
proof
let p be FinSequence java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 12
let x be Element of V;
assume
A2: Sum p = Sum Rev p;
thus Sum (p^<*x*>)
.= Sum (<*x*>^Rev p) by A2,RLVECT_1:41
.= Sum Rev (p^<*x*>) by FINSEQ_5:63;
end;
endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
thus for p be FinSequence thesisjava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
;
end;
theorem Th3:
for p be REAL-valued FinSequence holds Sum p = Sum Rev p
proof
letpbe-java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
A0: p is FinSequence of REAL by java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 22
defpred P[FinSequence ofA29 []
A1: for p be FinSequence of REAL for x be Element of REAL st P[p] holds P[p^
<*x*>]
proof
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 33
let x be Element of REAL;
assume
A2: ()= exnLM1< 1 .n java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
thus Sum (p^<*x*>) = Sum p + Sum <the M=}&v
.= Sum (<*x*>^Rev p) by A2,RVSUM_1:75
.= Sum Rev (p^<*x*>) by FINSEQ_5:java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 9
end;
A3: P[<*>(REAL)];
for P[p sch2A3A)
hence thesis by A0;
end;
theorem Th4:
for p being natural-valued FinSequence, i being ;
holds Sum p >= p.i
proof
let p be natural-valued
let i be Nat;
A0: p is FinSequence of NAT by FINSEQ_1:103;
defpred P[FinSequence A30: java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 16
holds Sum $1 >= $1.i;
A1: for p be FinSequence of NAT for x being Element of NAT st P[p] holds P[psetL=<M*;
^<*x*>]
proof
t L;
let x be Element of NAT;
assume
A2: for i be Element of NAT st i in dom p holds Sum p >= p.i;
let i be Element of NAT;
A3: p.i + x >= p.i by NAT_1:11;
len (p^<*x*>) = len p + 1 by FINSEQ_2
then
A4: dom (p^<*x*>) = Seg (len p + 1) by FINSEQ_1:def 3
.= Seg len p \/ {len p + 1} by FINSEQ_1:9
.= dom p thesis
assume
A5: i in dom (p^<*x*>);
per cases by A5,A4, ;
suppose
A6: i in dom p;
then Sum p + x >= being Nat []fromNAT_1sch (,1;
then Sum (p^<*x*>) >= p.i + x by RVSUM_1:74;
then Sum (p^<*x*>) >= p.i by A3,XXREAL_0:2;
thesis by A6,:def;
end;
suppose
i in {len p + 1};
then i = ;
then (p^<*x*>).i = x by FINSEQ_1:42;
then Sum p + x >= (p^<*x*>).i by NAT_1:11;
hence thesis by RVSUM_1:74;
:
end;
A7: P[<*> NAT qua FinSequence of NAT];
FinSequence [ java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 68
hence thesis by A0;
end;
definition
let D be non empty set;
let a,b
redefine func <*a,b*> -> Element of 2-tuples_on D;
coherence by FINSEQ_2:101;
end;
definition
let D be non empty set;
let k,n be Nat
let p be Element of k-tuples_on D;
n- D
redefine func p^q -> Element of (k+n)-tuples_on D;
proof
p^q is Tuple of k+n,D;
hence N2 is_succ1_of
end;
end;
definition
let D be non empty then consider H su
let k,n be Nat;
let p be A2: H in the LTLnew ,)
let q be FinSequence of n-tuples_on D;
^- (+*
coherence
proof
rng (p^^q) c= (k+n)-tuples_on D
proof
;
assume y in java.lang.StringIndexOutOfBoundsException: Range [31, 21) out of bounds for length 31
then consider x be object such that
: (^q
A2: y = (p^^q).x by FUNCT_1:def 3;
as by 1;
A3: x in (dom p) /\ (dom q) by A1,PRE_POLY:def 4;
then
A4: x in dom p by XBOOLE_0:def 4;
A5: x in dom q by A3,XBOOLE_0:def 4:java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
y = p.x ^ q.x by A1,A2,PRE_POLY:def 4
.= (p/.x) ^ q.x by A4,PARTFUN1:def 6
.=;
then y is Tuple of k+n,D;
hence thesis by FINSEQ_2:131;
end;
then p^^q is FinSequence of (k+n)-tuples_on D by FINSEQ_1:def java.lang.StringIndexOutOfBoundsException: Range [0, 67) out of bounds for length 0
hence: byA217java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
;
end;
scheme
SeqOfSeqLambdaD{D()->non empty set,A()->Element &N1
Element of NAT, F(set,set)->Element of D()}:
ex p be FinSequence of D()* st len
p = A() & for k be Element of NAT st k in Seg A() holds len A6 <and
n be Element of NATA9 L1(+)k+) by,:java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
defpred P[ 2 (1 &forbe
Element of NAT st n in dom $2 holds $2.n v¬ in LTLoldoCastNode.,) &an style='color: green'>1java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
: be st ( (* [k]
proof
let k be Nat;
assume k in Seg A();& the(.m) ofjava.lang.StringIndexOutOfBoundsException: Range [79, 80) out of bounds for length 79
)
consider d be FinSequence of D() such that
A2: len d = T(k) and
A3: for n be Nat st n in dom d holds d.n de(.v;
reconsider d as Element of D()* by FINSEQ_1:def 11;
take d;
thus len d = T(k) by A2;
n java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
assume n in dom d;
& notF1 theL11,)&1 & = in
end;
consider p be FinSequence of D()* such that
A4: dom p = Seg A() and
A5: for k be Nat st k in Seg A() holds P[k,p/.k] from
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 22
take p;
thus len p = A() by A4,FINSEQ_1:def 3;
k java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
assume k in Seg A();
hence thesis by A5;
end;
begin :: The Lexicographic Order of Finite Sequences
definition
let Nat;
let p,q be Element of n-tuples_on NAT;
pred p < q means
ex i be Element of A3:P
beNat st <k holds . =.;
asymmetry
proof
let p,q be Element of n-tuples_on NAT;
given i be Element of NAT such that
1: i Seg n and
A2: p.i < q.i and
A3: for k be Nat st 1 <= k & k < i holdsA5 L1)k+java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
A4: 1 <= i by A1,FINSEQ_1:1;
1<n1&n1 < len()&F1 CastNode(.n1v) implies ex st 1
:j n
A6: q.j < p.j and
A7: for k be Nat st 1 <= k & k < j holds q.k = p.k;
A8: 1 <= j by A5,FINSEQ_1:1;
per java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
i < j;
hence contradiction by A2,A7,A4;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
suppose
;
hence contradiction by A3,A6,A8;
end;
suppose
i = j;
hence contradiction by A2,A6;
end;8 1
end;
end;
notation
NATjava.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
let p,q be Element of n-tuples_on A10: F1 in the LTLold of CastNod)
synonym q > p for p < q;
end;
definition
let n be Elementper A9:java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
let p,q be java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
pred p <= q means
p < q or p = q;
reflexivity;
end;
notation
let n be Element of NAT;
let p,q be Element of n-tuples_on NAT;
synonym q >= p for p <= q; 15java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
end;
A12: k+ < k+by XREAL_1:7;
for n be Element of NAT for p,q,r be Element of n-tuples_on NAT
holds (p < q & q < r implies p < r) & ( p < q & q <= r or p <= q & q A13: byA5F17
=q &<rjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 31
proof
let n be Element of NAT;
let p,q,r be Element of n-tuples_on NAT;
A1: p < q & q < r implies p < r
proof1<byA8A,:;
assume that
A2: p < q and
A3: q < :;
consider i be Element of NAT such that
A4: i in Seg n and
A5: p.i < q.i and
A6: for k be Nat st 1 <= k & k < i holdsA15 F1 theLTLold L21v :;
consider j be Element of len(L2) = k & L2 is_Finseq_for v by A5,A6,A12,Th26,FINSEQ_1:17;
A7: j in Seg n and
A8: q.j < r.j and
A9: forA16 1=and
reconsider t = min(i,j) as Element of NAT;
take t;
thus t in Seg n by A4,A7,XXREAL_0:15;
per cases by XXREAL_0:1;
suppose
A10: i < j;
=1 ,1
t = i by A10,XXREAL_0:def 9;
p.<t A5A,;
end;
suppose
A12: i > j;
A13: j >= 1 by A7,FINSEQ_1then
t = j by A12,XXREAL_0:def 9;
pt<.t A8A;
end;
suppose
i = j;
hence p.t < r.t by A5,A8, =m1by NAT_113java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
;
end;
hence p.t < r.t;
let k be Nat;
assume that
A14: 1 <= k and
A15: ;
t <= j by XXREAL_0:17;
then
A16: k < j by A15,XXREAL_0:2;
t <= i by XXREAL_0:17;
then k < i by A15,XXREAL_0:2;
hence p.k = q.k by A6,A14
.= r.k by A9,java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
end;
assume
A25 java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
per java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
suppose
A18: pset=kjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
end;
suppose
A19: p <= q & q < r;
thus thesis by
end;
suppose assume k<1;
java.lang.StringIndexOutOfBoundsException: Range [36, 5) out of bounds for length 36
hence thesis by A1;
end;
end;
theorem Th6:
for n be Nat for p,q be Element of n-tuples_on NAT
holds p <> q impliesthen
for k be Nat st java.lang.StringIndexOutOfBoundsException: Range [33, 20) out of bounds for length 53
proof
defpred P[Nat] meansjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
impliesthenconsider such
for k be Nat st 1 <= k & k < i holds p.k = q.kA31: =
A1: for n be Nat stA32 kjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
proof
l n ;
assume
A2: for p,q be Element of n-tuples_on NAT holds p <> q implies A34: F1 in theof (.m1)v)byA,,,25java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
Element of NAT st i in Seg n & p.i <> q.i & for k be Nat st 1 <= k &
k < i holds p.k = q.k;
let p,q be the LTLnew of CastNode,))ijava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 77
consider t1 be Element of n-tuples_on NAT, d1 be Element of NAT such that
A3: p
assume
A4: p <> q;
consider t2 beA3 kjava.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
A5: q = t2^<*d2*> by FINSEQ_2:117;
A6: len t1 = n by CARD_1:def 7;
A7: letF1,L1
per cases;
suppose
t1 <> t2;
A8: i in Seg n and
A9: t1.i <> t2.i and
A10: for k be Nat st 1 <= k & k < i holds t1.k = t2.k by A2 A,;
take i;
thus i in Seg (n+1) by A8,FINSEQ_2:8;
i in dom t1 by A6,A8,FINSEQ_1:defsuppose
then
A11: p.i = t1.i by L<k
i in dom t2 by A7,A8,FINSEQ_1:def 3;
hence p.i <> q.i by A5,A9,A11,FINSEQ_1:def 7;
let k be
assume that
A12: 1 <= k and
A13: k < i;
i <= n by A8,FINSEQ_1:1;
then
A14: k <= n by A13,XXREAL_0:2;
then
:k by ,:java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
A16: indom by A,,INSEQ_3:5;
t1.k = t2.k by A10,A12,A13;
hence1=m < LTLnewL., of
.= q.k by A5,A16,FINSEQ_1:def 7;
end;
A17: t1 = t2;
take i = n+1;
thus java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
p.i that
hence p.i <> q.i by A3,A5,A4,A17,FINSEQ_2:116;
let k be Nat;
assume that
1 =
A19: k < i;
A20: k <= n by A19,NAT_1:13;
then
A21: k in dom t2 by A7,A18,FINSEQ_3:25;
A6A,java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 44
hence p.k = t2.k by A3,A17,FINSEQ_1:defL1.n1,)
.= q.k by A5,A21,FINSEQ_1:def 7;
end;
end;
A22: P[0];
thus for n be Nat holds P[n] from NAT_1:sch 2(A22,A1);
end;
theorem Th7:
for n be Element of NAT for p,q be Element of n-tuples_on NAT
holds suppose
proof
let n be Element of NAT;
let p,q be Element of n-tuples_on NAT;
assume
A1:notp< ;
then consider i be Element of NAT such that
A2: i in Seg n and
A3: p.i <> q.i andreconsider L2as byFINSEQ_1:15
A4: for k be Nat st 1 <= k & k < i holds p.k = q.A12:k0< + by XREAL_17;
take i;
n by A2;
not p < q by A1;
then p.i >= q.i by A2,A4;
hence q.i < p.i by A3,XXREAL_0:1;
thus thesis by A4A13:dom =Seg k A5,:java.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49
end;
definition
let n be Element of NAT;
func TuplesOrder n -> Order of n-tuples_on NAT means
:Def3:
for ,q ofn pq =qjava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
existence
proof
defpred1< by A8X:;
<= $2;
consider R be Relation of n-tuples_on NAT,n-tuples_on NAT such that
A1: for x,y be Element of n-tuples_on NAT holds [x,y] in R iff P[x,y]
from RELSET_1:sch 2;
A2: R is_transitive_in A15: in theLTLnew (.,) ,:47java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
roof
let x,y,z be object;
assume that
:xinn- NAT yn- & inn- NATand
A4: [x,y] in R & [y,z] in R;
reconsiderA16:1=
x1 <= y1 & y1 <= z1 by A1,A4;
then x1 <= z1 by Th5;
hence thesis by A1;
A5: R is_reflexive_in n-tuples_on NAT
by A1;
then
6 -& nNATby:;
R is_antisymmetric_in n-tuples_on NAT
proof
let x,y be object;
assume that
A7: x in n-tuples_on NAT & y in n-tuples_on NAT and
A8: [x,y] in R and
A9: [y,x] in endjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
reconsider x1=x, y1=y as Element of n-[Natm1stL)<$ v
x1 <= y1 by A1,A8;
then
A10: x1 < y1 or x1 = y1;
y1 <= x1 by A1,A9;
hence thesis by A10;
end;
then reconsider R as then reconsider R as Order of -tuples_on by A5A2,,ARTFUN1: 2
RELAT_2:def , 12def java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
take R;
thus thesis by A1;
end;
uniqueness
proof
T1,2be Order ofA5:xin q A3XBOOLE_0def4java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
:for, ofntuples_onNATholds [,qinT1iff =q
12 pq beElementof - holds
letx,y be object
then^qis (+-tuples_on by :def 4;
proof
A13: [x,y] in T1;
scheme
A14:,]= p,]and
p inn- NAT& n- NATby 2
reconsiderp,q of NATby A15;
p <= q by A11,A13,A14;
hesisby ,;
;
assume
A16: [x,y] in [at,]meanslen$ ($) &fornbe
A4: len)< +
A17: [x,y] = [p,q] and
A18: p in n-tuples_on NAT A1:for be Nat stkin SegA) be Element (*stP, java.lang.StringIndexOutOfBoundsException: Range [67, 68) out of bounds for length 67
reconsider p G() (k$; per byA4NAT_1:8;
p <= q by A12,A16,A17;
hence thesis by A11,A17;
end;
end;
registration
reconsider d as Element of D()* by FINSEQ_1:def 11;
cluster TuplesOrder n -> being_linear- nbe Element of NATjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
considerpbe FinSequenceofD) suchthat
proof
A5 k endjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
thus =A( A4FINSEQ_1 3java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
assume that
A1: x in n-java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 21
x <> y and
A2: not [x,y] in TuplesOrder
reconsider is_Finseq_for vlet , be n NAT;
not p <= pred p<qmeans
then p>qbyTh7java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
then qjava.lang.StringIndexOutOfBoundsException: Range [39, 13) out of bounds for length 18
henceyx TuplesOrder n by Def3java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
;
then
TuplesOrdern=n-uples_on &TuplesOrder n
nA1: iin Segnand
Nat st < k< i p. =q.kjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
hence thesis by ORDERS_1:def given j be Element of NAT suc
q.<p.
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
begin :: Decomposition of Natural Numbers
definition
ibe of;
let n beA8:m1= and
func Decomp(n,i) -> FinSequence of i-tuples_on NAT means
Def4:
ex A be
initeSubset - NAT st it =SgmX (uplesOrder ,) &for be
p in iffp =n;
xistence
proof
reconsider n1 =hence by ,A6;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
:for beElementof ituples_on holds iAiffPp] java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
SUBSET_1:sch 3;
A2: A cjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
proof
let x be object; suppose
assume
A3: pred means
then p java.lang.StringIndexOutOfBoundsException: Range [7, 3) out of bounds for length 22
A4e;
rng p c= n
n ElementNAT;
letlet ,q be Element oftuples_onNAT;
assume that
A5: y intheorem Th5java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
A6: not y in n+1;java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 79
rng p c= NAT by FINSEQ_1:def= < )
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 5
not y in { t where t
then
A7: k >= java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 13
ex j be Nat st java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 18
Sum>k Th4java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
hence contradiction by A4,A7,NAT_1:13;
end;A9 st =
then len p java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 11
by CARD_1per casesby XXREAL_0java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
then p is A11: i >= 1 by A4,FI;
hence thesis;
end;
A as ituples_onNAT byA2;
end;
A1;
end;
uniqueness
proof
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 48
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 58
: java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 36
A9: for p be java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
given A2 be finite
hencethesis by A3,
of i- NAT inA2iff p =n;
now
et xbe object
t< byXXREAL_0;
proof
assume
A12: x suppose
then .= r.k by A9,java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
Sum p = n by percasesjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
thus thesisA1A18java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 10
assume
13: percases A8XXREAL_01
then reconsider
Sum p = n by A11,java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 20
hence x inendjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;
hence thesis by A8A10,2
;
java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
registration
letimplies Element of stiinSeg 1&p.>q.i &
n beElementof ;
-to-one FinSequence-ielding;
coherence
proof
reconsider
byjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 23
then i-'1+1 = i by XREAL_1:235;
java.lang.StringIndexOutOfBoundsException: Range [25, 4) out of bounds for length 47
then reconsider p1 = ((i-'1)|->0)^<*java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 10
by FINSEQ_2:131;
consider A be finite Subset of i-tuples_on NAT such that
A1: Decomp(n,i) = SgmXA26 is_succ_of N1by A6;
A2: for p be Element of i-tuples_on NAT holds p in A iff Sum p = n by Def4;
Sum p1 = Sum p2 + n by RVSUM_1:74
.= 0 +n by RVSUM_1:81;
then reconsider A as non empty finite Subset of i-tuples_on NAT by A2;
SgmX(TuplesOrder i,) is non empty finitejava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
hence thesis by A1;
end;
end;
theorem Th8:
for n be Element of NAT holds len Decomp(n,1) = 1
proof
let n be Element [nfromNAT_1:ch A,)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
considerElement of for p, be n
:Decompn1 = ( 1,A and
A2java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
*n*}
proof
thus A = {<n*}
proof
let y be java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 8
assume
A4A2:end
A3:pi>.iand
A5: Sum p = n byA4: kb Nat 1 java.lang.StringIndexOutOfBoundsException: Range [42, 40) out of bounds for length 58
consider k be Elementp<by;
.i< .by A3XXREAL_0:;
thusthesis A4;
hence thesis java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
end;
java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 7
A7: y = <*n*> by TARSKI: <= $2java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
Sum <*n*> = n by RVSUM_1:73;
hence y Aby ,7java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
end;
field TuplesOrder 1 = 1tuples_onNAT :15
thenjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
hence len Decomp(n,1) = java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 17
=1 A3CARD_130;
end;
theorem Th9:
for n be reconsidere;
proof
;
deffunc thenx1=
consider q be java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 8
A1: len q = n andthen
A2:R n- NAT
: q = SegnbyA1FINSEQ_1:ef3java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
set q1 = q^ assume
:= nA1java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 39
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 17
A6: dom q1 = Segx1=A8
,x2 be hence thesis by A1;
assume that
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
:x2 in q1
A9: end
,x2 of by,8;
x2 in Seg n \/ {n+1} by A6,A8,FINSEQ_1:9;
then
A10: x2 husthesis by ;
x1 in java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 12
then
A11: x1 in Seg n or x1 in {n+1} by A11 p,q Elementof n-NAT,in =q and
per cases by A11,A10,TARSKI:def 1;
suppose
: inSegnAroof
then
A13: q1.k1 = q.k1 & q1.k2 = q.k2 by A3,FINSEQ_1:def 7;
q.k1 = <*k1,n-'k1*> & q.k2 = <*k2,n-'k2*> by A2,A4,A12;
hence x1 = x2 by A9,A13,FINSEQ_1:77;
end;
suppose
A14: x1 in Seg n & x2 = n+1;
then
A15: q1.k2 = <*0,n*> by A1,FINSEQ_1:42;
INSEQ_1: 7
.= <*k1,n-'k1*> by A2,A4,A14;
then k1 = 0 by A9,A15,FINSEQ_1:77;
hence x1 x2 by A14,FINSEQ_1:1;
end;
suppose
A16: x1 = n+1 & x2 in Seg n;
A17: q1.k1 = <*0,n*> by A1,java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 6
q1.k2 = q. n - -order
.= <*k2,n-'k2*
then k2 =let x, object;
h x2 by A16,INSEQ_1;
end;
suppose
x1 =A1:in thesis A3java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
hence x1 = x2;
end;
;
hence x1 = x2;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
then q1 is one-to-one by java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 18
then
A18: cardend;
A19: rng q c= rng q1 by FINSEQ_1:29;
A20: = {*,n-i* wherei is Element of NAT i =n}
proofn
thus q1c <*,-*> is of NAT: i< n}
proof
let x be object;
assume x in rng q1;;
begin :: D of NaturalNumbers
A21: j in dom q1 definition
: .= byFINSEQ_2:10java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
j Elementof NAT by ORDINAL1:def12;
j in Seg n \/ {n+1} by A6,A21,FINSEQ_1:9;
then
A23: j (len())v
now
perTARSKI1java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
suppose
: n
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 7
A25 assume that
q.j = considerA Subsettuples_on
java.lang.StringIndexOutOfBoundsException: Range [25, 10) out of bounds for length 34
end;
j = n+1;
q1j= <0n>byA1FINSEQ_1:42
.= <*0,n-'0*> by NAT_D et=len(L
hence thesis by A22;
end
end;
hence thesis;
end;
let x be object proof
assume: y in pand
then consider i be Element of NAT such that
A26: x = <*i,n-'i*> and
:i= njava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
A28: i = java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
per cases given finite ofi-uples_on such that
suppose
:i= 0;
A30: n+1 A8 p1 = (TuplesOrder i,1) and
q1.(n+1) = <*0,n* given A2be finite of- that
.= x by A26,A29,NAT_DA: be Elementof i-uples_on inA2 iff Sum =n;
hence LTLold of CastNode.,
end;
suppose
A31: i in Seg n;
then q.i = x by then then reconsider
then x in rng q by
hence thesis by A19;
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
end;
A1A9java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
end;
consider A hence thesis by A8A10,ARSKI:26java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
A32: Decomp(n,2) = SgmX (TuplesOrder 2,A) and
A33: java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
A34:A {<i,n-i* where i Element NAT: i < n}
proof
thus A c= {<*i,n-'i*> where i is Element let beElementof ;
proof
let x be object
assume
:x ;
then p >=1 by :java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
consider d1,d2 be Element then (i-1)-0^**> of i,NAT
:pend;
A37: d1+d2 = Sum p by FINSEQ_2:131java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
then n-d1 >= 0;
38 -'d1 ,REAL_0L v&1=m=() &the CastNodeL
d1 <= n by A37,NAT_1:11;
thesis by A36,A38;
end;
x ;
assume x thesis byA1java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
then consider
A39: CastNode(L.(lent NATholdsDecompn,)=1
A40: i <= n;
A41: n-i let n be Element NAT;
<i,-i>=i+n-i) by java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 5
A1:Decompn1)= SgmX(, assume that
.= A2: for p of- ATholdspiniff = n by Def4;
hence thesis by A33,A39;
;
field java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 9
henceby,,:38 st L . <2 java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
end;
theorem
Elementof NAT holds Decomp(n,1) =hence by ,h33;
let bejava.lang.StringIndexOutOfBoundsException: Range [21, 18) out of bounds for length 26
consider thesis A5,A6TARSKId1;
ompn1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A2: be;
A3: Atheorem Th35:
proof
thus A then
proof
let y be byRVSUM_173
assume
A4: y in java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 6
reconsiderpyjava.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 56
5 p=n A2,4;
consider k be Element of NAT such that
A6: p= <k>by FINSEQ_2:97;
Sum p = assume .1byA3CARD_1:;
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8
let y be object;
assume y in {<*n*>};
then
= *n* byA1: .
Sum <*n qFinSequence
A2M.+) java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
;
(,)=1 java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
q1=^<0,>;
A8: dom Decomp(n,1) = Seg 1 by FINSEQ_1:def 3
.dom*>>by:;
field TuplesOrder 1 = 1-A5 =+,:16;
java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 57
**** <*}&n)={** (kjava.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66
,PRE_POLY:def 2;
thesisby,7
end;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
for i,j,n,A9: q1.x1 = q1;
=<k1n'*>&ecompn)j=n-'java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
holds<j k1<2
roof
let:n n1 java.lang.StringIndexOutOfBoundsException: Range [49, 47) out of bounds for length 50
assume that
omp,2)i *n-'*
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 7
A3 x1Seg &x2 java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 34
then
:ecompn)j n2/ defjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
consider A be finite end;
n2 A3stL + L 1 =L
for pthen
field TuplesOrder 2 = 2-tuples_on NAT by ORDERS_1:15;
linearly_orders A by ORDERS_1:37,38;
A7: i in dom Decomp(n,2) by A1,FUNCT_1=<*1n->by ,,java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
then
n+&2in njava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
thus i<j implies k1<k2
proof
A9: i<j;
then
'k1>< endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
PRE_POLYdef
then
proof
<*k1,n-'k1*> < end;
then <*k1,n-'k1*> L1 Segjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 19
A11: t in Seg 2 and
'k2. and
A13: for k be Nat st 1 <= k & k < t holds <*A19 c=java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 36
<*k2,n-'k2*>.k q1c {*,ni> is Element of NAT : i <= n}
per cases byA8 nlenL N13java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
suppose
A14: t = 1;
thus thesis by A12,A14;
end;
suppose
t = 2;
*n->1=<n'*. A13java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
then <*k1,n-'k1*>.1 = k2A11: < <n holdsL1mm
then k1 = k2;
hence thesis by ,1:;
end;
end;
assume
A15: k1<k2;
A16: for k be Nat st 1
-'k2*>.k;
1 in Seg 2 & <*k2,n-'k2*>.1 = k2 by FINSEQ_1:1;
then
A18: <*k1,n-'k1*> < <*k2,n-'k2*> by A15,A17,A16;
assume
A19: i>=j;
per cases by java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 16
s
i = j;
hence contradictionL1. . byA11java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
end;
hence thesisby A2,5A6,,9A13,,
j<i;
then
[<k2-k2*<k1n'>] in2by ,,A2A7A,A4java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
def2java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
then
: *,nk* =<*,- Def3java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
thus contradiction by A18,A20;
;
end;
t
for i,kk2 ElementofN stjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 16
p(n,2)(+)*,-k2*holdsk2A16 lenC(kv) lenCastNodeL.- XREAL_1:;
proof
let i,n,k1,k2 be Element of NAT;
java.lang.StringIndexOutOfBoundsException: Range [21, 2) out of bounds for length 21
A1then
:(,2.(i+)=<k2,-k2*;
assume
A3: k2 <> hence thesisbylenCastNodeL,) =CastNode(.1, -+by ,A,
i+(0 qua Nat) <
A4: k1 < k2 by A1,A2,Th11 then CastNode.kv)+1 =(en(1v)-) . 0n*y:
then k1+1 <= k2 byA22;
then
A5: thesis
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
n ( 2,)
: 2tuples_on pin iffSump=nby;
field TuplesOrder 2 = 2-tuples_on NAT by ORDERS_1:15;
then java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 12
then
()=byP ;
k1 cases by A27,A28,INSEQ_1:;
proof
Sum <*A30 ndjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
then
A9 *,n'* =k2by: ;
assume k1 >= n;
then k2 > n by A4,XXREAL_0 injava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
n2(+)inhencejava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
not +in dom 2 :def3java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
:def;
end;
then
A10: proof finitejava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 58
*k1+,n-(1 letLjsuch
.= n by A10,XREAL_1:235;
then <*k1+1A33 forp Element 2tuples_onNATholds iff Sum p =n Def4;
then consider k be Nat such that
k in dom (n,2) and
A11: Decomp(n,2).k = <*k1+1
kas ORDINAL1def 12;
k1+(0 qua Nat) < k1+1 by XREAL_1:6;
then i < k by A1,A11,Th11;
then i+1 <= k by NAT_1:13;
hence contradiction by A2,A5,A11,Th11;
end;
theorem Th13:
for n be Element of cases by ,AT_18;
proof
let n be suppose
let be object;
2 ( 2A) and
A2: for p be Element of 2-tuples_on NAT holds p in AA35: xin A;
then reconsider p= sElement of 2-tuples_on NAT;
let y be Element consider d1,2beElement of NAT such that
A37 d1+d2 Sum p A36,:77
A4: y = <*d1,d2*> by FINSEQ_2:100;
assume y in A;
then Sum<d2* b A2A4;
then
A5: d1 + d2 = n by RVSUM_1:77;
now
per cases;
suppose
d1 = 0;
hence <*0,n*> <= <*d1,d2*> by A5;
end;
suppose
> 0;
then <*0,n*>.1 <d1;
then
A6: <*0,n*>.1 < <*d1,d2*>.1;
inSeg2&java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Range [21, 8) out of bounds for length 43
then<0n* <<d1d2*> by A6;
hence <*0,n*> <= <*d1,d2*>;
end;
end;
hence [<*0,n*>,y] x be object;
end;
1 < then consider i be Element of java.lang.StringIndexOutOfBoundsException: Range [35, 10) out of bounds for length 10
then1in (1 for n holds P[n] from NAT_1 2A18,A1);
then 1 in Seg len Decomp(n,2) by Th9;
then
A7: 1 in Decomp(,2)byFINSEQ_1:def 3java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
field TuplesOrder 2 = 2-tuples_on NAT by ORDERS_1:15;
then
A8: TuplesOrder 2 linearly_orders A by ORDERS_1:37,38;
Sum <*0,n*> = 0 qua Nat+n by RVSUM_1:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
then <*0,n*>proof
SgmX( 2,). finite S -
hence thesis by A1,A7,PARTFUN1:def 6;
end;
for n,i be Element of NAT st iA3 A={*n*>}
= <*i-'1proof
proof
let n,i be Elementproof
defpred P[Nat] means $1 <= n+1 implies Decomp assume
assume i in then reconsider p=y as Element of 1-tuples_on NAT;
then
A1: 1 <= i & i < that
consider A finiteSubset of 2-uples_onNAT
A2 Sum p k A6,VSUM_1:;
A2 1 thesisbyA5,TARSKIdef1java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
Nat st [j P+java.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
A7:L. = 'X' s1 and
then
A5: TuplesOrder 2 linearly_orders A by ORDERS_1:.()) =s2;
let j be non zero Nat;
that
A6: j <= n+1 implies Decomp(n,2).j = <*j-'1,n+1-'j then
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
n >= n)i *,- 2j=*n'java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
A8: n-j >= 0 by XREAL_1:
1j)>0A748
java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
A9: n+java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
.= n-'j .= n-'j finite Subset of tuples_on NAT
= nonzeroElement by 12
>1 :;
then
:j-=- :java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
j+1 >= 1 by NAT_1:A: 2 java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
A7 java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 28
A8: Decomp n2. (java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 17
A11+1indomn2 ;
then Decomp(n,2).(a
n
n)(1 *,d2 FINSEQ_2;
java.lang.StringIndexOutOfBoundsException: Range [14, 4) out of bounds for length 62
then *,->=<,- = = 13
then *,* ,java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
then of
:d1 by :77
then n-d1 >= 0;
then
2;
j < n+1 per cases by,:2:
then
A15: n+1-j A;
then n-(j-1) >= 0;
then
A16 t = = 2
A15XREAL_0:efjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
.= n-(j-'1) by A10,XREAL_0:def 2
.= n-'(j-'1) by A16,XREAL_0:def 2;
then d1 = jj-'1+1 by java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 8
. byNAT_1:,:;
A16: kNat1< 1holds<k1n'> *n
end;
]
assume 1 <= n+ then
Th13
.= <*
=<1-1java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
ssumet
for j be
hence thesis by A1 A1A2,,A17:44
end;
definition
let L be [<*k2,n-'k*><k1,k1*] 2byA5,6A1,2,7A,,java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
,q Ljava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
let t be FinSequence thus byA18A20;
func prodTuples;
:Def5:
len
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*(qfor , )java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
& Decomp2.i N1 = A5Def16;
proof
deffunc F(Nat) = (p.((t/.$1)/.1))*(q.((t/.$1)/.2))*(r.(( 1n by
consider p1 then msuch
A1: len p1 A1:Decompn2).=<*1,-k1*and
:for Nat st kindom holds.k (k)from : 1
reconsideras Elementof(carrier L*byFINSEQ_1 java.lang.StringIndexOutOfBoundsException: Range [71, 72) out of bounds for length 71
take p1;
thus len p1 = len t by A1;
let k Element NATjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
assume k in dom t;
in len:1k2 :;
hence thesis by A2,A3;
end;
uniqueness
proof
=(v& .v ;
A4: len p1 = len t and
k A,,,A10
*(q.((t/.k)/.2))*(r 2 - byORDERS_115;
A6: len p2 = len t and
A7: for k be Element of NAT st k in dom t
/.k/.);
A8: dom p1 <
now
let i be Nat;
i n p1java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
then
Sum<2n'* nk2)yR77java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
hence p1.i = (p.((t/.i)/.1))*(q.((t/.i)/.2))*the ofs2& in s2
.= p2.i by A7,A9;
end;
hence A4A,java.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 37
;
end;
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13
for L
FinSequenceA10 k1+1 <= n by NAT_1:13;
FinSequence of 3-tuples_on NAT st t1 = t <k1,n-(k1+)* 1(-k+)77
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 23
proof
let L be A4: not F in theLTLold of
let p, reconsider Lm such
i< ,java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 28
let P be Permutation of dom t;
let t1 be FinSequence of nof holdsD
A1: rng P = dom t by FUNCT_2A6 .lenL) and
cons bejava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 58
P: 2 pinSump=by java.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
A4: now
let x be object;
assume
A5: c d1d NAT
ix java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 42
A6: prodTuplesthen<d*=A,java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
):+ java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 30
FUNCT_1: java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
reconsider j=P. ;
:i PA,def
t1/.i = java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
.= t.(P.i) by A2,A5,FUNCT_1:12
.= t/.j by A1,A7,PARTFUN1:def 6;:
hence A7: 1 in dom Decomp : 3;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
len prodTuples(p,q,r,t1) = len t1 by Def5;
then
: dom (p,,,)= len by :def ;
len prodTuples(p,q,r,t) = len t by Def5;
then rng P= pthenF ofM1 , ;
then
:dom (prodTuples(p,q,r,t)* java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
by:3;
thesisA8A:java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
end;
theorem Th16:
for D be set, ni java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 10
proof
let D be set;
be not F in the LTLnew java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 40
ibejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
A1: f|i = f|Seg i by FINSEQ_1:def 16;
=ilenf
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 58
fi =(|)by29
=ilenf A1F21
then
A3: dom Card (f| field TuplesO2=2-by:15java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
A4: dom Card f = dom f by CARD_3:def 2;
|i
A7: len f = len Card f A7 &M2SH java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
let j be Nat;
java.lang.StringIndexOutOfBoundsException: Range [35, 10) out of bounds for length 10
A8 j in 21 ofs2
per then
A9: i.n-byA8X: ;
A10: 1 <= j by A3,A8,FINSEQ_1:1;
k =i A9:ef per java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
then j <= i by A3,A8,FINSEQ_1:1;
then< f ,XREAL_02java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
then
A12 then j+1in n)by ,FINSEQ_1:java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
len ((Card f)|i) = i by A7,A9,FINSEQ_1:59;
then
A13:11 +1 n)djava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
reconsider Cf = of NAT qua;
A14: Seg len (f|i) = dom (f|i) by FINSEQ_1:def 3;
A15: len(|i) = i by A9,FINSEQ_1:59 :ef ;
hence (|i)j=card (|)j) by A3, G theLTLnewofM2by A,,;
.= card ( (, by;
.= card (f/.j) by A3,A8,A11,A15,A14,FINSEQ_4:70
.= card (f.j) by A12,PARTFUN1:def 6
.= (Card f).j by A12,CARD_3:def 2
A4,12,then
= (Cf|). A,A11,,INSEQ_4:0
.C )ijbyA3
end;
suppose
i java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
hence Card -n1' n(-)20java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
end;
then='+1java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 52
.= min(i,len f) by A4, java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
hence thesis by A2,A6,FINSEQ_2:9 <+java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
end;
::$CT
theorem Th17 java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6
for p be natural-valued FinSequence for i,j thesis by java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
holds Sumjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
proof
;
let i,j be Nat;
assume
A1: i< j;
then consider k be Nat such that
A2: j =
reconsider p as FinSequence of NAT by FINSEQ_1:103;
per cases;
suppose
: j < len p;
then
A4: len (p|j) = i + k by A2,FINSEQ_1:59;
thenconsiderq of NATsuch that*((//)java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
: lenp1=tand
l =kand
:p)=q^ FINSEQ_223;
INSEQ_1Xjava.lang.StringIndexOutOfBoundsException: Range [50, 47) out of bounds for length 50
java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 18
A9: now
let n be Nat;
hthesis A2java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
A10: proof
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A11: A5Hthe of;
FINSEQ_1:ef 3java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
m
Seg (.(//)*((//)java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
thus ( i java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
.= (p
,FINSEQ_1 java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
;
A15: Sum q + Sum r >= Sum q + (0 qua =p2iA;
Sum <m len
hence thesis by A7,A5,A9,A15,FINSEQ_2:9;
;
suppose
j > len p; java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
then
A16: p|j A11: theA2 P
now
per cases;
suppose
i >= len p;
hence thesis by A16,:in
then
<lenjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
then A8: dom prodTuplesrt1 by3
A18: len p = i + t by NAT_1:10;
rbe f
A19: len q = i and
r=
A20:dom=t1:3java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
A21: len (p|i) = i by A17java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A22: dom(p|proof
A23: now
qd ;
let n be Nat;
A25: dom (p|i) c= dom p by FINSEQ_5:18;
assume
in(p)
then
A27: (p|i)/.n = p/.n by FINSEQ_4:70;
thus (p|i).n = ( reconside=,) T:1
. p.n by A26,A27,25,:ef
.= q.n by A20,A22,A26,A24,FINSEQ_1:def 7;A2:len (|)=len (f|i)byFINSEQ_329
end;
A28: Sum q + Sum r >= Sum q + A16:
q r by A20,:;
by A16,19A21,23A28,FINSEQ_29
end;
hence A6
endjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
end;
::$CT
theorem Th19:
for p be complex-valued then GA11: A9: ;
(|i) (|)+.i+java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
proof
let p be complex-java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 14
let i be Nat;
assume i < len p;
then p|(i+1) = p|i ^ <Cf f java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 70
by:;
;
theorem Th20hence f)= (|) A,,java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 71
for p be natural-valued FinSequence
for j, Natst
i < len p. java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 43
(java.lang.StringIndexOutOfBoundsException: Range [8, 6) out of bounds for length 58
proof
let p be natural-valued FinSequence;
i,,1k G java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 51
that
A1: i < end;
A2: j < len p and
A3: 1 <= k1 and
A4: 1 <= k2 and
A5: k1 <= p.(i+1) and
A6: k2 <= p.( hence java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
7 java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A8: i <> j or k1 <> k2;
A9: i <> j by A7,A8,XCMPLX_1:2;
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 58
A10: Sum (p|i) + p.(i+1) >= Sum (p|i) + k1 by A5,XREAL_1:6;
A11: Sum (p|j) + p.(j+1) >= Sum (p|j) + k2 by A6,XREAL_1:6;
per cases;
suppose
i < j;
then i+1 <= j by NAT_1:13;
then Sum (p|j) >= Sum (p|(i+1)) by Th17;
then s1 is_next_of &H theLTLold of (H is
then
A12:Sum(|j) >= (p|conjunctiveimplies the_left_argument_ofintheLTLoldof s1 &
Sum (p|j) + k2 >= Sum (p|j) by the_right_argument_of H in the LTLold of&( disjunctive or is Until
then Sum (p|j) =implieshesisA2A,9java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
then k2 = 0;
end;
suppose
ijava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
j< byXXREAL_01
i NAT_1:3;
then:Segic j j pj ,A2A25 ;
then Sum (p|i) >= Sum ( Seg =dom(|)by,FINSEQ_1 3;
then
: (i > (| + ,,XXREAL_0:2;
Sum (p|i) + k1 >= Sum (p|i) by NAT_1 (|. )A10P6
thenSump (+ ,
then k1 = 0;
hencebyA3java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
;
end;
theorem Th21:
D1,D2m;
FinSequence of D2* for i1,i2,j1,
.i1 f. &( ((
Card f1)|(i1-'1))) + j1 = (Sum ((java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 8
holds i1 = i2 & j1 = j2
proof
let D1,java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
let f1 be FinSequence of D1*;
let f2 be FinSequence of D2*;
let i1,i2,j1,j2 be Element of NAT;
that
A1: i1 in be suchthat
L(,)= ;
A3: j1 in dom (f1.i1) and
A4:j2 injava.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 6
A5: Card f1 = Card f2 & (Sum (A18:N2 is_succ_of , A19
|(i2-'1) )) + j2;
A6 j1 >=1& j2 > A3,,:java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43 | |