Expand description
Auto-generated module
🤖 Generated with SplitRS
Constants§
- PROP_
LEVEL - Level of
Prop(= 0).
Functions§
- collect_
level_ mvars - Collect all metavariable IDs used in a level.
- collect_
level_ params - Collect all parameter names used in a level.
- dedup_
levels - Collect all levels appearing in a
Vec<Level>, deduplicating by structural equality. - eval_
ground_ level - Evaluate a ground (no params, no mvars) level to a concrete
u32. - flatten_
max - Flatten a level to a list of
(base, offset)pairs representing max arguments. - imax_
fold - Create a level that is the
imaxof a slice of levels, left-folded. - instantiate_
level - Instantiate level parameters using a substitution.
- instantiate_
level_ mvars - Replace level metavariables using a substitution function.
- is_
definitely_ succ - Check if
lis definitely a successor (non-zero) level. Returns true forsucc(anything). - is_
equivalent - Check if two levels are semantically equivalent.
- is_geq
- Check if
l1 >= l2(level ordering). - is_
ground - Check if a level expression is ground (no parameters, no mvars).
- is_leq
- Check if
l1 <= l2(level ordering). - is_
numeral - Check if the level is a concrete numeral (succ^n(zero)).
- level_
add - Bump a level by
nsuccessor applications. - level_
max3 - Create
max(max(l1, l2), l3)and normalize. - level_
min - Compute the minimum of two levels: min(l1, l2).
- max_
of_ slice - Create a level that is the
maxof a slice of levels. - normalize
- Normalize a universe level to canonical form.
- to_
offset - Decompose a level into
(base, offset)where level = succ^offset(base). - type0_
level - Level of
Type 0(= 1). - type1_
level - Level of
Type 1(= 2). - type_
level - The universe level for
Type n(= succ^(n+1)(0)).