HepLean Documentation

Lean.Elab.MatchAltView

This module assumes match-expressions use the following syntax.

def matchDiscr := leading_parser optional (try (ident >> checkNoWsBefore "no space before ':'" >> ":")) >> termParser

def «match» := leading_parser:leadPrec "match " >> sepBy1 matchDiscr ", " >> optType >> " with " >> matchAlts
Equations