哪位能给理解下: q* `& E/ X' ?: h$ z3 Z4 K
0 h5 ?3 i) @* ]0 p, |
Formal Sets 9 i" j3 C$ u9 Q, u2 E& LA formal set consists of the subset of elements of some carrier set (structure) on which a certain predicate assumes the value `true'. 6 {. ?7 w2 X9 _7 v
, k2 k$ S; c+ F; X; v% C* m
The only set-theoretic operations that can be performed on formal sets are union, intersection, difference and symmetric difference, and element membership testing. ! Y, R6 B0 x5 G) c
- T" ^! N! z! G& t5 q7 A 7 e6 e$ W2 B8 N, p* Z0 K' c0 F( A! [% G( t3 Y9 Z2 O1 c2 s; [1 S. U
S := { 1 .. 5}; / U H* u$ `- E, T> P := PowerSet(S); - J' g0 f+ b5 t, c% [+ }5 WP;0 c# n( f8 g2 [- o# s1 y
PFS:=PowerFormalSet(S); ' D3 H, _. _1 R. u5 B4 pPFS; " J2 @) z" ^( I/ NF := { 2, 4 };, O, j2 ~6 A m$ _* d" e
FF := { 2/3, 4 }; 6 B4 T5 V/ f6 ]3 Y9 \6 q- _8 w* j0 ~- h8 P
F in P;& k5 c' U& O3 V3 g* P7 @
FF in P;4 {3 Z1 F& \& u% ^' h p
F in PFS;- f% X- T. L! s; R# g: ^. P# T6 e* b
FF in PFS;2 H! e* y6 X7 ?; p
Set of subsets of { 1 .. 5 } ) Q- b, v# _1 zSet of formal subsets of { 1 .. 5 }: ?" K+ d- U M. T5 p1 W
true 2 m' r3 f; ^3 u; d y# T1 Ifalse : f- f t0 h! R; `4 N& T * {" j4 S4 D+ m" r8 o% C>> F in PFS;. C8 E8 i F$ }% T, E
^' Z4 y U/ H2 }% _8 c2 t; R G h
Runtime error in 'in': Bad argument types; X( w2 _( y0 }& }
, q/ z* I3 B* O% ] + l& b+ T7 n) @! B3 E6 Y>> FF in PFS; / k# L% Z5 _8 H ^ 0 m, a5 Q8 g- ~5 w% b/ k* K' d9 MRuntime error in 'in': Bad argument types