Skip to content

Prove once then remember proofs of subgoals. #1027

@guilhemmizrahi-jpg

Description

@guilhemmizrahi-jpg

Feature idea

When writing a proof, I sometimes prove the same goal multiple times (often something about indices being inside the correct bounds).
Would there be a way to store this proof in the context as an hypothesis so that when it is relevant the proof could be reused, maybe even as a // ?
The idea is that if \phi => p then for any \delta, \phi U \delta => p. Storing that there is a proof of \phi => p for a minimal p could simplify writing (speedup verifying ?) the proofs.
It sounds equivalent to writing a have h : p by proof and being able to apply h.
Maybe introduce a new keyword remember to indicate that the proof of the current goal should be stored to be reused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions