Skip to content

Conversation

@MichaelRawson
Copy link
Contributor

SafeRecursion can be modelled with BottomUpEvaluation and is only used in one place. Replace it and remove SafeRecursion.

There is an intermediate commit which I used to test that the two implementations agree. Also, I found a bug in BottomUpEvaluation where it doesn't respect ignoreTypeArgs for TermList, fix that.

}
}
// memoising structure used in convertFO below
// TODO: should this be provided as part of the BUE machinery?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joe-hauns - this is just Memo::Hash but with a DHMap instead of a Map. Perhaps you have some idea to abstract this?

At some point the two should just be the same container, but we're a way off from there.

@MichaelRawson
Copy link
Contributor Author

@quickbeam123 found some problems we lose with this (?!) so I'm looking into this.

@MichaelRawson MichaelRawson force-pushed the michael-safe-recursion branch from 51f8a7e to 2448e94 Compare December 9, 2025 09:26
@quickbeam123 quickbeam123 merged commit 9b2f05b into master Dec 9, 2025
1 check passed
@quickbeam123 quickbeam123 deleted the michael-safe-recursion branch December 9, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants