Skip to content

Unfold Not in conclusions of forward rules? #197

@JLimperg

Description

@JLimperg

The forward rule

@[aesop safe destruct] theorem not_prime_one : ¬Prime 1

(taken from Mathlib) currently means that in any context, ¬Prime 1 should be added as a hypothesis. But it was perhaps intended to mean that in a context with h : Prime 1, Aesop should derive False.

Possible actions:

  • When adding a forward rule, unfold a leading Not in the conclusion. It should be possible to disable this behaviour via a builder option since adding a forward rule with negative conclusion is not necessarily wrong.
  • Warn when adding a forward rule with a negated conclusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions