Statistiques
| Révision :

root / CSL16 / appendix-wfm.tex @ 230

Historique | Voir | Annoter | Télécharger (6,3 ko)

1
\section{Further details on Dfn.~\ref{dfn:translation-of-proofs}, Sect.~\ref{sect:wfm}}
2
\label{sect:app-wfm}
3

    
4
%\paragraph*{Further details on Dfn.~\ref{dfn:translation-of-proofs}}
5
			The initial steps of $\arith$ are translated as follows,
6
			\[
7
			\begin{array}{ccc}
8
%			\vlinf{\word_\epsilon}{}{\seqar \word (\epsilon)}{}
9
%			& : &
10
%			\epsilon
11
%			\\ 
12
			\vlinf{\genzer}{}{\word(t) \seqar \word(\succ_0 t)}{}
13
			& \quad :\quad  &
14
			\succ_0 ( ;x) 
15
			\\
16
			\vlinf{\genone}{}{\word(t) \seqar \word(\succ_1 t)}{}
17
			& \quad : \quad & 
18
			\succ_1 (; x)
19
			\\
20
%			\vlinf{\epsilon^0}{}{ \word (t)  , \epsilon = \succ_0 t \seqar }{} 
21
%			& : &
22
%			\epsilon
23
%			\\
24
%			\vlinf{\epsilon^1}{}{ \word (t)  , \epsilon = \succ_1 t \seqar }{}
25
%			& : &
26
%			\epsilon
27
%			\\
28
%			\vlinf{\succ_0}{}{\word (s) , \word (t)  , \succ_0 s = \succ_0 t\seqar s = t }{}
29
%			& : &
30
%			\epsilon
31
%			\\
32
%			\vlinf{\succ_1}{}{\word (s) , \word (t)  , \succ_1 s = \succ_1 t\seqar s = t }{}
33
%			& : &
34
%			\epsilon
35
%			\\
36
%			\vlinf{\inj}{}{\word(t), \succ_0 t = \succ_1 t \seqar}{}
37
%			& : &
38
%			\epsilon
39
%			\\
40
			\vlinf{\surj}{}{\word (t) \seqar t = \epsilon \laor \exists y^\word . t = \succ_0 y \laor \exists y^\word. t = \succ_1 y }{}
41
			&\quad : \quad  &
42
			( \epsilon , \pred (  ;x) , \pred (;x ) )
43
			\\
44
				\vlinf{\wordcntr}{}{\word(t) \seqar \word(t) \land \word(t) }{}
45
				& \quad  : \quad &
46
				( \id (;x) , \id (;x) )
47
			\end{array}
48
			\]
49
			and the remaining initial steps are translated to $\epsilon$.
50
			
51
			
52
					Suppose $\pi$ ends with a $\rigrul{\land}$ step:
53
						\[
54
						\vlderivation{
55
							\vliin{\land}{}{ \Gamma, \Sigma \seqar \Delta, \Pi, A\land B }{
56
								\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
57
							}{
58
							\vltr{\pi_2}{ \Sigma \seqar \Pi, B }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
59
						}
60
					}
61
					\]
62
					By the inductive hypothesis let us suppose we have functions $\vec g (\vec u; \vec x)$ and $\vec h (\vec v ; \vec y)$ from $\pi_1$ and $\pi_2$ respectively, where $\type\left( \bigotimes\Gamma \right) = (\vec u; \vec x)$ and $\type \left( \bigotimes \Sigma \right) = (\vec v ; \vec y)$. Let us write $\vec g = (\vec g^\Delta , \vec g^A)$ and $\vec h = (\vec h^\Pi , \vec h^B)$, to denote the $\Delta$ and $A$ parts of $\vec g$ and the $\Pi$ and $B$ parts of $\vec h$.
63
					%	So we have $\vec f^{1} (\vec x ; \vec a)$ and $\vec f^2 (\vec y ; \vec b)$ for $\pi_1 $ and $\pi_2$ respectively, by the inductive hypothesis. 
64
			
65
			
66
			
67
			
68
			
69
			
70
					We construct $\vec f^\pi$ by simply rearranging these tuples of functions:
71
					\[
72
					\vec f^\pi (\vec u , \vec v ; \vec x , \vec y)
73
					\quad := \quad
74
					\left(
75
					\vec g^\Delta (\vec u ; \vec x) , \vec h^\Pi (\vec v ; \vec y)  , \vec g^A (\vec u ; \vec x) , \vec h^B (\vec v ; \vec y)
76
					\right)
77
					\] 
78
					
79
					
80
						If $\pi$ ends with a $\lefrul{\exists}$ step,
81
									\[
82
									\vlderivation{
83
										\vlin{\lefrul{\exists}}{}{ \Gamma, \exists x^\word . A(x) \seqar \Delta }{
84
											\vltr{\pi'}{ \Gamma , A(a),  \word(a) \seqar \Delta  }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
85
										}
86
									}
87
									\]
88
									then $\vec f^{\pi}$ is exactly the same as $\vec f^{\pi'}$.
89
									
90
										
91
											Suppose $\pi$ ends with a $\cut$ step:
92
											\[
93
											\vlderivation{
94
												\vliin{\cut}{}{\Gamma , \Sigma \seqar \Delta , \Pi}{
95
													\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
96
												}{
97
												\vltr{\pi_2}{\Sigma , A \seqar \Pi}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
98
											}
99
										}
100
										\]
101
										
102
										We have two cases. First, if $A$ is free of modalities, then $\type (A)$ consists of only safe inputs. Therefore we have functions $\vec g (\vec u; \vec x)$ and $\vec h (\vec v ; \vec y, \vec z)$ from $\pi_1$ and $\pi_2 $ respectively, such that $\type(\Gamma) = (\vec u ; \vec x)$, $\type(\Sigma) = (\vec v ; \vec y )$ and $\type (A) = (;\vec z)$. Let us write $\vec g = (\vec g^\Delta , \vec g^A)$ as before, and we define $\vec f^\pi$ as follows:
103
										
104
										\[
105
										\vec f^\pi ( \vec u , \vec v ; \vec x, \vec y)
106
										\quad := \quad
107
										\left(
108
										\vec g^\Delta (\vec u ; \vec x) 
109
										,
110
										\vec h ( \vec v ; \vec y , \vec g^A ( \vec u ; \vec x ) )
111
										\right)
112
										\]
113
										Notice that all safe inputs on the left occur hereditarily safe on the right, and so these expressions are definable in BC by Prop.~\ref{prop:bc-properties}.
114
										
115
										
116
										
117
										
118
											Suppose $\pi$ ends with a $\lefrul{\cntr}$ step,
119
												\[
120
												\vlderivation{
121
													\vlin{\lefrul{\cntr}}{}{ !A , \Gamma \seqar \Delta }{
122
														\vltr{\pi'}{  !A, !A , \Gamma \seqar \Delta}{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
123
													}
124
												}
125
												\]
126
												so we have functions $\vec f' ( \vec u^1, \vec u^2 , \vec v ; \vec x)$, with $\vec u^1$ and $\vec u^2$ corresponding to the two copies of $!A$ in the conclusion of $\pi'$ and $\type (\Gamma) = (\vec v; \vec x)$. 
127
										%		(Recall that the typing corresponding to $!$ means that all inputs for each $!A$ are normal). 
128
												We define $\vec f^\pi$ by duplicating the arguments for $!A$:
129
												\[
130
												\vec f^\pi (\vec u , \vec v ; \vec x)
131
												\quad := \quad
132
												\vec f' (\vec u, \vec u , \vec v ; \vec x)
133
												\]
134
												
135
												
136

    
137
%														\begin{proof}
138
%															[Proof of Thm.~\ref{thm:main-result}]
139
%															%		[Proof sketch]
140
%															By Thm.~\ref{thm:free-cut-elim} and Lemma~\ref{lemma:spec-norm-form} we have a free-cut free proof $\pi$ in $\closure{\eqspec} \cup \arith$ of $!\word (\vec x ) \seqar \word (f (\vec x))$. By Lemma~\ref{lemma:witness-invariant} above this means that $\vec a = \vec x \cimp f^\pi (\vec a) = f(\vec x)$ is true in any model of $\qfindth$ satisfying $\eqspec$ and $\eqspec^\pi$. 
141
%															%		Since some model must exist by coherence (cf.\ Prop.~\ref{prop:eq-spec-model}), we have that 
142
%															Using the fact that $\eqspec \cup \eqspec^\pi$ is coherent we can construct such a model, similarly to Prop.~\ref{prop:eq-spec-model}, which will contain $\Word$ as an initial segment, in which we must have $f^\pi (\vec x) = f (\vec x)$ for every $\vec x \in \Word$, as required.\todo{polish}
143
%														\end{proof}