chore: add helper function
This commit is contained in:
parent
8c7f514a9d
commit
cae045bce8
1 changed files with 4 additions and 1 deletions
|
|
@ -106,11 +106,14 @@ structure RecursorVal extends ConstantVal :=
|
|||
(nparams : Nat) -- Number of parameters
|
||||
(nindices : Nat) -- Number of indices
|
||||
(nmotives : Nat) -- Number of motives
|
||||
(nminor : Nat) -- Number of minor premises
|
||||
(nminors : Nat) -- Number of minor premises
|
||||
(rules : List RecursorRule) -- A reduction for each Constructor
|
||||
(k : Bool) -- It supports K-like reduction
|
||||
(isUnsafe : Bool)
|
||||
|
||||
def RecursorVal.getMajorIdx (v : RecursorVal) : Nat :=
|
||||
v.nparams + v.nmotives + v.nminors + v.nindices
|
||||
|
||||
inductive QuotKind
|
||||
| type -- `Quot`
|
||||
| ctor -- `Quot.mk`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue