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

Add EquationalReasoning combinators for _∼[ set ]_? #2483

Open
jamesmckinna opened this issue Sep 18, 2024 · 2 comments
Open

Add EquationalReasoning combinators for _∼[ set ]_? #2483

jamesmckinna opened this issue Sep 18, 2024 · 2 comments

Comments

@jamesmckinna
Copy link
Contributor

jamesmckinna commented Sep 18, 2024

We have Function.Related.Propositional.EquationalReasoning.↔-syntax for bag equality _∼[ bag ]_, and despite _∼[ set ]_ having formally the same properties (incl. symmetry via SK-sym), we don't seem to have syntax for it (and hence the symmetric combinator syntax ↔⟨ ... ⟨ in order to be able to avoid explicit appeals to SK-sym). And AFAICT, instantiating Function.Related.Propositional.EquationalReasoning at {k = set} does not permit the ↔-syntax to be reused for set equality.

And/But I don't quite understand what needs to be changed/added to be able to fix this.

@Taneb
Copy link
Member

Taneb commented Sep 18, 2024

I agree that this would be a reasonable addition

@MatthewDaggitt
Copy link
Contributor

So the issue is that by convention we use for non-symmetric relations and so it has no symmetric counter-part. The best approach I think would be to create new BagReasoning and SetReasoning modules in List.Relation.Binary.BagAndSetEquality where we export proper (meaningfully named!) symmetric combinators...

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

3 participants