MCPcopy Create free account

hub / github.com/argumentcomputer/ix / functions

Functions3,453 in github.com/argumentcomputer/ix

↓ 10 callersFunctioncheck
(env: &Env)
crates/compile/src/ground.rs:252
↓ 10 callersFunctioncheck_nat_eq
(a: &Nat, b: &Nat, field: &str)
crates/compile/src/congruence.rs:345
↓ 10 callersFunctioncombine_lookup_args
( lookup: &mut Lookup<SymbolicExpression<G>>, args: impl IntoIterator<Item = SymbolicExpression<G>>, )
crates/aiur/src/constraints.rs:744
↓ 10 callersFunctioncompute_sccs
Compute strongly connected components using an iterative Tarjan’s algorithm. Returns a map from each node to the set of nodes in its SCC.
crates/compile/src/condense.rs:25
↓ 10 callersFunctionconst_alpha_eq
Check that two `ConstantInfo` values are alpha-equivalent.
crates/compile/src/congruence.rs:229
↓ 10 callersFunctionconsume_type_annotations
Strip type annotation wrappers from a type expression. Matches Lean's `Expr.consumeTypeAnnotations` (Expr.lean:1721-1727): - `outParam α` → recurse o
crates/compile/src/compile/aux_gen/expr_utils.rs:1487
↓ 10 callersFunctiondo_egress
(e: &KExpr<Meta>)
crates/compile/src/kernel_egress.rs:1336
↓ 10 callersFunctionegress_constant
Convert a zero kernel constant to a Lean `ConstantInfo`.
crates/compile/src/kernel_egress.rs:131
↓ 10 callersFunctionenv_with_id
Build a minimal env with a single definition: `id := λ x. x : Sort 0 → Sort 0`
crates/kernel/src/whnf.rs:3096
↓ 10 callersMethodfinish
Freeze into an immutable [`BlockProfile`]. Block ids are assigned by sorting addresses, so the result is deterministic regardless of insertion order.
crates/kernel/src/profile.rs:410
↓ 10 callersFunctionlean_unbox_g
(obj: &impl LeanRef)
crates/ffi/src/aiur.rs:16
↓ 10 callersFunctionlevel_congruent
Check that a Lean-side Level matches a zero Univ structurally.
crates/kernel/src/congruence.rs:34
↓ 10 callersFunctionmerkle_proof_canonical
Produce a sibling-path for `target` in the canonical tree over `leaves`. Returns `None` if `target` is not in the (post-dedup) leaf set. Returns an em
crates/ixon/src/merkle.rs:138
↓ 10 callersMethodn_canonical_motives
Total canonical-layout motive count: `n_primary + n_canonical_aux`.
crates/compile/src/congruence/perm.rs:219
↓ 10 callersFunctionn_lit
(x: u64)
crates/kernel/src/ingress.rs:4630
↓ 10 callersFunctionparam_names_hash
Convert a LeanExpr to KExpr<Meta>. `param_names` provides the positional mapping for universe level params. `name_to_ixon_addr` maps Lean names to re
crates/kernel/src/ingress.rs:2177
↓ 10 callersMethodprimary
The address to pass to `tc.check_const`.
crates/kernel/src/anon_work.rs:65
↓ 10 callersMethodpush_fvar_decl_anon
Push a fresh fvar declaration without any body to instantiate. Useful for paths that introduce a binder for type-tracking purposes only (e.g. inductiv
crates/kernel/src/tc.rs:617
↓ 10 callersMethodsort
Constructs a sort expression from a universe level.
crates/common/src/env.rs:852
↓ 10 callersMethodtry_reduce_nat
Nat primitive reduction (add, sub, mul, div, mod, pow, gcd, bitwise, predicates).
crates/kernel/src/whnf.rs:1698
↓ 10 callersMethodty
(&self)
crates/kernel/src/lctx.rs:44
↓ 10 callersMethodwhnf_core
Structural WHNF: beta, iota, zeta. NO delta. FULL flags. This is the standard structural normalizer used outside the def-eq lazy-delta path. With `Wh
crates/kernel/src/whnf.rs:352
↓ 10 callersMethodwhnf_lean
Weak-head-normalize a `LeanExpr` in the current FVar context, using our Rust kernel's `whnf`. Matches Lean's `Meta.whnf` behavior: unfolds reducible d
crates/compile/src/compile/aux_gen/expr_utils.rs:2593
↓ 10 callersMethodwhnf_no_delta_for_def_eq
Def-eq no-delta WHNF. This is broader than Lean's pure `whnfCore` because Ix relies on the no-delta layer for primitive/native reductions, but it pres
crates/kernel/src/whnf.rs:605
↓ 9 callersMethodall
( name: M::MField<Name>, bi: M::MField<BinderInfo>, ty: KExpr<M>, body: KExpr<M>, )
crates/kernel/src/expr.rs:455
↓ 9 callersMethodall
(ty: Arc<Expr>, body: Arc<Expr>)
crates/ixon/src/expr.rs:94
↓ 9 callersFunctionbytes2_execute
( i: usize, j: usize, op: &Bytes2Op, map: &mut Vec<G>, record: &mut QueryRecord, )
crates/aiur/src/execute.rs:683
↓ 9 callersMethodcount
(&self)
crates/ffi/src/kernel.rs:174
↓ 9 callersMethoddecode
Decode Ixon.RawConst from Lean pointer.
crates/ffi/src/lean_ixon/env.rs:56
↓ 9 callersFunctiondecode_vec_val_idx
(obj: LeanBorrowed<'_>)
crates/ffi/src/aiur/toplevel.rs:15
↓ 9 callersFunctiondecompile_expr
Decompile an Ixon Expr to a Lean Expr with arena-based metadata restoration. Traverses the arena tree following child pointers. Share references are
crates/compile/src/decompile.rs:511
↓ 9 callersFunctiondeser_tag0
(buf: &mut &[u8])
crates/ixon/src/metadata.rs:374
↓ 9 callersMethodexecute
( &self, fun_idx: FunIdx, args: Vec<G>, io_buffer: &mut IOBuffer, )
crates/aiur/src/execute.rs:211
↓ 9 callersFunctionextract_nat_value
Extract a Nat value from either literal form or a constructor numeral. Iota reduction on `Nat` literals can expose the matched value as `Nat.succ <li
crates/kernel/src/whnf.rs:2870
↓ 9 callersFunctionfind_motive_fvar
This replaces the BVar-range-based `is_motive_application` and `find_motive_class` with a simple structural FVar comparison.
crates/compile/src/compile/aux_gen/expr_utils.rs:1679
↓ 9 callersFunctiongen_univ
Generate a bounded-depth `KUniv<Anon>`. Parameter indices are drawn from `0..=max_param` so multiple universes in the same test can share parameters —
crates/kernel/src/level.rs:1052
↓ 9 callersMethodgenerate_block_recursors
Generate recursors for all inductives in a block (lean4lean-style). Detects nested occurrences (à la `ElimNestedInductive`), builds a flat block with
crates/kernel/src/inductive.rs:2213
↓ 9 callersFunctionget_bool_field
(buf: &mut &[u8])
crates/ixon/src/proof.rs:321
↓ 9 callersFunctionget_offset
Count the outermost Succ wrappers. Matches Lean's `Level.getOffset`.
crates/compile/src/compile/aux_gen/below.rs:1352
↓ 9 callersFunctionget_u8
(buf: &mut &[u8])
crates/ixon/src/serialize.rs:41
↓ 9 callersFunctionget_vec_len
(buf: &mut &[u8])
crates/ixon/src/metadata.rs:555
↓ 9 callersMethodlast_str
Get the last string component of this name, if any.
crates/common/src/env.rs:229
↓ 9 callersFunctionleon_addr_of
(name: &Name, n2a: &DashMap<Name, Address>)
crates/kernel/src/ingress.rs:2735
↓ 9 callersMethodlevel
Borrow this sub-hypergraph as a [`Level`] for the greedy / FM machinery.
crates/kernel/src/shard.rs:485
↓ 9 callersFunctionmerge_name_sets
Absorbs the elements of the smaller [`NameSet`] into the bigger one and returns the merged set.
crates/compile/src/graph.rs:19
↓ 9 callersFunctionmk_addr
(s: &str)
crates/kernel/src/expr.rs:821
↓ 9 callersMethodnext_lookup
(&mut self)
crates/aiur/src/constraints.rs:84
↓ 9 callersFunctionput_bool_field
(b: bool, buf: &mut Vec<u8>)
crates/ixon/src/proof.rs:317
↓ 9 callersFunctionput_univ
Serialize a universe to bytes (iterative to avoid stack overflow).
crates/ixon/src/univ.rs:53
↓ 9 callersFunctionput_vec_len
(len: usize, buf: &mut Vec<u8>)
crates/ixon/src/metadata.rs:551
↓ 9 callersFunctionread_tag0
Read a Tag0-encoded u64 from a byte slice, advancing the cursor.
crates/compile/src/decompile.rs:226
↓ 9 callersFunctionstore_string
Store a string as a blob and return its address.
crates/compile/src/compile.rs:335
↓ 9 callersMethodstrip_prefix
Strip a prefix from this name, returning the suffix components.
crates/common/src/env.rs:204
↓ 9 callersMethodtry_get_block
( &mut self, id: &KId<M>, )
crates/kernel/src/tc.rs:272
↓ 9 callersMethodu64
(&mut self, v: u64)
crates/aiur/src/vk_codec.rs:68
↓ 9 callersFunctionwrite_rate
( out: &mut impl fmt::Write, label: &str, hits: &AtomicU64, misses: &AtomicU64, )
crates/kernel/src/perf.rs:353
↓ 8 callersMethodadd_equiv
Record that two composite keys are definitionally equal. Kept by-value because `node_for_key` inserts the key into the internal `key_to_node` map on
crates/kernel/src/equiv.rs:132
↓ 8 callersFunctionbeta_reduce
Reduce all beta-redexes in an expression. `App(Lam(_, _, body, _), arg)` → `instantiate1(body, arg)` (then recurse). Lean's elaborator auto-reduces
crates/compile/src/compile/aux_gen/expr_utils.rs:1307
↓ 8 callersFunctionbuild_g_array
Build a Lean `Array G` from a slice of field elements.
crates/ffi/src/aiur/protocol.rs:662
↓ 8 callersFunctionbuild_lean_io_buffer
Build a Lean `Array (G × Array G) × Array ((G × Array G) × IOKeyInfo)` from an `IOBuffer`. The first array enumerates per-channel data arenas; the sec
crates/ffi/src/aiur/protocol.rs:683
↓ 8 callersFunctioncapped_capacity
(count: u64, buf: &[u8])
crates/ixon/src/serialize.rs:33
↓ 8 callersFunctioncompare_kexpr
Compare two kernel expressions structurally for canonical ordering. Alpha-blind through binders (`Lam`, `All`, `Let` ignore names) and uses `ctx` to r
crates/kernel/src/canonical_check.rs:167
↓ 8 callersMethoddecode
Decode Ixon.DataValue.
crates/ffi/src/lean_ixon/meta.rs:135
↓ 8 callersFunctiondecode_constant_val
( obj: LeanBorrowed<'_>, cache: &mut Cache<'_>, )
crates/ffi/src/lean_env.rs:881
↓ 8 callersFunctionensure_prelude_in_kenv_of
Ensure PUnit and PProd are in `stt.kenv` for kernel type inference. These are prelude constants with fixed definitions that brecOn's `get_level` need
crates/compile/src/compile/aux_gen/expr_utils.rs:1721
↓ 8 callersFunctionexpr_alpha_eq
Check that two Lean expressions are alpha-equivalent (ignoring binder names, BinderInfo, and Mdata wrappers).
crates/compile/src/congruence.rs:97
↓ 8 callersFunctionextend
(io: &mut IOBuffer, channel: G, key: Vec<G>, data: Vec<G>)
crates/ixvm-codegen/src/aiur_ixvm_witness.rs:53
↓ 8 callersMethodfresh
(&mut self)
crates/kernel/src/lctx.rs:230
↓ 8 callersFunctiongen_opt_bool
(g: &mut Gen)
crates/ixon/src/proof.rs:1254
↓ 8 callersFunctiongenerate_cases_on
Generate a `.casesOn` definition from a canonical `.rec`. Returns `None` if the recursor type cannot be decomposed. Uses FVar-based construction: op
crates/compile/src/compile/aux_gen/cases_on.rs:56
↓ 8 callersFunctiongenerate_rec_on
Generate a `.recOn` definition from a canonical `.rec`. Returns `None` if the recursor type cannot be decomposed.
crates/compile/src/compile/aux_gen/rec_on.rs:20
↓ 8 callersMethodget_mut
(&mut self, key: &[G])
crates/aiur/src/querymap.rs:105
↓ 8 callersFunctionget_u8
(buf: &mut &[u8])
crates/ixon/src/metadata.rs:505
↓ 8 callersMethodhas_meta
(&self)
crates/kernel/src/id.rs:70
↓ 8 callersFunctionhash_constant_val
(cv: &ConstantVal, hasher: &mut blake3::Hasher)
crates/common/src/env.rs:1120
↓ 8 callersFunctionhead_const_name
Extract head constant's display form as a string, for diagnostic prefix matching. Uses `{kid}`'s Display impl (which is defined for every `KernelMode`
crates/kernel/src/def_eq.rs:1661
↓ 8 callersFunctioninsert_aux_stub_def
(env: &mut LeanEnv, ind: &Name, suffix: &str)
crates/compile/src/compile/aux_gen/recursor.rs:2877
↓ 8 callersFunctionkexpr_to_ixon
Convert a kernel expression to an Ixon expression, accumulating any referenced addresses and universes into `ctx`. Memoized on `expr.addr()` (content
crates/compile/src/kernel_egress.rs:475
↓ 8 callersFunctionleaf_stdin
Build the 3-slice leaf-guest stdin: range + env bytes + reuse check-list. `check_list` is a packed list of primary addresses (`Address::pack`) to che
zisk/host/src/main.rs:477
↓ 8 callersMethodmeta_hash
(&self, _hasher: &mut blake3::Hasher)
crates/kernel/src/mode.rs:25
↓ 8 callersMethodprove
( &self, fri_parameters: FriParameters, fun_idx: FunIdx, input: &[G], io_buffer: &mut IOBu
crates/aiur/src/synthesis.rs:113
↓ 8 callersMethodrecord_hot_miss
(&mut self, phase: &'static str, e: &KExpr<M>)
crates/kernel/src/tc.rs:979
↓ 8 callersMethodrecursor_major_domain_for_addr
( &mut self, rec_ty: &KExpr<M>, prefix_skip: u64, target_addr: &Address, )
crates/kernel/src/inductive.rs:1427
↓ 8 callersFunctionto_kexpr_static
Static version of `to_kexpr` that takes borrowed references. Identical to the closure-based `to_kexpr` in `get_level`, but as a standalone function s
crates/compile/src/compile/aux_gen/expr_utils.rs:3157
↓ 8 callersFunctionu64_byte_count
Count how many bytes needed to represent a u64.
crates/ixon/src/tag.rs:10
↓ 8 callersMethodwhnf_core_with_flags
Internal flags-threaded core: callers go through [`whnf_core`] or [`whnf_core_for_def_eq`]. Recursive sub-reductions and `try_iota` propagate the same
crates/kernel/src/whnf.rs:387
↓ 7 callersMethodaddr
(&self)
crates/kernel/src/level.rs:70
↓ 7 callersMethodappend_components
Append suffix components to this name.
crates/common/src/env.rs:217
↓ 7 callersFunctionbool_env
Build an env with Bool (2 ctors, 0 fields each) and its recursor. Bool : Sort 1 Bool.true : Bool Bool.false : Bool Bool.rec : ∀ (motive : Bool → Sort
crates/kernel/src/inductive.rs:4558
↓ 7 callersFunctionbuild_alpha_collapse_env
Build a minimal Prop mutual block: A | a : B → A, B | b : A → B. Both A and B are in Prop (Sort 0), with single constructors that cross-reference the
crates/compile/src/compile/aux_gen/recursor.rs:2768
↓ 7 callersFunctionbuild_test_env_with_nested
Build a test env where each recursor reports `num_motives` and `num_minors` with `aux_motives` / `aux_minors` added on top of the user-visible counts.
crates/compile/src/compile/surgery.rs:1396
↓ 7 callersFunctionbytes2_constraints
( i: usize, j: usize, op: &Bytes2Op, channel: G, sel: SymbolicExpression<G>, state: &mut Constrain
crates/aiur/src/constraints.rs:716
↓ 7 callersFunctioncompile_univ
Compile a Lean Level to an Ixon Univ.
crates/compile/src/compile.rs:379
↓ 7 callersMethodcount_0
(&self)
crates/kernel/src/expr.rs:126
↓ 7 callersFunctiondecide_sharing
Decide which subterms to share based on profitability. Sharing is profitable when: `(N - 1) * term_size > N * share_ref_size` where N is usage count,
crates/ixon/src/sharing.rs:578
↓ 7 callersFunctiondeser_addr
(buf: &mut &[u8])
crates/ixon/src/metadata.rs:378
↓ 7 callersMethoddump_nat_trace
(&self, phase: &str, e: &KExpr<M>)
crates/kernel/src/whnf.rs:203
↓ 7 callersFunctionensure_in_kenv_of
( name: &Name, lean_env: &ix_common::env::Env, stt: &crate::compile::CompileState, kctx: &mut crate::c
crates/compile/src/compile/aux_gen/expr_utils.rs:2166
↓ 7 callersFunctionexpr_mentions_any_addr
Check whether an expression mentions any constant from a set of addresses.
crates/kernel/src/tc.rs:1103
↓ 7 callersFunctionextract_nat_lit
Extract a nat value from a literal or `Nat.zero` constructor. Matches both `Nat(n)` literals and the `Nat.zero` constructor constant, mirroring C++ `
crates/kernel/src/whnf.rs:2851
← previousnext →301–400 of 3,453, ranked by callers