I am having trouble defining some notation globally. I am trying to define some notation in a scope within a module, and I would like to have it available in other modules, but I cannot make this happen.
For example, if i write
Declare Scope scope0.
Declare Scope scope1.
Declare Scope scope2.
Module A.
Notation ". A" := (list A) (at level 100) : scope0.
#[global]
Notation ". A" := (list A) (at level 100) : scope1.
#[local]
Notation ". A" := (list A) (at level 100) : scope2.
Print Scope scope0.
Print Scope scope1.
Print Scope scope2.
End A.
Module B.
Print Scope scope0.
Print Scope scope1.
Print Scope scope2.
End B.
Then the three first Print Scope shows that the notation is present in the scope, but in the last three ones it is gone again, and I cannot use it.
When I read the documentation of Notation I got the impression that it should not be local to a module.