refactor: simplify structural recursion elaboration

This PR removes the custom M/State monad from structural recursion
elaboration, replacing it with plain MetaM. The key changes are:

- Remove State/M types from Structural.Basic, use MetaM throughout
- Extract withRecFunsAsAxioms helper for adding recursive functions
  as temporary axioms
- Split tryAllArgs into findRecArgCandidates (analysis) and
  tryCandidates (backtracking execution) for clearer separation
- Move withoutModifyingEnv into each phase that needs it
- For inductive predicates, return matchers from mkIndPredBRecOnF
  instead of accumulating them in state
- Pass fnTypes explicitly to mkBRecOnMotive instead of re-inferring

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6 files changed