MCPcopy Create free account

hub / github.com/argumentcomputer/ix / functions

Functions3,453 in github.com/argumentcomputer/ix

↓ 4,245 callersMethodclone
(&self)
crates/ffi/src/lean.rs:317
↓ 1,179 callersMethodpush
Push a declaration. The caller is responsible for ensuring `id` is fresh (typically from [`NameGenerator::fresh`]).
crates/kernel/src/lctx.rs:109
↓ 913 callersMethoditer
(&self)
crates/ixon/src/map.rs:65
↓ 895 callersFunctionvar
(i: u64)
crates/kernel/src/testing.rs:44
↓ 750 callersMethodlen
(&self)
crates/ixon/src/map.rs:37
↓ 676 callersFunctioncnst
(name: &str, us: &[MU])
crates/kernel/src/testing.rs:96
↓ 561 callersFunctionapp
(f: ME, a: ME)
crates/kernel/src/testing.rs:84
↓ 529 callersMethodinsert
(&mut self, id: KId<M>, c: KConst<M>)
crates/kernel/src/env.rs:470
↓ 388 callersFunctionsort
(u: MU)
crates/kernel/src/testing.rs:60
↓ 352 callersMethodinsert
(&mut self, orig_name: Name, gen_name: Name)
crates/compile/src/congruence/perm.rs:369
↓ 344 callersMethodlen
(&self)
crates/kernel/src/env.rs:480
↓ 307 callersMethodget
(buf: &mut &[u8])
crates/ixon/src/tag.rs:83
↓ 292 callersMethodget
Whether the orig-side FVar `name` has a gen-side counterpart.
crates/compile/src/congruence/perm.rs:390
↓ 271 callersMethodas_bytes
Returns the raw 32-byte digest.
crates/common/src/address.rs:35
↓ 261 callersMethoddata
(&self)
crates/kernel/src/expr.rs:110
↓ 258 callersMethodas_data
Returns a reference to the inner [`NameData`].
crates/common/src/env.rs:147
↓ 257 callersFunctionparam
(n: u64)
crates/kernel/src/testing.rs:122
↓ 250 callersFunctionnpi
(name: &str, dom: ME, cod: ME)
crates/kernel/src/testing.rs:68
↓ 242 callersMethoditer
Iterate over all constants. Returns owned (KId, KConst) pairs.
crates/kernel/src/env.rs:493
↓ 196 callersFunctionpi
(dom: ME, cod: ME)
crates/kernel/src/testing.rs:64
↓ 175 callersFunctionapp
(f: AE, a: AE)
crates/kernel/src/whnf.rs:3518
↓ 173 callersFunctionnlam
(name: &str, dom: ME, body: ME)
crates/kernel/src/testing.rs:80
↓ 172 callersMethodintern
Intern an expression through the mutable intern environment.
crates/kernel/src/tc.rs:970
↓ 171 callersFunctionsort0
()
crates/kernel/src/testing.rs:52
↓ 168 callersFunctionnat
()
crates/kernel/src/whnf.rs:3509
↓ 167 callersFunctionmk_id
(s: &str)
crates/kernel/src/inductive.rs:4516
↓ 161 callersMethodis_empty
(&self)
crates/ixon/src/map.rs:41
↓ 158 callersMethodclone
(&self)
crates/ixon/src/env.rs:345
↓ 156 callersFunctionsort1
()
crates/kernel/src/testing.rs:56
↓ 150 callersFunctionmk_id
(s: &str)
crates/kernel/src/testing.rs:38
↓ 147 callersFunctionmk_name
(s: &str)
crates/kernel/src/testing.rs:26
↓ 145 callersFunctionvar
(i: u64)
crates/kernel/src/inductive.rs:4549
↓ 144 callersMethodget_hash
Returns the precomputed Blake3 hash of this name.
crates/common/src/env.rs:152
↓ 144 callersMethodwhnf
Full WHNF: loop of whnf_no_delta → delta (one step).
crates/kernel/src/whnf.rs:227
↓ 142 callersFunctioncnst
(name: &str, us: &[AU])
crates/kernel/src/whnf.rs:3527
↓ 138 callersMethodinsert
(&mut self, k: K, v: V)
crates/ixon/src/map.rs:49
↓ 127 callersFunctionapp
Helper: build `App(f, a)`
crates/kernel/src/inductive.rs:4535
↓ 122 callersFunctionuzero
()
crates/kernel/src/testing.rs:106
↓ 120 callersFunctionlam
(dom: ME, body: ME)
crates/kernel/src/testing.rs:76
↓ 120 callersFunctionpi
Helper: build `∀ (_ : a), b`
crates/kernel/src/inductive.rs:4530
↓ 119 callersMethodget
(&self, id: &KId<M>)
crates/kernel/src/env.rs:466
↓ 119 callersFunctionusucc
(u: MU)
crates/kernel/src/testing.rs:110
↓ 107 callersMethodvalue
(&self)
crates/ixon/src/map.rs:81
↓ 97 callersFunctioncnst
Helper: build `Const(name, univs)`
crates/kernel/src/inductive.rs:4545
↓ 97 callersMethodcontains
Returns `true` if this mutual constant contains the given name (including constructor names for inductives).
crates/compile/src/mutual.rs:158
↓ 96 callersMethodpretty
Returns a dot-separated human-readable representation of this name.
crates/common/src/env.rs:237
↓ 94 callersMethodput
(&self, buf: &mut Vec<u8>)
crates/ixon/src/tag.rs:76
↓ 90 callersFunctionmk_nat
(n: u64)
crates/kernel/src/whnf.rs:3530
↓ 87 callersMethodkey
(&self)
crates/ixon/src/map.rs:77
↓ 86 callersMethodstore_const
(&self, addr: Address, constant: Constant)
crates/ixon/src/env.rs:174
↓ 83 callersFunctionparam
(n: u64)
crates/kernel/src/inductive.rs:4525
↓ 82 callersFunctionmk_app_n
Apply an expression to a sequence of arguments: `f a1 a2 ... an`.
crates/compile/src/compile/aux_gen/expr_utils.rs:1531
↓ 79 callersMethodas_slice
View the bytes as a `&[u8]`. Zero-copy for both variants: `Heap` derefs the `Arc<[u8]>`; `Mmap` slices the mapping.
crates/ixon/src/lazy.rs:70
↓ 79 callersFunctionvar
(i: u64)
crates/kernel/src/whnf.rs:3524
↓ 78 callersFunctionapps
(f: ME, args: &[ME])
crates/kernel/src/testing.rs:88
↓ 78 callersFunctioncollect_app_spine
Collect the application spine: `App(App(f, a1), a2)` → `(f, [a1, a2])`. Counts args first so the result `Vec` is allocated exactly once with the corr
crates/kernel/src/tc.rs:1117
↓ 70 callersMethodtake
(&mut self, n: usize)
crates/kernel/src/shard.rs:1482
↓ 67 callersFunctionforall_telescope
Open N leading foralls of `expr`, replacing each BVar(0) with a fresh FVar. Returns the FVars, their declarations, and the remaining body. This is th
crates/compile/src/compile/aux_gen/expr_utils.rs:277
↓ 65 callersFunctionlean_unbox_nat_as_usize
(obj: &impl LeanRef)
crates/ffi/src/aiur.rs:10
↓ 65 callersFunctionmk_id
(s: &str)
crates/kernel/src/def_eq.rs:1758
↓ 64 callersMethodas_array
RawEnvironment is a single-field struct, unboxed to just Array by Lean.
crates/ffi/src/ix/env.rs:177
↓ 64 callersFunctionget_u64
(buf: &mut &[u8])
crates/ixon/src/serialize.rs:67
↓ 64 callersFunctionipi
(name: &str, dom: ME, cod: ME)
crates/kernel/src/testing.rs:72
↓ 62 callersFunctionmk_defn
( name: &str, lvls: u64, level_params: Vec<Name>, ty: ME, val: ME, hints: ReducibilityHints, )
crates/kernel/src/testing.rs:132
↓ 59 callersFunctionmk_id
(s: &str)
crates/kernel/src/whnf.rs:3085
↓ 56 callersMethodfinalize
Append the trailing `# total failures: N` summary. Called once after all per-constant checks have reported.
crates/ffi/src/kernel.rs:164
↓ 56 callersFunctionfresh_fvar
Create a fresh FVar with a unique name derived from `prefix` and `idx`.
crates/compile/src/compile/aux_gen/expr_utils.rs:39
↓ 54 callersMethodcontains_key
(&self, k: &K)
crates/ixon/src/map.rs:45
↓ 54 callersMethodentry
(&mut self, e: &Entry)
crates/aiur/src/vk_codec.rs:78
↓ 54 callersMethodinfer
(&mut self, e: &KExpr<M>)
crates/kernel/src/infer.rs:41
↓ 54 callersMethodis_empty
(&self)
crates/kernel/src/env.rs:484
↓ 53 callersFunctionput_u64
(x: u64, buf: &mut Vec<u8>)
crates/ixon/src/serialize.rs:63
↓ 50 callersMethodtruncate
Truncate the context to the given length, dropping any declarations pushed since. The dropped fvars become unresolvable via [`Self::find`].
crates/kernel/src/lctx.rs:117
↓ 49 callersFunctioncheck_accepts
(env: &mut KEnv<Meta>, id: &MId)
crates/kernel/src/testing.rs:229
↓ 49 callersMethodcheck_const
Type-check a single constant. Clears per-constant caches first.
crates/kernel/src/check.rs:73
↓ 48 callersFunctionnat_env
Build a Nat env with Nat, Nat.zero, Nat.succ, Nat.rec, and Nat.sub. Nat.sub is defined as a primitive that the kernel's try_reduce_nat handles, but al
crates/kernel/src/whnf.rs:3637
↓ 47 callersFunctionlam
(a: AE, b: AE)
crates/kernel/src/whnf.rs:3521
↓ 47 callersFunctionmerkle_root_canonical
Build the canonical merkle root over a leaf set. Leaves are lex-sorted and deduplicated before hashing. Returns: - `None` if `leaves` is empty (post-
crates/ixon/src/merkle.rs:84
↓ 46 callersMethodis_def_eq
Check definitional equality of two expressions.
crates/kernel/src/def_eq.rs:58
↓ 44 callersFunctionfrom_bytes
Deserialize a `System<AiurCircuit>` from [`to_bytes`] output, requiring that every byte is consumed.
crates/aiur/src/vk_codec.rs:355
↓ 44 callersMethodget_const
(&mut self, id: &KId<M>)
crates/kernel/src/tc.rs:262
↓ 44 callersMethodjoin
(left: Self, right: Self)
crates/ixon/src/assumption_tree.rs:99
↓ 44 callersMethodpush_local
Push a local variable type (lambda/forall binding, no let-value).
crates/kernel/src/tc.rs:448
↓ 43 callersFunctionmk_const
Create a `Const` expression with the given name and universe levels.
crates/compile/src/compile/aux_gen/expr_utils.rs:1473
↓ 43 callersFunctionmk_name
(s: &str)
crates/kernel/src/ingress.rs:4622
↓ 43 callersMethodusize
(&mut self, v: usize)
crates/aiur/src/vk_codec.rs:71
↓ 42 callersFunctioncompile_name
Compile a Lean Name to an address (stored in env.names). Uses the Name's internal hash as the address. String components are stored in blobs.
crates/compile/src/compile.rs:347
↓ 42 callersFunctionelapsed_ns
(start: Instant)
crates/kernel/src/ingress.rs:3447
↓ 42 callersFunctionmk_name
(s: &str)
crates/compile/src/compile/aux_gen/rec_on.rs:82
↓ 42 callersMethodtag
(self)
crates/ffi/src/kernel.rs:931
↓ 42 callersMethodtry_get_const
( &mut self, id: &KId<M>, )
crates/kernel/src/tc.rs:246
↓ 41 callersFunctionaddr
(byte: u8)
crates/kernel/src/shard.rs:2022
↓ 41 callersMethodintern_expr
Intern an expression: same pointer-uniqueness guarantee as `intern_univ`.
crates/kernel/src/env.rs:112
↓ 41 callersMethoditer
(&self)
crates/aiur/src/querymap.rs:155
↓ 41 callersFunctionmk_addr
(s: &str)
crates/kernel/src/subst.rs:887
↓ 40 callersFunctioninstantiate1
Lean's `instantiate1`: replace BVar(0) with `replacement`, decrement BVar(i>0) by 1 (removing a binder level). The replacement is NOT shifted — it's i
crates/compile/src/compile/aux_gen/expr_utils.rs:601
↓ 40 callersFunctionnat_to_usize
Convert a Lean `Nat` to `usize`, panicking on overflow. Use in pure functions where returning `Result` would cascade through callers. Overflow is imp
crates/compile/src/compile/nat_conv.rs:26
↓ 40 callersFunctionsort0
()
crates/compile/src/compile/aux_gen/expr_utils.rs:3282
↓ 39 callersFunctiondecompose_apps
Decompose an application spine: `f a1 a2 ... an` -> `(f, [a1, ..., an])`.
crates/compile/src/compile/aux_gen/expr_utils.rs:1504
↓ 39 callersMethodget_const
Get a constant by address, materializing on demand. Returns `None` if the address is not present or materialization fails (e.g., corrupt bytes). Use
crates/ixon/src/env.rs:207
next →1–100 of 3,453, ranked by callers