哪位能给理解下: N" U- c6 }( F1 m* W) d5 T7 s
Formal Sets 0 { X- }% g s0 @% Z& g; \' LA formal set consists of the subset of elements of some carrier set (structure) on which a certain predicate assumes the value `true'. 7 |2 r4 a6 O" S+ x Z% `
) s2 T! t9 I. S$ G& P& p7 F0 XThe only set-theoretic operations that can be performed on formal sets are union, intersection, difference and symmetric difference, and element membership testing. " A7 j* _; j2 q3 H 2 E& x/ k2 S; F: H+ @ - s- E- N! W M( `: k% O; W; h/ v6 F# W7 e3 G. W; j% N
S := { 1 .. 5};7 z- ]. p, C, j5 a, Y
> P := PowerSet(S);, \9 \, Z( ~7 b" i
P;2 u% Z6 Z1 s$ n" v3 C' e
PFS:=PowerFormalSet(S);4 F0 O# o4 a H: W
PFS;5 P8 c, G8 a, N; n2 H* U" l
F := { 2, 4 }; 2 F3 c. _% \3 L5 n' C( r/ GFF := { 2/3, 4 };2 h1 q# u5 W( s% o( A
5 S' T& b( Y7 R. K6 |8 t8 {
F in P;+ d0 c7 W& Z; a }+ {$ p9 W$ g
FF in P; 2 \# I" F# ]- h: I) y3 V4 C. N F in PFS; ; H2 y8 L. x, U1 E% OFF in PFS;- c/ M9 }8 J N* a+ B4 H
Set of subsets of { 1 .. 5 } R9 I! D9 ~6 Q' CSet of formal subsets of { 1 .. 5 }" d9 n- G4 v3 V/ g+ M& I1 ]! m: L
true$ A4 a# b `1 l; m/ z/ ^
false ; d1 T/ g% W, n/ z! x & [- {2 z4 F; o) E1 H>> F in PFS; " k! R0 W* L7 J8 a: s ^( O7 |. r w0 E
Runtime error in 'in': Bad argument types0 i# S2 n" Z( {+ X% T9 S% H# v
% K9 W+ V" a0 I& ?/ _8 v3 }
2 C7 z# D1 Q; _5 H
>> FF in PFS; ' v1 R! m% O2 z% _" R n ^ # K& |! M0 F/ G. b2 b" X+ i4 S# ]9 ?Runtime error in 'in': Bad argument types