Skip to content

Add a tiny utility function for logical implication#36209

Merged
toregge merged 1 commit into
masterfrom
vekterli/material-implication-util
Mar 16, 2026
Merged

Add a tiny utility function for logical implication#36209
toregge merged 1 commit into
masterfrom
vekterli/material-implication-util

Conversation

@vekterli
Copy link
Copy Markdown
Member

@toregge please review

Because too few programming languages have a dedicated operator for $P \implies Q$, this is the next best thing.

Useful for e.g. assertions where you want to check that if P holds, then Q must also hold (but not necessarily vice versa).

Because too few programming languages have a dedicated
logical implication operator for `P ==> Q`, this is the
next best thing.

Useful for e.g. assertions where you want to check that if
P holds, then Q must also hold (but not necessarily vice
versa).
@vekterli vekterli requested a review from toregge March 16, 2026 13:00
Copy link
Copy Markdown
Member

@toregge toregge left a comment

Choose a reason for hiding this comment

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

👍

@toregge toregge merged commit 6120c97 into master Mar 16, 2026
3 checks passed
@toregge toregge deleted the vekterli/material-implication-util branch March 16, 2026 13:40
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