begin
scheme
ToleranceEx{
F1()
-> set ,
P1[
set ,
set ] } :
ex
T being
Tolerance of
F1() st
for
x,
y being
set st
x in F1() &
y in F1() holds
(
[x,y] in T iff
P1[
x,
y] )
provided
A1:
for
x being
set st
x in F1() holds
P1[
x,
x]
and A2:
for
x,
y being
set st
x in F1() &
y in F1() &
P1[
x,
y] holds
P1[
y,
x]
theorem
for
Y being
set for
T,
R being
Tolerance of
(union Y) st ( for
x,
y being
set holds
(
[x,y] in T iff ex
Z being
set st
(
Z in Y &
x in Z &
y in Z ) ) ) & ( for
x,
y being
set holds
(
[x,y] in R iff ex
Z being
set st
(
Z in Y &
x in Z &
y in Z ) ) ) holds
T = R