Step
*
1
1
3
1
2
1
of Lemma
bag-member-parts
1. T : Type
2. valueall-type(T)
3. eq : EqDecider(T)
4. n : ℕ
5. ∀n:ℕn. ∀bs:bag(T).
     ((#(bs) ≤ n)
     
⇒ (∀L:bag(T) List+. uiff(L ↓∈ bag-parts(eq;bs);(bag-union(L) = bs ∈ bag(T)) ∧ (∀x∈L.¬(x = {} ∈ bag(T))))))
6. bs : bag(T)
7. #(bs) ≤ n
8. u : bag(T)
9. v : bag(T) List
10. (u + bag-union(v)) = bs ∈ bag(T)
11. ¬(u = {} ∈ bag(T))
12. (∀x∈v.¬(x = {} ∈ bag(T)))
13. (#(u) + #(bag-union(v))) = #(bs) ∈ ℤ
14. ¬(#(u) ≤ 0)
⊢ <u, bag-union(v)> ↓∈ bag-partitions(eq;bs)
BY
{ (BLemma `bag-member-partitions` THEN Auto)⋅ }
Latex:
Latex:
1.  T  :  Type
2.  valueall-type(T)
3.  eq  :  EqDecider(T)
4.  n  :  \mBbbN{}
5.  \mforall{}n:\mBbbN{}n.  \mforall{}bs:bag(T).
          ((\#(bs)  \mleq{}  n)
          {}\mRightarrow{}  (\mforall{}L:bag(T)  List\msupplus{}.  uiff(L  \mdownarrow{}\mmember{}  bag-parts(eq;bs);(bag-union(L)  =  bs)  \mwedge{}  (\mforall{}x\mmember{}L.\mneg{}(x  =  \{\})))))
6.  bs  :  bag(T)
7.  \#(bs)  \mleq{}  n
8.  u  :  bag(T)
9.  v  :  bag(T)  List
10.  (u  +  bag-union(v))  =  bs
11.  \mneg{}(u  =  \{\})
12.  (\mforall{}x\mmember{}v.\mneg{}(x  =  \{\}))
13.  (\#(u)  +  \#(bag-union(v)))  =  \#(bs)
14.  \mneg{}(\#(u)  \mleq{}  0)
\mvdash{}  <u,  bag-union(v)>  \mdownarrow{}\mmember{}  bag-partitions(eq;bs)
By
Latex:
(BLemma  `bag-member-partitions`  THEN  Auto)\mcdot{}
Home
Index