doc: document constructors of TransparencyMode (#3037)
Taken from https://github.com/leanprover-community/lean4-metaprogramming-book/blob/master/md/main/04_metam.md#transparency I can never remember which way around `reducible` and `default` go, and this avoids me needing to leave the editor to find out.
This commit is contained in:
parent
f2a92f3331
commit
c474dff38c
1 changed files with 8 additions and 1 deletions
|
|
@ -21,7 +21,14 @@ structure Module where
|
|||
namespace Meta
|
||||
|
||||
inductive TransparencyMode where
|
||||
| all | default | reducible | instances
|
||||
/-- unfold all constants, even those tagged as `@[irreducible]`. -/
|
||||
| all
|
||||
/-- unfold all constants except those tagged as `@[irreducible]`. -/
|
||||
| default
|
||||
/-- unfold only constants tagged with the `@[reducible]` attribute. -/
|
||||
| reducible
|
||||
/-- unfold reducible constants and constants tagged with the `@[instance]` attribute. -/
|
||||
| instances
|
||||
deriving Inhabited, BEq
|
||||
|
||||
inductive EtaStructMode where
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue