You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
Click "Merge two similar statements" button. This button looks like two lines merging into a single line (like Y).
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.
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).
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.
Activity
[-]Automate mering of statements[/-][+]Automate merging of statements[/+]#47 Implement autoMergeDuplicatedStatements().
#47 Add the "Merge similar steps automatically" setting.
expln commentedon Jul 28, 2023
The "auto merge" feature should not remove the G step.
expln commentedon Jul 29, 2023
Handle this case too:

#47 Fix some bugs related to auto-merging.
expln commentedon Aug 2, 2023
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).
#47 Auto-merge same steps with same non-empty justifications.
expln commentedon Aug 4, 2023
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.
expln commentedon Aug 8, 2023
This is available in version 16