MCPcopy Create free account

hub / github.com/argumentcomputer/ix / functions

Functions3,453 in github.com/argumentcomputer/ix

↓ 39 callersFunctionn
(s: &str)
crates/compile/src/graph.rs:183
↓ 38 callersFunctionnew_tc
()
crates/kernel/src/tc.rs:1173
↓ 37 callersMethodcompare
(self, other: Self)
crates/common/src/strong_ordering.rs:20
↓ 37 callersFunctiondecode_name
Name decoding with global cache
crates/ffi/src/lean_env.rs:597
↓ 37 callersMethodput
(&self, buf: &mut Vec<u8>)
crates/ixon/src/serialize.rs:519
↓ 37 callersMethodresolve_addr
Look up a compiled constant's address (with `aux_name_to_addr` fallback).
crates/compile/src/compile.rs:263
↓ 36 callersMethodhash_key
Content-addressed key for cache lookups. Returns the blake3 hash by value — `Addr` is `Copy`, so this is a 32-byte memcpy.
crates/kernel/src/expr.rs:143
↓ 36 callersMethodname
Returns the name of this mutual constant.
crates/compile/src/mutual.rs:141
↓ 36 callersFunctionsort0
()
crates/kernel/src/whnf.rs:3088
↓ 35 callersMethodlbr
(&self)
crates/kernel/src/expr.rs:122
↓ 35 callersMethodmax
Largest single cache size. Cheap proxy for "how big did this block get" without summing. (Sum is misleading because the same content hash can appear i
crates/kernel/src/env.rs:176
↓ 35 callersFunctionmk_id
(s: &str)
crates/kernel/src/check.rs:936
↓ 34 callersMethodaddr
(&self)
crates/kernel/src/expr.rs:118
↓ 34 callersMethodblock
The entry for block id `i`.
crates/kernel/src/profile.rs:172
↓ 34 callersMethodlen
(&self)
crates/aiur/src/querymap.rs:66
↓ 34 callersFunctionmk_name_for
(s: &str)
crates/compile/src/compile/aux_gen/expr_utils.rs:3274
↓ 34 callersFunctionn
(s: &str)
crates/compile/src/ground.rs:240
↓ 33 callersMethodalloc
Allocate a new node in the arena, returning its index.
crates/ixon/src/metadata.rs:97
↓ 33 callersFunctionget_address
(buf: &mut &[u8])
crates/ixon/src/serialize.rs:100
↓ 33 callersFunctionput_u8
(x: u8, buf: &mut Vec<u8>)
crates/ixon/src/metadata.rs:501
↓ 32 callersMethodclear
Clear all worker-local kernel state before checking another scheduled block or when a caller needs a fresh environment.
crates/kernel/src/env.rs:509
↓ 32 callersFunctionenv_var
(name: &str)
crates/kernel/src/lib.rs:12
↓ 32 callersFunctionnat_bin_op
Build `op a b` using the canonical primitive address for `op`.
crates/kernel/src/whnf.rs:4756
↓ 31 callersFunctionaddr
(seed: &[u8])
crates/ixon/src/assumption_tree.rs:263
↓ 31 callersFunctioncheck_rejects
(env: &mut KEnv<Meta>, id: &MId)
crates/kernel/src/testing.rs:237
↓ 31 callersFunctionempty_resolver
()
crates/kernel/src/congruence.rs:399
↓ 31 callersFunctionmk_forall
Build a forall chain by batch-abstracting all FVars in a single pass per sub-expression. `binders` is outermost-first. Each domain and the body are w
crates/compile/src/compile/aux_gen/expr_utils.rs:440
↓ 31 callersFunctionpi
(a: AE, b: AE)
crates/kernel/src/whnf.rs:3515
↓ 30 callersFunctionget_address
(buf: &mut &[u8])
crates/ixon/src/proof.rs:235
↓ 30 callersFunctionlet_
(ty: ME, val: ME, body: ME)
crates/kernel/src/testing.rs:100
↓ 30 callersFunctionmk_info
( addr: Addr, lbr: u64, count_0: u64, has_fvars: bool, mdata: M::MField<Vec<MData>>, )
crates/kernel/src/expr.rs:179
↓ 30 callersFunctionmk_lambda
Build a lambda chain by batch-abstracting all FVars in a single pass. Same semantics as `mk_forall` but produces `λ (x : T), body`.
crates/compile/src/compile/aux_gen/expr_utils.rs:447
↓ 30 callersMethodregister_name
(&self, name: Name, named: Named)
crates/ixon/src/env.rs:226
↓ 29 callersFunctiongen_range
(g: &mut Gen, range: Range<usize>)
crates/ixon/src/lib.rs:53
↓ 29 callersMethodpush_auxiliary
(&mut self, index: &mut ColumnIndex, t: G)
crates/aiur/src/trace.rs:53
↓ 29 callersFunctionput_expr
Serialize an expression to bytes (iterative to avoid stack overflow).
crates/ixon/src/serialize.rs:133
↓ 28 callersFunctionaddr
(seed: &[u8])
crates/ixon/src/merkle.rs:202
↓ 28 callersMethoddelta_edge
Record that `consumer` delta-unfolds the body of `producer`. Self-edges are ignored. Ensures both endpoints exist as blocks (with zeroed stats if not
crates/kernel/src/profile.rs:399
↓ 28 callersFunctionsort0
()
crates/kernel/src/canonical_check.rs:853
↓ 27 callersFunctionget_u64
(buf: &mut &[u8])
crates/ixon/src/metadata.rs:547
↓ 27 callersFunctionn
`Nat` from a u64 via the public `From<u64>` impl. (The `Nat` type itself is a private re-export in `env.rs`.)
crates/kernel/src/congruence.rs:381
↓ 27 callersFunctionput_u64
(x: u64, buf: &mut Vec<u8>)
crates/ixon/src/metadata.rs:543
↓ 26 callersFunctionlam
Helper: build `λ (_ : a), b`
crates/kernel/src/inductive.rs:4540
↓ 24 callersFunctioninstantiate_rev
Instantiate the outermost `n = fvars.len()` loose bound variables in `body` by the corresponding fvars, in reverse order (mirrors `Lean.Expr.instantia
crates/kernel/src/subst.rs:609
↓ 24 callersFunctionmk_name_for
(s: &str)
crates/compile/src/compile/aux_gen/nested.rs:2088
↓ 24 callersFunctionresolve_lean_name_addr
Resolve a Lean Name to an Address, using real Ixon address if available. Checks `name_to_ixon_addr` first (real compiled address), falls back to `Add
crates/kernel/src/ingress.rs:2151
↓ 24 callersFunctiontry_nat_to_usize
Convert a Lean `Nat` to `usize`, returning `CompileError` on overflow. Use in functions that return `Result<_, CompileError>`.
crates/compile/src/compile/nat_conv.rs:15
↓ 23 callersFunctionexpr_congruent
Check that a Lean-side Expr matches a zero Expr<Anon> structurally.
crates/kernel/src/congruence.rs:62
↓ 23 callersMethodfind
Look up a declaration by its [`FVarId`]. Returns `None` if the fvar is not bound in this context.
crates/kernel/src/lctx.rs:103
↓ 23 callersFunctiongen_opt_u64
(g: &mut Gen)
crates/ixon/src/proof.rs:1258
↓ 23 callersMethodmax
(a: Arc<Self>, b: Arc<Self>)
crates/ixon/src/univ.rs:39
↓ 23 callersFunctionmk_indc
( addr: &str, params: u64, indices: u64, ctors: Vec<KId<Anon>>, ty: AE, )
crates/kernel/src/canonical_check.rs:861
↓ 23 callersFunctionmk_thm
( name: &str, lvls: u64, level_params: Vec<Name>, ty: ME, val: ME, )
crates/kernel/src/testing.rs:156
↓ 23 callersFunctionresolve_name
(addr: &Address, names: &FxHashMap<Address, Name>)
crates/kernel/src/ingress.rs:328
↓ 23 callersFunctionu64_to_usize
(val: u64)
crates/kernel/src/error.rs:13
↓ 22 callersFunctionaddr
(byte: u8)
crates/kernel/src/profile.rs:512
↓ 22 callersFunctionassert_nat_lit
(e: &AE, expected: u64)
crates/kernel/src/whnf.rs:4765
↓ 22 callersFunctioncompile_env
Compile an entire Lean environment to Ixon format. Work-stealing compilation using crossbeam channels. Instead of processing blocks in waves (which u
crates/compile/src/compile/env.rs:100
↓ 22 callersFunctiondecompile_name
Look up a Name by its address.
crates/compile/src/decompile.rs:428
↓ 22 callersMethodencoded_size
Calculate the encoded size of this tag in bytes.
crates/ixon/src/tag.rs:101
↓ 22 callersFunctioneq_expr
Convenience: Eq.{u} α a b
crates/kernel/src/testing.rs:218
↓ 22 callersFunctionlift
Shift free de Bruijn indices ≥ `cutoff` up by `shift`. Used when substituting an argument into a deeper context. Like `subst`, memoizes by content ha
crates/kernel/src/subst.rs:341
↓ 22 callersMethodrecord_fail
(&mut self, msg: String)
crates/ffi/src/lean_env.rs:1662
↓ 22 callersFunctionsort1
()
crates/kernel/src/inductive.rs:4522
↓ 22 callersFunctionsubst
Perform single substitution: `body[arg/Var(depth)]`. Replaces `Var(depth)` with `arg` (lifted by `depth`), shifts free variables above `depth` down b
crates/kernel/src/subst.rs:45
↓ 22 callersFunctiontest_env
Env with: Nat (axiom), id (definition)
crates/kernel/src/infer.rs:637
↓ 22 callersMethodu32
(&mut self, v: u32)
crates/aiur/src/vk_codec.rs:65
↓ 21 callersFunctionbvar_at
(i: u64)
crates/compile/src/compile/aux_gen/expr_utils.rs:3286
↓ 21 callersFunctiondefn_const
(refs: Vec<Address>)
crates/kernel/src/claim.rs:113
↓ 21 callersFunctionmk_name
(s: &str)
crates/compile/src/kernel_egress.rs:1271
↓ 21 callersFunctionmk_name
(s: &str)
crates/kernel/src/congruence.rs:387
↓ 21 callersFunctionmk_name_for
(s: &str)
crates/compile/src/compile/aux_gen/cases_on.rs:376
↓ 21 callersFunctionsort0
()
crates/kernel/src/def_eq.rs:1768
↓ 20 callersFunctiondecompile_env
Decompile an Ixon environment back to Lean format. Single-pass parallel work-stealing scheduler. Computes SCCs over the name-level reference graph, t
crates/compile/src/decompile.rs:4263
↓ 20 callersMethodensure_sort
WHNF, then ensure it's a Sort. Returns the universe level.
crates/kernel/src/tc.rs:643
↓ 20 callersFunctioneq_refl_expr
Convenience: Eq.refl.{u} α a
crates/kernel/src/testing.rs:223
↓ 20 callersMethodhas_fvars
Whether any [`ExprData::FVar`] occurrence is reachable. Computed at construction time and propagated via OR through composite nodes, so the check is O
crates/kernel/src/expr.rs:133
↓ 20 callersMethodnext
(&mut self)
crates/ixon/src/map.rs:97
↓ 19 callersMethodget_level
Infer the sort level of a type expression in the current context. Uses a fast path matching Lean's `inferAppType` (InferType.lean:79-91): for fully-a
crates/compile/src/compile/aux_gen/expr_utils.rs:2404
↓ 19 callersMethodinstantiate_univ_params
Substitute universe parameters: replace `Param(i)` with `us[i]`. Returns `Err(UnivParamOutOfRange)` if any interior `Param(i)` has `i >= us.len()`. C
crates/kernel/src/tc.rs:678
↓ 19 callersFunctionn
(s: &str)
crates/compile/src/compile/aux_gen/recursor.rs:2754
↓ 19 callersFunctionnat_to_u64
Convert a Lean `Nat` to `u64`, panicking on overflow.
crates/compile/src/compile/nat_conv.rs:31
↓ 19 callersMethodnext_auxiliary
(&mut self)
crates/aiur/src/constraints.rs:90
↓ 19 callersFunctions
(l: Level)
crates/compile/src/congruence.rs:417
↓ 18 callersMethodall
Constructs a dependent function type (forall / Pi).
crates/common/src/env.rs:891
↓ 18 callersFunctionbump
(counter: &AtomicU64)
crates/kernel/src/perf.rs:87
↓ 18 callersMethodcmp
(x: &A, y: &A)
crates/common/src/strong_ordering.rs:30
↓ 18 callersFunctioncompile_expr
Compile a Lean expression to an Ixon expression. Builds arena-based metadata in cache.arena with bottom-up allocation.
crates/compile/src/compile.rs:619
↓ 18 callersFunctionn
(s: &str)
crates/compile/src/condense.rs:130
↓ 18 callersMethodpush_locals
Push additional locals (e.g. minor premise lambda binders). Must be balanced by a later `pop_locals` call.
crates/compile/src/compile/aux_gen/expr_utils.rs:2261
↓ 18 callersFunctionput_address
(a: &Address, buf: &mut Vec<u8>)
crates/ixon/src/serialize.rs:75
↓ 18 callersFunctionsort0
()
crates/kernel/src/infer.rs:629
↓ 18 callersFunctionsubst_fvar
Check if the head of `dom` (after peeling foralls) is one of the given `motive_fvars`. Returns `Some(class_index)` if matched. Substitute all occurre
crates/compile/src/compile/aux_gen/expr_utils.rs:1547
↓ 18 callersMethodwith_infer_only
Run a closure with `infer_only` mode enabled. Restores the previous mode on exit. In this mode, `infer` skips def-eq checks for App arg types and Let
crates/kernel/src/tc.rs:945
↓ 17 callersMethodcommit
Serialize with tag and compute content address: `blake3(0xE1 + secret + payload)`.
crates/ixon/src/comm.rs:73
↓ 17 callersFunctionconst_with_refs
Build a constant with the given refs (for BFS tests). `discriminator` is folded into `lvls` so callers can produce content-distinct constants when the
crates/ixon/src/env.rs:511
↓ 17 callersMethodcontains_key
(&self, id: &KId<M>)
crates/kernel/src/env.rs:488
↓ 17 callersMethoddata
(&self)
crates/kernel/src/level.rs:66
↓ 17 callersMethoddecode
Decode Ix.RawEnvironment from Lean object into HashMap. RawEnvironment = { consts : Array (Name × ConstantInfo) } NOTE: Unboxed to just Array. This ve
crates/ffi/src/ix/env.rs:184
↓ 17 callersFunctiondecode_env
Decode a Lean environment in parallel with hybrid caching.
crates/ffi/src/lean_env.rs:1074
← previousnext →101–200 of 3,453, ranked by callers