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

Function check_nat_rec

crates/kernel/src/inductive.rs:4865–4870  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4863 // Signature-based match for aux recursors.
4864 //
4865 // Nested auxiliaries can contain several recursors with the same external
4866 // major head (for example multiple `List` auxes with different element
4867 // types). Matching only by `ind_addr` picks the first such recursor.
4868 // Matching primarily by the stored recursor's block position is also too
4869 // brittle: the compiled recursor block is sorted as recursor constants,
4870 // while generation is ordered by the flat inductive layout. Select by the
4871 // extracted major premise domain first, then keep the old positional and
4872 // address lookups as fixture fallbacks.
4873 let stored_pos: Option<usize> = self

Callers

nothing calls this directly

Calls 3

check_constMethod · 0.80
nat_envFunction · 0.70
mk_idFunction · 0.70

Tested by

no test coverage detected