Step * 1 2 of Lemma bag-remove1-equal


1. Type
2. eq EqDecider(T)
3. as bag(T)
4. bs bag(T)
5. T
6. T
7. bag-remove1(eq;as;a) bag-remove1(eq;bs;b) ∈ (bag(T)?)
8. ¬a ↓∈ as
9. bag-remove1(eq;as;a) (inr ⋅ ) ∈ (bag(T)?)
10. a1 bag(T)
11. bs ({b} a1) ∈ bag(T)
12. bag-remove1(eq;bs;b) (inl a1) ∈ (bag(T)?)
⊢ (({a} bs) ({b} as) ∈ bag(T)) ↓∨ ((¬a ↓∈ as) ∧ b ↓∈ bs))
BY
(RWO "-1 -4" (-6) THEN Auto) }


Latex:


Latex:

1.  T  :  Type
2.  eq  :  EqDecider(T)
3.  as  :  bag(T)
4.  bs  :  bag(T)
5.  a  :  T
6.  b  :  T
7.  bag-remove1(eq;as;a)  =  bag-remove1(eq;bs;b)
8.  \mneg{}a  \mdownarrow{}\mmember{}  as
9.  bag-remove1(eq;as;a)  =  (inr  \mcdot{}  )
10.  a1  :  bag(T)
11.  bs  =  (\{b\}  +  a1)
12.  bag-remove1(eq;bs;b)  =  (inl  a1)
\mvdash{}  ((\{a\}  +  bs)  =  (\{b\}  +  as))  \mdownarrow{}\mvee{}  ((\mneg{}a  \mdownarrow{}\mmember{}  as)  \mwedge{}  (\mneg{}b  \mdownarrow{}\mmember{}  bs))


By


Latex:
(RWO  "-1  -4"  (-6)  THEN  Auto)




Home Index