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
Incorporating a function for Tautological Implication in the Logic Module #28052
Comments
Author: Medha Sharma |
This comment has been minimized.
This comment has been minimized.
comment:3
A ticket should be set in needs review when it provides source code ready to be integrated into Sage. |
comment:6
Ticket retargeted after milestone closed |
Reviewer: Dave Morris |
comment:7
I recommend closing this ticket as "invalid/wontfix", because the functionality is already available by using
|
comment:8
Perhaps it would be good to add a method |
comment:9
Thanks, that seems like a good idea. I'll do it soon, but probably not today. Probably it makes the most sense to move the definition into a method, and then (for backward compatibility) define a stand-alone function that calls the method. Perhaps the stand-alone should be deprecated? |
comment:10
I don't use this, so I don't have an option. I think it is okay to have a method redirect to a function (or vice versa; they are equivalent in my mind up to putting the definition in the method to make it easier to see via def foo(x, y):
return -y
class Bar:
foo = foo
This would mean everything in the doc, etc. is properly linked without redundancy. This would be my recommendation. |
Commit: |
comment:12
Thanks for telling me about
New commits:
|
This comment has been minimized.
This comment has been minimized.
Changed author from Medha Sharma to Medha Sharma, Dave Morris |
comment:14
Merge conflict. |
comment:16
Fixed the merge conflict with #28053 and merged 9.1b8. I hope the patchbots will be happy now. |
Changed reviewer from Dave Morris to Dave Morris, Travis Scrimshaw |
comment:17
Some little comments: -if not(hypotheses):
+if not hypotheses: Remove Beyond that, LGTM. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:19
Thanks for the corrections. |
comment:20
Thank you. LGTM. |
Changed branch from public/28052 to |
This ticket defines a method
is_consequence
for the classBooleanFormula
. This method provides the same functionality as the functionvalid_consequence
(which is now deprecated): the method returnsTrue
ifself
is a tautological consequence of the given formula(s).In addition, the function call
is_consequence(conclusion,hypotheses)
is defined to be a synonym forconclusion.is_consequence(hypotheses)
and is therefore a drop-in replacement for the deprecated functionvalid_consequence
.Component: symbolics
Keywords: logic, symbolics, propositional formula
Author: Medha Sharma, Dave Morris
Branch/Commit:
bbec2e6
Reviewer: Dave Morris, Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/28052
The text was updated successfully, but these errors were encountered: