Grammar

Grammar for the syntax of mathematical expressions.

A mathematical expression is an instance of Math:
data Math= Symbol
| Integer
| Application
| Abstraction
| PiType
| Fst
| Snd
| Pair
| SigmaType


data PiType = PiType( local: Optional Symbol,
domain: Math,
range: Math)
data Fst = Fst ( pair: Math)

data Snd = Snd( pair: Math)
data Pair = Pair( local: Optional Symbol,
fst: Math,
snd: Math,
sndtype: Optional Math)
data SigmaType = SigmaType( local: Optional Symbol},
fsttype: Math,
sndtype: Math)

Description

An impression of the terms of the formal system and their use.