Step
*
1
1
2
1
of Lemma
bag-remove1-append1
1. T : Type
2. eq : EqDecider(T)
3. x : T
4. y : T
5. ¬(x = y ∈ T)
6. bs : bag(T)
7. as : bag(T)
8. bs = ({x} + as) ∈ bag(T)
9. bag-remove1(eq;bs;x) = (inl as) ∈ (bag(T)?)
10. bag-remove1(eq;{y} + bs;x) = (inr ⋅ ) ∈ (bag(T)?)
⊢ x ↓∈ {y} + bs
BY
{ ((RWW "-3 bag-member-append" 0 THENA Auto) THEN D 0 THEN OrRight THEN Auto) }
Latex:
Latex:
1.  T  :  Type
2.  eq  :  EqDecider(T)
3.  x  :  T
4.  y  :  T
5.  \mneg{}(x  =  y)
6.  bs  :  bag(T)
7.  as  :  bag(T)
8.  bs  =  (\{x\}  +  as)
9.  bag-remove1(eq;bs;x)  =  (inl  as)
10.  bag-remove1(eq;\{y\}  +  bs;x)  =  (inr  \mcdot{}  )
\mvdash{}  x  \mdownarrow{}\mmember{}  \{y\}  +  bs
By
Latex:
((RWW  "-3  bag-member-append"  0  THENA  Auto)  THEN  D  0  THEN  OrRight  THEN  Auto)
Home
Index