MCPcopy Create free account

hub / github.com/argumentcomputer/ix / functions

Functions3,453 in github.com/argumentcomputer/ix

↓ 5 callersFunctionctx_to_all
Convert a MutCtx to a Vec<Name> ordered by index. Position i contains the name with Nat value i.
crates/compile/src/mutual.rs:118
↓ 5 callersMethoddecode
Decode a Lean Ixon.SerializeError to a Rust SerializeError.
crates/ffi/src/compile.rs:1210
↓ 5 callersFunctiondecode_block
(ctor: LeanCtor<LeanBorrowed<'_>>)
crates/ffi/src/aiur/toplevel.rs:240
↓ 5 callersFunctiondecode_fri_parameters
( obj: &LeanAiurFriParameters<impl LeanRef>, )
crates/ffi/src/aiur/protocol.rs:723
↓ 5 callersFunctiondecode_toplevel
( obj: &LeanAiurToplevel<impl LeanRef>, )
crates/ffi/src/aiur/toplevel.rs:266
↓ 5 callersFunctiondecompile_level_names_from_meta
Extract level param names from ConstantMeta.
crates/compile/src/decompile.rs:1254
↓ 5 callersFunctiondecompile_name_from_meta
Decompile a name from ConstantMeta.
crates/compile/src/decompile.rs:1241
↓ 5 callersFunctiondefn_alpha_eq_with_perm
Compare a generated definition / theorem / opaque against its orig counterpart with permutation awareness. Handles the types/values produced by `aux_
crates/compile/src/congruence/perm.rs:935
↓ 5 callersFunctiondefn_constant
()
crates/ixon/src/lazy.rs:261
↓ 5 callersFunctionenv_var_os
(name: &str)
crates/kernel/src/lib.rs:25
↓ 5 callersMethodfind
Find root with path halving (every other node → grandparent).
crates/kernel/src/equiv.rs:66
↓ 5 callersFunctionfind_diff
( a: &ix_common::env::Expr, b: &ix_common::env::Expr, path: &str, )
crates/ffi/src/kernel.rs:3251
↓ 5 callersFunctiongenerate_aux_patches
Generate all canonical auxiliary patches for a collapsed inductive block. Called from `compile_mutual` after `sort_consts` determines the canonical c
crates/compile/src/compile/aux_gen.rs:188
↓ 5 callersFunctiongenerate_brecon_constants
Generate all `.brecOn` (and `.brecOn.go` for Type-level) constants. Called after Phase 2 (`.below` generation). Uses the canonical recursors from Pha
crates/compile/src/compile/aux_gen/brecon.rs:62
↓ 5 callersFunctiongenerate_canonical_recursors_with_overlay
( sorted_classes: &[Vec<Name>], lean_env: &LeanEnv, overlay: Option<&LeanEnv>, pre_flat: Option<Vec<su
crates/compile/src/compile/aux_gen/recursor.rs:435
↓ 5 callersFunctionget_address_raw
Deserialize a raw 32-byte address.
crates/ixon/src/metadata.rs:533
↓ 5 callersMethodget_block_selector
Compute this block's selector as the sum of its immediate children's selectors. For leaf blocks (Return/Yield) this is the single selector variable. F
crates/aiur/src/constraints.rs:174
↓ 5 callersFunctionget_constant_info_references
(constant_info: &ConstantInfo)
crates/compile/src/graph.rs:100
↓ 5 callersMethodget_index
(&self, i: usize)
crates/aiur/src/querymap.rs:145
↓ 5 callersFunctionget_level_offset
Strip all outermost Succ wrappers. Matches Lean's `Level.getLevelOffset`.
crates/compile/src/compile/aux_gen/below.rs:1360
↓ 5 callersMethodget_level_params
Returns the universe level parameter names of this constant.
crates/common/src/env.rs:1437
↓ 5 callersMethodget_name
Returns the name of this constant.
crates/common/src/env.rs:1399
↓ 5 callersFunctionhead_const_id
Extract head constant KId from expression or app spine.
crates/kernel/src/def_eq.rs:1643
↓ 5 callersMethodinfo
(&self)
crates/kernel/src/expr.rs:88
↓ 5 callersFunctioningress_type_stub
( name: &Name, typ: &LeanExpr, level_params: &[Name], stt: &crate::compile::CompileState, kctx: &mut
crates/compile/src/compile/aux_gen/recursor.rs:2650
↓ 5 callersMethodinsert
Append a new entry. The key must not already be present: call sites only insert on a confirmed miss, and a same-key re-entrant call would loop forever
crates/aiur/src/querymap.rs:114
↓ 5 callersFunctioninstantiate_spec_with_fvars
Convert spec_params from BVar form to FVar form. Spec_params use BVars relative to the param context: BVar(0) is the last (innermost) param, BVar(n_p
crates/compile/src/compile/aux_gen/expr_utils.rs:786
↓ 5 callersMethodinto_vecs
(self)
crates/compile/src/kernel_egress.rs:421
↓ 5 callersFunctionis_aux_gen_suffix
Check whether a constant name has an aux_gen suffix that should be regenerated rather than decompiled from Ixon. Used by both the decompile-time "ski
crates/compile/src/decompile.rs:1918
↓ 5 callersFunctionleaf_hash
(addr: &Address)
crates/ixon/src/merkle.rs:50
↓ 5 callersFunctionlean_all_ids
(all: &[Name], n2a: &DashMap<Name, Address>)
crates/kernel/src/ingress.rs:2754
↓ 5 callersFunctionlean_block_id
( self_name: &Name, all: Option<&Vec<Name>>, n2a: &DashMap<Name, Address>, )
crates/kernel/src/ingress.rs:2743
↓ 5 callersMethodlog
(&self, line: &str)
crates/ffi/src/kernel.rs:2722
↓ 5 callersMethodlookups
(&self)
crates/aiur/src/gadgets/bytes2.rs:194
↓ 5 callersMethodmap_name
Apply `const_map` to an orig-side const name; returns the original name if no mapping exists.
crates/compile/src/congruence/perm.rs:251
↓ 5 callersFunctionmap_of
(pairs: &[(&Name, &[Name])])
crates/compile/src/condense.rs:134
↓ 5 callersFunctionmerkle_join
(left: &Address, right: &Address)
crates/ixon/src/merkle.rs:121
↓ 5 callersFunctionmk_id
(s: &str)
crates/kernel/src/env.rs:640
↓ 5 callersFunctionmk_name
(s: &str)
crates/kernel/src/mode.rs:320
↓ 5 callersFunctionn
(s: &str)
crates/compile/src/mutual.rs:199
↓ 5 callersFunctionn
(s: &str)
crates/compile/src/compile/surgery.rs:1121
↓ 5 callersMethodnext_u64
(&mut self)
crates/kernel/src/level.rs:1033
↓ 5 callersFunctionnormalize_aux
Recursively flatten a level into canonical form, accumulating into `acc`. `path` tracks the imax-conditioning chain, `k` is the accumulated succ offse
crates/kernel/src/level.rs:367
↓ 5 callersMethodoffset
Peel the outermost constant offset: returns `(base, n)` where `self = Succ^n(base)` and `base` is not `Succ`.
crates/kernel/src/level.rs:116
↓ 5 callersMethodpartition_with_tree
Like [`Self::partition`], but also returns the **bisection tree** — the binary tree of min-cut splits whose leaves are the shard ids. Reusing this as
crates/kernel/src/shard.rs:231
↓ 5 callersMethodproducers
Producer block ids unfolded by consumer block `c` (sorted, deduped, no self-edges).
crates/kernel/src/profile.rs:178
↓ 5 callersFunctionprop_inductive_env
(ind_name: &str, ctors: &[&str])
crates/compile/src/compile/aux_gen/cases_on.rs:392
↓ 5 callersFunctionput_address_raw
Serialize a raw 32-byte address (for blob addresses not in the name index).
crates/ixon/src/metadata.rs:528
↓ 5 callersFunctionput_bytes
(bytes: &[u8], buf: &mut Vec<u8>)
crates/ixon/src/serialize.rs:71
↓ 5 callersMethodraw_bytes
Raw serialized bytes (the Tag4 constant body, no length prefix).
crates/ixon/src/lazy.rs:219
↓ 5 callersFunctionread_string
Read a string from the blob store.
crates/compile/src/decompile.rs:154
↓ 5 callersMethodrecord_constant_fuel_used
Record the fuel actually consumed by a single constant check. Updates both the running max and the cumulative total. No-op when disabled.
crates/kernel/src/perf.rs:192
↓ 5 callersFunctionreplace_const_names
( expr: &LeanExpr, map: &std::collections::HashMap<Name, Name>, )
crates/compile/src/compile/aux_gen/expr_utils.rs:1600
↓ 5 callersFunctionresolve_all
Resolve a list of **Lean-name-hash** addresses to `KId<M>` pairs whose `addr` is the **projection-content address** under which the corresponding KCon
crates/kernel/src/ingress.rs:370
↓ 5 callersFunctionresolver_with
(entries: &[(Name, Address)])
crates/kernel/src/congruence.rs:403
↓ 5 callersFunctionsample
()
crates/kernel/src/profile.rs:516
↓ 5 callersMethodsort
(univ_idx: u64)
crates/ixon/src/expr.rs:58
↓ 5 callersFunctionsort1
()
crates/kernel/src/infer.rs:632
↓ 5 callersMethodsource_to_canonical_pos
Translate a source-layout scope position to its canonical-layout counterpart for an abstract section = "params + motives + minors". Returns `None` if
crates/compile/src/congruence/perm.rs:299
↓ 5 callersFunctiontimed_drop_dashmap_par
(map: DashMap<K, V, S>)
crates/kernel/src/ingress.rs:3483
↓ 5 callersMethodu32
(&mut self)
crates/kernel/src/profile.rs:342
↓ 5 callersFunctionuimax
(a: MU, b: MU)
crates/kernel/src/testing.rs:118
↓ 4 callersFunctionanon_defn_proj_addr
Deterministic DPrj content address for member `idx` of `block`.
crates/kernel/src/ingress.rs:4188
↓ 4 callersFunctionanon_indc_proj_addr
Deterministic IPrj content address for member `idx` of `block`. Thin re-export of `ixon::constant::indc_proj_address` — the canonical projection-addr
crates/kernel/src/ingress.rs:4183
↓ 4 callersFunctionanon_recr_proj_addr
Deterministic RPrj content address for member `idx` of `block`.
crates/kernel/src/ingress.rs:4193
↓ 4 callersFunctionbatch_abstract
Single-pass FVar→BVar abstraction for an entire binder telescope. Replaces all FVars (identified by `fvar_map`) with the correct BVar indices in one
crates/compile/src/compile/aux_gen/expr_utils.rs:518
↓ 4 callersFunctionbiguint_to_klimbs_u64
Convert a `BigUint` to LE-u64 limbs. The output is non-padded (trailing limbs that would all be zero are omitted), matching `klimbs_normalize`'s canon
crates/aiur/src/execute.rs:908
↓ 4 callersFunctionbuild_klimbs_u64
Build a `List<U64>` chain in `memory[10]` from `limbs` (head-first order) and return the head pointer. Each entry is inserted with multiplicity 0 (unc
crates/aiur/src/execute.rs:931
↓ 4 callersFunctionbuild_option_result
Build one `Option CheckError` object from a Rust check result. - `Ok(())` → `none` - `Err((Kernel, msg))` → `some (CheckError.kernelExc
crates/ffi/src/kernel.rs:2962
↓ 4 callersFunctionbuild_sharing_vec
Rewrite expressions to use Share(idx) references for shared subterms. Returns the rewritten expressions and the sharing vector.
crates/ixon/src/sharing.rs:632
↓ 4 callersFunctionbuild_uniform_error
Build a result array of length `count` where every slot is the same compile-kind error. Used when compile/ingress/thread setup fails before per-consta
crates/ffi/src/kernel.rs:3016
↓ 4 callersFunctioncheck_decompile
Check that decompiled environment matches the original. Counts and logs hash mismatches (which indicate metadata loss or decompilation errors).
crates/compile/src/decompile.rs:4535
↓ 4 callersMethodcheck_inductive_member
Validate an inductive type and its constructors.
crates/kernel/src/inductive.rs:148
↓ 4 callersFunctioncheck_nat_usize_eq
( n: &Nat, expected: usize, what: &str, )
crates/compile/src/congruence/perm.rs:1776
↓ 4 callersMethodcheck_recursor_member
Validate a recursor by comparing with generated canonical form.
crates/kernel/src/inductive.rs:4069
↓ 4 callersMethodclear_ephemeral
Rewind over the currently-buffered ephemeral label (if any) so the next write lands in column 0 of the topmost affected row.
crates/ffi/src/kernel.rs:2857
↓ 4 callersMethodclear_releasing_memory
Clear worker-local state and drop backing allocations. `clear()` preserves `HashMap` capacity, which is useful for reuse but problematic for full-env
crates/kernel/src/env.rs:577
↓ 4 callersFunctioncompile_const_inner
( name: &Name, all: &NameSet, lean_env: &Arc<LeanEnv>, cache: &mut BlockCache, stt: &CompileState,
crates/compile/src/compile.rs:3189
↓ 4 callersFunctioncompile_definition
Compile a Definition. Arena persists across type + value within a constant.
crates/compile/src/compile.rs:1965
↓ 4 callersFunctioncompile_mutual_block
Compile a mutual block with block-level sharing. Returns the Constant, its content-addressed hash, and size statistics.
crates/compile/src/compile.rs:2333
↓ 4 callersFunctioncompile_recursor
Compile a Recursor. Arena grows across type and all rule RHS expressions.
crates/compile/src/compile.rs:2036
↓ 4 callersMethodcomponents
Decompose this name into its components (from root to leaf).
crates/common/src/env.rs:183
↓ 4 callersFunctioncompute_effective_sizes
Compute effective sizes for all subterms in topological order. Returns a map from hash to effective size (total serialized bytes).
crates/ixon/src/sharing.rs:392
↓ 4 callersMethodcoordinated_block_if_kind
( &mut self, block: &KId<M>, expected: CheckBlockKind, )
crates/kernel/src/check.rs:286
↓ 4 callersFunctiondecode_io_buffer
( io_data_arr: &LeanArray<LeanBorrowed<'_>>, io_map_arr: &LeanArray<LeanBorrowed<'_>>, )
crates/ffi/src/aiur/protocol.rs:670
↓ 4 callersFunctiondecompile_definition
Decompile a Definition.
crates/compile/src/decompile.rs:1282
↓ 4 callersFunctiondecompile_recursor
Decompile a Recursor. Arena covers type + all rule RHS expressions with rule_roots.
crates/compile/src/decompile.rs:1354
↓ 4 callersFunctiondecompile_univ_indices
Helper: decompile universe indices to Lean levels.
crates/compile/src/decompile.rs:1155
↓ 4 callersMethoddef_rank_id
Reducibility rank by id. Higher rank = unfold first. Returns a `(class, height)` tuple compared lexicographically, so that `Abbrev` strictly dominate
crates/kernel/src/def_eq.rs:1327
↓ 4 callersFunctiondef_safety
Map an `is_unsafe` flag to a `DefinitionSafety`. The decompile side uses this to stay in lock-step with `ix::compile::mutual::def_safety`; if we ever
crates/compile/src/decompile.rs:2009
↓ 4 callersFunctiondef_safety
Map an `is_unsafe` flag to a `DefinitionSafety`. Isolated here so every aux-constant emission site picks up the same rule; if we ever need to distingu
crates/compile/src/compile/mutual.rs:1031
↓ 4 callersFunctiondefn_meta
(name: &str)
crates/compile/src/kernel_egress.rs:1465
↓ 4 callersFunctiondeser_u8
(buf: &mut &[u8])
crates/ixon/src/metadata.rs:368
↓ 4 callersMethoddump_proj_trace
( &self, id: &KId<M>, field: u64, wval: &KExpr<M>, ctor_params: Option<usize>, result:
crates/kernel/src/whnf.rs:159
↓ 4 callersFunctionenv_usize
(var: &str, default: usize)
crates/ffi/src/kernel.rs:2108
↓ 4 callersFunctioneq_inductive_env
Build environment with Bool + Eq as full inductives (not just axioms). Eq.{u} : {α : Sort u} → α → α → Prop (indexed, 2 params, 1 index) Eq.refl.{u} :
crates/kernel/src/tutorial/defeq.rs:849
↓ 4 callersFunctionexpand_nested_block
Build an expanded block by replacing nested inductive occurrences with auxiliary types that share the block's parameters and universe levels. Matches
crates/compile/src/compile/aux_gen/nested.rs:427
↓ 4 callersFunctionexpr_has_loose_bvar
Check if BVar(`target`) appears anywhere in `e`.
crates/compile/src/compile/aux_gen/recursor.rs:2288
↓ 4 callersMethodflush
Clear any trailing ephemeral output so subsequent prints start on a fresh line. Safe to call when nothing is buffered.
crates/ffi/src/kernel.rs:2849
↓ 4 callersFunctiongen_distinct_addrs
Small helper: distinct random addresses.
crates/ixon/src/merkle.rs:378
← previousnext →501–600 of 3,453, ranked by callers