哪位能给理解下: + T! O# `5 K# ]2 V: S " ^3 P9 [: m6 X* w3 o CFormal Sets$ s) G* D7 }# @
A formal set consists of the subset of elements of some carrier set (structure) on which a certain predicate assumes the value `true'. ( q! p: V( d G7 | t" L3 {' A0 { 4 p5 p$ D1 j. s" G8 d% PThe only set-theoretic operations that can be performed on formal sets are union, intersection, difference and symmetric difference, and element membership testing. " E* [& v6 D! e
5 Z& L( r1 h- g+ l$ y
! ]( c) }0 g; S- B! K( C+ {
' c1 q; p1 w/ ~( g! X0 |
S := { 1 .. 5}; \7 L: U+ M6 A+ P. K! l( c$ A> P := PowerSet(S); , |* E) d; o! G. u' i7 f" W- I' ~P; ' k* R& p. y3 B" {PFS:=PowerFormalSet(S); , I. O+ t, W& ZPFS;! S0 [& \ V- q
F := { 2, 4 }; , M) W; y6 i7 ?FF := { 2/3, 4 }; 4 f& d. I* Y. Z& f2 j0 z' V ^' `! a$ s& \ Z6 U! h3 k
F in P; 8 O' x M& M: v$ e, hFF in P;! A3 e, L5 i. K
F in PFS; 0 G2 u( Z n. o! m8 O, A* o) }FF in PFS;- P/ M) y5 [, o; }! U6 W
Set of subsets of { 1 .. 5 } 0 s% P9 t" Y C1 lSet of formal subsets of { 1 .. 5 }$ f' o" c- c4 P% J7 \6 _ ^ g$ ^
true6 s& B( k8 o6 d( N3 o; l6 t
false% Y! \! J) \/ ~) D7 w3 e
( T2 E/ ?1 @; I: T- o>> F in PFS; * N5 q3 P! ]2 V3 T+ h, R ^6 e' k, M5 ^; A$ D6 N
Runtime error in 'in': Bad argument types & `# \8 e7 X2 }: w) V/ F, H; | E S4 r- @( g0 t; |) {5 D1 F: Q* q" A( V0 o l# Y1 P
>> FF in PFS;3 w: e7 u) ~( ?7 E
^ + G7 X1 g. ]0 Q) E" \7 x( G7 WRuntime error in 'in': Bad argument types