Révision 40

CSL16/bc-convergence.tex (revision 40)
51 51
	\end{definition}
52 52

  
53 53

  
54
\anupam{simultaneous recursion?}
54 55

  
55 56
\subsection{Convergence in arithmetic}
56 57
\begin{theorem}
57 58
	[Convergence]
58
	If $\Phi(f)$ is an equational specification corresponding to a BC-program defining $f()$, then $\cax{\Sigma^N_1}{\pind} \proves  \ !\Phi(f) \limp \forall \vec{x}^{!N} . N(f(\vec x))$.
59
	If $\Phi(f)$ is an equational specification corresponding to a BC-program defining $f$, then $\cax{\Sigma^N_1}{\pind} \proves  \ !\Phi(f) \limp \forall \vec{x}^{!N} . N(f(\vec x))$.
59 60
\end{theorem}
60 61
\begin{proof}
61
	We show by induction on the structure of a BC-program for $f(\vec x ; \vec y)$ that:
62
%	We write function symbols in $\arith$ with arguments delimited by $;$, as for BC-programs. 
63
	We show by induction on the structure of a BC-program for $f(\vec u ; \vec x)$ that:
62 64
	\begin{equation}
63
	\Phi(f) , \cax{\Sigma^N_1}{\pind} \proves \ \forall \vec{x}^{!N} . \forall \vec{y}^N . N(f(\vec x ; \vec y))
65
	\label{eqn:prv-cvg-ih}
66
	\Phi(f) \proves \ \forall \vec{u}^{!\nat} . \forall \vec{x}^\nat . \nat(f(\vec u ; \vec x))
64 67
	\end{equation}
65 68
	We give some key cases in what follows.
66 69
	
67
	Suppose $f$ is defined by PRN by:
70
	Suppose $f$ is defined by PRN as:
68 71
	\[
69 72
	\begin{array}{rcl}
70
	f(0,\vec x ; \vec y) & = & g(\vec x ; \vec y) \\
71
	f(\succ_i x , \vec x ; \vec y) & = & h_i (x, \vec x ; \vec y , f(x , \vec x ; \vec y))
73
	f(0,\vec v ; \vec x) & = & g(\vec v ; \vec x) \\
74
	f(\succ_i u , \vec v; \vec x) & = & h_i (u, \vec v ; \vec x , f(u , \vec v ; \vec x))
72 75
	\end{array}
73 76
	\]
74
	By the inductive hypothesis we already have that $g, h_0, h_1$ are provably convergent, so let us suppose that $N(\vec x)$ and prove,
77
	By the inductive hypothesis we already have \eqref{eqn:prv-cvg-ih} for $g,h_0,h_1$ in place of $f$, so let us suppose that $\nat(\vec v)$ and prove,
75 78
	\begin{equation}
76
	\forall x^{!N} . ( N(\vec y) \limp N(f(x , \vec x ; \vec y)  )
79
 \forall u^{!\nat} .  (\nat(\vec x) \limp \nat(f(u , \vec v ; \vec x)  )
77 80
	\end{equation}
78
	by $\cax{\Sigma^N_1}{\pind}$ on $x$.
81
	by $\cax{\Sigma^N_1}{\pind}$ on $u$.
79 82
	
80 83
	In the base case we have the following proof:
81 84
	\[
82 85
	\vlderivation{
83
		\vliin{}{}{N(\vec y) \limp N(f(0, \vec x ; \vec y))}{
84
			\vltr{IH}{N(\vec y) \limp N(g(\vec x ; \vec y))}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
86
		\vliin{}{}{\nat(\vec x) \limp \nat(f(\epsilon, \vec v ; \vec x))}{
87
			\vltr{IH}{\nat(\vec x) \limp N(g(\vec x ; \vec y))}{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
85 88
		}{
86 89
		\vlin{}{}{N(g (\vec x ; \vec y) ) \limp N(f(0, \vec x ; \vec y)) }{
87 90
			\vlin{}{}{g(\vec x ; \vec y) = f(0 , \vec x ; \vec y)}{\vlhy{}}
......
90 93
}
91 94
\]
92 95

  
93
For the inductive step, we need to show that,
96
For the inductive step, we suppose that $\nat (u)$ and the proof is as follows,
94 97
\[
95
\forall x^{!N} . (( N(\vec y) \limp N( f(x, \vec x ; \vec y) ) ) \limp N(\vec y) \limp N(f(\succ_i x , \vec x ; \vec y) )   )
96
\]
97
so let us suppose that $N(x)$ and we give the following proof:
98
\[
99 98
\vlderivation{
100
	\vlin{N\cntr}{}{N(y) \limp ( N(y ) \limp N(f( x , \vec x ; \vec y ) ) ) \limp N(f (\succ_i x , \vec x ; \vec y)  ) }{
101
		\vliin{}{}{N(y) \limp N(y) \limp ( N(y ) \limp N(f( x , \vec x ; \vec y ) ) ) \limp N(f (\succ_i x , \vec x ; \vec y)  ) }{
102
			\vliin{}{}{ N(y) \limp N(y) \limp ( N(y) \limp N( f(x, \vec x ; \vec y) ) ) \limp N( h_i (x , \vec x ; \vec y , f(x , \vec x ; \vec y) ) ) }{
103
				\vltr{MLL}{( N(\vec y) \limp (N (\vec y) \limp N(f(x, \vec x ; \vec y) )) \limp N(f(x, \vec x ; \vec y)) }{\vlhy{\quad }}{\vlhy{\ }}{\vlhy{\quad }}
99
	\vlin{\rigrul{\limp}}{}{ \nat(\vec x) \limp \nat ( f(u, \vec v ; \vec x) )  \seqar \nat (\vec x) \limp \nat( f(\succ_i u , \vec v ; \vec x) ) }{
100
	\vliq{\gamma}{}{\nat(\vec x), \nat(\vec x) \limp \nat ( f(u, \vec v ; \vec x) )  \seqar \nat( f(\succ_i u , \vec v ; \vec x) )   }{
101
		\vliin{\lefrul{\limp}}{}{\nat(\vec x), \nat(\vec x), \nat(\vec x) \limp \nat ( f(u, \vec v ; \vec x) )  \seqar \nat( f(\succ_i u , \vec v ; \vec x) )    }{
102
			\vlin{\id}{}{\nat(\vec x) \seqar \nat (\vec x) }{\vlhy{}}
104 103
			}{
105
			\vlhy{2}
104
			\vliq{\beta}{}{  \nat (\vec x) , \nat (f(u , \vec v ; \vec x) ) \seqar \nat ( f(\succ_i u , \vec v ; \vec x) ) }{
105
				\vliq{\alpha}{}{ \nat (\vec x) , \nat (f(u , \vec v ; \vec x) ) \seqar \nat ( h_i( u , \vec v ; \vec x , f( u, \vec v ; \vec x )) ) }{
106
					\vltr{IH}{ \seqar \forall  u^{!\nat}, \vec v^{!\nat} . \forall \vec x^\nat , y^\nat . \nat( h_i (u, \vec v ; \vec x, y) ) }{\vlhy{\quad}}{\vlhy{}}{\vlhy{\quad}}
107
					}
108
				}
109
			}
106 110
		}
107
	}{
108
	\vlhy{3}
109
}
110
}
111
}
111
	}
112
	}
112 113
\]
113
TOFINISH
114
where the steps indicated $\alpha, \beta, \gamma$ are obtained by \todo{}
115

  
116
%
117
%For the inductive step, we need to show that,
118
%\[
119
%\forall x^{!N} . (( N(\vec y) \limp N( f(x, \vec x ; \vec y) ) ) \limp N(\vec y) \limp N(f(\succ_i x , \vec x ; \vec y) )   )
120
%\]
121
%so let us suppose that $N(x)$ and we give the following proof:
122
%\[
123
%\vlderivation{
124
%	\vlin{N\cntr}{}{N(y) \limp ( N(y ) \limp N(f( x , \vec x ; \vec y ) ) ) \limp N(f (\succ_i x , \vec x ; \vec y)  ) }{
125
%		\vliin{}{}{N(y) \limp N(y) \limp ( N(y ) \limp N(f( x , \vec x ; \vec y ) ) ) \limp N(f (\succ_i x , \vec x ; \vec y)  ) }{
126
%			\vliin{}{}{ N(y) \limp N(y) \limp ( N(y) \limp N( f(x, \vec x ; \vec y) ) ) \limp N( h_i (x , \vec x ; \vec y , f(x , \vec x ; \vec y) ) ) }{
127
%				\vltr{MLL}{( N(\vec y) \limp (N (\vec y) \limp N(f(x, \vec x ; \vec y) )) \limp N(f(x, \vec x ; \vec y)) }{\vlhy{\quad }}{\vlhy{\ }}{\vlhy{\quad }}
128
%			}{
129
%			\vlhy{2}
130
%		}
131
%	}{
132
%	\vlhy{3}
133
%}
134
%}
135
%}
136
%\]
137
%TOFINISH
114 138
\end{proof}
139

  
140

  
CSL16/macros.tex (revision 40)
103 103
	\newcommand{\pind}{\mathit{PIND}}
104 104
	\newcommand{\cax}[2]{#1\text{-}#2}
105 105

  
106
	\newcommand{\arith}{A^1_2}
107

  
106 108
          % sizes
107 109
          \newcommand{\height}[1]{\mathit{h}(#1)}

Formats disponibles : Unified diff