Step
*
1
1
2
of Lemma
poss-maj-member
1. T : Type
2. eq : EqDecider(T)
3. L : T List
4. x : T
5. ∀m:ℕ
     (snd(accumulate (with value p and list item z):
           let n,x = p 
           in if eq z x then <n + 1, x>
              if (n =z 0) then <1, z>
              else <n - 1, x>
              fi 
          over list:
            L
          with starting value:
           <m, x>)) ∈ [x / L])
⊢ (snd(accumulate (with value p and list item z):
        let n,x = p 
        in if eq z x then <n + 1, x>
           if (n =z 0) then <1, z>
           else <n - 1, x>
           fi 
       over list:
         L
       with starting value:
        <0, x>)) ∈ [x / L])
BY
{ (InstHyp [⌜0⌝] (-1)⋅ THEN Auto) }
Latex:
Latex:
1.  T  :  Type
2.  eq  :  EqDecider(T)
3.  L  :  T  List
4.  x  :  T
5.  \mforall{}m:\mBbbN{}
          (snd(accumulate  (with  value  p  and  list  item  z):
                      let  n,x  =  p 
                      in  if  eq  z  x  then  <n  +  1,  x>
                            if  (n  =\msubz{}  0)  then  ə,  z>
                            else  <n  -  1,  x>
                            fi 
                    over  list:
                        L
                    with  starting  value:
                      <m,  x>))  \mmember{}  [x  /  L])
\mvdash{}  (snd(accumulate  (with  value  p  and  list  item  z):
                let  n,x  =  p 
                in  if  eq  z  x  then  <n  +  1,  x>
                      if  (n  =\msubz{}  0)  then  ə,  z>
                      else  <n  -  1,  x>
                      fi 
              over  list:
                  L
              with  starting  value:
                ɘ,  x>))  \mmember{}  [x  /  L])
By
Latex:
(InstHyp  [\mkleeneopen{}0\mkleeneclose{}]  (-1)\mcdot{}  THEN  Auto)
Home
Index