Skip to content

Automate merging of statements #47

Closed

Description

@expln

Current way of merging of duplicated statements involves some manual work. In many cases it could be automated. Currently the process of merging is as follows:

  1. Select the statement this error message "This statement is the same as the previous one - 'label'" appeared for by clicking the checkbox left to the statement. This must be the statement right above the error message. And make sure this is the only statement selected.
  2. Click "Merge two similar statements" button. This button looks like two lines merging into a single line (like Y).
  3. A dialog should appear where you will have possibility to select what statement you want to continue using. (you selected one statement, metamath-lamp finds another duplicated statement automatically)
    This way one of the duplicated statements will be removed automatically and metamath-lamp will update all the justifications which used the removed statement so they will use the statement you chose to continue using.

Activity

  1. changed the title [-]Automate mering of statements[/-] [+]Automate merging of statements[/+] on May 29, 2023
  2. added 2 commits that reference this issue on Jul 27, 2023
  3. expln commented on Jul 28, 2023

    @expln
    OwnerAuthor

    The "auto merge" feature should not remove the G step.

  4. expln commented on Jul 29, 2023

    @expln
    OwnerAuthor

    Handle this case too:
    image

  5. added a commit that references this issue on Jul 30, 2023
  6. expln commented on Aug 2, 2023

    @expln
    OwnerAuthor

    This is implemented on dev.

    Automatic merging of similar steps is optional. There is a global setting "Merge similar steps automatically". It is Off by default. It can merge only in simple cases: 1) both similar steps must be P or G (not H); 2) one of them must have a non-empty justification and another must have an empty justification. Only in that case the one with an empty justification will be removed and all references to it will be replaced with the label of the remaining step. If automatic merging is not possible then the manual merging is still available and works as before (the Merge icon).

  7. added a commit that references this issue on Aug 4, 2023
  8. expln commented on Aug 4, 2023

    @expln
    OwnerAuthor

    One more case is added which the automatic merging can handle - if both statements have same justification. In that case the upper one will remain and the lower one will be removed.

  9. expln commented on Aug 8, 2023

    @expln
    OwnerAuthor

    This is available in version 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions