Derive handler for inhabited
instances #
This file introduces a derive handler to automatically generate inhabited
instances for structures and inductives. We also add various inhabited
instances for types in the core library.
@[protected, instance]
@[protected, instance]
@[protected, instance]
@[protected, instance]
@[protected, instance]
@[protected, instance]
@[protected, instance]
Equations
@[protected, instance]
Equations
- unsigned.inhabited = {default := 0}
@[protected, instance]
@[protected, instance]
Equations
- rbnode.inhabited = {default := rbnode.leaf α}
@[protected, instance]
Equations
- rbtree.inhabited = {default := mk_rbtree α lt}
@[protected, instance]
Equations
- rbmap.inhabited = {default := mk_rbmap α β lt}