-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: indicate replacements in synport output #198
Conversation
Is there an easy way to move the newline after the comment? +#print PosPart /-
/-- The positive part of an element admiting a decomposition into positive and negative parts.
-/
class PosPart (α : Type _) where
Pos : α → α
+-/
+#print NegPart /-
/-- The negative part of an element admiting a decomposition into positive and negative parts.
-/
class NegPart (α : Type _) where
neg : α → α
+-/ |
We also get lots of parenthesization errors now, not sure which commit introduced them. |
No, at least not if you mean fixing some |
The parenthesization errors look like an uncaught issue from the last bump. Mathport is generating the following for
but lean now wants it to be:
Are these additional nodes intentional? It looks like it will cause a lot of problems since I'm sure there are many other similar instances. |
Oh yes, they are intentional. But they show up in the syntax definition, like |
The +#print PosPart /-
/-- The positive part of an element admiting a decomposition into positive and negative parts.
-/
class PosPart (α : Type _) where
Pos : α → α
+-/
+#print NegPart /-
/-- The negative part of an element admiting a decomposition into positive and negative parts.
-/
class NegPart (α : Type _) where
neg : α → α
+-/ I can also take off another newline if you want, and have the |
Definitions that align are now printed like so:
The comment is the output mathport would have produced, if the definition
Function.injective_id
had not already existed in the environment. This is intended to make it easier to survey an already ported file and quickly identify any new definitions that have been introduced.