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

Implement attribute inequality #80

Merged
merged 2 commits into from
Feb 2, 2024
Merged

Implement attribute inequality #80

merged 2 commits into from
Feb 2, 2024

Conversation

aabounegm
Copy link
Collaborator

@aabounegm aabounegm commented Feb 1, 2024

Closes #56


PR-Codex overview

Focus of this PR:

This PR focuses on adding two new rules and modifying the checkCond function in the Condition data type.

Detailed summary:

  • Added a new rule named "Rule 10" with an empty description, a pattern, and a result.
  • Added a new rule named "Rule 11" with an empty description and a pattern.
  • Modified the checkCond function in the Condition data type to handle the new AttrNotEqual condition.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

pattern: ⟦ !t ↦ !b1, !B1 ⟧(!t ↦ !b2, !B2)
result: ⊥
when:
- not_equal: ["!t", "ρ"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Somehow I do not like using a tuple here, but I can't come up with a better alternative :)

@fizruk fizruk merged commit 6e62163 into master Feb 2, 2024
4 checks passed
@fizruk fizruk deleted the attribute-inequality branch February 2, 2024 09:22
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.

Add rule condition: (in)equality of attributes
3 participants