Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/argumentcomputer/ix
/ functions
Functions
3,453 in github.com/argumentcomputer/ix
⨍
Functions
3,453
◇
Types & classes
327
↓ 2 callers
Method
bump_chain_rotr4
(&mut self, i: &G, j: &G)
crates/aiur/src/gadgets/bytes2.rs:469
↓ 2 callers
Method
bump_chain_rotr7
(&mut self, i: &G, j: &G)
crates/aiur/src/gadgets/bytes2.rs:465
↓ 2 callers
Method
bump_less_than
(&mut self, i: &G, j: &G)
crates/aiur/src/gadgets/bytes2.rs:453
↓ 2 callers
Method
bump_mul
(&mut self, i: &G, j: &G)
crates/aiur/src/gadgets/bytes2.rs:461
↓ 2 callers
Method
bump_or
(&mut self, i: &G, j: &G)
crates/aiur/src/gadgets/bytes2.rs:449
↓ 2 callers
Method
bump_range_check
(&mut self, i: &G, j: &G)
crates/aiur/src/gadgets/bytes2.rs:457
↓ 2 callers
Method
bump_shift_left
(&mut self, byte: &G)
crates/aiur/src/gadgets/bytes1.rs:220
↓ 2 callers
Method
bump_shift_right
(&mut self, byte: &G)
crates/aiur/src/gadgets/bytes1.rs:224
↓ 2 callers
Method
bump_sub
(&mut self, i: &G, j: &G)
crates/aiur/src/gadgets/bytes2.rs:441
↓ 2 callers
Method
bump_xor
(&mut self, i: &G, j: &G)
crates/aiur/src/gadgets/bytes2.rs:433
↓ 2 callers
Method
canonical_aux_ctor_count
Ctor count for the canonical aux at position `canonical_i`, taken from the first source aux that maps to it (stable under duplicate `aux_perm` entries
crates/compile/src/congruence/perm.rs:282
↓ 2 callers
Method
canonical_aux_order
Compute the canonical aux ordering — kernel analogue of the compile-side aux partition-refinement sort (`src/ix/compile/aux_gen/nested.rs`). For each
crates/kernel/src/inductive.rs:1041
↓ 2 callers
Function
canonical_ctor_count_at
Ctor count for canonical aux `canonical_i`, taken from the first source aux that maps to it under `ctx.aux_perm`. Shared with `PermCtx::canonical_aux_
crates/compile/src/congruence/perm.rs:1206
↓ 2 callers
Function
canonical_id
Do not add these to `Primitives`: Lean reduces this through ordinary delta/iota/projection/string-literal expansion, not a native kernel op.
crates/kernel/src/whnf.rs:3304
↓ 2 callers
Function
canonicalize_const_names
Rewrite Const names in an expression using a name map. For each `Const(name, levels)` where `name` is in `name_map`, replaces it with `Const(name_map
crates/compile/src/compile/aux_gen/nested.rs:1350
↓ 2 callers
Method
check_const_member_fresh
(&mut self, id: &KId<M>)
crates/kernel/src/check.rs:90
↓ 2 callers
Method
check_ctor_return_type
A2: Validate constructor return type.
crates/kernel/src/inductive.rs:1969
↓ 2 callers
Method
check_field_universes
A4: Universe constraints — field sort levels must be ≤ inductive result level.
crates/kernel/src/inductive.rs:1918
↓ 2 callers
Method
check_inductive
Validate an inductive block. Pure inductive blocks are coordinated through `KEnv`; legacy mixed source blocks fall back to the member check to avoid c
crates/kernel/src/inductive.rs:71
↓ 2 callers
Method
check_no_unsafe_refs
Verify that an expression does not reference constants with weaker safety. `caller_safety` is the safety level of the definition being checked. - Safe
crates/kernel/src/check.rs:769
↓ 2 callers
Function
check_one_const
( i: usize, progress_index: usize, progress_total: usize, ixon_env: &IxonEnv, lookups: &IxonIngressL
crates/ffi/src/kernel.rs:2280
↓ 2 callers
Method
check_positivity
A3: Strict positivity — block inductives must not appear in negative position.
crates/kernel/src/inductive.rs:1703
↓ 2 callers
Method
check_positivity_domain
Check that a field domain doesn't have block inductives in negative position. Follows lean4lean's `checkPositivity`: recurse through foralls, reject i
crates/kernel/src/inductive.rs:1742
↓ 2 callers
Method
check_recursor_block
Validate every recursor in a recursor block.
crates/kernel/src/inductive.rs:4037
↓ 2 callers
Function
classify_aux_gen
Classify an aux_gen constant by suffix, returning (kind, root_inductive). The root inductive is the base inductive the auxiliary is derived from.
crates/compile/src/decompile.rs:1924
↓ 2 callers
Method
classify_block
( &mut self, members: &[KId<M>], )
crates/kernel/src/check.rs:300
↓ 2 callers
Method
cleanup_nat_offset_major
Lean's `cleanupNatOffsetMajor` for recursor reduction. If the major premise is definitionally an offset `base + k` with `k > 0`, expose exactly one c
crates/kernel/src/whnf.rs:1125
↓ 2 callers
Function
closure_from_set
Parallel transitive closure: each owned addr's walk runs on its own thread, results unioned via the shared `DashSet`.
crates/ixvm-codegen/src/aiur_ixvm_witness.rs:118
↓ 2 callers
Method
cmp
(&self, other: &Self)
crates/common/src/env.rs:120
↓ 2 callers
Function
collect_branch_constraints
Process match cases and optional default branch, emitting selector-gated constraints. Each branch is processed with save/restore so branches share aux
crates/aiur/src/constraints.rs:196
↓ 2 callers
Function
collect_lean_telescope
Collect a Lean App telescope: peel App nodes to get `(head, [a1, ..., aN])`. Arguments are returned in application order (leftmost first).
crates/compile/src/compile/surgery.rs:185
↓ 2 callers
Function
collect_mut_const_exprs
( cnst: &'a MutConst, exprs: &mut Vec<(&'a LeanExpr, &'a [Name])>, )
crates/compile/src/compile.rs:587
↓ 2 callers
Function
compact_head
(e: &KExpr<M>)
crates/kernel/src/infer.rs:580
↓ 2 callers
Function
compare_const
Compare two mutual constants with caching. Dispatches to the appropriate type-specific comparator (defn, indc, recr). Different-kind constants are ord
crates/compile/src/compile.rs:2807
↓ 2 callers
Function
compare_envs
( original: &ix_common::env::Env, egressed: &ix_common::env::Env, )
crates/ffi/src/kernel.rs:3178
↓ 2 callers
Function
compare_external_refs
Compare two non-mutual references by compiled address. Canonical sorting must not fall back to name order here: unresolved names would reintroduce na
crates/compile/src/compile.rs:2442
↓ 2 callers
Function
compare_kuniv
Compare two universe levels structurally. Anon-mode KUniv has no `Param`-by-name resolution: the param index *is* its identity. Mirrors `compare_leve
crates/kernel/src/canonical_check.rs:130
↓ 2 callers
Function
compare_level
Compare two universe levels structurally, using level parameter position (not name) for `Param` comparisons.
crates/compile/src/compile.rs:2385
↓ 2 callers
Function
compile_univ_idx
Compile a universe and add it to the univs table, returning its index.
crates/compile/src/compile.rs:426
↓ 2 callers
Function
compute_aux_perm
Compute the permutation mapping Lean-source aux-walk positions to canonical aux positions. Returns `perm: Vec<usize>` of length `n_source`, where: - `
crates/compile/src/compile/aux_gen/nested.rs:1027
↓ 2 callers
Function
compute_const_size_breakdown
( constant: &ixon::constant::Constant, name: &Name, stt: &ix_compile::compile::CompileState, name_inde
crates/ffi/src/lean_env.rs:4041
↓ 2 callers
Method
compute_k_target
S1: Compute K-target flag constructively. K-like reduction is sound iff: 1. Single inductive (not part of a mutual block with >1 inductive) 2. Result
crates/kernel/src/inductive.rs:4456
↓ 2 callers
Function
connect
Largely taken from https://github.com/n0-computer/iroh/blob/main/iroh/examples/connect.rs
crates/ffi/src/iroh/client.rs:20
↓ 2 callers
Function
const_aux_fields
(ci: &LeanConstantInfo)
crates/compile/src/decompile.rs:2289
↓ 2 callers
Method
const_names_equiv
(&self, generated: &Name, orig: &Name)
crates/compile/src/congruence/perm.rs:255
↓ 2 callers
Function
const_with_refs_discriminator
( refs: Vec<Address>, discriminator: u64, )
crates/ixon/src/env.rs:515
↓ 2 callers
Method
consumers_csr
Build the reverse delta adjacency: for each producer block, the sorted set of consumer blocks that unfold it. This is the natural form for the partiti
crates/kernel/src/profile.rs:187
↓ 2 callers
Function
contract
Contract `lv` by `super_id` (which maps each vertex to one of `next` supervertices) into the next coarser [`CoarseLevel`]. Supervertex weights are mem
crates/kernel/src/shard.rs:1132
↓ 2 callers
Method
coordinated_block_for
( &mut self, c: &KConst<M>, )
crates/kernel/src/check.rs:257
↓ 2 callers
Function
ctor_to_nat
`ctor_to_nat` for total-order tie-breaking in `norm_lt`. Matches Lean's `Level.ctorToNat`; MVar gets slot 2 so our numbering lines up even though MVar
crates/compile/src/compile/aux_gen/below.rs:1530
↓ 2 callers
Function
current_rss_mib
()
crates/ffi/src/kernel.rs:2186
↓ 2 callers
Method
decode
Decode a Lean Ix.Name to Rust Name.
crates/ffi/src/ix/name.rs:72
↓ 2 callers
Method
decode
Decode a Lean Ix.Level to Rust Level.
crates/ffi/src/ix/level.rs:93
↓ 2 callers
Method
decode
Decode a ByteArray (Address) to Address.
crates/ffi/src/ix/address.rs:32
↓ 2 callers
Method
decode
Decode Ixon.Univ (recursive enum).
crates/ffi/src/lean_ixon/univ.rs:51
↓ 2 callers
Method
decode
Decode Ixon.Expr (12 constructors).
crates/ffi/src/lean_ixon/expr.rs:130
↓ 2 callers
Function
decode_addr
Helper: decode a 32-byte address from a `LeanByteArray`.
crates/ffi/src/aiur/protocol.rs:357
↓ 2 callers
Function
decode_g_block_pair
(ctor: LeanCtor<LeanBorrowed<'_>>)
crates/ffi/src/aiur/toplevel.rs:165
↓ 2 callers
Function
decode_level
(obj: LeanBorrowed<'_>, cache: &mut Cache<'_>)
crates/ffi/src/lean_env.rs:640
↓ 2 callers
Function
decode_name_array
Decode an `@& Array Lean.Name` FFI argument into a `Vec<Name>`. Uses a fresh `GlobalCache` to deduplicate shared sub-names within the array (the cach
crates/ffi/src/lean_env.rs:635
↓ 2 callers
Function
decode_name_constant_info
Decode a single (Name, ConstantInfo) pair.
crates/ffi/src/lean_env.rs:1060
↓ 2 callers
Function
decode_owned_blob
Helper: decode a flat 32-byte-block owned blob into `Vec<Address>`.
crates/ffi/src/aiur/protocol.rs:374
↓ 2 callers
Function
decode_u64_array
Decode Array UInt64 from Lean.
crates/ffi/src/lean_ixon/expr.rs:10
↓ 2 callers
Function
decompile_const_val
Decompile a ConstantVal (name, level_params, type).
crates/compile/src/decompile.rs:1266
↓ 2 callers
Function
decompile_inductive
Decompile an Inductive. Constructor metadata is resolved from Named entries, not from CtorMeta.
crates/compile/src/decompile.rs:1511
↓ 2 callers
Function
decompile_univ
Decompile an Ixon Univ to a Lean Level.
crates/compile/src/decompile.rs:445
↓ 2 callers
Function
dispatch_branch
Dispatch a match: look up the value in the cases map, or fall through to the default (pushing inverse witnesses for each case to prove inequality).
crates/aiur/src/trace.rs:174
↓ 2 callers
Function
dispatch_execute
( toplevel: &aiur::bytecode::Toplevel, fun_idx: aiur::bytecode::FunIdx, input: Vec<G>, io_buffer: &mut
crates/ffi/src/aiur/protocol.rs:399
↓ 2 callers
Function
distinct_vks
The distinct program vks across a set of proofs (the allowed set to pin the agg guest against — typically {SHARD_VK} or {SHARD_VK, AGG_VK}).
zisk/host/src/main.rs:564
↓ 2 callers
Function
dummy_constant
()
crates/ixon/src/env.rs:394
↓ 2 callers
Method
dump_delta_trace
(&self, id: &KId<M>, arity: usize, e: &KExpr<M>)
crates/kernel/src/whnf.rs:139
↓ 2 callers
Method
dump_flat_aux_order
( &self, label: &str, block_id: &KId<M>, flat: &[FlatBlockMember<M>], n_originals: usize,
crates/kernel/src/inductive.rs:1400
↓ 2 callers
Function
dump_query_stats
(record: &QueryRecord, tag: &str)
crates/aiur/src/execute.rs:184
↓ 2 callers
Function
ensure_in_kenv
Convenience wrapper: ingress into the **original** kenv (`stt.kctx`).
crates/compile/src/compile/aux_gen/expr_utils.rs:2197
↓ 2 callers
Function
ensure_in_kenv_of_inner
( 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:2150
↓ 2 callers
Function
ensure_in_kenv_of_inner_env
Ingress a **single** Lean constant into the given kenv so the kernel type checker can resolve it during inference. Handles all constant types: inducti
crates/compile/src/compile/aux_gen/expr_utils.rs:1945
↓ 2 callers
Function
env_with_unit_like
Env with `Unit : Sort 0` (0 indices, 1 ctor Unit.mk with 0 fields).
crates/kernel/src/def_eq.rs:2112
↓ 2 callers
Method
eval_nat_offset_literal
Syntactic, no-delta evaluator for Nat offset constants. This is intentionally weaker than WHNF: it only recognizes already exposed Nat literals/const
crates/kernel/src/whnf.rs:1199
↓ 2 callers
Function
execute_ixvm
( toplevel: &Toplevel, fun_idx: FunIdx, args: Vec<G>, io_buffer: &mut IOBuffer, )
crates/ixvm-codegen/src/aiur_ixvm_runner.rs:31
↓ 2 callers
Function
expand_shares_member
( member: &ixon::constant::MutConst, sharing: &[Arc<ixon::expr::Expr>], )
crates/ffi/src/lean_env.rs:2532
↓ 2 callers
Method
explicit_offset
If this level is an explicit numeral `Succ^n(Zero)`, returns `Some((Zero, n))`. Otherwise returns `None`.
crates/common/src/env.rs:418
↓ 2 callers
Method
expr
(&mut self, e: &Expr)
crates/aiur/src/vk_codec.rs:97
↓ 2 callers
Function
expr_has_bvar
(expr: &LeanExpr)
crates/compile/src/compile/aux_gen/expr_utils.rs:3029
↓ 2 callers
Function
expr_hash_prefix
(expr: &Arc<ixon::expr::Expr>)
crates/ffi/src/lean_env.rs:2568
↓ 2 callers
Function
extract_int_lit
Extract an Int value from an app-spine whose head is `Int.ofNat` or `Int.negSucc` applied to a Nat literal. Returns `None` for any other shape so the
crates/kernel/src/whnf.rs:3008
↓ 2 callers
Method
fault_in_name
(&mut self, name: &Name)
crates/compile/src/compile/aux_gen/expr_utils.rs:2294
↓ 2 callers
Function
find_duplicates
Collapse the (field, addr) vec into address → fields-that-share-it.
crates/kernel/src/primitive.rs:1271
↓ 2 callers
Function
find_rec_target
Check if a field domain targets a flat block member (original or auxiliary). Matches C++ `is_rec_argument` (inductive.cpp:383-390): peels foralls usi
crates/compile/src/compile/aux_gen/recursor.rs:2091
↓ 2 callers
Method
find_root_key
Find the root representative key for a given composite key. Returns None if the key is not in the union-find. Like `is_equiv`, takes the lookup key b
crates/kernel/src/equiv.rs:120
↓ 2 callers
Function
fm_refine
Fiduccia–Mattheyses refinement (boundary variant): up to `max_passes` passes, each moving every vertex at most once in decreasing-gain order subject t
crates/kernel/src/shard.rs:841
↓ 2 callers
Function
forall_telescope_exact
Like [`forall_telescope`], but errors if fewer than `n` foralls are peeled. Use this when the caller is about to index into the returned `decls` or `f
crates/compile/src/compile/aux_gen/expr_utils.rs:318
↓ 2 callers
Function
function_lookup
( multiplicity: G, function_index: G, inputs: &[G], output: &[G], )
crates/aiur/src/trace.rs:570
↓ 2 callers
Method
g
(&mut self, v: Val)
crates/aiur/src/vk_codec.rs:74
↓ 2 callers
Method
gather_peer_majors
Gather the set of major inductive KIds from all peer recursors in a recursor block. Used to look up the rec_majors_cache.
crates/kernel/src/inductive.rs:4410
↓ 2 callers
Function
gen_env
(g: &mut Gen)
crates/ixon/src/serialize.rs:2238
↓ 2 callers
Function
gen_opt_rules
(g: &mut Gen)
crates/ixon/src/proof.rs:1230
↓ 2 callers
Function
gen_recursor
(g: &mut Gen)
crates/ixon/src/constant.rs:356
↓ 2 callers
Function
gen_univ_no_imax
Generate a universe that uses only Zero / Succ / Max / Param — no IMax. Property-tested `univ_geq` reliably holds `max(a, b) >= {a, b}` on this subset
crates/kernel/src/level.rs:1145
↓ 2 callers
Method
get_block
Get block members. Returns owned Vec (cheap KId clones).
crates/kernel/src/env.rs:498
↓ 2 callers
Function
get_bool
(buf: &mut &[u8])
crates/ixon/src/serialize.rs:55
← previous
next →
901–1,000 of 3,453, ranked by callers