Nuprl Theory automata_1

(only non hidden objects are presented)

THMphole_auxn:{1...}. f:(n + 1) n. i:(n + 1). j:{(i + 1)..(n + 1)}. f i = f j
THMphole_lemman:{1...}. m:{n + 1...}. f:m n. i,j:m. i < j f i = f j
DISPcard_df#(<t:t:*>)=<n:n:*> == #(<t>)=<n>
ABScard#(t)=n == 1-1-Corresp(t;n)
THMcard_wft:. n:. #(t)=n
THMone_one_symT,S:. 1-1-Corresp(T;S) 1-1-Corresp(S;T)
DISPaction_set_dfActionSet{<i:le>}(<T:T:*>)== ActionSet{<i>}(<T>) ActionSet(<T:T:*>)== ActionSet(<T>)
ABSaction_setActionSet(T) == car: (T car car)
THMaction_set_wfT:. ActionSet(T) '
DISPaset_car_df<a:aset:E>.car== <a>.car
ABSaset_cara.car == a.1
THMaset_car_wfT:. a:ActionSet(T). a.car
DISPaset_act_df<a:aset:E>.act== <a>.act
ABSaset_acta.act == a.2
THMaset_act_wfT:. a:ActionSet(T). a.act T a.car a.car
MLcreate_action_setClass Declaration for: s ActionSet(T) Long Name: action_set Short Name: aset Parameters: T : Fields: ([example]) car : ([example]) act : T car car Universe: '
THMex1_of_aset<, x,y.0> ActionSet{1}()
THMex2_of_aset<, x,y.x + y> ActionSet{1}()
THMex3_of_asetT,S:. a:T S S. <S, a> ActionSet(T)
THMex4_of_aset<, x,y.x * y> ActionSet{1}()
THMex5_of_aset< List, z,l.(z::l)> ActionSet{1}()
THMex6_of_aset< List, u,l.rev(l)> ActionSet{1}(Unit)
THMnat_is_intn:. n
DISPfactorial_df(<n:n:*>)! == (<n>)!
MLfactorial_ml(n)! ==r if (n = 0) then 1 else n * (n - 1)! fi
THMfactorial_wfn:. (n)!
THMex1_of_factorial(0)! = 1
ABSmulti_actionmulti_action(l; s; ASet) == Y (multi_action,l,s,ASet. if null(l) then s else ASet.act hd(rev(l)) (multi_action ASet.act rev(tl(rev(l))) s) fi ) l s ASet
DISPmaction_df(<S:ActionSet:*>:<L:list:*><s:init:*>)== (<S>:<L><s>)
MLmaction_ml(S:Ls)==r if null(L) then s else S.act hd(L) (S:tl(L)s) fi
THMmaction_wfAlph:. S:ActionSet(Alph). L:Alph List. s:S.car. (S:Ls) S.car
THMcomb_for_maction_wf(Alph,S,L,s,z.(S:Ls)) Alph: S:ActionSet(Alph) L:Alph List s:S.car True S.car
THMmaction_lemmaAlph:. S:ActionSet(Alph). s:S.car. L1,L2,L:Alph List. (S:L1s) = (S:L2s) (S:L @ L1s) = (S:L @ L2s)
DISPlpower_df(<L:L:*><n:n:*>)== (<L><n>)
MLlpower_ml(Ln)==r if (n = 0) then [] else (Ln - 1) @ L fi
THMlpower_wfAlph:. L:Alph List. n:. (Ln) Alph List
THMlpower_altAlph:. L:Alph List. n:. (Ln) = if (n = 0) then [] else L @ (Ln - 1) fi
THMpump_theoremAlph:. S:ActionSet(Alph). N:. s:S.car. #(S.car)=N (A:Alph List N < ||A|| (a,b,c:Alph List (0 < ||b|| A = (a @ b) @ c) (k:. (S:(a @ (bk)) @ cs) = (S:As))))
THMpump_thm_corn:. Alph:. S:ActionSet(Alph). s,f:S.car. #(S.car)=n (l:Alph List. (S:ls) = f) (l:Alph List. ||l|| n (S:ls) = f)
DISPn0n1_dfn0n1(<n:n:*>)== n0n1(<n>)
ABSn0n1n0n1(n) == (0::[]n) @ (1::[]n)
THMn0n1_wfn:. n0n1(n) List
THMcomb_for_n0n1_wf(n,z.n0n1(n)) n: True List
DISPel_counter_df||<e:e:*>:<L:L:*>||== ||<e>:<L>||
MLel_counter_ml||e:L|| ==r if null(L) then 0 if (e = hd(L)) then 1 + ||e:tl(L)|| else ||e:tl(L)|| fi
THMel_counter_wfn:. L: List. ||n:L||
THMcomb_for_el_counter_wf(n,L,z.||n:L||) n: L: List True
THMcounter_of_nile:. ||e:[]|| = 0
THMcounter_appende:. L,M: List. ||e:L @ M|| = ||e:L|| + ||e:M||
THMcounter_lpowere:. L: List. n:. ||e:(Ln)|| = n * ||e:L||
THMn0n1_irregularS:ActionSet(). s,q:S.car. (n:. #(S.car)=n ) (k:. (S:n0n1(k)s) = q) (L: List. (S:Ls) = q (k:. (L = n0n1(k))))

the other theories