sagemath / sage

Main repository of SageMath. Now open for Issues and Pull Requests.
https://www.sagemath.org
Other
1.21k stars 422 forks source link

new inference rule functions in logic module #15041

Open bd435cb6-4d8d-4732-bb6a-b71bfd0d7ca6 opened 10 years ago

bd435cb6-4d8d-4732-bb6a-b71bfd0d7ca6 commented 10 years ago

This ticket is for introducing inference rules to sage's logic module. The functions were added in a new source file called rule.py. These functions return the result of applying a rule of inference to certain formulas, as well as determine whether a particular rule of inference has been applied correctly.

Depends on #14951 Depends on #14952 Depends on #15013 Depends on #15018 Depends on #15040

Component: misc

Keywords: logic, inference rules

Author: Paul Scurek

Issue created by migration from https://trac.sagemath.org/ticket/15041

bd435cb6-4d8d-4732-bb6a-b71bfd0d7ca6 commented 10 years ago

Attachment: trac_14951_tokenize_tree_fix.patch.gz

Attachment: trac_14952_logic_if_while_syntax.patch.gz

bd435cb6-4d8d-4732-bb6a-b71bfd0d7ca6 commented 10 years ago

Attachment: trac_15013_logic_docstrings.patch.gz

bd435cb6-4d8d-4732-bb6a-b71bfd0d7ca6 commented 10 years ago

Attachment: trac_15018_recover_formula.patch.gz

Attachment: trac_15040_errorhandling_logicparser.patch.gz

bd435cb6-4d8d-4732-bb6a-b71bfd0d7ca6 commented 10 years ago

Attachment: trac_15041_inference_rules.patch.gz

This is the patch for this ticket, but it depends on the previous ones. Apply all patches in the order they appear.

bd435cb6-4d8d-4732-bb6a-b71bfd0d7ca6 commented 10 years ago
comment:1

The last patch listed in the attachments, trac_15041_inference_rules.patch​, is the only one that should be integrated into sage for this ticket. The first five patches are the patches from the dependencies of this ticket, which were placed here for the convenience of the reviewer.

williamstein commented 10 years ago
comment:2

REPORT:

    try:
        trees = logicparser.get_trees(premise1, premise2)
    except SyntaxError:
        raise