Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formalism: Add mechanization indicators for each section #23

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions formalism/marked.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ \section{Marked lambda calculus}
numbers, booleans, and product types. Typed holes (written $\EEHole$) are included to model
incomplete editor states \`a la Hazelnut but are not essential.

\begin{mechanization}
\item core.agda
\item marking.agda
\end{mechanization}

\subsection{Syntax}
\label{sec:marked-syntax}
\[\begin{array}{rrcl}
Expand Down
2 changes: 2 additions & 0 deletions formalism/patterned.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
\section{Extension: patterned let expressions}
\label{sec:patterned}

\nomechanization{}

\subsection{Syntax}
\label{sec:patterned-syntax}
\[\begin{array}{rrcl}
Expand Down
2 changes: 2 additions & 0 deletions formalism/polymorphism.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ \section{Extension: System F-style polymorphism}
(alongside extensions of the original consistency, etc. judgments) and linked by a marking
operation.

\nomechanization{}

\subsection{Syntax}
\label{sec:polymorphism-syntax}
The syntax of unmarked types is exactly that of the original types alongside additional forms for
Expand Down
16 changes: 16 additions & 0 deletions formalism/preamble/preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

% font
\usepackage{iftex}
\usepackage{fontspec}
\ifPDFTeX
\usepackage{libertinust1math}
\usepackage{libertine}
Expand All @@ -32,6 +33,9 @@
\usepackage{relsize}
\usepackage{centernot}

% no indentation
\usepackage{parskip}

% hyperlinks
\usepackage[colorlinks=true, linkcolor=purple]{hyperref}
\usepackage[capitalise, noabbrev]{cleveref}
Expand Down Expand Up @@ -60,3 +64,15 @@

% utilities
\input{preamble/utilities}

% mechanization notices
\newenvironment{mechanization}{
\textsc{Mechanization} $\bm{\bigcirc}$
%
\begin{itemize}[label=$\blacktriangleright$, noitemsep]
\ttfamily
}{
\end{itemize}
}

\newcommand{\nomechanization}{\textsc{Mechanization} $\times$}
2 changes: 2 additions & 0 deletions formalism/typed.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
\section{Typed hazelnut}
\label{sec:typed}

\nomechanization{}

\subsection{Syntax}
\label{sec:typed-syntax}
Zippered types are the same as in the untyped model.
Expand Down
4 changes: 4 additions & 0 deletions formalism/untyped.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
\section{Untyped hazelnut}
\label{sec:untyped}

\begin{mechanization}
\item hazelnut.agda
\end{mechanization}

\subsection{Syntax}
\label{sec:untyped-syntax}
\[\begin{array}{rrcl}
Expand Down