Révision 27

CSL16/feas-arith-wfm.tex (revision 27)
849 849
				\witness{\vec a}{A \land B} ( \vec w^1 , \vec w^2, \vec b ) & := &  \witness{\vec a}{A} (\vec w^1 , \vec b) \cand \witness{\vec a}{B} (\vec w^2 , \vec b) & 
850 850
				%			\text{for $\star \in \{ \land, \lor, \laand , \laor\}$.} 
851 851
				\\
852
		\witness{\vec a}{\exists x . A(x)} (w, \vec w , \vec b) & := & \witness{\vec{a}, a}{A(a)}(\vec w , \vec b, w ) & \\
852
		\witness{\vec a}{\exists x^\nat . A(x)} ( w, \vec w  , \vec b) & := & \witness{\vec{a}, a}{A(a)}(\vec w , \vec b, w ) & \\
853 853
		\end{array}
854 854
		\]
855 855
		where $|\vec w^1| = |\type (A)|$ and $|\vec w^2| = |\type (B)| $.
......
872 872
	[Translation]
873 873
	We give a translation of free-cut free $\Sigma^\nat_1$-$\pind$ proofs $\pi$ of sequents $\Gamma(\vec a) \seqar \Delta(\vec a)$ to BC-programs for a vector of functions $\vec f^\pi$ with argument of type $\type \left(\bigotimes\Gamma\right)$ such that $|\vec f^\pi | = | \type\left(\bigparr\Delta\right)|$ and:
874 874
	\[
875
	\witness{\vec a}{\bigotimes \Gamma} (\vec w , \vec a) \implies \witness{\vec a}{\bigparr \Delta } (\vec f(\vec w , \vec a), \vec a)
875
	\witness{\vec a}{\bigotimes \Gamma} (\vec w , \vec b) \implies \witness{\vec a}{\bigparr \Delta } (\vec f(\vec w , \vec b), \vec b)
876 876
	\]
877 877
	
878 878
	\anupam{to consider: do we need parameters $\vec a$ in argument of $f$? Or does $\nat$ predicate take care of this?}
......
975 975

  
976 976
\anupam{commented stuff on additives. To remark later perhaps.}
977 977

  
978

  
979

  
980
Suppose $\pi$ ends with a $\rigrul{\exists}$ step,
978 981
\[
979 982
\vlderivation{
983
	\vlin{\rigrul{\exists}}{}{ \Gamma, \nat(t) \seqar \Delta , \exists x^\nat . A(x) }{
984
		\vltr{\pi'}{ \Gamma \seqar \Delta , A(t) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
985
	}
986
}
987
\]
988
so by the inductive hypothesis we have functions $\vec f^\Delta , \vec f^{A(t)}$ with arguments $(\vec u ; \vec x )= \type(\bigotimes \Gamma)$. We define $\vec f^\pi$ as follows:
989
\[
990
\vec f^\pi (\vec u ; \vec x , y)
991
\quad := \quad
992
\left( \vec f^\Delta (\vec u ; \vec x) , \id (;y), \vec{ f}^{A(t)} (\vec u; \vec x)  \right)
993
\]
994
(The identity function on $y$ is defined from successor, predecessor and safe composition).
995

  
996

  
997
%Suppose we have functions $\vec f^X (\vec x ; \vec y)$ from $\pi'$ for $X = \Delta$ or $ X=A$. 
998
%\[
999
%\vec f(\vec x ; \vec y , z) \quad := \quad ( \vec f^\Delta (\vec x ; \vec y)   ,  z , \vec f^A ( \vec x ; \vec y ) )
1000
%\]
1001

  
1002

  
1003
Suppose $\pi$ ends with a $\lefrul{\exists}$ step:
1004
\[
1005
\vlderivation{
1006
	\vlin{\lefrul{\exists}}{}{ \Gamma, \exists x^N . A(x) \seqar \Delta }{
1007
		\vltr{\pi'(a)}{ \Gamma , A(a),  N(a) \seqar \Delta  }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1008
	}
1009
}
1010
\]
1011
%
1012
%Suppose we have functions $\vec f' (\vec u , \vec v ; x , \vec y , \vec z)$ from $\pi'$ with $(\vec u ; \vec x )$ corresponding to $\Gamma$, $(;x)$ corresponding to $N(a)$ and $(\vec v ; \vec z)$ corresponding to $A(a)$. We define:
1013
%\[
1014
%\vec f ( \vec u , \vec v ;  )
1015
%\]
1016

  
1017
\anupam{should just be same? Consider variable naming, just in case.}
1018

  
1019
%Suppose we have functions $\vec g (\vec v  , \vec w ; \vec x , y , \vec z)$ where $(\vec v ; \vec x) $ corresponds to $\Gamma$, $y$ corresponds to $\nat(a)$ and $(\vec w ; \vec z) $ corresponds to $A(a)$. Then we define:
1020
%\[
1021
%\vec f ( \vec v , \vec w ; \vec x , y , \vec z )
1022
%\]
1023

  
1024

  
1025
Cut:
1026
\[
1027
\vlderivation{
980 1028
\vliin{\cut}{}{\Gamma , \Sigma \seqar \Delta , \Pi}{
981 1029
\vltr{\pi_1}{ \Gamma \seqar \Delta, A }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
982 1030
}{
......
985 1033
}
986 1034
	\]
987 1035
	
988
We can assume that $A$ in the conclusion of $\pi_2$ is free of modalities, since one of the $A$s must be directly descended from an induction formula, and so consists of only safe inputs. Therefore we have functions $\vec f^1 (\vec w; \vec x)$ and $\vec f^2 (\vec y ; \vec z , \vec u)$ for $\pi_1$ and $\pi_2 $ respectively (free variable parameters are suppressed), with $\vec u$ corresponding to the (safe) inputs for $A$. 
1036
We have two cases. First, if $A$ is free of modalities, then $\type (A)$ consists of only safe inputs. Therefore we have functions $\vec f^1 (\vec w; \vec x)$ and $\vec f^2 (\vec y ; \vec z , \vec u)$ for $\pi_1$ and $\pi_2 $ respectively (free variable parameters are suppressed), with $\vec u$ corresponding to the (safe) inputs for $A$. 
989 1037

  
990 1038
Let us write:
991 1039
\[
......
1010 1058

  
1011 1059
Notice that all safe inputs are hereditarily right of a $;$, and so these terms are definable by safe composition and projection.
1012 1060

  
1013
\todo{another case for $!\nat(x)$ cut formula.}
1014 1061

  
1015
\anupam{should work for arbitrary $!$-cuts due to principal case for $!$}
1062
In the other case, where $A$ may be modal, it must be of the form $!\nat (x)$ since it is a cut formula, and so must directly descend from an induction step or axiom. The only such occurrence of a modality is in the induction step for a formula of the form $!\nat (x)$.
1016 1063

  
1017 1064

  
1018
Right existential:
1019
\[
1020
\vlderivation{
1021
\vlin{\rigrul{\exists}}{}{ \Gamma, \nat(t) \seqar \Delta , \exists x^\nat . A(x) }{
1022
\vltr{\pi'}{ \Gamma \seqar \Delta , A(t) }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1023
}
1024
}
1025
\]
1026
Suppose we have functions $\vec f^X (\vec x ; \vec y)$ from $\pi'$ for $X = \Delta$ or $ X=A$. 
1027
\[
1028
\vec f(\vec x ; \vec y , z) \quad := \quad ( \vec f^\Delta (\vec x ; \vec y)   ,  z , \vec f^A ( \vec x ; \vec y ) )
1029
\]
1030 1065

  
1031

  
1032
Left existential:
1033
\[
1034
\vlderivation{
1035
\vlin{\lefrul{\exists}}{}{ \Gamma, \exists x^N . A(x) \seqar \Delta }{
1036
\vltr{\pi'(a)}{ \Gamma,  N(a) , A(a) \seqar \Delta  }{\vlhy{\quad }}{\vlhy{ }}{\vlhy{\quad }}
1037
}
1038
}
1039
\]
1040

  
1041
Suppose we have functions $\vec f' (\vec u , \vec v ; x , \vec y , \vec z)$ from $\pi'$ with $(\vec u ; \vec x )$ corresponding to $\Gamma$, $(;x)$ corresponding to $N(a)$ and $(\vec v ; \vec z)$ corresponding to $A(a)$. We define:
1042
\[
1043
\vec f ( \vec u , \vec v ;  )
1044
\]
1045

  
1046
\anupam{should just be same, no? To consider.}
1047

  
1048
%Suppose we have functions $\vec g (\vec v  , \vec w ; \vec x , y , \vec z)$ where $(\vec v ; \vec x) $ corresponds to $\Gamma$, $y$ corresponds to $\nat(a)$ and $(\vec w ; \vec z) $ corresponds to $A(a)$. Then we define:
1049
%\[
1050
%\vec f ( \vec v , \vec w ; \vec x , y , \vec z )
1051
%\]
1052

  
1053
\todo{finish}
1054

  
1055 1066
!:
1056 1067
\[
1057 1068
\vlderivation{

Formats disponibles : Unified diff