+
    i                     N    R t ^ RIHt ^ RIHt ^RIHtHtHt ]3R lt	]3R lt
R# )z(Branching Strategies to Traverse a Tree )product)	basic_fns)chainidentitydo_onec                D   a a \        \        S \        4      V V3R l4      # )z;Apply a rule down a tree running it on the top nodes first c                 <   < \        \        SS4      S4      ! V 4      # N)salltop_down)exprbrulefnss   &ڀ/Users/tonyclaw/.openclaw/workspace/skills/math-calculator/venv/lib/python3.14/site-packages/sympy/strategies/branch/traverse.py<lambda>top_down.<locals>.<lambda>
   s    d8E3#7=dC    )r   r   r   )r   r   s   ffr   r   r      s    x(CE Er   c                Z   a aaaa \        VP                  R4      w  ooooV VVVV3R lpV# )z#Strategic all - apply rule to args c              3      <"   S! V 4      '       d   V x  R # S! V 4      p\        \        SS! V 4      4      !  pV F  pS! V.VO5!  x  K  	  R # 5ir	   )r   map)	r   myopargssargsr   childrenleafnewops	   &   r   all_rlsall.<locals>.all_rl   sL     ::Jd8DS78E$&&& s   AA)r   r   r   r   )r   get)r   r   r   r   r   r   r   s   f& @@@@r   r
   r
      s.    !#''+LMBXt' ' Mr   N)__doc__	itertoolsr   sympy.strategies.utilr   corer   r   r   r   r
    r   r   <module>r%      s)    /  + ) ) " E  r   