Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing (fun x => ...^~x) by the more readable [rel x y | ... y x] breaks real closed #37

Open
hivert opened this issue Oct 15, 2021 · 2 comments

Comments

@hivert
Copy link
Member

hivert commented Oct 15, 2021

We should investigate why using [rel x y | e x z] in path breaks real closed.

Originally posted by @chdoc in math-comp/math-comp#788 (review)

@CohenCyril CohenCyril transferred this issue from math-comp/math-comp Oct 18, 2021
@ggonthier
Copy link

One likely explanation is that (fun x => eˆ~ x), i.e., (fun x y => e y x), is a unification pattern and will thus match any relation whatsoever without unfolding anything (beyond what is needed to expose the two head funs). While rep_of_simpl [rel x y | e y x] is convertible to this pattern, it is not syntactically a pattern itself and may thus cause some additional unfolding of constants.

@hivert
Copy link
Member Author

hivert commented Oct 18, 2021

Thanks @ggonthier for the analysis. In math-comp/math-comp#788 (comment), I was suggested to replace (fun x => eˆ~ x) by the more readable [rel x y | e y x]. From what you says here, I gather that this is not a so good idea, and that (fun x y => e y x) should be used instead. Can you confirm that ?

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

No branches or pull requests

2 participants