lean4
lean4 copied to clipboard
chore: simplify is_rec / is_reflexive
- The
findcall inis_recwas just a complicated way to write thehas_ind_occfunction defined just afterwards. By using it,is_recandis_reflexiveare made much more clearly similar. - fixed a typo
is_reflexivewas usinginstantiatebutis_recwas not. None of the functions involved require closed terms, and replacing a bvar with an fvar does not change the result ofis_piorhas_ind_occ, so theinstantiateis unnecessary and can be removed (although I doubt it is a measurable perf difference). As a bonus it is now structurally recursive, which is advantageous for a certain project I'm working on...
- ✅ Mathlib branch lean-pr-testing-2674 has successfully built against this PR. (2023-10-12 13:59:40) View Log