This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import order.basic | |
open tactic interactive (parse) interactive (loc.ns) | |
interactive.types (texpr location) lean.parser (tk) | |
local postfix `?`:9001 := optional | |
meta def apply_fun_name (e : expr) (h : name) (M : option pexpr) : tactic unit := | |
do { | |
H ← get_local h, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tactic.interactive | |
open tactic declaration environment | |
/-- test that name was not auto-generated -/ | |
@[reducible] def name.is_not_auto (n : name) : Prop := | |
n.components.ilast ∉ [`no_confusion, `rec_on, `cases_on, `no_confusion_type, `sizeof, | |
`rec, `mk, `sizeof_spec, `inj_arrow, `has_sizeof_inst, `inj_eq, `inj] | |
/-- Print the declaration name if it's a definition without a docstring -/ |
OlderNewer