is mentioned by
Thm* count(x < y in swap(L;n;n+1) | P(x,y)) Thm* = Thm* count(x < y in L | P(x,y))+if P(L[n],L[(n+1)]) Thm* count(x < y in L | P(x,y))+if P(L[n],L[(n+1)]) Thm* count(x < y in L | P(x,y))+if P(L[n],L[(n+1)]) Thm* count(x < y in L | P(x,y))+if P(L[n],L[(n+1)]) | [count_pairs_swap] |
Thm* ( Thm* (P(L,i) Thm* Thm* ( Thm* ( Thm* ((L guarded_permutation(T; | [partial_sort_exists] |
| [map_swap] | |
Thm* a before b | [l_before_swap] |
Thm* i+1<||L|| Thm* Thm* ( Thm* (L = (X @ [L[i]; L[(i+1)]] @ Y) Thm* (& swap(L;i;i+1) = (X @ [L[(i+1)]; L[i]] @ Y)) | [swap_adjacent_decomp] |
Thm* swap([x / L];i;j) = [x / swap(L;i-1;j-1)] | [swap_cons] |
Thm* L2 = swap(L1;i;j) Thm* Thm* L2[i] = L1[j] & L2[j] = L1[i] & ||L2|| = ||L1|| Thm* & ( | [swapped_select] |
| [swap_swap] | |
| [swap_length] | |
| [swap_select] | |
Def == | [swap_adjacent] |
Def == ( | [guarded_permutation] |
Try larger context:
MarkB generic
IF YOU CAN SEE THIS go to /sfa/Nuprl/Shared/Xindentation_hack_doc.html