Skip to content

Let try_prove use theorems #17

@lukacslacko

Description

@lukacslacko

When trying to prove a phrase R, try_prove should not only look at all proven phrases P and try to substitute P to become R (that is, try to do P[P/R]), but it should also look for all proven phrases (P=>Q) and try to do (P=>Q)[Q/R].MP to prove R.

There is small potential issue of infinite loop in (P=>Q)[Q/R].MP then calling try_prove and keep on doing this, we should probably avoid that somehow.

One can use the reduce function if one knows which theorem results in the desired phrase, such as in X = Y ⇒ Y = X; 𝗦(x + y) = 𝗦x + y | reduce.MP, but it would be nice to have this happen automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions