feat(frontends/lean): local notation override global one
This commit is contained in:
parent
8e9997e253
commit
22f6a95cc4
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ namespace category
|
||||||
!is_trunc_eq
|
!is_trunc_eq
|
||||||
|
|
||||||
end basic_lemmas
|
end basic_lemmas
|
||||||
context squares
|
section squares
|
||||||
parameters {ob : Type} [C : precategory ob]
|
parameters {ob : Type} [C : precategory ob]
|
||||||
local infixl `⟶`:25 := @precategory.hom ob C
|
local infixl `⟶`:25 := @precategory.hom ob C
|
||||||
local infixr `∘` := @precategory.comp ob C _ _ _
|
local infixr `∘` := @precategory.comp ob C _ _ _
|
||||||
|
|
|
@ -711,7 +711,7 @@ static environment dispatch_notation_cmd(parser & p, bool overload, bool reserve
|
||||||
}
|
}
|
||||||
|
|
||||||
environment local_notation_cmd(parser & p) {
|
environment local_notation_cmd(parser & p) {
|
||||||
bool overload = !in_context(p.env());
|
bool overload = false; // REMARK: local notation override global one
|
||||||
bool reserve = false;
|
bool reserve = false;
|
||||||
bool persistent = false;
|
bool persistent = false;
|
||||||
return dispatch_notation_cmd(p, overload, reserve, persistent);
|
return dispatch_notation_cmd(p, overload, reserve, persistent);
|
||||||
|
|
Loading…
Reference in a new issue