subterms
Subterms are terms that occur within another term in the contexts of formal languages, logic, and algebra. Given a term built from function symbols (and possibly variables), a subterm of that term is any term that appears inside it as part of its syntactic structure. Every term is a subterm of itself; a proper subterm excludes the term itself.
Formally, if t = f(t1, ..., tn) where f is an n-ary function symbol and the ti are terms,
Example: for t = f(a, g(b, c)), the subterms are t itself, a, g(b, c), b, and c.
Properties and terminology: The subterm relation is reflexive, transitive, and antisymmetric, making it a partial order
Applications: Subterms are central in term rewriting and automated theorem proving, where they help in matching,