:: STRUCT_0 semantic presentation
:: Showing IDV graph ... (Click the Palm Trees again to close it)
definition
attr
c
1
is
strict
;
struct
1-sorted
->
;
aggr
1-sorted
(#
carrier
#)
->
1-sorted
;
sel
carrier
c
1
->
set
;
end;
definition
attr
c
1
is
strict
;
struct
ZeroStr
->
1-sorted
;
aggr
ZeroStr
(#
carrier
,
Zero
#)
->
ZeroStr
;
sel
Zero
c
1
->
Element
of the
carrier
of
c
1
;
end;
definition
let
S
be
1-sorted
;
attr
S
is
empty
means
:
Def1
:
:: STRUCT_0:def 1
the
carrier
of
S
is
empty
;
end;
::
deftheorem
Def1
defines
empty
STRUCT_0:def 1 :
for
S
being
1-sorted
holds
(
S
is
empty
iff the
carrier
of
S
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
S
be non
empty
1-sorted
;
cluster
the
carrier
of
S
->
non
empty
;
coherence
not the
carrier
of
S
is
empty
by
Def1
;
end;
definition
let
S
be
1-sorted
;
mode
Element of
S
is
Element
of the
carrier
of
S
;
mode
Subset of
S
is
Subset
of the
carrier
of
S
;
mode
Subset-Family of
S
is
Subset-Family
of the
carrier
of
S
;
end;
registration
let
S
be non
empty
1-sorted
;
cluster
non
empty
Element
of
bool
the
carrier
of
S
;
existence
not for
b
1
being
Subset
of
S
holds
b
1
is
empty
proof
end;
end;
definition
let
S
be non
empty
1-sorted
;
let
a
be
Element
of
S
;
:: original:
{
redefine
func
{
a
}
->
Subset
of
S
;
coherence
{
a
}
is
Subset
of
S
by
SUBSET_1:55
;
end;
definition
let
S
be non
empty
1-sorted
;
let
a1
,
a2
be
Element
of
S
;
:: original:
{
redefine
func
{
a1
,
a2
}
->
Subset
of
S
;
coherence
{
a1
,
a2
}
is
Subset
of
S
by
SUBSET_1:56
;
end;
definition
let
S
be non
empty
1-sorted
;
let
X
be non
empty
Subset
of
S
;
:: original:
Element
redefine
mode
Element
of
X
->
Element
of
S
;
coherence
for
b
1
being
Element
of
X
holds
b
1
is
Element
of
S
proof
end;
end;
definition
let
S
be
1-sorted
;
let
X
be
set
;
mode
Function of
S
,
X
is
Function
of the
carrier
of
S
,
X
;
mode
Function of
X
,
S
is
Function
of
X
,the
carrier
of
S
;
end;
definition
let
S
,
T
be
1-sorted
;
mode
Function of
S
,
T
is
Function
of the
carrier
of
S
,the
carrier
of
T
;
end;
definition
let
S
be
1-sorted
;
mode
FinSequence of
S
is
FinSequence
of the
carrier
of
S
;
end;