mathlib documentation

tactic.localized

Localized notation

This consists of two user-commands which allow you to declare notation and commands localized to a locale.

See the tactic doc entry below for more information.

The code is inspired by code from Gabriel Ebner from the hott3 repository.

meta def get_localized (ns : list name) :

Get all commands in the given locale and return them as a list of strings

meta def open_locale_cmd (_x : interactive.parse (lean.parser.tk "open_locale")) :

Execute all commands in the given locale

Add a new command to a locale and execute it right now. The new command is added as a declaration to the environment with name _localized_decl.<number>. This declaration has attribute _localized and as value a name-string pair.