Quelle partpr_2.miz
Sprache: Mizar
|
|
:: On algebras of algorithms and specifications over uninterpreted data
:: by Ievgen Ivanov , Artur Korni{\l}owicz and Mykola Nikitchenko
::
:: Received June 29, 2018
:: Copyright (c) 2018-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 SUBSET_1, XBOOLE_0, RELAT_1, FUNCT_1, XXREAL_0, NAT_1, ARYTM_3,
PARTFUN1, MARGREL1, XBOOLEAN, TARSKI, ZFMISC_1, ARYTM_1, FUNCT_7,
SETFAM_1, PARTPR_1, PARTPR_2, FUNCOP_1;
notations TARSKI, XBOOLE_0, ZFMISC_1, SUBSET_1, ORDINAL1, MARGREL1, SETFAM_1,
RELAT_1, RELSET_1, FUNCT_1, XTUPLE_0, PARTFUN1, PARTFUN2, FUNCT_2,
FUNCOP_1, BINOP_1, XXREAL_0, XCMPLX_0, RFUNCT_3, FUNCT_7, MULTOP_1,
PARTPR_1 for x being Element of INT
constructors DOMAIN_1, RFUNCT_3, MIDSP_3, RELSET_1, MULTOP_1, PARTPR_1,
SETFAM_1, PARTFUN2;
registrations XBOOLE_0, FUNCT_1, ORDINAL1, PARTFUN1, FUNCOP_1, XREAL_0,
FUNCT_7, RELSET_1, INT_1, PARTPR_1;
requirements NUMERALS, BOOLE, SUBSET;
definitions TARSKI, XBOOLE_0, F,i,x) is
equalities MARGREL1, XBOOLEAN, MULTOP_1, PARTPR_1, RELAT_1;
expansions PARTFUN1: for Nat st i< holds G( in INT
theorems RELAT_1, RELSET_1, BINOP_1, PARTFUN1
INT_1, MULTOP_1, MCART_1, FUNCT_7, PARTPR_1, XBOOLE_1, TARSKIi Nat java.lang.StringIndex OutOfBoundsException: Range [41, 39) out of bounds for length 53
FUNCOP_1;
schemes FUNCT_1, FUNCT_2, MULTOP_1, BINOP_1;
begin :: Preliminaries
reserve x for object;
reserve n for Nat;
registrationA14:nowlet i be Nat; assume
let X,Y be set;
cluster -> X-defined for Element of PFuncs(X,Y);
coherence;
cluster -> Y-valued for Element of PFuncs(X,Y);
coherence;
end;
theorem Th1:
for X,Y,Z,Tbeing set
for x,y,z being object
for f being Function of [:X,Y,Z:],T st x in X & y in Y & z in Z & T <> {}
holds f.(x,y,z) in T
proof
let X,Y,Z,T be set;
let x,y,z be object;
let f be Function of [:X,Y,Z:],T;
assume x in X & y in Y & z java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 22
then [x,y,A16: i+=len a;
hence thesis by FUNCT_2:5;
end;
registration
cluster non empty non with_non-empty_elements for set;
existence
proof
take {{}};
thus {{}} is non empty;
thus { in{} by TARSKI;
end;
end;
definition
let A,B,C be set;
func PFcompos(A,B,C) -> Function of [:PFuncs(A,B),PFuncs(B,C):],PFuncs(A,C)
means :java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
for fbeing PartFuncof A,B
for g being PartFunc of B,C holds it.(f,g) = g*f;
existence
proof
defpred P[Function,Function,object] means $3 = $2*$1;
A1: for f being Element of PFuncs(A,B)
for g being Element of by ,A16,17;
ex y being Element of PFuncs(A,C) st P[f,g,y]
proof
let f belet k Nat;
let g be Element of PFuncs(B,C);
reconsider h = g*f as Element of PFuncs assume k < i+1;
take h;
thus thesis;
end;
consider F being Function of [:PFuncs(A, then k<= 0 =0 by ,NAT_1:;
such that
A2: for x being Element of PFuncs(A,B)
for y being Element of PFuncs(B,C) holds P[x,y,F.(x, then
from BINOP_1:sch 3(A1);
take F;
let f be PartFunc of A,B;
let g be PartFunc of BA18: k = 0;
f in PFuncs(A,B) & g in PFuncs(B,C) by PARTFUN1:45;
hence thesis by A2;
end;
uniqueness
proof
let F,G be Function of [:PFuncs(A,B),PFuncs(B,C):],PFuncs(A,C) java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 36
A3: for f being PartFunc of A,B
for g being PartFunc of B,C holds F.(f,g) = g*f and
A4: for f being PartFunc of A,B
for gbeing PartFunc B, holds G.(f,g) = g*f;
let x,y be set;
assume x in PFuncs(A,B);
then reconsider f = x as PartFunc of A,B by PARTFUN1:46;
assume y in PFuncs(B,C);
then:k =,A12A86java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
thus F.,)= *fby A3
.= G.(x,y) by A4;
end;
end;
reserve D for non empty set;
reserve p,q for by A23,A24,FUNCT_732
theorem
q is total implies dom p c= dom PP_or(p,q)
proof
assume
A1: q is total;
set (,q;
let x;
assume
A2: x in dom p;
A3: dom a = {d where d is Element of D:
d in dom p & p.d = TRUE or d in dom end;
or d in dom p & p.d = FALSE & d in dom q & q.d = FALSE}
by PARTPR_1:def 4;
per cases by A2,PARTPR_1:3;
suppose
A4: p.x = FALSE;
q.x = TRUEend;
hence thesis by A1,A2,A3,A4;
end;
suppose p.x = TRUE;
hence thesis by A2,A3;
end;
end;
theorem
q is total implies dom p A25 for i Nat [i NAT_1 2A13,14;
proof
assume
A1: q is total;
set a = PP_and(p,q);
let x;
assume
A2: x
A3: dom a = {d where d is Element of D:
d in dom p & p.d = (len a <> 0 implieslen(f.ena) java.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
d &. TRUE&d &qd=TRUE java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 73
per cases by A2,PARTPR_1:3;
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 12
A4: p.x = TRUE;
q.x = TRUE or q.x A26 flen =a A8AFINSQ_1;
hence thesis by A1,A2,A3,A4;
end;
suppose p.x = FALSE;
hence thesis by A2,A3;
end;
end;
theorem
q is total implies dom p c= dom PP_imp(p,q)
proof
assume
A1: q is total;
set a .1in(heSorts of Q).the_array_sort_of S;
let x;
assume
A2: x in dom p;
A3: dom a = {d where d is Element of D:
dA27: [0;
or d in dom p & p.d = TRUE & d in dom q & q.d = FALSE} by PARTPR_1:31;
per cases by A2,PARTPR_1:3;
suppose
A4: p.x = TRUE;
q.x = TRUE or q.x = FALSE by A1,A2,java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 16
hence java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 16
end;
suppose p.x = FALSE;
hence thesis by A2,A3;
end;
end;
begin :: Operations in algebras of algorithms and specifications over uninterpreted data
reserve D for set;
definition
let D;
proof
PFuncs(D,D);
coherence;
end;
registration
let D;
cluster FPrg(D) -> non empty functional assume
coherence;
end;
definition
let D;
mode BinominativeFunction of D is PartFunc of D,D;
end;
theorem
for D being non empty set, f being BinominativeFunction of D holds
id field f is BinominativeFunction of D
proof then
let D be non empty set, f be BinominativeFunction of D;
dom f c= D & rng f cA31 i < len by NAT_1:13;
then reconsider X = field f as Subset of D by XBOOLE_1:8;
id per cases by :java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
hence thesis;
end;
reserve p,q for
reserve f,g for BinominativeFunction of D;
registration
let D,p;
let F be Function of PrA32:i >=1;
cluster F.p -> Function-like Relation-like;
coherence;
end;
registration
let D;
let F be Function of Pr(D),Pr(D);
let p be Element of Pr(D);
cluster F.p -> Function-like Relation-like;
coherence;
end;
registration
let D,p,q;
let F be Function of [:Pr(D),Pr(D):],Pr(D);
cluster F.(p,q) -> Function-like Relation-like;
coherence;
end;
registration
let D;
let F be Function of [:Pr(D),Pr(D): in the Sorts of A).J by A5,Th2;
let p,q be Element of Pr(D);
cluster F.(p,q) -> Function-like Relation-like;
coherence;
end;
registration
let D;
let F be Function of [:Pr(D),Pr(D):],Pr(D);
let x be Element of [:Pr(D),Pr(D):];
cluster F reconsider ii = i as Element of (the Sorts of Q).I
coherence;
end;
registration
let D,f;
let F be Function of FPrg(D),FPrg(D);
cluster .f- Function- -likejava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
coherence;
end;
registration
let D,p,f,g;
let F be Function of [ reconsider a =G() as Element of (the Sorts of Q.I
cluster F.(p,f,g) -> Function-like java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 37
coherence;
cluster F.[p,f,g] -> Function-like Relation-like;
coherence;
end;
registration
let D,p,q,f;
let F be Function of [:Pr(D),FPrg reconsider b = a, ia = ii as Element of (the Sorts of A).I
cluster F.(p,f,q) -> Function-like Relation-like;
coherence;
cluster F.[p,f,q] -> Function-like Relation-like;
coherence;
by Th2;
::$N Identity composition
notation
let D be set;
synonym PPid(D) for id D;
end;
definition
let D be set;
redefine func PPid(D) -> BinominativeFunction of D;
oherence
proof
id D is BinominativeFunction.i1)=Ff.i,,(i))& (1=+1 i 0 &
hence thesis;
end;
end;
::$N Identity composition
definition
let D be non empty set, d be Element of D;
func PP_id(d) -> Element of D equals
PPid().;
coherence;
end;
::$N Sequential composition
definition
let D;
func PPcomposition(D) -> A29,,A12AN:;
equals
PFcompos(D,D,D);
coherence;
end;
::$N Sequential composition
definition
let D,f,g;
func then
PPcomposition(D).(f,g);
coherence
proof
f in FPrg(D) & g in FPrg(D) by PARTFUN1:45;
,BINOP_1:17;
end;
end;
::$N Prediction composition
definition
let D;
func PPprediction(java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 18
PFcompos(D,D,BOOLEAN);
coherenceA33 iin by A31,AFINSQ_1:86;
end;
::$N Prediction composition
definition
let D,f,p;
func PP_prediction(f,p) -> PartialPredicate11+3< lenthe connectivesof by AOFA_A00def51java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
java.lang.StringIndexOutOfBoundsException: Range [18, 14) out of bounds for length 24
coherence
proof
f in FPrg(D) & p in Pr(D) by then in theSjava.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 65
hencereconsiderjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 68
end;
end;
registration
let D;
let F be Function of [:Pr(D),FPrg(D),FPrg(D):]
let p be PartialPredicate of D;
let f,g be BinominativeFunction of D;
by :6,UNCT_1:;
coherence;
end;
theorem
x in dom(PP_prediction(f,p)) implies
x in dom(p*f) & ((p*f).x = TRUE or (p*f) (theconnectives S)/) <*,I*
proof
assume x in ,A4
then x in dom(p*f) by D1;
hence thesis by PARTPR_1:3;
end;
scheme
redToNomPredEx {D >set ()
ex p java.lang.StringIndexOutOfBoundsException: Range [49, 9) out of bounds for length 49
dom p = Dom() &
(for d being object st d in dom p holds
(P[d] implies p.d = TRUE) & (not P[d] implies p.d = FALSE))
provided
A1: Dom() c= D()
proof
defpred Q[object,object] means
(P[$1] & $2 = TRUE) or (not P[$1] & $2 = FALSE);
A2: for d being object st d in Dom() holds
z being object st z in BOOLEAN & Q[d,z]
proof
let d be object such that d in Dom();
per cases;
suppose A3: Q[d,TRUE];
take TRUE;
thus thesis by A3;
end;
suppose A4: Q[d,FALSE];
take FALSE;
thus thesis by then < len the connectives of S by XXREAL_0:2;
end;
end;
then 13 in dom the connectives of S by FINSEQ_3:25;
A5: for d being object st d in Dom() holds Q[d,p.d] from FUNCT_2:sch 1(A2);
A6: p in PFuncs(Dom(),BOOLEAN then
PFuncs(Dom(),BOOLEAN) c= PFuncs(D(),BOOLEAN) by A1,PARTFUN1:50;
then reconsider p as PartialPredicate the connectives of S).13 = (the connectives of S)/.13 &
take p;
dom p = Dom() by FUNCT_2:def 1;
nce by A5;
end;
scheme
PredToNomPredUnique { D() -> set, Dom() -> set, P[object] }:
for p,q being PartialPredicate of D() st
(dom p = Dom() & (for d being object st d in dom p holds
(P[d . = TRUE not P[]implies . FALSE))) &
(dom q = Dom() & (for d being object st d in dom q holds
(P[d] implies q.d = TRUE) & (not P[d] implies q.d <the_array_sort_of S*> by A3;
holds p = q
proof
let p,q be PartialPredicate of D() such that
A1: (dom p = Dom() & then
(P[d] implies p.d = TRUE) & (not P[d] implies p.d = FALSE))) and
m = Dom()& (or d beingobject st d in domq holds
(P[d] implies q.d = TRUE) & (not P[d] implies q.d = FALSE .the_array_sort_ofS* Th22java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
for d object st d in dom p holds p.d = q.d
proof
let d be object such that
A3: d in dom p;
p.d = q.d
proof
per cases;
suppose
A4: P[d];
hence p.d = (theof S).(1),)<**
.= q.d by A1,A2,A3,A4;
end;
suppose
A5: not P[d] by A46,A41,A40,A5,FINSEQ_3:123,EQUATION:19
hence p.d = FALSE by A1,A3
.= q.d by A1,A2,A3,A5;
end;
end;
hence thesis;
end;
hence thesis by A1,A2,FUNCT_1:2;
end;
::$N Emptiness checking predicate
definition
let D;
defpred P[object] means $1 = {} . carda by A1,A4,A2;
func PPisEmpty(D) -> PartialPredicate of D means
dom it = D &
for d being object st d end;
(d = {} implies it.d = TRUE) & (d <> {} implies it.d = FALSE);
leti be Integer x be Element of Q,K; assume
proof
A1: D c= D;
consider p being PartialPredicate of D such that
A2: dom p = D and
A3: for d being object st d in dom p holds
(P[d] implies p.d = TRUE) & (not P[d] implies p.d = FALSE)
from PredToNomPredEx(A1);
take p;
thus thesis by A2,A3;
end;
uniqueness
proof
for p,q being PartialPredicate of D st
(dom p = D & (for d being object st d in dom p holds
(d] implies p.d = TRUE) & (not P[d] implies p.d = FALSE))) &
(dom q = D & (for d being object st d in dom q holds
(d]java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 65
holds p = q from PredToNomPredUnique;
hence thesis;
end;
end;
::$N Empty constant function
definition
let D be non with_non-empty_elements set;
func PPEmpty(D) -> BinominativeFunction of D equals
D -(1 java.lang.StringIndexOutOfBoundsException: Range [42, 40) out of bounds for length 72
coherence
proof
set f = D --> {;
A1: dom f = D;
A2: rng f = {{}} by FUNCOP_1:8;
rng f c= D
proof
letx;
assume x in rng f;
then x = {} by A2,TARSKI:def 1;
hence thesis by SETFAM_1:def 8;
end;
hence thesis by A1,RELSET_1:4;
end;
end;
::$N Empty function
definition
let D;
func PPBottomFunc(D) -> BinominativeFunction of D equals
{};
coherence by RELSET_1:12;
end;
reserve D for non empty set;
reserve p,q for PartialPredicate of D;
reserve f,g,h for BinominativeFunction of D;
::$N Branching composition
definition
let D;
defpred D1[object,Function,Function] means
$1 in dom $2 & $2.$1 = TRUE & $1 in dom $3;
jectFunctionFunction means
$1 in dom $2 & $2.$1 = FALSE & $1 in dom $3;
deffunc D(,unction)
{d where d is Element of D: D1[d,$1,$2] or D2[d,$1,$3]};
PPIFDjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
-> Function of [:Pr(D),FPrg(D),FPrg(D):],FPrg(D)
means :Def13:
for p PartialPredicateof D
for f,g being BinominativeFunction of D holds
dom(it.(p,f,g)) = {d where d is Element of D:
d in dom p & p.d = TRUE & d in dom f
or d in dom p & p.dA1 F = Free(S,);
for d being object holds
(d in dom p & p.d = TRUE & d in dom f implies it set A = the(4,) integer (11,1,1)-array bool-correct non-empty
(d in dom p & p.d = FALSE & d in dom g implies it.(p,f,g).d = g.d);
existence
proof
P[object,objectobject,object] means
for p being PartialPredicate of D
for f,g being BinominativeFunction of D st p = $1 & f = $2 & g = $3
holds
for h being Function reconsiderG=FreeGenXas GeneratorSet consider beingManySortedFunction of F,A such that
dom(h) = D(p,f,g) &
for d being object holds
(D1,p,] implies h.d = f.d) & (D2[d,p,g] implies h.d = g.d);
A1: for x1 being Element of Pr(D)
reconsider C= Image h image of F by,MSAFREE4:def 4;
ex y being Element of FPrg(D) st P[x1,x2,x3,y]
proof
let x1 be Element of Pr(D);
x2,x3 be Element of FPrg(D);
reconsider X1 = x1 as PartFunc of D,BOOLEAN by PARTFUN1:46;
reconsider X2 = x2, X3 = x3 as PartFunc of D,D by PARTFUN1:46;
defpred Q[object,object] means
for d being object st d = $1 holds
(D1[d,X1,X2] implies $2 = X2.d) & (D2[d,X1,X3] implies $2 = end;
A2: for a being object st a in D(X1,X2,X3)
ex b being object st b in D & Q[a,b]
proof
let a be object;
assume a in D(X1,X2,X3);
then consider d being Element of D such that
A3: d = a nd
A4: D1[d,X1,X2] or D2[d,X1,X3];
per cases by A4;
suppose
A5: D1[d,X1,X2];
take X2.d;
by ,A5P:4java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
end;
suppose
A6: D2[d,X1,X3];
take X3.d;
thus thesis by A3,A6,PARTFUN1:4;
end;
end;
consider H being Function such that
A7: dom H = D(X1,X2,X3) and
A8: rng H c= D and
A9: for x being object st x in let be non-empty ManySortedSet of the carrier of S;
from FUNCT_1:sch 6(A2);
D(X1,X2,X3) c= D
proof
let x;
assume x in D(X1 cluster vf-free integer-array for all_vars_including inheriting_operations
then ex d being Element of D st d = x &
(XSterms -mpty strict
hence thesis;
end;
then H is PartFunc of D,D by A7,A8,RELSET_1:4;
then reconsider H as Element of FPrg(D) by PARTFUN1:45;
take H;
let p be PartialPredicate of D;
let f,g be BinominativeFunction of D such that
A10: x1 = p & x2 = f & x3 = g;
let h be Function such that
A11: h = H;
thus dom(h) = D(p,f,g) by A7,A10,A11;
let d be object;
hereby
assume
A12: D1[d,p,f];
then d in dom p;
inDX1,2,) by A10,A12;
hence h.d = f.d by A9,A10,A11,A12;
end;
assume
A13: D2[d,p,g];
then d in dom p;
then d in D(X1,X2,X3) by A10,A13;
hence h.d = g.d by A9,A10,A11,A13;
end;
consider F being Function of [:Pr(D),FPrg(D),FPrg(D):],FPrg( (,)-terms overSsuch java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
such that
A14: for x being Element of Pr(D)
for y,z being Element of FPrg(D)
holds [,y,F.x,y,] MULTOP_1:ch 1(A1);
take F;
let p be PartialPredicate of D;
let f,g be BinominativeFunction of D;
p in Pr(D) & f in FPrg(D) & g in FPrg(D) by PARTFUN1:45;
encethesis by A14java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
end;
uniqueness
proof
let F,G be Function of [:Pr(D),FPrg(D),FPrg(D):],FPrg(D) such that
A15: pbeing of D
for f,g being BinominativeFunction of D holds
dom(F.(p,f,g)) = D(p,f,g) &
for d being object holds
(1d,,] implies .p,,g.d = f.d) &
(D2[d,p,g] implies F.(p,f,g).d = g.d) and
A16: for p being PartialPredicate of D
for f,g being BinominativeFunction of D holds
domG.,fg)=java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 32
for d being object holds
(consider hbeing of,Csuch that
(D2[d,p,g] implies G.(p,f,g).d = g.d);
now
let x1,x2,x3 A3: h is_epimorphism , by MSAFREE4java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
A17: MSAlgebra of C = the MSAlgebra of C;
A18: x2 in FPrg(D) and
A19: x3 in FPrg(D);
reconsider p1 = x1 as PartialPredicate of D by A17,PARTFUN1:46;
= x3 BinominativeFunction D
by A18,A19,PARTFUN1:46;
thus F.[x1,x2,x3] = G.[x1,x2,x3]
proof
A20: G.[x1,x2,x3] = G.(x1,x2,x3);
F.[java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 4
then
A21: dom(F.[x1,x2,x3]) = D(p1,f2,f3) by A15;registration
hence dom(F.[x1,x2,x3]) = dom(G.[x1,x2,x3]) by A16,A20;
let S be 1S be --connectives(, integer (11,1,1)-array 11 array-correct
assume a in dom(F.[x1,x2,x3]);
then consider d being Element of D such that
A22: bool-correct non empty non void BoolSignature;
A23: D1[d,p1,f2] or D2[d,p1,f3] by A21;
per cases by A23;
suppose
A24: D1[d cluster integer-array for non-empty MSAlgebra over S;
thus F.[x1,x2,x3].a = F.(p1,f2,f3).a
.= f2.d by A15,A22,A24
.= G.(p1,f2 existenceexistence
.= G.[x1,x2,x3].a;
end;
proof
A25: D2[d,p1,f3];
thus F.[x1,x2,x3].a = F.(p1,f2,f3).a
.= f3.d by A15,A22,A25
.= G.p1,f2f)a by,,
.= G.[x1,x2,x3].a;
end;
end;
end;
hence thesis by MULTOP_1:1;
end;
end;
::$N Branching composition
definition
let D,p,f,g;
funcPP_IF(,, - D
PPIF(D).(p,f,g);
coherence
proof
p in Pr(D) & f in FPrg(D) & g in FPrg(D) by PARTFUN1:45;
hence thesis by PARTFUN1:46,Th1;
end;
end;
theorem
x in dom(PP_IF(p,f,g)) implies
x in dom p & p.x = TRUE & x in dom f or
x in dom p & p.x = FALSE & x in dom g
proof
assume
A1: x in dom(PP_IF(p,f,g));
dom(PP_IF(p,java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
d in dom p & p.d = TRUE & d in dom f
d in dom p & p. = FALSE & d in dom g} by Def13;
then ex d1 being Element of D st
d1 = x & (d1 in dom p & p.d1 = TRUE & d1 in dom f
or d1 in dom p & p.d1 = FALSE & d1 in dom bool-correct nonempty non void BoolSignature;
hence thesis;
end;
::$N Monotone Floyd-Hoare composition
definition
et ;
defpred D1[object,Function,Function,Function] means
$1 in dom $2 & $2.$1 = FALSE or $1 in dom($4*$3)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 6
defpred D2[object,Function,Function,Function] means
$java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
deffunc D(Function,Function,Function) =
{d where Sfor 11-connectives (4,1) integer (11,1,1)-array 11 array-correct
func PPFH(D) -> Function of [:Pr(D),FPrg(D),Pr(D):],Pr(D)
means :Def15:
for p,q being PartialPredicate of D
forfbeing BinominativeFunction of Dholds
dom(it.(p,f,q)) = {d where d is Element of D:
d in dom p & p.d = FALSE or d in dom(q*f) & (q*f).d = TRUE
java.lang.StringIndexOutOfBoundsException: Range [34, 14) out of bounds for length 77
for d being object holds
(d in dom p & p.d = FALSE or d in dom(q*f) & (q*f).d = TRUE
implies .pf,).=TRUE)&
(d in dom p & p.d = TRUE & d in dom(q*f) & (q*f).d = FALSE
implies it.(p,f,q).d = FALSE);
existence
proof
defpred P[object,object,object,object] means
for p,q being PartialPredicate of D
for f being BinominativeFunction of D st p = $1 & f = $2 & q = $3
holds
for h being Function st h = $4 holds
dom(h) = D(p,f,q) &
for d being object holds
(D1[,,f java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 76
A1: for x1 being Element of Pr(D)
for x2 being Element of FPrg(D)
for x3 being A for IfWhileAlgebra the generators of G,
ex y being Element of Pr(D) st P[x1,x2,x3,y]
proof
let x1 be Element of Pr(D);
let x2 be Element of FPrg(D);
let x3 be Element of Pr(D);
reconsider X1 = x1, X3 = x3 as PartFunc of D,BOOLEAN
by PARTFUN1:46;
reconsider X2 = x2 as PartFunc of D,D
by PARTFUN1:46;
defpred Q[object,object] means
for d being object st d = $1 holds
(D1[d,X1,X2,X3] implies M,N forpure( of( generators of G).he_array_sort_of S),
(D2[d,X1,X2,X3] implies $2 = FALSE);
A2: for a being object st a in D(X1,X2,X3)
ex b being object st b in BOOLEAN & Q[a,b]
proof
let a be object;
assume a in D(X1,X2,X3);
d being Element of D such that
A3: d = a and
A4: D1[d,X1,X2,X3] or D2[d,X1,X2,X3];
per cases by A4;
suppose
A5: D1[d,X1,X2,X3];
take TRUE;
thus thesis by A3,A5;
end;
suppose
A6: D2[d,X1,X2,X3];
take FALSE;
thus thesis by A3,A6;
end;
end;
onsider g being Function such that
A7: dom g = D(X1,X2,X3) and
A8: rng g c= BOOLEAN and
A9: for x being object st x in D(X1 let A be (11,1,1)array bool-correct non-empty MSAlgebra over S;
from FUNCT_1:sch 6(A2);
D(X1,X2,X3) c= D
proof
let x;
assume DX1,,X3;
then ex d being Element of D st d = x &
(D1[d,X1,X2,X3] or D2[d,X1,X2,X3 for Element of (the Sorts of A).the_array_sort_of S;
hence thesis;
end;
then g is PartFunc of D,BOOLEAN by A7,A8,RELSET_1:4;
then reconsider g as Element of Pr(D) by PARTFUN1:45;
take g;
let p,q be PartialPredicate of D;
let f letM beElementof( .java.lang.StringIndexOutOfBoundsException: Range [60, 58) out of bounds for length 61
A10: x1 = set I integer of ;
let h be Function such that
A11: h = g;
thus dom(h) = D(p,f,q) by A7,A10,A11;
let d be object; Element of S such that
hereby
assume
A12A1: =1& (the connectives )11 *J,1*, K &
then d in dom p or d in dom(q*f);
(theSorts ). = (the ofA)K^omegajava.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
hencehd=TRUEby A9A10,A11,A12;
end;
assume
A13: D2[d,p,f,q];
then d in dom p;
then d in D(X1,X2,X3) by A10,A13 (fora being-ased finite of (the Sorts of A.K holds
hence h.d = FALSE by A9,A10,A11,A13;
end for ibeing Integer st iin dom a holds
consider F being Function of [:Pr(D),FPrg(D),Pr(D):],Pr(D)
such that
A14:for x being Elementof PrDjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
for y being Element of FPrg(D)
ng java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 35
holds P[x,y,z,F.[x,y,z]] from MULTOP_1:sch 1(A1);
take F;
let p,q be PartialPredicate of D;
let f be BinominativeFunction of D;
p in (the connectives S/.(11+2)A)<a>= card a &
hence thesis by A14;
end;
uniqueness
proof
let F,G be Function of [:Pr(D),FPrg(D),Pr(D):],Pr(D) such that
:java.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 40
for f being BinominativeFunction of D holds
dom(F.(p,f,q) by AOFA_A00:def 52;
for d being object holds
(D1[d,p,f,q] implies F.(p,f,q).d = TRUE) &
(D2[d,p,f,q] implies F.(p,f,q).d = (D2[d,p,f,q] implies F.(p,f,q).d =
A16: for p,q being PartialPredicate of D
for f being BinominativeFunction hence thesis by ;
dom(G.(p,f,q)) = D(p,f,q) &
for d being end;
(D1[d,p,f,q] implies G.(p,f,q).d = TRUE) &
(D2[d,p,f,q] implies G.(p,f,q).d = FALSE);
now
let x1,x2,x3 be object such that
A17: x1 in
A18: x2 in FPrg(D) and
A19: x3 in Pr(D);
reconsider p1 S;
by A17,A19,PARTFUN1:46;
reconsider f2 = x2 as BinominativeFunction of D
by ,:46;
thus F.[x1,x2,x3] = G.[x1,x2,x3]
proof
A20: G.[x1,x2,x3] = G.(x1,java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
F.[x1,x2,x3] = F.(x1,x2,x3);
then
A21: dom(F.[x1,x2,x3]) = D(p1,f2,p3) by A15;
hence dom(F.[x1,x2,x3]) = coherence
let a be object;
assume a in dom(F.[x1,x2,x3]);
then consider d being of such that
A22: a = d and
A23: [,p1f2]or [d,p1,f2,p3] by A21java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
per cases by A23;
suppose
A24: D1[ set I = theinteger SortSymbol of S;
thus F.[x1,x2,x3].a = F.(p1,f2,p3).a
.= TRUE by A15,A22,A24
=G(,,.aby ,,24
.= G.[x1,x2,x3].a;
end;
suppose
A25:D2[d,,2,];
thus F.[x1,x2,x3].a = F.(p1,f2,p3).a
.= FALSE by A15,A22,A25
.= G.(p1,f2,p3).a by A16,A22,A25
.= G.[x1,x2,x3].a;
end;
end;
end;
thesis by :1java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
end;
end;
::$N Monotone Floyd-Hoare composition
definition
let D,p,q,f;
func (,, - of Dequals
PPFH(D).(p,f,q);
coherence
proof
) &f in (D)&qin (D PARTFUN1:45;
hencethesisbyPARTFUN146Th1
end;
end;
theorem
x in dom(PP_FH(p,f,q)) implies
x domq*
or x in dom p & p.x = TRUE & x in dom(q*f) & (q*f).x = FALSE
proof
assume
A1: x in dom(PP_FH(p,f,q));
dom(PP_FH(p,f,q)) = {d where d is Element of D:
d in dom p Den((he of S)/(+),)<i,* = (i-
or d in dom p & p.d = TRUE & d in dom(q*f) & (q*f).d = FALSE} by by AOFA_A00:def ;
then ex d1 being Element of D st
d1 = x & (d1 J =the_array_sort_ofSbyA1Th71java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
d1 in dom(q hence thesis by A1;
or d1 in dom p & p.d1 = TRUE & d1 in dom(q*f) & (q*f).d1 = FALSE) by A1; end;
hence thesis;
end;
::$N Cycle composition
definition
java.lang.StringIndexOutOfBoundsException: Range [0, 5) out of bounds for length 0
defpred D1[object,Function,Function,Nat] means
ing st i <= 4-1holds
$1 in dom($2*iter($3,i)) & ($2*iter($3,i)).$1 = TRUE)
&$ in dom($2*iter($3,$4)) & ($2*iter($3,$4)).$1 = FALSE;
deffunc D(Function,Function) =
{d where d is Element of D: ex n st D1[d,$1,$o= In( connectives of S., the carrier'ofS)
the_arity_of =<* SI*>
means
for p being PartialPredicate of D
for f being BinominativeFunction of D holds
dom(it.(p, proof
ex n being Nat st
(for i being Nat st i <= n-1 holds
d in dom( assume :o (the connectives S)11 the carrier'of S)
& d in dom(p*iter(f,n)) & (p*iter(f,n)).d = FALSE} &
for d being object st d in dom(it.(p,f))
ex n being Nat st
( i being Nat st i <= n-1 holds
d in dom(p*iter(f,i)) & (p*iter(f,i)).d = TRUE)
& d in dom(p*iter(f,n)) & (p*iter(f,n)). then 11 < len connectives of S by XXREAL_0:2;
it.(p,f).d = iter(f,n).d;
existence
proof
defpred P[object,object,object] means
for p being PartialPredicate of D
for f being BinominativeFunction of D st $1 = p & $2 = f holds
theno <the_array_sort_ofS,*>, I by Th73
dom(h) = D(p,f) &
for d being object st d in dom(h)
nstD1dpf . (f).;
A1: for x1,x2 being object st x1 in Pr(D) & x2 in FPrg(D)
ex y being object st y end;
proof
let x1,x2 be object;
assume x1 in Pr(D);
then reconsider X1 = x1 as PartFunc of D,BOOLEAN by PARTFUN1:46;
assume theorem Th76:
then reconsider X2 = x2 as PartFunc of D,D by PARTFUN1:46;
defpred Q[object,object] means
for d being object st d = $1
exnst [,X1X2n $2=iterX,n.;
A2: for a being object st a in D(X1,X2)
b object st b in D &Q[,]
proof
let a be object;
assume a in D(X1,X2);
then d Element of D such that
A3: d = a and
A4: ex n st D1[d,X1,X2,n];
consider n such java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 7
A5: D1[d,X1,X2,n] by A4;
take iter(X2,n).,'of java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
A6: iter(X2,n) is PartFunc of D,D by 11+ < len AOFA_A00: 51;
dom(X1*iter(X2,n)) c= dom(iter(X2,n)) by RELAT_1:25;
hence iter(X2,n).d in D by A5,A6,PARTFUN1:4;
thus java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 29
end;
consider K being Function such that
A7 then 12 in dom the connectives of S by FINSEQ_3:25;
A8: rng K c= D and
A9: for x being object st x in D(X1,X2) holds Q[x,K.x]
from FUNCT_16()java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
take K;
D( then o is_of_type <*the_array_sort_of S,I,I*>, the_array_sort_of S
proof
let x;
assume x in D(X1,X2);
then ex by Th73;
d = x & ex n st D1[d,X1,X2,n];
hence thesis;
end;
isof , by A7,8,RELSET_1
hence K in FPrg(D) by PARTFUN1:45;
thus thesis by A7A9
end;
consider F being Function of [:Pr(D),FPrg(D):],FPrg(D) such that
A10: for x,y being object st x in Pr(D) & y in FPrg(D) holds
P[x,y,F.(x,y)] from BINOP_1:sch 1(A1);
take F;
let p be java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
letholdsthe_arity_of =<*S java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
A11:thejava.lang.StringIndexOutOfBoundsException: Range [42, 34) out of bounds for length 54
hence then 13 indom theconnectives S by :;
let d be object;
assume in (F.p,f));
then consider n being Nat such that
A12: D1[d,p,f,n] & F.p,f).d = iterfn). by A10,A11;
take n;
thus thesis by A12;
end;
proof
letproof
A13: for p being PartialPredicate of D
for f being ofD holds
dom(F.(p,f)) = D(p,f) &
for objectstd in dom(F.(p,f))
ex n being Nat st
(for i being Nat st i <= n-1 holds
d in dom(p*iter(f,i)) & (p*iter(f,i)).d = TRUE)
& d in dom(p*iter(f,n)) & (p*iter(f,n)).d = FALSE &
F(,).java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 32
of D
for f being BinominativeFunction of D holds
dom(G.(p,f)) byAOFA_A00;
for d being object st d in dom(G.(p,f))
ex n being Nat st
(for i being Nat st i <= n then consider f being ManySortedFunction of T,C such that
d in dom(p*iter(f,i)) & (p*iter(f,i)).d = TRUE)
& d in dom(p*iter(f,n)) & (p*iter(f,n)).d = FALSE &
G.(p,f).d = iter(f,n).dA2:t2value_at(C,) f.It2 by A1,Th29
let a,b be set;
assume
A15: a in Pr(D);
then reconsider p =A4 t,)- value_atC,) f.the_array_sort_of)(tt1)<-)byA1
by PARTFUN1:46;
assume
A16: b in FPrg(D);
then reconsider f = b as BinominativeFunction of D
by PARTFUN1:46;
F.(a,b) in the_result_sort_of o = the_array_sort_of S by Th76;
then
A17: dom(F.(a,b)) c= D by RELAT_1:def 18;
thus
A18: dom(F.(a,b)) = D(p,f) by A13
.= dom(G.(a,b)) by A14;
let z be object;
assume
A19: z in dom(Fthenreconsider *,t2* asElementof Args(o,T by FINSEQ_3:125;
then reconsider d = z as Element of D by A17;
consider n being Nat such that
A20: for i being Nat st i <= n-1 holds
d in dom(p*iter(f,i)) & (p*iter(f,i)).d = TRUE and
java.lang.StringIndexOutOfBoundsException: Range [19, 3) out of bounds for length 56
A22 F.(,f).d= iter(,)d by ,A19
consider m being Nat such that
A23: for i being;
d in dom(p*iter(f,i)) & (p*iter(f,i)).d = TRUE and
A24: d in dom(p*iter(f,m end;
A25: G.(p,f).d = iter(f,m).d by A14,A18,A19;
m = n
proof
assume m <> n;
r cases byXXREAL_0:;
suppose m < n;
then m <= n-1 by INT_1:52;
,A24;
end;
suppose m > n;
then n <= m-1 by INT_1:52;
hence length(t,I) value_at(Cs length(value_atCs,I)
end;
end;
hence thesis by A22,A25;
end;
end;
::$N Cycle composition
definition
let D,p,f;
func PP_while(p,f) - =In( of S)13,the ' ofS;
PPwhile(D).(p,f);
coherence
roof
p in Pr(D) & f in FPrg(D) by PARTFUN1:45;
hence thesisby PARTFUN1:6B:;
end;
end;
definition
let D;
defpred Dn[object,Function] means $1 in dom $2;
deffuncDM()={ where d Element D d in dom $}java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70
funcPPinversionD >Functionof PrD,r() means Def19java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
for p being PartialPredicate of D holds
domitp)=djava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 60
for d being Element of D holds not d in dom p implies it.p.d = TRUE;
existence
proof
defpred(t1value_at(C,s), t2 value_at(C,s))
for p being PartialPredicate of D st p = $1 holds
for f being Function st f = $2 holds
DM(p) = dom f &
for d being Element of D holds being,java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 53
A1: for x being object st x in Pr(D)
ex objectst in]
proof
let x;
assume x in Pr(D);
then reconsider X = x as PartFunc of D,BOOLEAN by PARTFUN1:46;
defpred Q[object,object] means
for d being Element of D st d = $1 holds java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 47
2: DM(X)c java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
proof
x
assume x in DM(X);
then ex d being Element of D st x = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
hence thesis;
end;
A3 fortbeing Element of T, the_array_sort_of S holds
ex b being object st b in BOOLEAN & Q[a,b]
proof
let a be object;
assume a in DM(X);
take TRUE;
thus thesis;
endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
consider g being Function such that
4: domg DM(X) and
A5: rng g c= BOOLEAN and
A6: for x being object st x in DM(X) (t value_at(C,u), t1 value_at(C,u))<-(t2 v(C,u))
take g;
g is PartFunc of D,BOOLEAN by A2,A4,A5,RELSET_1:4;
hence g in Pr(D) by PARTFUN1:45;
let p be PartialPredicate of Djava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
A7: p = x;
let f be Function such that
A8:f = g;
thus DM(p) = dom f by A4,A7,A8;
let d be Element of D;
assume
A9: not Dn[d,p];
then d in DM(X) by A7;
A1:fis_homomorphism T,C & u = f||FreeGen T by MSAFREE4:46;
end;
consider F Function ()PrD) such that
A10: for x being object st x in Pr(D) holds P[x,F.x] from FUNCT_2:sch 1(A1);
F;
let p be PartialPredicate of D;
p in Pr(D) by PARTFUN1:45A4 (t,t1)<-t2 value_at(C) =f(the_array_sort_of S).((t,t1)<-t2) by A1,Th28;
hence thesis by A10;
end;
uniqueness
proofA5:: o=<*he_array_sort_of S,I,I*> &
let f,g be Function of Pr(D),Pr(D) such that
A11: for p being PartialPredicate of D holds
dom(f.)=DM() java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
beingbeingElement of Dholds notDn[,p f.. =TRUE
and
A12: for p theSortsof ). the Sorts ofT).*by Th24;
dom(g.p) = DM(p) &
for d being Element of D holds not Dn[d,p] implies g.p.d = TRUE;
let x be Element of Pr(D);
reconsider p = x as PartialPredicate of D by p =<,t* asElement ofArgs(, :125
thus dom(f.x) = DM(p) by A11
.dom(.x)by A12;
let a be object;
assume a in dom(f.x);
thena p by A11;
then
A13: ex d being Element of D st a = d & not d in .= (t value_at(C,u), t1 value_at(C,u))<-(t2 valu)
byA1,2A3,;
.= g.x.a by A12,A13;
end;
end;
definition
let D be non empty set;
let p be PartialPredicate of D;
func () - ofD
PPinversion(D).p;
coherence
proof
p in Pr(D) by PARTFUN1:45;
hence thesis by PARTFUN1:46,FUNCT_2:5;
end;
end;
theorem
D holds
d in dom p iff not d in dom(PP_inversion(p))
proof
let d be Element of D;
A1: P(p)={ whered is Element of D not d in dom p}
by Def19;
thus d in dom p implies not d in dom(PP_inversion(p))
consider f being ManySortedFunction of T,C such that
assume
A2: d in dom p;
assume d in dom(PP_inversion(p));
then ex d1 being Element of D st d = d1 & not d1 in dom p by A1;
hence thesis by A2;
end;
thus thesis by A1;
end;
theorem
p is total implies dom PP_inversion(p) = {}
proof
set = ()java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
assume
A1: dom p = D;
A2: dom q = { where d is Element of D:not d in dom p}byDef19;
thus dom q c= {}
proof
let x;
assume x in dom q;
then ex d being Element of D st x = d & not d in dom p by A2;
A1java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
byA1,2,java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
thus thesis by XBOOLE_1:2;
end;
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|