Step * 1 2 1 1 of Lemma bag-subtract-member-if-no-repeats


1. Type
2. eq EqDecider(T)
3. T
4. T
5. List
6. ∀bs:bag(T). (bag-no-repeats(T;bs)  uiff(x ↓∈ bag-subtract(eq;bs;v);x ↓∈ bs ∧ x ↓∈ v)))
7. bs bag(T)
8. bag-no-repeats(T;bs)
9. x ↓∈ bag-drop(eq;bs;u) ∧ x ↓∈ v) supposing x ↓∈ bag-subtract(eq;bag-drop(eq;bs;u);v)
10. x ↓∈ bag-subtract(eq;bag-drop(eq;bs;u);v) supposing x ↓∈ bag-drop(eq;bs;u) ∧ x ↓∈ v)
11. x ↓∈ bag-drop(eq;bs;u)
12. ¬x ↓∈ v
⊢ x ↓∈ bs
BY
((InstLemma `bag-drop-property` [⌜T⌝;⌜eq⌝;⌜u⌝;⌜bs⌝]⋅ THENA Auto) THEN (-1) THEN Auto) }

1
1. Type
2. eq EqDecider(T)
3. T
4. T
5. List
6. ∀bs:bag(T). (bag-no-repeats(T;bs)  uiff(x ↓∈ bag-subtract(eq;bs;v);x ↓∈ bs ∧ x ↓∈ v)))
7. bs bag(T)
8. bag-no-repeats(T;bs)
9. x ↓∈ bag-drop(eq;bs;u) ∧ x ↓∈ v) supposing x ↓∈ bag-subtract(eq;bag-drop(eq;bs;u);v)
10. x ↓∈ bag-subtract(eq;bag-drop(eq;bs;u);v) supposing x ↓∈ bag-drop(eq;bs;u) ∧ x ↓∈ v)
11. x ↓∈ bag-drop(eq;bs;u)
12. ¬x ↓∈ v
13. bs ({u} bag-drop(eq;bs;u)) ∈ bag(T)
⊢ x ↓∈ bs


Latex:


Latex:

1.  T  :  Type
2.  eq  :  EqDecider(T)
3.  x  :  T
4.  u  :  T
5.  v  :  T  List
6.  \mforall{}bs:bag(T).  (bag-no-repeats(T;bs)  {}\mRightarrow{}  uiff(x  \mdownarrow{}\mmember{}  bag-subtract(eq;bs;v);x  \mdownarrow{}\mmember{}  bs  \mwedge{}  (\mneg{}x  \mdownarrow{}\mmember{}  v)))
7.  bs  :  bag(T)
8.  bag-no-repeats(T;bs)
9.  x  \mdownarrow{}\mmember{}  bag-drop(eq;bs;u)  \mwedge{}  (\mneg{}x  \mdownarrow{}\mmember{}  v)  supposing  x  \mdownarrow{}\mmember{}  bag-subtract(eq;bag-drop(eq;bs;u);v)
10.  x  \mdownarrow{}\mmember{}  bag-subtract(eq;bag-drop(eq;bs;u);v)  supposing  x  \mdownarrow{}\mmember{}  bag-drop(eq;bs;u)  \mwedge{}  (\mneg{}x  \mdownarrow{}\mmember{}  v)
11.  x  \mdownarrow{}\mmember{}  bag-drop(eq;bs;u)
12.  \mneg{}x  \mdownarrow{}\mmember{}  v
\mvdash{}  x  \mdownarrow{}\mmember{}  bs


By


Latex:
((InstLemma  `bag-drop-property`  [\mkleeneopen{}T\mkleeneclose{};\mkleeneopen{}eq\mkleeneclose{};\mkleeneopen{}u\mkleeneclose{};\mkleeneopen{}bs\mkleeneclose{}]\mcdot{}  THENA  Auto)  THEN  D  (-1)  THEN  Auto)




Home Index