Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pierre Letouzey
natded
Commits
b60db95a
Commit
b60db95a
authored
Jul 26, 2020
by
Samuel Ben Hamou
Browse files
Suite rapport.
parent
6357a694
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rapport/RapportStageL3.tex
View file @
b60db95a
...
...
@@ -338,6 +338,39 @@ Inductive Pr (l:logic) : sequent -> Prop :=
\section
{
Syntaxe et règles de typage du
$
\lambda
$
-calcul utilisé
}
La syntaxe des
$
\lambda
$
-termes est la suivante :
\begin{align*}
u, v,
\ldots
::
&
= x
&
\text
{
variable
}
\\
&
|
\;
uv
&
\text
{
application
}
\\
&
|
\;
\lambda
x
\cdot
u
&
\text
{
abstraction
}
\\
&
|
\;
\nabla
u
&
\text
{
erreur
}
\end{align*}
et celle des types est
\begin{align*}
\sigma
,
\tau
,
\ldots
::
&
= a
&
\text
{
variable de type
}
\\
&
|
\;
\sigma
\Rightarrow
\tau
&
\text
{
type flèche
}
\\
&
|
\;
\bot
&
\text
{
faux
}
.
\end{align*}
Les règles de typage sont :
\[
\begin
{
array
}{
lr
}
\text
{
\begin
{
prooftree
}
\infer
0
[
ax
]
{
\Gamma
, x :
\tau
\vdash
x :
\tau
}
\end
{
prooftree
}}
&
\text
{
\begin
{
prooftree
}
\hypo
{
\Gamma
\vdash
u :
\sigma
\Rightarrow
\tau
}
\hypo
{
\Gamma
\vdash
v :
\sigma
}
\infer
2
[
app
]
{
\Gamma
\vdash
uv :
\tau
}
\end
{
prooftree
}}
\\
&
\\
\text
{
\begin
{
prooftree
}
\hypo
{
\Gamma
, x :
\sigma
\vdash
u :
\tau
}
\infer
1
[
abs
]
{
\Gamma
\vdash
\lambda
x
\cdot
u :
\sigma
\Rightarrow
\tau
}
\end
{
prooftree
}}
&
\text
{
\begin
{
prooftree
}
\hypo
{
\Gamma
\vdash
u :
\bot
}
\infer
1
[
$
\nabla
$
]
{
\Gamma
\vdash
\nabla
u :
\tau
}
\end
{
prooftree
}}
\end
{
array
}
\]
% syntaxe des termes et des types + règles de typage
\end{document}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment