Unrestricted Grammar Definitions #
This file defines unrestricted grammars and their derivations.
Main declarations #
instance
instDecidableEqSymbol_1
{T✝ N✝ : Type}
[DecidableEq T✝]
[DecidableEq N✝]
:
DecidableEq (symbol T✝ N✝)
def
instDecidableEqSymbol_1.decEq
{T✝ N✝ : Type}
[DecidableEq T✝]
[DecidableEq N✝]
(x✝ x✝¹ : symbol T✝ N✝)
:
Equations
- instDecidableEqSymbol_1.decEq (symbol.terminal a) (symbol.terminal b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
- instDecidableEqSymbol_1.decEq (symbol.terminal a) (symbol.nonterminal a_1) = isFalse ⋯
- instDecidableEqSymbol_1.decEq (symbol.nonterminal a) (symbol.terminal a_1) = isFalse ⋯
- instDecidableEqSymbol_1.decEq (symbol.nonterminal a) (symbol.nonterminal b) = if h : a = b then h ▸ isTrue ⋯ else isFalse ⋯
Instances For
Any number of steps of grammatical transformation; reflexive+transitive closure of grammar_transforms.
Equations
Instances For
Accepts a word (a list of terminals) iff it can be derived from the initial nonterminal.
Equations
Instances For
The set of words that can be derived from the initial nonterminal.