Skip to content

[NES] export/include namespaces #931

@pi8027

Description

@pi8027

I wish a feature to export/include a namespace from/in another namespace. Unlike the Export command, exporting A from B should probably make A.blabla accessible as B.blabla. So its behavior is perhaps closer to Include.

I think this is one of the missing features (besides #181) for replacing the use of modules with NES in MathComp, especially in ssralg.v, where lemmas are first proved in GRing and then copied in GRing.Theory (to make them available as both GRing.blabla and GRing.Theory.blabla, of which users may import only the latter because the former contains the stuff that should not be accessible with shorter names, e.g., GRing.add). IMO, this behavior should be achieved by proving them in the GRing.Theory namespace and exporting them from GRing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions