-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: functional induction for structural recursion (#3738)
This extends `derive_functional_induction` to work with structural recursion as well. It produces the less general, more concrete induction rule where the induction hypothesis is specialized for every argument of the recursive call, not just the the one that the function is recursing on. Care is taken so that the induction principle and it's motive take the arguments in the same order as the original function. While I was it, also makes sure that the order of the cases in the induction principle matches the order of recursive calls in the function better. --------- Co-authored-by: David Thrane Christiansen <david@davidchristiansen.dk> Co-authored-by: Leonardo de Moura <leomoura@amazon.com>
- Loading branch information
1 parent
e8a2786
commit 466ef74
Showing
8 changed files
with
623 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.