MCPcopy Create free account
hub / github.com/argumentcomputer/ix / normalize_level

Function normalize_level

crates/kernel/src/level.rs:687–693  ·  view source on GitHub ↗

Normalize a universe level to Géran's canonical form.

(l: &KUniv<M>)

Source from the content-addressed store, hash-verified

685
686/// Entry-wise equality of two normal forms, IGNORING empty entries
687/// (constant 0, no vars — pure subsumption bookkeeping). Subsumption
688/// EMPTIES a dominated entry rather than removing it, so a spelling like
689/// `max (u+1) (imax (u+1) v)` retains an empty `[u,v]` entry that its
690/// semantic equal `max (u+1) v` never creates; counting those entries
691/// made `univ_eq` strictly finer than semantic equality (3 of 3,253,373
692/// whole-Mathlib entries). `norm_level_le` already skips them (see the
693/// `continue` guard above); mirroring that here makes `univ_eq` the
694/// exact semantic quotient (canonicity §10.6 R5, option (b)).
695///
696/// `BTreeMap` iteration is key-ordered, so comparing the filtered

Callers 2

univ_eqFunction · 0.70
univ_geqFunction · 0.70

Calls 3

normalize_auxFunction · 0.85
subsumptionFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected