Math 2.0

Computer science Definition

Kleene star

Builds on Formal languageString

Definition

Let Σ\Sigma be an alphabet and let L⊆Σ∗L \subseteq \Sigma^* be a formal language. Define L0={ε}L^0 = \set{\varepsilon}, where ε\varepsilon is the empty string, and Ln+1=LnL={uv:u∈Ln,v∈L}L^{n+1} = L^n L = \set{uv : u \in L^n, v \in L} for n≥0n \ge 0. The Kleene star of LL is L∗=⋃n≥0Ln.L^* = \bigcup_{n \ge 0} L^n. So w∈L∗w \in L^* exactly when w=w1w2⋯wkw = w_1 w_2 \cdots w_k for some k≥0k \ge 0 and w1,…,wk∈Lw_1, \dots, w_k \in L.

Remarks

Example: for L={ab}L = \set{ab}, L∗={ε,ab,abab,ababab,… }L^* = \set{\varepsilon, ab, abab, ababab, \dots}. The string abababab is in L2L^2, with w1=w2=abw_1 = w_2 = ab, so it is in L∗L^*. Non-example: aba∉L∗aba \notin L^*, since every member of L∗L^* has even length. Edge cases: ∅∗={ε}\emptyset^* = \set{\varepsilon}, since ∅0={ε}\emptyset^0 = \set{\varepsilon} and ∅n=∅\emptyset^n = \emptyset for n≥1n \ge 1. The Kleene plus is L+=⋃n≥1LnL^+ = \bigcup_{n \ge 1} L^n, and L∗=L+∪{ε}L^* = L^+ \cup \set{\varepsilon}. For an alphabet Σ\Sigma, viewed as the language of strings of length 11, Σ∗\Sigma^* is the set of all strings over Σ\Sigma. L∗L^* is the smallest language that contains ε\varepsilon and LL and is closed under concatenation.

Reading path

To understand this page from the ground up, read these 25 pages in order. The foundations come first.

Show the path as a graph
Element, definition, no evidence levelElementdefinitionMonoid, concept, no evidence levelMonoidconceptProposition, concept, no evidence levelPropositionconceptSet, definition, no evidence levelSetdefinitionImplication, definition, no evidence levelImplicationdefinitionPredicate, definition, no evidence levelPredicatedefinitionOrdered pair, definition, no evidence levelOrdered pairdefinitionExistential quantifier, definition, no evidence levelExistential quantifierdefinitionUniversal quantifier, definition, no evidence levelUniversal quantifierdefinitionCartesian product, definition, no evidence levelCartesian productdefinitionSubset, definition, no evidence levelSubsetdefinitionUniqueness quantifier, definition, no evidence levelUniqueness quantifierdefinitionBinary relation, definition, no evidence levelBinary relationdefinitionFunction, definition, no evidence levelFunctiondefinitionCodomain, definition, no evidence levelCodomaindefinitionInjective function, definition, no evidence levelInjective functiondefinitionFree monoid, definition, no evidence levelFree monoiddefinitionSurjective function, definition, no evidence levelSurjective functiondefinitionBijective function, definition, no evidence levelBijective functiondefinitionEquinumerous sets, definition, no evidence levelEquinumerous setsdefinitionFinite set, definition, no evidence levelFinite setdefinitionAlphabet, definition, no evidence levelAlphabetdefinitionString, definition, no evidence levelStringdefinitionFormal language, definition, no evidence levelFormal languagedefinitionKleene star, definition, no evidence levelKleene stardefinition
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Element definition
  2. Monoid concept
  3. Proposition concept
  4. Set definition
  5. Implication definition
  6. Predicate definition
  7. Ordered pair definition
  8. Existential quantifier definition
  9. Universal quantifier definition
  10. Cartesian product definition
  11. Subset definition
  12. Uniqueness quantifier definition
  13. Binary relation definition
  14. Function definition
  15. Codomain definition
  16. Injective function definition
  17. Free monoid definition
  18. Surjective function definition
  19. Bijective function definition
  20. Equinumerous sets definition
  21. Finite set definition
  22. Alphabet definition
  23. String definition
  24. Formal language definition
  25. Kleene star definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Kleene_star
About this page
TagRVFHTPYYKR
URIm2://RVFHTPYYKR
Kinddefinition
WritingW0 stub
MSC68Q45, 68R15
DefinesKleene star
UsesFormal language, String
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.