Debian Codegraph @

src/Util/Tactics/TransparentAssert.v

raw
1 (** [transparent assert (H : T)] is like [assert (H : T)], but leaves the body transparent. *)
2 Tactic Notation "transparent" "assert" "(" ident(name) ":" constr(type) ")" :=
3 simple notypeclasses refine (let name := (_ : type) in _).
4
5 (** [transparent eassert] is like [transparent assert], but allows holes in the type, which will be turned into evars. *)
6 Tactic Notation "transparent" "assert" "(" ident(name) ":" constr(type) ")" "by" tactic3(tac) := transparent assert (name : type); [ solve [ tac ] | ].
7 Tactic Notation "transparent" "eassert" "(" ident(name) ":" open_constr(type) ")" := transparent assert (name : type).
8 Tactic Notation "transparent" "eassert" "(" ident(name) ":" open_constr(type) ")" "by" tactic3(tac) := transparent assert (name : type) by tac.