Step
*
1
2
of Lemma
bag-count-remove1
1. T : Type
2. eq : EqDecider(T)
3. x : T
4. bs : bag(T)
5. x ↓∈ bs
6. x ↓∈ bs
7. as : bag(T)
8. bs = ({x} + as) ∈ bag(T)
9. bag-remove1(eq;bs;x) = (inl as) ∈ (bag(T)?)
⊢ (#x in outl(bag-remove1(eq;bs;x))) = (#x in as) ∈ ℕ
BY
{ (EqCD THEN Auto)⋅ }
Latex:
Latex:
1.  T  :  Type
2.  eq  :  EqDecider(T)
3.  x  :  T
4.  bs  :  bag(T)
5.  x  \mdownarrow{}\mmember{}  bs
6.  x  \mdownarrow{}\mmember{}  bs
7.  as  :  bag(T)
8.  bs  =  (\{x\}  +  as)
9.  bag-remove1(eq;bs;x)  =  (inl  as)
\mvdash{}  (\#x  in  outl(bag-remove1(eq;bs;x)))  =  (\#x  in  as)
By
Latex:
(EqCD  THEN  Auto)\mcdot{}
Home
Index