Step * 1 1 of Lemma list_accum-set-equal-idemp


1. Type
2. eq EqDecider(T)
3. Type
4. T ⟶ A
5. A ⟶ A ⟶ A
6. Comm(A;λx,y. f[x;y])
7. Assoc(A;λx,y. f[x;y])
8. ∀x:A. (f[x;x] x ∈ A)
9. ∀[as:T List]. ∀[n:A].
     (accumulate (with value and list item z):
       f[a;g[z]]
      over list:
        as
      with starting value:
       n)
     accumulate (with value and list item z):
        f[a;g[z]]
       over list:
         remove-repeats(eq;as)
       with starting value:
        n)
     ∈ A)
10. as List
11. bs List
12. set-equal(T;as;bs)
13. A
14. ∀[as,bs:T List].
      (∀[n:A]
         (accumulate (with value and list item z):
           f[a;g[z]]
          over list:
            as
          with starting value:
           n)
         accumulate (with value and list item z):
            f[a;g[z]]
           over list:
             bs
           with starting value:
            n)
         ∈ A)) supposing 
         (no_repeats(T;bs) and 
         no_repeats(T;as) and 
         set-equal(T;as;bs))
⊢ set-equal(T;remove-repeats(eq;as);remove-repeats(eq;bs))
BY
(RepeatFor (Thin (-1)) THEN RepeatFor (ParallelLast)) }

1
1. Type
2. eq EqDecider(T)
3. Type
4. T ⟶ A
5. A ⟶ A ⟶ A
6. Comm(A;λx,y. f[x;y])
7. Assoc(A;λx,y. f[x;y])
8. ∀x:A. (f[x;x] x ∈ A)
9. ∀[as:T List]. ∀[n:A].
     (accumulate (with value and list item z):
       f[a;g[z]]
      over list:
        as
      with starting value:
       n)
     accumulate (with value and list item z):
        f[a;g[z]]
       over list:
         remove-repeats(eq;as)
       with starting value:
        n)
     ∈ A)
10. as List
11. bs List
12. ∀t:T. ((t ∈ as) ⇐⇒ (t ∈ bs))
13. T
14. (t ∈ as) ⇐⇒ (t ∈ bs)
⊢ (t ∈ remove-repeats(eq;as)) ⇐⇒ (t ∈ remove-repeats(eq;bs))


Latex:


Latex:

1.  T  :  Type
2.  eq  :  EqDecider(T)
3.  A  :  Type
4.  g  :  T  {}\mrightarrow{}  A
5.  f  :  A  {}\mrightarrow{}  A  {}\mrightarrow{}  A
6.  Comm(A;\mlambda{}x,y.  f[x;y])
7.  Assoc(A;\mlambda{}x,y.  f[x;y])
8.  \mforall{}x:A.  (f[x;x]  =  x)
9.  \mforall{}[as:T  List].  \mforall{}[n:A].
          (accumulate  (with  value  a  and  list  item  z):
              f[a;g[z]]
            over  list:
                as
            with  starting  value:
              n)
          =  accumulate  (with  value  a  and  list  item  z):
                f[a;g[z]]
              over  list:
                  remove-repeats(eq;as)
              with  starting  value:
                n))
10.  as  :  T  List
11.  bs  :  T  List
12.  set-equal(T;as;bs)
13.  n  :  A
14.  \mforall{}[as,bs:T  List].
            (\mforall{}[n:A]
                  (accumulate  (with  value  a  and  list  item  z):
                      f[a;g[z]]
                    over  list:
                        as
                    with  starting  value:
                      n)
                  =  accumulate  (with  value  a  and  list  item  z):
                        f[a;g[z]]
                      over  list:
                          bs
                      with  starting  value:
                        n)))  supposing 
                  (no\_repeats(T;bs)  and 
                  no\_repeats(T;as)  and 
                  set-equal(T;as;bs))
\mvdash{}  set-equal(T;remove-repeats(eq;as);remove-repeats(eq;bs))


By


Latex:
(RepeatFor  2  (Thin  (-1))  THEN  RepeatFor  2  (ParallelLast))




Home Index