Skip to content

Latest commit

 

History

History
99 lines (79 loc) · 1.17 KB

example.md

File metadata and controls

99 lines (79 loc) · 1.17 KB
title filters format
Mathpartir Example
quarto
qmathpartir
html
css
_extensions/qmathpartir/qmathpartir.css

$\infer{ }{ \Gamma, x : \tau \vdash x : \tau }$

::: {.mathpar} e

\text{expression}\quad e ::= n \mid e_1 + e_2

\text{expression $e$} :::

::: {.mathpar} \text{text $\alpha;\text{inner text}$} :::

::: {.mathpar} \text{alpha $\frac{1}{2}$}\quad\text{def} :::

::: {.mathpar} \alpha\;\beta :::

::: {.mathpar} \text{softbreak} \and

\text{hardbreak} \ :::

\newcommand{\tInt}{\text{int}}

::: {.mathpar} \infer[TypePlus]{ \Gamma \vdash e_1 : \tInt \and \Gamma \vdash e_1 : \tInt }{ \Gamma \vdash e_1 + e_2 : \tInt }

\infer[TypePlus]{ \Gamma \vdash e_1 : \tInt \and \Gamma \vdash e_1 : \tInt }{ \Gamma \vdash e_1 + e_2 : \tInt }

\infer[TypePlus]{ \Gamma \vdash e_1 : \tInt \and \Gamma \vdash e_1 : \tInt }{ \Gamma \vdash e_1 + e_2 : \tInt }

\infer[TypePlus]{ \Gamma \vdash e_1 : \tInt \and \Gamma \vdash e_1 : \tInt }{ \Gamma \vdash e_1 + e_2 : \tInt } :::

::: {.mathpar} \tInt \Gamma :::

\tInt \Gamma
$$\tInt \Gamma$$
\tInt \Gamma
val x = 3

$$ \Sigma $$