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
↓ 7 callers
Method
get
Materialize the `Constant`. If this entry was built via [`Self::from_constant`], returns the pre-populated cached `Arc` (zero-cost clone). Otherwise
crates/ixon/src/lazy.rs:150
↓ 7 callers
Function
get_u8
(buf: &mut &[u8])
crates/ixon/src/proof.rs:244
↓ 7 callers
Function
lambda_telescope
Open lambda binders into FVars (matching forall_telescope but for lambdas).
crates/compile/src/compile/aux_gen/expr_utils.rs:1256
↓ 7 callers
Method
meta_fmt
(&self, f: &mut fmt::Formatter<'_>)
crates/kernel/src/id.rs:73
↓ 7 callers
Function
mk_addr
(s: &str)
crates/kernel/src/infer.rs:623
↓ 7 callers
Function
mk_id
(s: &str)
crates/compile/src/kernel_egress.rs:1283
↓ 7 callers
Function
mk_meta_nat
(n: u64)
crates/kernel/src/whnf.rs:3628
↓ 7 callers
Function
mk_pprod
Build `PProd.{u, v} a b` with separate universe levels for each component. Matches Lean's `mkPProd` which infers levels from the actual types. Caller
crates/compile/src/compile/aux_gen/below.rs:1718
↓ 7 callers
Function
node_hash
(left: &Address, right: &Address)
crates/ixon/src/merkle.rs:59
↓ 7 callers
Method
num_blocks
Number of blocks (vertices).
crates/kernel/src/profile.rs:157
↓ 7 callers
Method
open_binder_anon
Anonymous variant of [`Self::open_binder`] that uses `Name::anon()` / `BinderInfo::Default`. Convenient for kernel-internal walks (inductive validatio
crates/kernel/src/tc.rs:555
↓ 7 callers
Function
read_addr_bytes
Read exactly 32 bytes (Address) from a byte slice, advancing the cursor.
crates/compile/src/decompile.rs:235
↓ 7 callers
Function
register_name
Register a Name in `stt.env.names` so `decompile_name` can resolve it. Mirrors `compile_name` (content-address the name, insert into names map).
crates/compile/src/decompile.rs:4669
↓ 7 callers
Method
reset
Reset thread-local state between constants. Global caches in `KEnv` are NOT cleared — they grow monotonically and are shared across all TCs.
crates/kernel/src/tc.rs:817
↓ 7 callers
Method
root
Recursively compute the root hash.
crates/ixon/src/assumption_tree.rs:106
↓ 7 callers
Function
roundtrip_block
Compile a batch of regenerated `MutConst`s as a mutual block (mirroring `compile_aux_block`), then decompile each member with original metadata from `
crates/compile/src/decompile.rs:2406
↓ 7 callers
Function
sort0
()
crates/compile/src/ground.rs:244
↓ 7 callers
Function
sort0
()
crates/compile/src/compile/aux_gen/nested.rs:2096
↓ 7 callers
Function
sort1
()
crates/kernel/src/whnf.rs:3091
↓ 7 callers
Function
test_env
()
crates/kernel/src/check.rs:946
↓ 7 callers
Function
timed_drop_ns
(value: T)
crates/kernel/src/ingress.rs:3464
↓ 7 callers
Method
verify
( &self, fri_parameters: FriParameters, claim: &[G], proof: &Proof, )
crates/aiur/src/synthesis.rs:254
↓ 7 callers
Method
write
Write bytes to the store and return their address (blake3 hash)
crates/compile/src/store.rs:86
↓ 7 callers
Function
zero_address
()
crates/ixon/src/merkle.rs:69
↓ 6 callers
Function
addr_key
(addr: &Address)
crates/ixvm-codegen/src/aiur_ixvm_witness.rs:62
↓ 6 callers
Function
apply_sharing
(exprs: Vec<Arc<Expr>>)
crates/compile/src/compile.rs:1670
↓ 6 callers
Function
apply_sharing_with_stats
Apply sharing analysis to a set of expressions. Returns the rewritten expressions, sharing vector, and hash-consed size. Hash-consed size tracking is
crates/compile/src/compile.rs:1608
↓ 6 callers
Function
apps_ae
(mut f: AE, args: &[AE])
crates/kernel/src/whnf.rs:3307
↓ 6 callers
Function
axiom_constant
()
crates/ixon/src/lazy.rs:253
↓ 6 callers
Method
begin_const
(&mut self, id: &KId<M>)
crates/kernel/src/tc.rs:922
↓ 6 callers
Function
build_lean_nat_usize
Build a Lean Nat from a usize.
crates/ffi/src/compile.rs:63
↓ 6 callers
Function
build_string_array
(errors: &[String])
crates/ffi/src/kernel.rs:3387
↓ 6 callers
Function
bytes_to_g
(bytes: &[u8])
crates/ixvm-codegen/src/aiur_ixvm_witness.rs:67
↓ 6 callers
Function
check_accepts_with_prims
Check with custom primitives (needed for Nat literal tests etc.)
crates/kernel/src/testing.rs:246
↓ 6 callers
Function
compare_expr
Compare two Lean expressions structurally for canonical ordering. Strips `Mdata` wrappers, compares by constructor tag, then recurses into subexpressi
crates/compile/src/compile.rs:2464
↓ 6 callers
Function
compile_const
Compile a single constant.
crates/compile/src/compile.rs:3004
↓ 6 callers
Function
compile_mutual
Compile a mutual block. When `aux` is true, auxiliary constants (`.rec`, `.below`, `.brecOn`) are regenerated for alpha-collapsed blocks via `generat
crates/compile/src/compile.rs:3466
↓ 6 callers
Method
contains
True iff `target` appears as a `Leaf` somewhere in the tree.
crates/ixon/src/assumption_tree.rs:133
↓ 6 callers
Function
content_address_of
Compute content address of an Ixon `Constant` by serializing and hashing.
crates/compile/src/kernel_egress.rs:710
↓ 6 callers
Method
decode
Decode Ix.Int from Lean object. Ix.Int: ofNat (tag 0, 1 field) | negSucc (tag 1, 1 field)
crates/ffi/src/ix/data.rs:38
↓ 6 callers
Function
decode_expr
(obj: LeanBorrowed<'_>, cache: &mut Cache<'_>)
crates/ffi/src/lean_env.rs:788
↓ 6 callers
Method
discover_block_inductives
Discover all inductives in a mutual block.
crates/kernel/src/inductive.rs:427
↓ 6 callers
Function
egress_level
Convert a zero kernel universe to a Lean level.
crates/compile/src/kernel_egress.rs:26
↓ 6 callers
Function
enabled
()
crates/kernel/src/perf.rs:39
↓ 6 callers
Function
expand_shares_expr
( expr: &Arc<ixon::expr::Expr>, sharing: &[Arc<ixon::expr::Expr>], )
crates/ffi/src/lean_env.rs:2495
↓ 6 callers
Method
finish
(&self, worker_idx: usize, outcome: &CheckOutcome)
crates/ffi/src/kernel.rs:2578
↓ 6 callers
Method
get_major_inductive_id
Get the major premise's inductive KId from a recursor type. Strategy: peel `skip` foralls per Lean's stored `params + motives + minors + indices` cou
crates/kernel/src/whnf.rs:1616
↓ 6 callers
Method
get_name
Get a name by address.
crates/ixon/src/env.rs:242
↓ 6 callers
Function
get_opt_addr
(buf: &mut &[u8])
crates/ixon/src/proof.rs:961
↓ 6 callers
Method
get_result_sort_level
Get the result sort level of a type after peeling `n` foralls.
crates/kernel/src/inductive.rs:2090
↓ 6 callers
Function
get_value
Extract the value expression from a ConstantInfo, if it has one.
crates/compile/src/decompile.rs:2375
↓ 6 callers
Function
level_alpha_eq
Check that two Lean levels are equal modulo the same simplifications `Level::max_smart` / `Level::imax_smart` perform. Why normalize: `aux_gen::expr_
crates/compile/src/congruence.rs:41
↓ 6 callers
Method
load_meta_extensions
Install per-constant metadata extension tables. - `meta_sharing` → dedicated `self.meta_sharing` (separate from the block sharing, see struct docs).
crates/compile/src/decompile.rs:128
↓ 6 callers
Method
lvls
(&self)
crates/kernel/src/constant.rs:114
↓ 6 callers
Function
mk_axio
(_s: &str)
crates/kernel/src/env.rs:644
↓ 6 callers
Function
mk_name
(s: &str)
crates/kernel/src/id.rs:104
↓ 6 callers
Function
mk_prop_structure_proj_test
Helper: build test `name : PropStructure.{0,1} → resType := fun x => .proj PropStructure idx x`
crates/kernel/src/tutorial/defeq.rs:1891
↓ 6 callers
Function
mk_triple_forall
`∀ (a : α) (b : β) (c : γ), body`
crates/compile/src/compile/aux_gen/expr_utils.rs:3291
↓ 6 callers
Method
n_source_motives
Total source-layout motive count: `n_primary + n_source_aux`.
crates/compile/src/congruence/perm.rs:214
↓ 6 callers
Method
nat_literal
(&mut self, n: u64)
crates/kernel/src/whnf.rs:1691
↓ 6 callers
Function
norm_add_const
(s: &mut NormLevel, k: u64, path: &[u64])
crates/kernel/src/level.rs:345
↓ 6 callers
Function
preseed_expr_tables
( exprs: &[(&LeanExpr, &[Name])], mut_ctx: &MutCtx, cache: &mut BlockCache, stt: &CompileState, call
crates/compile/src/compile.rs:545
↓ 6 callers
Method
promote_aux
Promote a constant from `aux_name_to_addr` to `name_to_addr`, setting `Named.original` to the given `(orig_addr, orig_meta)` from the ephemeral no-aux
crates/compile/src/compile.rs:278
↓ 6 callers
Function
prop_structure_env
Build PUnit.{u} + Eq + PropStructure.{u,v} env.
crates/kernel/src/tutorial/defeq.rs:1689
↓ 6 callers
Function
punit_const
Build `PUnit.{u}` (the type, at `Sort (u+1)`)
crates/compile/src/compile/aux_gen/below.rs:1732
↓ 6 callers
Method
put_indexed
Delegate indexed serialization to the inner enum, then serialize extension tables.
crates/ixon/src/metadata.rs:249
↓ 6 callers
Function
put_opt_addr
Helper: write an `Option<Address>` as `[0x00]` (None) or `[0x01][addr:32]` (Some). Single byte for absence avoids a 33-byte gap when assumptions are a
crates/ixon/src/proof.rs:951
↓ 6 callers
Method
quick_def_eq
Quick structural: same constructor, recursively same children (no WHNF).
crates/kernel/src/def_eq.rs:557
↓ 6 callers
Function
resolve_level_params
( lvl_addrs: &[Address], names: &FxHashMap<Address, Name>, )
crates/kernel/src/ingress.rs:341
↓ 6 callers
Method
ser
Serialize to a fresh Vec.
crates/ixon/src/assumption_tree.rs:245
↓ 6 callers
Function
sort0
()
crates/kernel/src/constant.rs:160
↓ 6 callers
Function
sort1
()
crates/kernel/src/check.rs:942
↓ 6 callers
Function
sort_consts
Sort mutual constants into a canonical ordering and group equal ones. Uses iterative refinement: sort by structure, group equals, re-sort with updated
crates/compile/src/compile.rs:2933
↓ 6 callers
Function
store_canonical
Store `c` at its true content address; returns the address. Tests that serialize+deserialize through `Env::put`/`Env::get` must use canonical addresse
crates/ixon/src/serialize.rs:2447
↓ 6 callers
Function
strip_mdata
Strip Mdata wrappers from an expression.
crates/compile/src/congruence.rs:337
↓ 6 callers
Method
subst_univ
Substitute universe params in a universe level. Fails with `UnivParamOutOfRange { idx, bound }` if an interior `Param(idx)` references beyond `us.len
crates/kernel/src/tc.rs:779
↓ 6 callers
Function
timed_intern_univ
( intern: &mut InternTable<M>, u: KUniv<M>, stats: &mut ConvertStats, )
crates/kernel/src/ingress.rs:251
↓ 6 callers
Method
to_bytes
Serialize to the `.ixes` binary format.
crates/kernel/src/shard.rs:1390
↓ 6 callers
Function
two_clusters
Two tight clusters {1,2,3} and {4,5,6} with heavy intra-cluster delta and a single thin cross edge. A good bisection cuts only the thin edge.
crates/kernel/src/shard.rs:2038
↓ 6 callers
Function
unit
()
crates/kernel/src/whnf.rs:3536
↓ 6 callers
Function
unit_prop_rec
Build a rec type: `∀ {motive : P → Prop} (mk : motive P.mk) (t : P), motive t`
crates/compile/src/compile/aux_gen/cases_on.rs:419
↓ 6 callers
Function
usize_env
Build an env that includes the full USize.size reduction chain: System.Platform.numBits (handled by try_reduce_native → 64) Nat.pow at the correct pri
crates/kernel/src/whnf.rs:4213
↓ 6 callers
Method
witness_data
( &self, function_index: usize, query_record: &QueryRecord, io_buffer: &IOBuffer, )
crates/aiur/src/trace.rs:74
↓ 5 callers
Function
all_to_ctx
Convert a Vec<Name> to a MutCtx. Each name gets its position as the Nat value.
crates/compile/src/mutual.rs:131
↓ 5 callers
Function
apply_sharing_to_definition_with_stats
( def: Definition, refs: Vec<Address>, univs: Vec<Arc<Univ>>, block_name: Option<&str>, )
crates/compile/src/compile.rs:1685
↓ 5 callers
Function
apply_sharing_to_recursor_with_stats
Apply sharing to a Recursor and return a Constant with stats.
crates/compile/src/compile.rs:1748
↓ 5 callers
Function
axiom_const_with_refs
(refs: Vec<Address>)
crates/kernel/src/anon_env.rs:111
↓ 5 callers
Method
bfs_refs
BFS-collect all addresses transitively reachable from `root` via the `Constant.refs` field. The returned set includes `root` itself. Addresses that a
crates/ixon/src/env.rs:305
↓ 5 callers
Function
block_step_cost
Predicted Zisk guest STEPS contributed by a single block (reduction + its own ingress). The per-shard floor and any cross-shard re-ingress are added a
crates/kernel/src/shard.rs:1643
↓ 5 callers
Method
blocks
The block entries, indexed by block id.
crates/kernel/src/profile.rs:167
↓ 5 callers
Function
build_check_claim
Build a check claim for the constant at `const_addr` in `env`. Sets `assumptions: None` when the constant has no transitive deps, else `Some(root)` w
crates/kernel/src/claim.rs:35
↓ 5 callers
Function
build_compile_flat_block
Build a flat block from an ordered list of original inductives. Detects nested inductive occurrences in constructor fields and creates auxiliary entr
crates/compile/src/compile/aux_gen/nested.rs:1672
↓ 5 callers
Function
build_test_env
Helper: build a minimal Lean environment with mutual inductives.
crates/compile/src/compile/surgery.rs:1208
↓ 5 callers
Method
check_ctor_against_inductive_member
Validate a standalone constructor against its parent inductive. Runs the same A1–A4 checks that `check_inductive_member` runs per-ctor.
crates/kernel/src/inductive.rs:360
↓ 5 callers
Function
compare_kconst
Compare two block-eligible `KConst`s with full structural ordering. Different kinds order by `kconst_kind_ord`; same-kind dispatch goes to the kind-sp
crates/kernel/src/canonical_check.rs:458
↓ 5 callers
Function
compile_aux_block_with_rename
Like `compile_aux_block`, but applies an optional name-rename map when registering named entries in the env. The rename maps *canonical* constant nam
crates/compile/src/compile/mutual.rs:103
↓ 5 callers
Function
const_alpha_eq_with_perm
Compare a canonical-layout generated constant against a Lean source-order original, with [`PermCtx`] describing how positions map between the two layo
crates/compile/src/congruence/perm.rs:421
↓ 5 callers
Function
content_address
Compute the content-addressed hash for a Constant.
crates/compile/src/compile/mutual.rs:487
↓ 5 callers
Function
count_foralls_expr
Count leading foralls (local helper to avoid name collision with the pub(super) count_foralls in below.rs).
crates/compile/src/compile/aux_gen/below.rs:579
↓ 5 callers
Method
ctx_addr_for_lbr
(&mut self, lbr: u64)
crates/kernel/src/tc.rs:385
← previous
next →
401–500 of 3,453, ranked by callers