MCPcopy Create free account

hub / github.com/argumentcomputer/ix / functions

Functions3,453 in github.com/argumentcomputer/ix

↓ 4 callersFunctiongen_expr
Generate a bounded-depth `KExpr<Anon>` with de Bruijn indices in `0..=max_var`. Leaf distribution is biased toward concrete data (Var/Sort/Const) to p
crates/kernel/src/subst.rs:1369
↓ 4 callersMethodget
(&self, a: &Address)
crates/kernel/src/canonical_check.rs:82
↓ 4 callersFunctionget_name_component
Deserialize a Name component using a lookup table for parents.
crates/ixon/src/serialize.rs:982
↓ 4 callersFunctionget_named_indexed
Deserialize a Named entry with indexed metadata.
crates/ixon/src/serialize.rs:1088
↓ 4 callersFunctionhas_suffix_with_optional_index
Check whether the leafmost segment of `suffixes` (or the first segment underneath an `_N` suffix like `brecOn_1`) matches `base`. Accepted forms (wit
crates/compile/src/congruence/perm.rs:560
↓ 4 callersFunctionhash_data_value
(dv: &DataValue, hasher: &mut blake3::Hasher)
crates/common/src/env.rs:737
↓ 4 callersFunctionim
Raw `Level::imax`.
crates/compile/src/congruence.rs:426
↓ 4 callersMethodinfer_key
(&mut self, e: &KExpr<M>)
crates/kernel/src/tc.rs:369
↓ 4 callersFunctioningress_univ_args
( univ_idxs: &[u64], ctx: &Ctx<'_, M>, intern: &mut InternTable<M>, cache: &mut UnivCache<M>, stats:
crates/kernel/src/ingress.rs:509
↓ 4 callersFunctioninsert_aux_stub_rec
(env: &mut LeanEnv, all: &[Name], ind: &Name)
crates/compile/src/compile/aux_gen/recursor.rs:2854
↓ 4 callersFunctioninsert_rank_def
Insert a `Defn` with the given reducibility hints under `name`, returning its `KId`. Used by `def_rank_id` ordering tests.
crates/kernel/src/def_eq.rs:1800
↓ 4 callersFunctioninstantiate_rev
Multi-argument reverse instantiation: replace BVar(0)..BVar(n-1) with `args[0]..args[n-1]` simultaneously, and decrement BVar(i >= n) by n. Matches L
crates/compile/src/compile/aux_gen/expr_utils.rs:662
↓ 4 callersMethodintern_ref
(&mut self, addr: Address)
crates/compile/src/kernel_egress.rs:411
↓ 4 callersMethodintern_univ
Intern a universe: if one with the same hash exists, return the existing Arc (ensuring pointer uniqueness). Otherwise insert and return.
crates/kernel/src/env.rs:102
↓ 4 callersMethodis_bool_true
Check if expression is the Bool.true constant.
crates/kernel/src/def_eq.rs:1285
↓ 4 callersMethodis_delta
Check if a constant is delta-reducible.
crates/kernel/src/def_eq.rs:1295
↓ 4 callersMethodis_full
(self)
crates/kernel/src/whnf.rs:94
↓ 4 callersMethodis_identity
Whether the context is trivial: identity permutation, empty const_map, and no rec heads to permute. If so, [`const_alpha_eq_with_perm`] delegates to p
crates/compile/src/congruence/perm.rs:242
↓ 4 callersMethodis_nat_zero
Check if expression is nat zero (literal 0 or Nat.zero constructor).
crates/kernel/src/def_eq.rs:916
↓ 4 callersFunctionkconst_kind_ord
A stable kind ordinal for cross-kind `KConst` comparison. Matches the compile-side `mut_const_kind` (`src/ix/compile.rs:2590`) tagging: Defn=0, Indc=1
crates/kernel/src/canonical_check.rs:440
↓ 4 callersFunctionkernel_check_clear_every
()
crates/ffi/src/kernel.rs:2119
↓ 4 callersFunctionklimbs_u64_to_biguint
Treat `limbs` as a little-endian sequence of 64-bit limbs and convert to a `BigUint`. Aiur's `klimbs_normalize` strips trailing zero limbs but a non-n
crates/aiur/src/execute.rs:896
↓ 4 callersMethodmax
Construct `max(a, b)` with Lean-style simplifications: - `max(k₁, k₂) = max(k₁, k₂)` when both are explicit numerals - `max(a, a) = a` - `max(0, a) =
crates/kernel/src/level.rs:153
↓ 4 callersFunctionmk_ctor
(_addr: &str, fields: u64, params: u64, ty: AE)
crates/kernel/src/canonical_check.rs:888
↓ 4 callersFunctionmk_cv
(name: &str)
crates/compile/src/ground.rs:248
↓ 4 callersFunctionmk_def
(name: &str)
crates/compile/src/mutual.rs:211
↓ 4 callersFunctionmk_heq
Build `@HEq.{u} α a β b`.
crates/compile/src/compile/aux_gen/brecon.rs:1358
↓ 4 callersFunctionmk_ind
(name: &str, ctor_names: &[&str])
crates/compile/src/mutual.rs:224
↓ 4 callersFunctionmk_pi_unit
Replace the innermost return type of a forall chain with `unit`. Matches Lean's `mk_pi_unit` in `cases_on.cpp`: `∀ (x : A) (y : B), C x y` → `∀ (x :
crates/compile/src/compile/aux_gen/cases_on.rs:29
↓ 4 callersMethodmuts_name
Build a synthetic `Name` for a mutual block's `Named` entry: `Ix.<hex>.<first_member_name>`. Disambiguates alpha-equivalent blocks that share an `addr
crates/common/src/address.rs:99
↓ 4 callersFunctionn
(s: &str)
crates/ixon/src/env.rs:390
↓ 4 callersMethodn_canonical_minors
Total canonical-layout minor count.
crates/compile/src/congruence/perm.rs:230
↓ 4 callersMethodn_source_minors
Total source-layout minor count.
crates/compile/src/congruence/perm.rs:224
↓ 4 callersMethodname
(&self)
crates/kernel/src/lctx.rs:50
↓ 4 callersFunctionnat_env
Build N (Nat-like) environment with working recursor rules.
crates/kernel/src/tutorial/reduction.rs:460
↓ 4 callersMethodnat_succ_of
If expression is nat-succ, return the predecessor. Matches both `Nat(n+1)` → `Nat(n)` and `Nat.succ e` → `e`.
crates/kernel/src/def_eq.rs:926
↓ 4 callersMethodnext_u32
(&mut self, bound: u32)
crates/kernel/src/level.rs:1041
↓ 4 callersMethodnext_u64
(&mut self)
crates/kernel/src/subst.rs:1350
↓ 4 callersFunctionnormalize_imax_dispatch
Dispatch `imax(a, b)` normalization based on `b`'s shape.
crates/kernel/src/level.rs:466
↓ 4 callersFunctionnormalize_level
Normalize a level by applying `Level::max_smart` / `Level::imax_smart` bottom-up. Idempotent. `Succ` is left raw (see [`level_alpha_eq`]).
crates/compile/src/congruence.rs:47
↓ 4 callersFunctionnormalize_level
Normalize a universe level to Géran's canonical form.
crates/kernel/src/level.rs:687
↓ 4 callersMethodopen_binder_anon_with_fv
Anonymous-name variant of [`Self::open_binder_with_fv`].
crates/kernel/src/tc.rs:584
↓ 4 callersMethodoption
(&mut self, o: &Option<T>, f: impl FnOnce(&mut Self, &T))
crates/aiur/src/vk_codec.rs:182
↓ 4 callersFunctionpartition_for_cycle_cap
Size a partition to a per-shard **cycle** (guest-STEP) budget by **bin-packing to the cap**, not by balancing into a fixed shard count. `max_cycles`
crates/kernel/src/shard.rs:1845
↓ 4 callersMethodpeek_variant
Identify the `ConstantInfo` variant by reading just the outer `Tag4` head byte — no allocation, no body parse. `Tag4` encoding (see `src/ix/ixon/tag.
crates/ixon/src/lazy.rs:182
↓ 4 callersFunctionquot_env
Build Quot environment: Quot, Quot.mk, Quot.lift, Quot.ind as KConst::Quot. Also includes Eq as full inductive (needed for Quot.lift validation).
crates/kernel/src/tutorial/reduction.rs:1467
↓ 4 callersFunctionquot_prims
(env: &KEnv<Meta>)
crates/kernel/src/tutorial/reduction.rs:1630
↓ 4 callersFunctionread_blob
Read raw bytes from the blob store.
crates/compile/src/decompile.rs:140
↓ 4 callersFunctionread_klimbs_u64
Walk a `List<U64>` chain from `head_ptr` in `memory[10]`, returning the u64 limbs in head-first order. Each memory[10] entry is the standard Aiur tagg
crates/aiur/src/execute.rs:853
↓ 4 callersFunctionrebuild_named
Build a fresh `Named` entry for a reconstructed constant, preserving the original's `meta` and `original` (aux_gen regeneration hint) fields but with
crates/compile/src/kernel_egress.rs:790
↓ 4 callersFunctionreplace_const_names_cached
Like [`replace_const_names`] but accepts a caller-managed memoization cache. Use this when calling the rewriter many times with the SAME `map` in a ti
crates/compile/src/compile/aux_gen/expr_utils.rs:1618
↓ 4 callersFunctionreserved_marker_name
(addr: &Address)
crates/kernel/src/primitive.rs:1148
↓ 4 callersFunctionsimul_subst
Perform simultaneous substitution: replace `Var(depth)..Var(depth+n-1)` with `substs[0]..substs[n-1]`, shifting free variables above by `-n`. Uses th
crates/kernel/src/subst.rs:235
↓ 4 callersFunctionsort0
()
crates/kernel/src/error.rs:137
↓ 4 callersFunctionsource_aux_order
Compute the source-walk discovery order of nested auxiliaries by running `expand_nested_block` on **source-order originals** (no alias rewriting, no c
crates/compile/src/compile/aux_gen/nested.rs:943
↓ 4 callersMethodstop_reporter
(&self)
crates/ffi/src/kernel.rs:2588
↓ 4 callersFunctionstore_canonical
Store a constant at its true content address and return that address. Use this instead of `store_const(Address::hash(b"a"), ...)` for tests that round
crates/ixon/src/env.rs:536
↓ 4 callersFunctionstore_nat
Store a Nat as a blob and return its address.
crates/compile/src/compile.rs:340
↓ 4 callersMethodtake
(&mut self, n: usize)
crates/aiur/src/vk_codec.rs:226
↓ 4 callersMethodtake
(&mut self, n: usize)
crates/kernel/src/profile.rs:333
↓ 4 callersMethodtick
(&mut self)
crates/kernel/src/tc.rs:864
↓ 4 callersFunctionto_bytes
Serialize the verifying key `System<AiurCircuit>` (preprocessed traces are skipped — see the module docs).
crates/aiur/src/vk_codec.rs:195
↓ 4 callersMethodto_bytes
(&self)
crates/ffi/src/iroh.rs:15
↓ 4 callersMethodtransitive_deps_excl
Transitive dep addresses of `root`, excluding `root` itself. Sorted lex-ascending for canonical use (e.g., feeding `merkle_root_canonical`).
crates/ixon/src/env.rs:332
↓ 4 callersMethodtry_reduce_native
Try native reduction, matching C++ kernel's `reduce_native`. - `Lean.reduceBool arg`: look up `arg` (a constant), evaluate its body, return Bool - `Le
crates/kernel/src/whnf.rs:2666
↓ 4 callersMethodtry_string_lit_expansion
String literal expansion (C++ kernel: try_string_lit_expansion_core). When `t` is a string literal, expand it to constructor form via `str_lit_to_con
crates/kernel/src/def_eq.rs:1003
↓ 4 callersMethodtry_unfold_proj_app
If the head of `e` is a projection, try reducing it via whnf_no_delta. Returns the reduced form if it changed, None otherwise (lean4lean tryUnfoldProj
crates/kernel/src/def_eq.rs:1535
↓ 4 callersMethodu32
(&mut self)
crates/kernel/src/shard.rs:1494
↓ 4 callersMethodu64
(&mut self)
crates/kernel/src/profile.rs:345
↓ 4 callersFunctionu64_get_trimmed_le
Read a u64 from minimal little-endian bytes.
crates/ixon/src/tag.rs:31
↓ 4 callersFunctionu64_put_trimmed_le
Write a u64 in minimal little-endian bytes.
crates/ixon/src/tag.rs:25
↓ 4 callersFunctionu8_range_check_channel
()
crates/aiur/src/lib.rs:74
↓ 4 callersFunctionvalidate_canonical_block_single_pass
Validate that a stored primary block ships in canonical (sort_consts) order. Walks adjacent pairs under the singleton partition and requires strong s
crates/kernel/src/canonical_check.rs:791
↓ 4 callersMethodvalidate_const_well_scoped
Validate declaration expressions before inference. This is the Ix equivalent of Lean's declaration-admission closure and universe-param checks: decla
crates/kernel/src/check.rs:428
↓ 4 callersFunctionverify_merkle_proof
Verify a merkle membership proof against any root (canonical or free-form). The path is shape-agnostic — verification just hashes upward using each si
crates/ixon/src/merkle.rs:176
↓ 4 callersFunctionverify_proj_addr_in_env
Verify that a projection address computed from a block's structure is actually present in the env's consts. Wrapped here so the four dispatch arms in
crates/kernel/src/ingress.rs:4149
↓ 4 callersMethodwhnf_nat_reducer_arg
( &mut self, arg: &KExpr<M>, )
crates/kernel/src/whnf.rs:1995
↓ 4 callersMethodwhnf_no_delta
WHNF without delta: whnf_core → proj-app → nat/native/string → quot. Projection values use full WHNF, preserving the public/full semantics.
crates/kernel/src/whnf.rs:595
↓ 4 callersFunctionzids_to_names
(ids: &[KId<Meta>])
crates/compile/src/kernel_egress.rs:126
↓ 3 callersFunctionadd_motive_alts
( corr: &mut Corr, ctx: &PermCtx, orig_decls: &[crate::compile::aux_gen::expr_utils::LocalDecl], gen_d
crates/compile/src/congruence/perm.rs:1270
↓ 3 callersFunctionadd_offset
Add `k` `Succ` wrappers to `l`. Matches Lean's `Level.addOffset`.
crates/compile/src/compile/aux_gen/below.rs:1491
↓ 3 callersMethodaddr_present
(&self, addr: &Address)
crates/compile/src/compile/aux_gen/expr_utils.rs:2317
↓ 3 callersFunctionaddrs_with_names
Collect every (field_name, addr) pair from `PrimAddrs` via reflection over a macro invocation at the caller — done here by an inline array. Keep in lo
crates/kernel/src/primitive.rs:1174
↓ 3 callersFunctionagg_plan
Lower the bisection tree to an arity-bounded fold plan. The binary tree is collapsed* so each agg call folds up to `arity` whole subtrees (never split
crates/kernel/src/shard.rs:359
↓ 3 callersFunctionand_env
Build And : Prop → Prop → Prop with And.intro constructor.
crates/kernel/src/tutorial/defeq.rs:1241
↓ 3 callersFunctionanon_ctor_proj_addr
Deterministic CPrj content address for ctor `(idx, cidx)` of `block`.
crates/kernel/src/ingress.rs:4198
↓ 3 callersMethodapply_iota_arg
( &mut self, result: KExpr<M>, arg: &KExpr<M>, transient: bool, )
crates/kernel/src/whnf.rs:1050
↓ 3 callersFunctionassert_bool_const
(e: &AE, expected: bool, prims: &Primitives<Anon>)
crates/kernel/src/whnf.rs:4776
↓ 3 callersFunctionbelow_indc_to_lean
Convert a `BelowIndc` (Prop-level `.below`) to an `InductiveVal` and its constructors. Safety mirrors the parent via `BelowIndc::is_unsafe` (see the
crates/compile/src/decompile.rs:2040
↓ 3 callersFunctionblock_of_addr
The ingress-block address that owns `addr`: a projection (IPrj/CPrj/RPrj/ DPrj) maps to its Muts `block`; anything else is its own block. Used to map
crates/kernel/src/anon_work.rs:308
↓ 3 callersFunctionbool_env
Build Bool environment with working recursor rules.
crates/kernel/src/tutorial/reduction.rs:268
↓ 3 callersFunctionbuild_ixon_ingress_lookups
(ixon_env: &IxonEnv)
crates/kernel/src/ingress.rs:3150
↓ 3 callersFunctionbuild_mut_ctx
( meta: &ConstantMeta, names: &FxHashMap<Address, Name>, name_to_addr: &FxHashMap<Name, Address>, )
crates/kernel/src/ingress.rs:399
↓ 3 callersFunctionbuild_plan
Emit `node`'s plan entries; return the index of the entry representing it.
crates/kernel/src/shard.rs:367
↓ 3 callersFunctionbuild_result_array
Build an `IO (Array (Option CheckError))` from Rust results. The Lean caller pairs each slot with `names[i]` (the input array) for display, so there'
crates/ffi/src/kernel.rs:2977
↓ 3 callersFunctionbuild_sub_env
( source: &IxonEnv, roots: &[Address], )
crates/kernel/src/anon_work.rs:278
↓ 3 callersFunctionbuild_type_nat_env
Build a simple Type-level inductive (Nat-like): T | Z : T | S : T → T
crates/compile/src/compile/aux_gen/recursor.rs:3196
↓ 3 callersMethodbump_multiplicity_for
(&mut self, byte: &G, col: usize)
crates/aiur/src/gadgets/bytes1.rs:228
↓ 3 callersFunctionbytes1_constraints
( byte: usize, op: &Bytes1Op, channel: G, sel: SymbolicExpression<G>, state: &mut ConstraintState, )
crates/aiur/src/constraints.rs:692
↓ 3 callersFunctionbytes1_execute
( byte: usize, op: &Bytes1Op, map: &mut Vec<G>, record: &mut QueryRecord, )
crates/aiur/src/execute.rs:674
← previousnext →601–700 of 3,453, ranked by callers