Symbolic regression (SR) seeks to recover closed-form mathematical expressions that describe observed data. While existing methods have advanced the discovery of either explicit mappings (i.e., $y = f(\mathbf{x})$) or discovering implicit relations (i.e., $F(\mathbf{x})=0$), few modern and accessible frameworks support both. Moreover, most approaches treat each expression candidate in isolation, without reusing recurring structural patterns that could accelerate search. Those that do reuse substructures select them by frequency among top candidates, which does not measure whether a substructure actually contributes to an expression's fitness. We introduce \textsc{SymMatika}, a symbolic regression framework built around an updating ``motif'' library, which scores subtrees of top-performing candidates by their measured impact on fitness, stores high-impact subtrees in a bounded shared library, and recombines them to guide future generations. The library sits on a feedback-driven evolutionary engine that adapts operator rates and candidate generation to each population's progress, and the same mechanisms support both explicit and implicit relation discovery using implicit-derivative metrics. On Nguyen, \textsc{SymMatika} recovers 96.5\% of expressions on average and 61\% of Nguyen-12, where the next-best method recovers 2\%. On the 119 Feynman equations and 57 SRBench Black-box problems, it lies on the error-complexity Pareto front with the most compact expressions of any competitive method, and it recovers implicit relations on Eureqa's physical systems. These results indicate that impact-based substructure reuse is an effective strategy for scientific discovery. Our complete codebase has been open-sourced.
翻译:暂无翻译