Theorems · Theorem · computer science
ContextFreeGrammar.mem_language_iff
∀ {T : Type u_1} (g : ContextFreeGrammar T) (w : List T),
w ∈ g.language ↔ g.Derives [Symbol.nonterminal g.initial] (List.map Symbol.terminal w)A given word w belongs to the language generated by a given context-free grammar g iff
g can derive the word w (wrapped as a string) from the initial nonterminal of g in some
number of steps.
- Defined in
- Mathlib.Computability.ContextFreeGrammar
- Cited by
- 0 results in Mathlib
- Foundations
- Depth 58 from the axioms · uses propext, Classical.choice, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites7
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Languagestatement · cited by 125
- Symbolstatement · cited by 47
- ContextFreeGrammarstatement and proof · cited by 39
- ContextFreeGrammar.NTstatement · cited by 30
- ContextFreeGrammar.Derivesstatement · cited by 19
- ContextFreeGrammar.initialstatement · cited by 7
- ContextFreeGrammar.languagestatement · cited by 4
Cited by0
Results whose statement or proof uses this declaration.
Nothing cites this yet.