-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotfix check/adjust subsorting for substitutions based on
==K
terms (…
…#4076) When a constraint of shape `VAR:VarSort ~> .K ==K term:TermSort ~> .K` is externalised, the prior code just rendered a `VAR:VarSort #Equals term:TermSort`. This is wrong when `TermSort /= VarSort`, however `TermSort` will be a subsort of `VarSort`, otherwise the rule that introduced this `==K` term is ill-sorted. * Externalisation code now inserts the missing injection into the `#Equals` expression. * A test was added which demonstrates the use case and behaviour (failed before, succeeds now). * A pretty-printer option was added to show the injections in the printed terms (off by default). --------- Co-authored-by: Petar Maksimović <[email protected]>
- Loading branch information
Showing
13 changed files
with
331 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.