MCPcopy Create free account

hub / github.com/argumentcomputer/ix / functions

Functions3,453 in github.com/argumentcomputer/ix

↓ 2 callersMethodpeel_proj_forall
Peel the leading `Π` binder from `e`, returning `(domain, body)`. Tries the syntactic fast path first: if `e` is already `ExprData::All(..)`, no WHNF
crates/kernel/src/infer.rs:463
↓ 2 callersMethodphase_timing_label_matches
(&self, id: &KId<M>)
crates/kernel/src/check.rs:486
↓ 2 callersFunctionpoly_nested_env
Polymorphic nested: PTree.{u} : Sort (u+1) → Sort (u+1) Like Tree but with one universe param and one type param. PTree.leaf.{u} : ∀ (α : Sort (u+1)),
crates/kernel/src/inductive.rs:5374
↓ 2 callersMethodprefix
(&self)
crates/ffi/src/kernel.rs:2232
↓ 2 callersFunctionprj_hash
()
crates/kernel/src/expr.rs:950
↓ 2 callersMethodproject_decidable_fin_val_minor
( &mut self, id: &KId<M>, field: u64, minor: &KExpr<M>, )
crates/kernel/src/whnf.rs:1494
↓ 2 callersMethodpush_type
Push a new member and keep `type_name_set` in sync. All pushes to `types` must go through this method so the incremental name set stays consistent wit
crates/compile/src/compile/aux_gen/nested.rs:147
↓ 2 callersMethodput
Preorder serialization: `0u8, id(4)` for a leaf; `1u8, <left>, <right>` for an internal node.
crates/kernel/src/shard.rs:315
↓ 2 callersFunctionput_bool
(x: bool, buf: &mut Vec<u8>)
crates/ixon/src/serialize.rs:51
↓ 2 callersFunctionput_def_kind
(k: DefKind, buf: &mut Vec<u8>)
crates/ixon/src/proof.rs:264
↓ 2 callersFunctionput_def_safety
(s: DefinitionSafety, buf: &mut Vec<u8>)
crates/ixon/src/proof.rs:281
↓ 2 callersFunctionput_name_component
Serialize a Name component (references parent by address). Format: tag (1 byte) + parent_addr (32 bytes) + data
crates/ixon/src/serialize.rs:960
↓ 2 callersFunctionput_named_indexed
Serialize a Named entry with indexed metadata.
crates/ixon/src/serialize.rs:1068
↓ 2 callersFunctionput_rules
(rules: &[RevealRecursorRule], buf: &mut Vec<u8>)
crates/ixon/src/proof.rs:401
↓ 2 callersMethodput_ser
(&self, buf: &mut Vec<u8>)
crates/ixon/src/serialize.rs:482
↓ 2 callersFunctionput_u64_vec
(v: &[u64], buf: &mut Vec<u8>)
crates/ixon/src/metadata.rs:973
↓ 2 callersMethodread
( &self, channel: G, idx: usize, len: usize, )
crates/aiur/src/execute.rs:77
↓ 2 callersFunctionread_nat
Read a Nat from the blob store.
crates/compile/src/decompile.rs:148
↓ 2 callersFunctionread_pub_addr
Reconstruct a 32-byte address committed at leaf-publics `slot_start` (8 consecutive u32 slots). `words` is the whole proof as u64 words; the zisk_publ
zisk/agg-guest/src/main.rs:70
↓ 2 callersFunctionrec_name_to_below_name
(name: &Name)
crates/compile/src/compile/surgery.rs:166
↓ 2 callersFunctionrec_name_to_brecon_name
(name: &Name)
crates/compile/src/compile/surgery.rs:154
↓ 2 callersMethodrecord_cache_clear
(&mut self, cache: &ExprCache<M>)
crates/kernel/src/ingress.rs:228
↓ 2 callersMethodrecord_current_fuel_used
(&mut self)
crates/kernel/src/tc.rs:898
↓ 2 callersMethodrecord_delta_target
(&mut self, id: &KId<M>)
crates/kernel/src/tc.rs:931
↓ 2 callersMethodrecord_whnf_core_hit
(&self)
crates/kernel/src/perf.rs:114
↓ 2 callersMethodrecord_whnf_core_miss
(&self)
crates/kernel/src/perf.rs:118
↓ 2 callersMethodrecord_whnf_hit
(&self)
crates/kernel/src/perf.rs:98
↓ 2 callersMethodrecord_whnf_miss
(&self)
crates/kernel/src/perf.rs:102
↓ 2 callersMethodrecord_whnf_no_delta_hit
(&self)
crates/kernel/src/perf.rs:106
↓ 2 callersMethodrecord_whnf_no_delta_miss
(&self)
crates/kernel/src/perf.rs:110
↓ 2 callersFunctionregister_aux_aliases
Register Lean-source aux names as aliases of already-compiled canonical aux_gen patches. This preserves one compiled constant per canonical class whil
crates/compile/src/compile/mutual.rs:420
↓ 2 callersFunctionregister_muts_member
( out: &IxonEnv, member_name: &Name, original: &Named, block_addr: &Address, member_kind: MutConstKi
crates/compile/src/kernel_egress.rs:804
↓ 2 callersMethodreplace_aux_refs_for_sort
Rewrite nested occurrences in synthetic aux member/ctor types to the corresponding synthetic aux constants before running `sort_consts` partition refi
crates/kernel/src/inductive.rs:759
↓ 2 callersFunctionreplace_result_sort_with_prop
Replace the result sort of a forall chain with `Sort 0` (Prop). Given `∀ (x1 : A1) ... (xn : An), Sort u`, returns `∀ (x1 : A1) ... (xn : An), Prop`.
crates/compile/src/compile/aux_gen/below.rs:1777
↓ 2 callersMethodresolve
(&self, name: &Name)
crates/kernel/src/congruence.rs:28
↓ 2 callersMethodresolve_addr_aux
Look up a compiled constant's address by name. Checks `name_to_addr` first, then `aux_name_to_addr` when `aux` is true.
crates/compile/src/compile.rs:252
↓ 2 callersMethodrestore
(&mut self, init: &SharedState)
crates/aiur/src/constraints.rs:103
↓ 2 callersMethodrestore
Restore a complete expression (type or value) by peeling params, walking the body to replace aux references, and re-wrapping. Matches C++ `restore_ne
crates/compile/src/compile/aux_gen/expr_utils.rs:1092
↓ 2 callersMethodrestore_depth
Restore context to a previously saved depth.
crates/kernel/src/tc.rs:519
↓ 2 callersMethodrewrite
(&mut self, expr: &LeanExpr)
crates/compile/src/compile/aux_gen/recursor.rs:242
↓ 2 callersFunctionrewrite_expr
Rewrite an expression tree to use Share(idx) references. Uses iterative traversal with caching to handle deep trees and Arc sharing.
crates/ixon/src/sharing.rs:696
↓ 2 callersFunctionsame_resolved_name_addr
( a: &Name, b: &Name, stt: &crate::compile::CompileState, )
crates/compile/src/compile/aux_gen/expr_utils.rs:3138
↓ 2 callersMethodsave_depth
Save current depth for later restore.
crates/kernel/src/tc.rs:514
↓ 2 callersMethodselector_index
(&self, sel: usize)
crates/aiur/src/constraints.rs:80
↓ 2 callersFunctionseq_ixon_drop_enabled
()
crates/kernel/src/ingress.rs:3511
↓ 2 callersFunctionserialized_const_size
(constant: &ixon::constant::Constant)
crates/ffi/src/lean_env.rs:4093
↓ 2 callersFunctionshard_esp
Read a `.ixprof`, partition into `num_shards` shards, and emit a manifest with per-shard cost metrics, foreign-block sets, and (delta-based) assumptio
crates/kernel/src/shard.rs:1524
↓ 2 callersFunctionshard_predicted
Full predicted STEPS of a shard under a partition: floor + member step-cost + cross-ingress (foreign producers' bytes). Mirrors the packer's cap test.
crates/kernel/src/shard.rs:2163
↓ 2 callersFunctionshard_prove_secs
Predicted single-shard leaf prove time (seconds) for a leaf of `steps`.
crates/kernel/src/shard.rs:1695
↓ 2 callersMethodsort
(u: KUniv<M>)
crates/kernel/src/expr.rs:284
↓ 2 callersFunctionsort0
()
crates/compile/src/mutual.rs:203
↓ 2 callersFunctionsort_hash
()
crates/kernel/src/expr.rs:849
↓ 2 callersFunctionsort_prop
()
crates/compile/src/compile/aux_gen/cases_on.rs:388
↓ 2 callersFunctionsort_succ
()
crates/compile/src/kernel_egress.rs:1291
↓ 2 callersFunctionsource_aux_order_from_expanded
( expanded: &ExpandedBlock, )
crates/compile/src/compile/aux_gen/nested.rs:966
↓ 2 callersFunctionsource_name_hint_candidate
(expr: &LeanExpr)
crates/compile/src/compile/aux_gen/expr_utils.rs:2784
↓ 2 callersFunctionsubst_level
Substitute universe parameters in a level. Uses the smart constructors `Level::max_smart` and `Level::imax_smart` so that substituting away parameter
crates/compile/src/compile/aux_gen/expr_utils.rs:917
↓ 2 callersFunctionsubst_level
Substitute a named level parameter with a concrete level.
crates/compile/src/compile/aux_gen/brecon.rs:2829
↓ 2 callersFunctionsubst_level_in_expr
Substitute a named level parameter with a concrete level throughout an expression. Used for Prop brecOn: the recursor type has `Level::param(u)` for
crates/compile/src/compile/aux_gen/brecon.rs:2787
↓ 2 callersFunctiontimed_drop_fxmap_par
(map: FxHashMap<K, V>)
crates/kernel/src/ingress.rs:3501
↓ 2 callersMethodto_bytes
Serialize to the `.ixprof` binary format.
crates/kernel/src/profile.rs:215
↓ 2 callersFunctionto_linear_object
c/linear.h:203
↓ 2 callersFunctiontopological_sort_names
Topologically sort names so parents come before children. Collects `(Address, Name)` pairs up front (cheap: Arc clone + 32-byte address clone), paral
crates/ixon/src/serialize.rs:2088
↓ 2 callersMethodtotal
(&self)
crates/ffi/src/lean_env.rs:3878
↓ 2 callersMethodtry_eta_expansion
Lambda eta expansion (lean4lean style): if `t` is a lambda and `s` is not, infer `s`'s type, WHNF to get a forall, wrap `s` as `λ(ty). s #0`, compare
crates/kernel/src/def_eq.rs:1064
↓ 2 callersMethodtry_eta_struct
Struct eta (lean4lean style): if `s` is a fully-applied constructor of a struct-like type, check `proj(i, t) ≡ s.args[params+i]` for each field. Tries
crates/kernel/src/def_eq.rs:1101
↓ 2 callersMethodtry_get_expr
(&self, hash: &blake3::Hash)
crates/kernel/src/env.rs:95
↓ 2 callersMethodtry_iota_with_flags
Try iota: recursor applied to constructor. Flags-threaded: when `flags.cheap_rec` is set, the major premise (and the freshly-built string-literal con
crates/kernel/src/whnf.rs:855
↓ 2 callersMethodtry_project_core
( &mut self, struct_id: &KId<M>, field: u64, e: &KExpr<M>, )
crates/kernel/src/def_eq.rs:1494
↓ 2 callersMethodtry_proof_irrel
Proof irrelevance: if both are proofs of propositions (types in Prop), they're def-eq. We check type(type(a)) = Sort(0), meaning type(a) : Prop. The
crates/kernel/src/def_eq.rs:800
↓ 2 callersMethodtry_reduce_bitvec
Reduce the small BitVec fragment that is definitionally Nat-backed: - `BitVec.toNat (BitVec.ofNat w n)` reduces to `n % 2^w` - `BitVec.ult w x y` redu
crates/kernel/src/whnf.rs:2459
↓ 2 callersMethodtry_reduce_bitvec_to_nat
( &mut self, value: &KExpr<M>, )
crates/kernel/src/whnf.rs:2575
↓ 2 callersMethodtry_reduce_bitvec_ult
( &mut self, width: &KExpr<M>, lhs: &KExpr<M>, rhs: &KExpr<M>, )
crates/kernel/src/whnf.rs:2494
↓ 2 callersMethodtry_reduce_string
(&mut self, e: &KExpr<M>)
crates/kernel/src/whnf.rs:2786
↓ 2 callersMethodtry_same_head_spine
Same-head constant: if both are `C us args`, compare spines without unfolding.
crates/kernel/src/def_eq.rs:606
↓ 2 callersFunctionu8_add_channel
()
crates/aiur/src/lib.rs:49
↓ 2 callersFunctionu8_sub_channel
()
crates/aiur/src/lib.rs:54
↓ 2 callersMethodunfold_const_value
Cache wrapper around `instantiate_univ_params` for delta unfolding. `head_expr` is the `Const(id, us)` head whose body we are unfolding; its content
crates/kernel/src/whnf.rs:828
↓ 2 callersMethodvalidate_univ_params_seen
( &self, root: &KUniv<M>, bound: usize, seen: &mut FxHashSet<Addr>, )
crates/kernel/src/check.rs:578
↓ 2 callersMethodwhnf_core_for_def_eq
Structural WHNF for def-eq's cheap projection scaffold: `whnfCore (cheapProj := true)` in Lean/Lean4Lean. Projection values are reduced structurally i
crates/kernel/src/whnf.rs:367
↓ 2 callersMethodwhnf_core_with_flags_uncached
Inner loop for [`whnf_core_with_flags`]. Does not consult or update `whnf_core_cache`; the caller wraps it for FULL mode.
crates/kernel/src/whnf.rs:454
↓ 2 callersMethodwhnf_with_nat_succ_mode
( &mut self, e: &KExpr<M>, nat_succ_mode: NatSuccMode, )
crates/kernel/src/whnf.rs:231
↓ 2 callersMethodwrap_binders
( &self, intern: &mut InternTable<M>, fvars: &[FVarId], body: KExpr<M>, as_lambda: bool,
crates/kernel/src/lctx.rs:164
↓ 2 callersMethodwrap_with_block_param_foralls
Wrap `body` with `∀ T_0 T_1 ... T_{n-1}, body` using the supplied block-param binders (outermost-first). Mirrors compile-side `mk_forall(body, &block_
crates/kernel/src/inductive.rs:991
↓ 2 callersFunctionzero_axio
(lvls: u64, ty: KExpr<Anon>)
crates/kernel/src/congruence.rs:706
↓ 1 callersFunctionabstract_fvar
( expr: &LeanExpr, fvar_name: &Name, depth: u64, )
crates/compile/src/compile/aux_gen/expr_utils.rs:387
↓ 1 callersFunctionabstract_fvars_cached
( env: &mut InternTable<M>, body: &KExpr<M>, pos: &FxHashMap<FVarId, u64>, n: u64, depth: u64, cac
crates/kernel/src/subst.rs:759
↓ 1 callersFunctionabstract_spec_params_to_bvars
Convert spec_params from FVar form (referencing block-param FVars) back to BVar form using batch abstraction. Outermost param `_bp_0` ends up at `BVa
crates/compile/src/compile/aux_gen/nested.rs:1869
↓ 1 callersFunctionacc_env
Build Acc inductive environment. Acc : {α : Sort u} → (α → α → Prop) → α → Prop Acc.intro : ∀ {α} {r} {x}, (∀ y, r y x → Acc r y) → Acc r x Acc.rec wi
crates/kernel/src/tutorial/defeq.rs:415
↓ 1 callersMethodaccepts
(&self, orig_name: &Name, gen_name: &Name)
crates/compile/src/congruence/perm.rs:394
↓ 1 callersFunctionadapt_split_minor
( rec_name: &Name, rec_levels: &[Level], plan: &CallSitePlan, src_minor_idx: usize, minor: &LeanExpr
crates/compile/src/compile/surgery.rs:709
↓ 1 callersFunctionadd_eq_inductive
Add Eq as a full inductive (not just axioms) — needed for Quot.lift validation.
crates/kernel/src/tutorial/reduction.rs:1367
↓ 1 callersFunctionadd_punit_pprod
Add minimal PUnit.{u} and PProd.{u,v} definitions to a test environment.
crates/compile/src/compile/aux_gen/recursor.rs:3261
↓ 1 callersFunctionaiur_system_to_bytes
Convenience: serialize the verifying key of a built [`AiurSystem`].
crates/aiur/src/vk_codec.rs:208
↓ 1 callersFunctionall_checkable_ixon_names
(ixon_env: &IxonEnv)
crates/ffi/src/kernel.rs:754
↓ 1 callersMethodall_telescope_count
Count nested foralls for telescope compression.
crates/ixon/src/expr.rs:134
↓ 1 callersFunctionanalyze_block_size_stats
(stt: &ix_compile::compile::CompileState)
crates/ffi/src/lean_env.rs:4101
↓ 1 callersFunctionanalyze_const_size
Analyze the serialized size of a constant and its transitive dependencies.
crates/ffi/src/lean_env.rs:3885
↓ 1 callersFunctionanalyze_sharing_stats
( info_map: &HashMap<blake3::Hash, SubtermInfo>, topo_order: &[blake3::Hash], )
crates/ixon/src/sharing.rs:414
↓ 1 callersFunctionanon_ctor_addrs
Compute deterministic ctor projection addresses for every constructor of an inductive member at position `indc_idx` in a block at `block_addr`.
crates/kernel/src/ingress.rs:4204
← previousnext →1,101–1,200 of 3,453, ranked by callers