:: STRUCT_0 semantic presentation
definition
attr
a
1
is
strict
;
struct
1-sorted
->
;
aggr
1-sorted
(#
carrier
#)
->
1-sorted
;
sel
carrier
c
1
->
set
;
end;
definition
attr
a
1
is
strict
;
struct
ZeroStr
->
1-sorted
;
aggr
ZeroStr
(#
carrier
,
Zero
#)
->
ZeroStr
;
sel
Zero
c
1
->
Element
of the
carrier
of
a
1
;
end;
definition
let
c
1
be
1-sorted
;
attr
a
1
is
empty
means
:
Def1
:
:: STRUCT_0:def 1
the
carrier
of
a
1
is
empty
;
end;
::
deftheorem
Def1
defines
empty
STRUCT_0:def 1 :
for
b
1
being
1-sorted
holds
(
b
1
is
empty
iff the
carrier
of
b
1
is
empty
);
registration
cluster
non
empty
1-sorted
;
existence
not for
b
1
being
1-sorted
holds
b
1
is
empty
proof
end;
end;
registration
cluster
non
empty
ZeroStr
;
existence
not for
b
1
being
ZeroStr
holds
b
1
is
empty
proof
end;
end;
registration
let
c
1
be non
empty
1-sorted
;
cluster
the
carrier
of
a
1
->
non
empty
;
coherence
not the
carrier
of
c
1
is
empty
by
Def1
;
end;
definition
let
c
1
be
1-sorted
;
mode
Element of
a
1
is
Element
of the
carrier
of
a
1
;
mode
Subset of
a
1
is
Subset
of the
carrier
of
a
1
;
mode
Subset-Family of
a
1
is
Subset-Family
of the
carrier
of
a
1
;
end;
registration
let
c
1
be non
empty
1-sorted
;
cluster
non
empty
Element
of
bool
the
carrier
of
a
1
;
existence
not for
b
1
being
Subset
of
c
1
holds
b
1
is
empty
proof
end;
end;
definition
let
c
1
be non
empty
1-sorted
;
let
c
2
be
Element
of
c
1
;
redefine
func
{
as
{
c
2
}
->
Subset
of
a
1
;
coherence
{
c
2
}
is
Subset
of
c
1
by
SUBSET_1:55
;
end;
definition
let
c
1
be non
empty
1-sorted
;
let
c
2
,
c
3
be
Element
of
c
1
;
redefine
func
{
as
{
c
2
,
c
3
}
->
Subset
of
a
1
;
coherence
{
c
2
,
c
3
}
is
Subset
of
c
1
by
SUBSET_1:56
;
end;
definition
let
c
1
be non
empty
1-sorted
;
let
c
2
be non
empty
Subset
of
c
1
;
redefine
mode
Element
as
Element
of
c
2
->
Element
of
a
1
;
coherence
for
b
1
being
Element
of
c
2
holds
b
1
is
Element
of
c
1
proof
end;
end;
definition
let
c
1
be
1-sorted
;
let
c
2
be
set
;
mode
Function of
a
1
,
a
2
is
Function
of the
carrier
of
a
1
,
a
2
;
mode
Function of
a
2
,
a
1
is
Function
of
a
2
,the
carrier
of
a
1
;
end;
definition
let
c
1
,
c
2
be
1-sorted
;
mode
Function of
a
1
,
a
2
is
Function
of the
carrier
of
a
1
,the
carrier
of
a
2
;
end;
definition
let
c
1
be
1-sorted
;
mode
FinSequence of
a
1
is
FinSequence
of the
carrier
of
a
1
;
end;