Skip to content

Commit 74f3359

Browse files
committed
coq_rules: more on conversion rules
1 parent 10c7863 commit 74f3359

4 files changed

Lines changed: 28 additions & 6 deletions

File tree

prover/coq_rules/coq_rules.pdf

2.71 KB
Binary file not shown.

prover/coq_rules/coq_rules.tex

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ \subsection{Conversion Rules}
313313
\begin{longtable}{llp{5cm}}
314314
\textbf{Names} & \textbf{Rules} & \textbf{Comments} \\\hline
315315
\prule{Beta}&
316-
$\prftree{E[\Gamma] \vdash ((\clm{x}{T}{t}) u) \red{\beta} \sbs{t}{x}{u}}$&
316+
$\prftree{E[\Gamma] \vdash ((\clm{x}{T}{t}) u) \red_{\beta} \sbs{t}{x}{u}}$&
317317
We say that $\sbs{t}{x}{u}$ is the \emph{$\beta$-contraction} of
318318
$((\clm{x}{T}{t}) u)$, and that $((\clm{x}{T}{t}) u)$ is the
319319
\emph{$\beta$-expansion} of $\sbs{t}{x}{u}$ \\
@@ -323,20 +323,20 @@ \subsection{Conversion Rules}
323323
$\prftree
324324
{\wf(E)[\Gamma]}
325325
{(\ldef{x}{t}{T}) \in \Gamma}
326-
{E[\Gamma] \vdash x \red{\Delta} t}$&
326+
{E[\Gamma] \vdash x \red_{\Delta} t}$&
327327
Reducing variable defined in local context \\
328328
\prule{Delta-Local}&
329329
$\prftree
330330
{\wf(E)[\Gamma]}
331331
{(\gldef{c}{t}{T}) \in E}
332-
{E[\Gamma] \vdash c \red{\delta} t}$&
332+
{E[\Gamma] \vdash c \red_{\delta} t}$&
333333
Reducing constant defined in global context \\
334334
\prule{Zeta}&
335335
$\prftree
336336
{\wf(E)[\Gamma]}
337337
{E[\Gamma] \vdash \lasm{u}{U}}
338338
{E[\Gamma \dcln (\ldef{x}{u}{U})] \vdash \lasm{t}{T}}
339-
{E[\Gamma] \vdash \clt{x}{u}{U}{t} \red{\zeta} \sbs{t}{x}{x}}$&
339+
{E[\Gamma] \vdash \clt{x}{u}{U}{t} \red_{\zeta} \sbs{t}{x}{x}}$&
340340
Remove local definitions occurring in terms \\
341341
\end{longtable}
342342
\egroup
@@ -346,4 +346,26 @@ \subsection{Conversion Rules}
346346
for $x$ fresh in $t$. Note \emph{$\eta$-reduction} is deliberately not defined
347347
(TODO: show example?).
348348

349+
\begin{notation}
350+
We write $E[\Gamma] \vdash t \red u$ for the contextual closure of the rules
351+
defined above. That is, $t$ reduces to $u$ with global environment $E$ and local
352+
context $\Gamma$ with one of the previous reductions $\beta, \Delta, \delta,
353+
\iota,$ or $\zeta$.
354+
\end{notation}
355+
356+
\begin{definition}
357+
Two terms are called \emph{irrelevant} if they share a common type of a strict
358+
proposition $\gasm{A}{\SProp}$. Irrelevant terms can be identified.
359+
\end{definition}
360+
361+
\begin{definition}
362+
Two terms $t_1, t_2$ are called \emph{$\beta\delta\iota\zeta\eta$-convertible}, or
363+
\emph{convertible}, or \emph{equivalent} in global environment $E$ and local
364+
context $\Gamma$ iff there exists $t_1, t_2$ such that
365+
\[ E[\Gamma] \vdash t_1 \red \ldots \red u_1 \text{ and } E[\Gamma] \vdash t_2 \red \ldots \red u_2 \]
366+
and either $u_1$ and $u_2$ are identical up irrelevant subterms, or they are
367+
convertible up to $\eta$-exxpansion. We denote this as
368+
$E[\Gamma] \vdash t_1 =_{\beta\delta\iota\zeta\eta} t_2$
369+
\end{definition}
370+
349371
\end{document}

prover/coq_rules/newcommands.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434
\newcommand{\prule}[1]{\textsc{(#1)}}
3535
\newcommand{\sd}[1]{{{\color{JungleGreen} #1}}}
3636

37-
\newcommand{\red}[1]{\triangleright_{#1}}
37+
\newcommand{\red}{\triangleright}

prover/ext/k

Submodule k updated from 0d2819a to 8ebd956

0 commit comments

Comments
 (0)