theory IsaFoR_Nonground_Context imports IsaFoR_Nonground_Term IsaFoR_Ground_Context Nonground_Context Context_Functor begin type_synonym ('f, 'v) "context" = "('f, 'v) ctxt" abbreviation occurences where "occurences t x ≡ count (vars_term_ms t) x"