-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Precedence UpTee RoundImplies #101
base: master
Are you sure you want to change the base?
Conversation
Perhaps then, RoundTreeImplies is not an infix operator. It is also not listed as Built-in Symbol nor is it listed under Operators Just because the |
Ok, but it is parsed as it was an infix operator. It is simply an inconsistency of the behavior in WMA. |
5c7cf2f
to
aa90806
Compare
Good point. Looking again at https://reference.wolfram.com/language/ref/character/RoundImplies.html the fact that there is a link to Operators and given the fact there is a specification that this groups right, suggests that this is an operator, but not one were there is an output boxing rule associated with it. We could remove the format/boxing rule here, but if it seems like a WMA misfeature I am not sure it is worth the bother. The main thing though here is to jot down what the situation is inside YAML comments. |
Regarding the values, it would be interesting to see what @rljacobson has to say about. |
@@ -97,7 +97,7 @@ | |||
# RoundImplies[a,UpTee[b,c]], | |||
# But in Mathics as | |||
# UpTee[RoundImplies[a, b], c] | |||
# "RoundImplies", # WMA->240, Mathics->200, Must be ~193 | |||
"RoundImplies", # WMA->240, Mathics->200, Must be ~193 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why must it be ~193? Please write an isolated test that demonstrates this. Thanks.
@@ -6919,7 +6919,8 @@ UpSetDelayed: | |||
# comments: | |||
|
|||
UpTee: | |||
precedence: 190 | |||
precedence: 197 | |||
Precedence-Function: 190 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An operational test demonstrates and ensures this, please?
This PR fixes the values for the precedence of UpTee and RoundImplies operators. To arrive at these values, I tested how WMA parses expressions like
which produces the FullForm expression
RoundImplies[UpTee[a,b],c]
. Also, I try to check what are the InputForm and OutputForm of this expression, butRoundImplies
is not formatted as an infix operator.UpTee[a, RoundImplies[b, c]] // InputForm
results in
a \[UpTee] RoundImplies[b, c]