Closed kmill closed 6 days ago
Mathlib CI status (docs):
Is the order of fields lexicographic in indices?
@fgdorais It should be — it's using getStructureFieldsFlattened
, which takes the direct fields in order and recursively flattens the subobject fields.
This PR improves the
#print
command for structures to show all fields and which parents the fields were inherited from, hiding internal details such as which parents are represented as subobjects. This information is still present in the constructor if needed. The pretty printer for private constants is also improved, and it now handles private names from the current module like any other name; private names from other modules are made hygienic.Example output for
#print Monad
:Suggested by Floris van Doorn on Zulip.