Interface KleeneAlgebra<E>
- All Superinterfaces:
AbelianMonoid<E>, Magma<E>, Monoid<E>, Semiring<E>, Set<E>
A Kleene Algebra is an idempotent semiring with a closure operator (Kleene
star).
It is used in theoretical computer science to model regular expressions, finite automata, and program semantics.
Mathematical Definition
A Kleene algebra (K, +, ·, *, 0, 1) is an idempotent semiring (a + a = a) equipped with a unary operation * satisfying:
- 1 + a · a* ≤ a*
- 1 + a* · a ≤ a*
- b + a · x ≤ x ⇒ a* · b ≤ x
- b + x · a ≤ x ⇒ b · a* ≤ x
References
- Stephen Cole Kleene, "Representation of Events in Nerve Nets and Finite Automata", in Automata Studies, Princeton University Press, 1956, pp. 3-41
- Dexter Kozen, "A Completeness Theorem for Kleene Algebras and the Algebra of Regular Events", Information and Computation, Vol. 110, No. 2, 1994, pp. 366-390
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Methods inherited from interface AbelianMonoid
add, identity, isCommutative, zeroMethods inherited from interface Monoid
isAssociativeMethods inherited from interface Semiring
isMultiplicationCommutative, multiply, one, powMethods inherited from interface Set
contains, description, isEmpty
-
Method Details
-
star
-
plus
-