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 injectivity/equality axiom to Option<T> #713

Merged
merged 1 commit into from
Nov 1, 2021
Merged

Conversation

bobismijnnaam
Copy link
Contributor

No description provided.

@bobismijnnaam bobismijnnaam temporarily deployed to Default November 1, 2021 13:30 Inactive
Copy link
Member

@pieter-bos pieter-bos left a comment

Choose a reason for hiding this comment

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

I believe this is quadratic in the number of occurences of VCTSome, but that is a problem we should look at generally. I believe a strategy to manage that is to detected all instances of (x : option) == (y : option) in vercors, and replace it with a function option_eq, and then trigger on that. That requires some machinery to correctly detect instances of such ==. For now, let's use this axiom.

@bobismijnnaam bobismijnnaam temporarily deployed to Default November 1, 2021 13:48 Inactive
@sonarcloud
Copy link

sonarcloud bot commented Nov 1, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@bobismijnnaam bobismijnnaam merged commit 0a60d4e into dev Nov 1, 2021
@bobismijnnaam bobismijnnaam deleted the option-equality branch November 1, 2021 13:53
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.

2 participants