+
    ‹°³j�	  ã                   ó.   €  ! R  R4      t  ! R R4      tR# )c                   ó4   a € ] tR t^t o RtRR ltR tRtV tR# )ÚStatea  
A representation of a state managed by a ``StateMachine``.

Attributes:
    name (instance of FreeGroupElement or string) -- State name which is also assigned to the Machine.
    transisitons (OrderedDict) -- Represents all the transitions of the state object.
    state_type (string) -- Denotes the type (accept/start/dead) of the state.
    rh_rule (instance of FreeGroupElement) -- right hand rule for dead state.
    state_machine (instance of StateMachine object) -- The finite state machine that the state belongs to.
Nc                óT   € Wn         / V n        W n        V^ ,          V n        W@n        R# )é    N)ÚnameÚtransitionsÚstate_machineÚ
state_typeÚrh_rule)Úselfr   r   r	   r
   s   &&&&&Úh/home/luca/screen-checking/.venv/lib/python3.14/site-packages/sympy/combinatorics/rewritingsystem_fsm.pyÚ__init__ÚState.__init__   s%   € ØŒ	ØˆÔØ*ÔØ$ Q�-ˆŒØŽó    c                ó"   € W P                   V&   R# )a2  
Add a transition from the current state to a new state.

Keyword Arguments:
    letter -- The alphabet element the current state reads to make the state transition.
    state -- This will be an instance of the State object which represents a new state after in the transition after the alphabet is read.

N)r   )r   ÚletterÚstates   &&&r   Úadd_transitionÚState.add_transition   s   € ð $)×Ñ˜Ó r   )r   r
   r   r	   r   ©NN)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r      s   ø‡ € ñ	ô÷	)ð 	)r   r   c                   ó:   a € ] tR t^t o RtR tRR ltR tRtV t	R# )ÚStateMachinezê
Representation of a finite state machine the manages the states and the transitions of the automaton.

Attributes:
    states (dictionary) -- Collection of all registered `State` objects.
    name (str) -- Name of the state machine.
c                óR   € Wn         W n        / V n        V P                  R RR7       R# )ÚstartÚs)r	   N)r   Úautomaton_alphabetÚstatesÚ	add_state)r   r   r$   s   &&&r   r   ÚStateMachine.__init__(   s$   € ØŒ	Ø"4ÔØˆŒØ�‰�w¨3ˆÖ/r   Nc                ó:   € \        WW#4      pW@P                  V&   R# )aH  
Instantiate a state object and stores it in the 'states' dictionary.

Arguments:
    state_name (instance of FreeGroupElement or string) -- name of the new states.
    state_type (string) -- Denotes the type (accept/start/dead) of the state added.
    rh_rule (instance of FreeGroupElement) -- right hand rule for dead state.

N)r   r%   )r   Ú
state_namer	   r
   Ú	new_states   &&&& r   r&   ÚStateMachine.add_state.   s   € ô ˜*¨JÓ@ˆ	Ø"+�‰�JÓr   c                ó(   € R V P                   ,          # )z%s)r   )r   s   &r   Ú__repr__ÚStateMachine.__repr__;   s   € Ø�t—y‘yÕ!Ð!r   )r$   r   r%   r   )
r   r   r   r   r   r   r&   r-   r   r   r   s   @r   r    r       s   ø‡ € ñò0ô,÷"ð "r   r    N)r   r    © r   r   Ú<module>r0      s   ð÷)ñ )÷<"ó "r   