MCPcopy Create free account

hub / github.com/argumentcomputer/ix / functions

Functions3,453 in github.com/argumentcomputer/ix

↓ 3 callersFunctioncanonical_pair
Canonical ordering for cache keys: (min, max) by hash bytes.
crates/kernel/src/def_eq.rs:1638
↓ 3 callersMethodcheck_inductive_block
Validate every inductive and constructor in an inductive block.
crates/kernel/src/inductive.rs:98
↓ 3 callersMethodcheck_param_agreement
A1: Check that the first `n_params` forall domains of ind_ty and ctor_ty agree.
crates/kernel/src/inductive.rs:1661
↓ 3 callersFunctioncollect_binders
Collect the first `n` forall binders from an expression.
crates/compile/src/compile/aux_gen/recursor.rs:894
↓ 3 callersFunctioncollect_const_addrs
( e: &Expr, stt: &ix_compile::compile::CompileState, out: &mut FxHashMap<Name, ix_common::address:
crates/ffi/src/lean_env.rs:196
↓ 3 callersMethodcollect_constraints
(&self, sel: Expr, state: &mut ConstraintState)
crates/aiur/src/constraints.rs:157
↓ 3 callersFunctioncompile_aux_block
Compile a set of aux_gen-produced constants into an Ixon mutual block. This is the aux_gen analogue of `compile_mutual` in the parent module: it sort
crates/compile/src/compile/mutual.rs:60
↓ 3 callersFunctioncompile_inductive
Compile an Inductive. The inductive type gets its own arena. Each constructor gets its own arena via compile_constructor. No CtorMeta duplication — Co
crates/compile/src/compile.rs:2163
↓ 3 callersFunctioncompile_single_def
Helper: compile a single definition/theorem/opaque (non-mutual case). When `aux` is false (ephemeral compilation for metadata capture), skip storing t
crates/compile/src/compile.rs:3228
↓ 3 callersFunctioncompute_nat_bin
Compute a binary nat operation. Returns `None` if the operation can't be computed (e.g., exponent too large) — caller leaves the expression unreduced.
crates/kernel/src/whnf.rs:2905
↓ 3 callersFunctionctor_proj_constant
Canonical `CPrj` `Constant` for ctor `(idx, cidx)` of `block`.
crates/ixon/src/constant.rs:306
↓ 3 callersMethodctors
Returns the constructors if this is an inductive, or an empty vec otherwise.
crates/compile/src/mutual.rs:150
↓ 3 callersMethoddecode
Decode Ixon.DefKind (simple enum, raw unboxed tag value).
crates/ffi/src/lean_ixon/enums.rs:30
↓ 3 callersFunctiondecode_assoc_list_nat_nat
Decode a Lean AssocList Nat Nat to Vec of pairs AssocList: nil (tag 0) | cons key value tail (tag 1, 3 fields)
crates/ffi/src/primitives.rs:180
↓ 3 callersFunctiondecode_source_info
(obj: LeanBorrowed<'_>)
crates/ffi/src/lean_env.rs:676
↓ 3 callersFunctiondecode_substring
(obj: LeanBorrowed<'_>)
crates/ffi/src/lean_env.rs:668
↓ 3 callersFunctiondecoded_to_ixon_env
Reconstruct a Rust IxonEnv from a DecodedRawEnv.
crates/ffi/src/lean_ixon/env.rs:316
↓ 3 callersFunctiondecompile_projection
( name: &Name, named: &Named, cnst: &Constant, mutuals: &[MutConst], block_sharing: &[Arc<Expr>],
crates/compile/src/decompile.rs:1665
↓ 3 callersFunctiondecompose_app_spine
Decompose a left-associative App spine into `(head, args)`. Arguments are returned in application order (outermost-left-first). This is the same conve
crates/compile/src/congruence/perm.rs:1765
↓ 3 callersMethoddef_eq_ctx_key
(&mut self, a: &KExpr<M>, b: &KExpr<M>)
crates/kernel/src/tc.rs:381
↓ 3 callersFunctiondefn_const_discriminator
(refs: Vec<Address>, lvls: u64)
crates/ixon/src/serialize.rs:2426
↓ 3 callersFunctiondefn_proj_constant
Canonical `DPrj` `Constant` for member `idx` of `block`. Use this (rather than ad-hoc `Constant::new(ConstantInfo::DPrj { ... })`) so all callers shar
crates/ixon/src/constant.rs:291
↓ 3 callersFunctiondeser_source_info
( buf: &mut &[u8], ixon_env: &super::env::Env, )
crates/ixon/src/metadata.rs:409
↓ 3 callersFunctiondeser_substring
( buf: &mut &[u8], ixon_env: &super::env::Env, )
crates/ixon/src/metadata.rs:398
↓ 3 callersFunctiondeserialize_source_info
Deserialize SourceInfo from bytes.
crates/compile/src/decompile.rs:261
↓ 3 callersFunctiondeserialize_substring
Deserialize a Substring from bytes.
crates/compile/src/decompile.rs:249
↓ 3 callersMethoddump_def_eq_max
( &self, kind: &str, a: &KExpr<M>, b: &KExpr<M>, wa: Option<&KExpr<M>>, wb: Option<&KE
crates/kernel/src/def_eq.rs:1667
↓ 3 callersMethoddump_proj_delta_trace
( &self, phase: &str, id: &KId<M>, field: u64, a: &KExpr<M>, b: &KExpr<M>, )
crates/kernel/src/def_eq.rs:1503
↓ 3 callersMethoddump_whnf_fuel
( &self, phase: &str, original: &KExpr<M>, current: &KExpr<M>, )
crates/kernel/src/whnf.rs:113
↓ 3 callersFunctionempty_ctx_addr
Content-addressed context identity for the empty context (no bindings).
crates/kernel/src/tc.rs:32
↓ 3 callersMethodencode_head
(&self)
crates/ixon/src/tag.rs:64
↓ 3 callersMethodensure_forall
WHNF, then ensure it's a forall (All). Returns (domain, codomain).
crates/kernel/src/tc.rs:656
↓ 3 callersFunctionensure_full_in_kenv_of
Like [`ensure_in_kenv_of`], but upgrades an existing type-only `Axio` stub into the real constant. This is required before WHNF paths that must unfold
crates/compile/src/compile/aux_gen/expr_utils.rs:2178
↓ 3 callersFunctionenv_merkle_root
Canonical merkle root over the env's `consts.keys()`. Also called from the env serializer. Returns `None` for an empty const set.
crates/kernel/src/claim.rs:23
↓ 3 callersFunctionenv_with_fun
Env with `A : Type 0`, `B : Type 0`, `f : A → B`.
crates/kernel/src/def_eq.rs:2195
↓ 3 callersFunctionenv_with_prop_and_type_axioms
Env with `P : Prop`, `p1 p2 : P`, `T : Type`, `a1 a2 : T`.
crates/kernel/src/def_eq.rs:2019
↓ 3 callersFunctionexpr_contains_fvar
Whether an expression contains a free variable with the given name.
crates/compile/src/compile/aux_gen/brecon.rs:2068
↓ 3 callersFunctionexpr_mentions_any_name
Check if any `Const` or `Proj` name in `expr` is in `names`. Uses an explicit stack to avoid recursion. Analogous to the kernel's `expr_mentions_any_
crates/compile/src/compile/aux_gen/nested.rs:1558
↓ 3 callersFunctionfind_missing_deps
Core of the closure check, factored out for testing: given parsed inputs and the store, return `(missing, checked, axioms)` where `missing` is the lis
zisk/host/src/main.rs:580
↓ 3 callersMethodfinish_app_result
( &mut self, mut result: KExpr<M>, args: &[KExpr<M>], consumed: usize, )
crates/kernel/src/whnf.rs:2646
↓ 3 callersMethodfinish_constant_accounting
(&mut self)
crates/kernel/src/tc.rs:893
↓ 3 callersFunctionfirst_source_for_canonical
( aux_perm: &[usize], canonical_i: usize, )
crates/compile/src/congruence/perm.rs:1734
↓ 3 callersFunctiongen_constant
(g: &mut Gen)
crates/ixon/src/constant.rs:448
↓ 3 callersFunctiongen_definition
(g: &mut Gen)
crates/ixon/src/constant.rs:342
↓ 3 callersFunctiongenerate_canonical_recursors_with_layout
Like [`generate_canonical_recursors_with_overlay`] but accepts an optional [`ixon::env::AuxLayout`] that reorders the aux section of the flat block pe
crates/compile/src/compile/aux_gen/recursor.rs:462
↓ 3 callersFunctionget_arena_and_type_root
Extract arena and type_root from ConstantMeta.
crates/compile/src/decompile.rs:1206
↓ 3 callersMethodget_blob
Get a blob by address (needed by anon ingress for string/nat literals embedded in expressions).
crates/kernel/src/anon_env.rs:65
↓ 3 callersMethodget_index_of
(&self, key: &[G])
crates/aiur/src/querymap.rs:91
↓ 3 callersFunctionget_univ
Deserialize a universe from bytes (iterative to avoid stack overflow).
crates/ixon/src/univ.rs:102
↓ 3 callersMethodhash_eq
Structural equality by Merkle hash (pointer-first fast path).
crates/kernel/src/level.rs:85
↓ 3 callersMethodhash_eq
Content-addressed equality with a layered fast path. 1. `ptr_eq` on the outer `KExpr` Arc — fires when both sides came through the [`InternTable`](su
crates/kernel/src/expr.rs:162
↓ 3 callersFunctionhash_g_slice
(key: &[G])
crates/aiur/src/querymap.rs:19
↓ 3 callersFunctionhash_source_info
(si: &SourceInfo, hasher: &mut blake3::Hasher)
crates/common/src/env.rs:622
↓ 3 callersFunctionhash_substring
(ss: &Substring, hasher: &mut blake3::Hasher)
crates/common/src/env.rs:604
↓ 3 callersFunctionindc_proj_constant
Canonical `IPrj` `Constant` for member `idx` of `block`.
crates/ixon/src/constant.rs:296
↓ 3 callersFunctioningress_muts_block
( entry_name: &Name, entry_addr: &Address, all: &[Vec<Address>], ixon_env: &IxonEnv, names: &FxHashM
crates/kernel/src/ingress.rs:1956
↓ 3 callersFunctioningress_standalone
( const_name: &Name, addr: &Address, constant: &Constant, meta: &ConstantMeta, ixon_env: &IxonEnv,
crates/kernel/src/ingress.rs:1629
↓ 3 callersFunctioninsert_muts_entries
( zenv: &mut KEnv<M>, entries: Vec<(KId<M>, KConst<M>)>, )
crates/kernel/src/ingress.rs:3620
↓ 3 callersFunctioninsert_standalone_entries
( zenv: &mut KEnv<M>, entries: Vec<(KId<M>, KConst<M>)>, )
crates/kernel/src/ingress.rs:3588
↓ 3 callersMethodintern_univ
Intern a universe through the mutable intern environment.
crates/kernel/src/tc.rs:975
↓ 3 callersMethodis_expected
(&self)
crates/ffi/src/kernel.rs:2248
↓ 3 callersMethodis_let_var
Whether a de-Bruijn variable points at a let-bound local.
crates/kernel/src/tc.rs:501
↓ 3 callersMethodis_nat_bin_arith_addr
(&self, addr: &Address)
crates/kernel/src/whnf.rs:1975
↓ 3 callersMethodis_slow
(&self, slow_threshold: Duration)
crates/ffi/src/kernel.rs:2252
↓ 3 callersFunctionis_subset
(xs: &[u64], ys: &[u64])
crates/kernel/src/level.rs:535
↓ 3 callersMethodis_transient_nat_literal_work
Nat literal iota can create a long chain of distinct predecessor terms. These terms are useful only while the current WHNF is executing; keeping each
crates/kernel/src/whnf.rs:1070
↓ 3 callersFunctionixon_content_address
Compute the content-address (blake3 hash of serialized bytes) of a Constant.
crates/compile/src/decompile.rs:2389
↓ 3 callersMethodkey_at
(&self, i: usize)
crates/aiur/src/querymap.rs:82
↓ 3 callersFunctionkuniv_to_level
Convert a `KUniv<Meta>` back to a `Level`, using `param_names` to recover `Param` names from de Bruijn indices. Uses raw `Level::succ` / `Level::max`
crates/compile/src/compile/aux_gen/below.rs:1689
↓ 3 callersFunctionlean_axio
( name: &str, lvls: Vec<Name>, typ: env::Expr, )
crates/kernel/src/congruence.rs:695
↓ 3 callersFunctionlean_egress
Convert the entire zero kernel environment to a Lean environment.
crates/compile/src/kernel_egress.rs:299
↓ 3 callersFunctionlean_telescope
Extract the source-order `(head, args)` telescope from a Lean App spine. Used by tests to assert the reconstructed spine matches expectations.
crates/compile/src/decompile.rs:4675
↓ 3 callersFunctionlevel_max
Normalizing `max` for universe levels, matching Lean's `mkLevelMaxCore` / `mkLevelMax'` (`refs/lean4/src/Lean/Level.lean:516-534`). Applies cheap sim
crates/compile/src/compile/aux_gen/below.rs:1391
↓ 3 callersMethodlookup_var
Look up a bound variable's type, lifted to the current depth.
crates/kernel/src/tc.rs:627
↓ 3 callersFunctionmatch_vertices
Heavy-edge matching pass: pair each still-unmatched vertex (visited in id order) with the unmatched neighbor it co-occurs with in the heaviest small n
crates/kernel/src/shard.rs:1053
↓ 3 callersFunctionmerge
Merge two sorted sequences of mutual constants into one sorted sequence.
crates/compile/src/compile.rs:2877
↓ 3 callersMethodmerge
(mut self, other: &Self)
crates/kernel/src/ingress.rs:175
↓ 3 callersMethodmerkle_proof
Produce a merkle membership path for `target`. Returns `None` if `target` is not a `Leaf` in the tree. Empty path for a single-leaf tree. Path is in
crates/ixon/src/assumption_tree.rs:148
↓ 3 callersFunctionmk_addr
(s: &str)
crates/compile/src/kernel_egress.rs:1279
↓ 3 callersFunctionmk_addr
(s: &str)
crates/kernel/src/constant.rs:163
↓ 3 callersFunctionmk_constant_val
(name: &str)
crates/compile/src/mutual.rs:207
↓ 3 callersFunctionmk_eq
Build `@Eq.{u} α a b`.
crates/compile/src/compile/aux_gen/brecon.rs:1285
↓ 3 callersMethodmk_ind_univs
Create shifted universe param args for an inductive in a recursor context. For large eliminators (offset=1): [Param(1), ..., Param(n)]. For small elim
crates/kernel/src/inductive.rs:3210
↓ 3 callersFunctionmk_indc
Create Inductive from InductiveVal and Env.
crates/compile/src/compile.rs:2355
↓ 3 callersFunctionmk_simple_indc
Helper: build an inductive with no ctors, no recursor, just checking the type
crates/kernel/src/tutorial/inductive.rs:17
↓ 3 callersMethodn_canonical_aux
Number of canonical aux members (distinct `canonical_i` values in `aux_perm`, ignoring [`PERM_OUT_OF_SCC`]).
crates/compile/src/congruence/perm.rs:203
↓ 3 callersMethodn_source_aux
Number of source-walk aux members (= `source_aux_ctor_counts.len()`).
crates/compile/src/congruence/perm.rs:197
↓ 3 callersFunctionname_replace_prefix
Replace `old_prefix` in a Name with `new_prefix`. Example: `name_replace_prefix("A.B.mk", "A.B", "X.Y")` → `"X.Y.mk"`
crates/compile/src/compile/aux_gen/nested.rs:1407
↓ 3 callersFunctionnested_tree_env
Build env with a nested inductive: Tree with a field `List Tree`. Tree : Sort 1 Tree.leaf : Tree Tree.node : List Tree → Tree This should create a fla
crates/kernel/src/inductive.rs:5071
↓ 3 callersFunctionnorm_add_node
Insert `(idx, k)` into the var list at `path`, taking the max of offsets when `idx` is already present. Mirrors Lean4Lean's `NormLevel.addNode v k pat
crates/kernel/src/level.rs:341
↓ 3 callersFunctionnorm_add_var
(s: &mut NormLevel, idx: u64, k: u64, path: &[u64])
crates/kernel/src/level.rs:329
↓ 3 callersFunctionordered_insert
Insert into a sorted list, returning `None` if already present.
crates/kernel/src/level.rs:354
↓ 3 callersMethodout_at
(&self, i: usize)
crates/aiur/src/querymap.rs:87
↓ 3 callersFunctionpack_bools
Pack up to 8 bools into a u8.
crates/ixon/src/serialize.rs:110
↓ 3 callersFunctionparam
(n: u64)
crates/kernel/src/whnf.rs:3512
↓ 3 callersFunctionpeano_env
Build a Church-numeral Peano env: PN := ∀ α, (α → α) → α → α PN.zero : PN := fun α s z => z PN.succ : PN → PN := fun n α s z => s (n α s z)
crates/kernel/src/tutorial/reduction.rs:21
↓ 3 callersMethodpeel_succ
Peel a chain of `Succ` constructors. Returns `(base, n)` where `level == Succ^n(base)` and `base` is not a `Succ`.
crates/common/src/env.rs:407
↓ 3 callersMethodpersist
Print a persistent line that is NOT preceded by a `start`, e.g. the not-found / ungrounded branches where we don't call `check_const`.
crates/ffi/src/kernel.rs:2840
↓ 3 callersFunctionpoison_recursor_rule_payload
( rec: &mut ixon::constant::Recursor, )
crates/ffi/src/kernel.rs:529
↓ 3 callersFunctionpopulate_canon_kenv_with_below
Populate `stt.canon_kenv` with canonical `.below` types and their dependencies (parent inductives, constructors, PUnit, PProd). The canonical `.below
crates/compile/src/compile/aux_gen.rs:917
← previousnext →701–800 of 3,453, ranked by callers