MCPcopy Create free account

hub / github.com/argumentcomputer/ix / functions

Functions3,453 in github.com/argumentcomputer/ix

↓ 17 callersFunctiondefn_const
(refs: Vec<Address>)
crates/ixon/src/serialize.rs:2422
↓ 17 callersMethodget_blob
Get a blob by address.
crates/ixon/src/env.rs:162
↓ 17 callersFunctionnn
(parent: &str, child: &str)
crates/compile/src/compile/surgery.rs:1125
↓ 17 callersMethodpush_lookup
(&mut self, index: &mut ColumnIndex, t: Lookup<G>)
crates/aiur/src/trace.rs:58
↓ 17 callersMethodput
Serialize: mask (Tag0) + field values in mask order.
crates/ixon/src/proof.rs:335
↓ 16 callersFunctionbuild_lean_string
Build a Lean String from a Rust &str.
crates/ffi/src/compile.rs:58
↓ 16 callersFunctionbuild_ref_graph
Builds a [`RefGraph`] from a Lean [`Env`] by collecting all constant references in parallel. For each constant, extracts the set of names it referenc
crates/compile/src/graph.rs:50
↓ 16 callersFunctiondo_ingress
(e: &LeanExpr, pn: &[Name])
crates/kernel/src/ingress.rs:4815
↓ 16 callersFunctionepi
Helper: `∀ (name : domain), body` with default binder info.
crates/compile/src/compile/aux_gen/recursor.rs:2759
↓ 16 callersFunctionexpr_alpha_eq_ctx
Walk two expressions in lockstep under `ctx` and `corr`. - `Fvar`: resolve orig's FVar through `corr`; accept if gen has the mapped FVar (or if orig'
crates/compile/src/congruence/perm.rs:1353
↓ 16 callersFunctiongen_opt_addr
(g: &mut Gen)
crates/ixon/src/proof.rs:1262
↓ 16 callersFunctionleaf
(id: u32)
crates/kernel/src/shard.rs:2409
↓ 16 callersFunctionmk_addr
(s: &str)
crates/kernel/src/congruence.rs:395
↓ 16 callersFunctionmk_axiom
( name: &str, lvls: u64, level_params: Vec<Name>, ty: ME, )
crates/kernel/src/testing.rs:179
↓ 16 callersFunctionmk_cv
(name: &str)
crates/compile/src/graph.rs:191
↓ 16 callersFunctionput_u8
(x: u8, buf: &mut Vec<u8>)
crates/ixon/src/serialize.rs:37
↓ 16 callersMethodreplace_walk
Walk an expression and replace auxiliary const references. Memoizes on `e`'s structural hash. DAG-shared subterms are visited once regardless of how
crates/compile/src/compile/aux_gen/expr_utils.rs:1133
↓ 15 callersMethodclear
(&mut self)
crates/ixon/src/map.rs:53
↓ 15 callersFunctioncount_foralls
Count the number of leading forall binders in an expression.
crates/compile/src/compile/aux_gen/expr_utils.rs:1516
↓ 15 callersFunctiondecode_address_array
Decode Array Address.
crates/ffi/src/lean_ixon/meta.rs:73
↓ 15 callersFunctionget_idx
( buf: &mut &[u8], rev: &NameReverseIndex, )
crates/ixon/src/metadata.rs:642
↓ 15 callersFunctionget_idx_vec
( buf: &mut &[u8], rev: &NameReverseIndex, )
crates/ixon/src/metadata.rs:665
↓ 15 callersFunctionmk_id
(s: &str)
crates/kernel/src/canonical_check.rs:849
↓ 15 callersMethodnum_vertices
(&self)
crates/kernel/src/shard.rs:190
↓ 15 callersMethodpop_local
Pop the most recent local variable.
crates/kernel/src/tc.rs:479
↓ 15 callersFunctionput_idx
( addr: &Address, idx: &NameIndex, buf: &mut Vec<u8>, )
crates/ixon/src/metadata.rs:626
↓ 15 callersFunctionput_idx_vec
( addrs: &[Address], idx: &NameIndex, buf: &mut Vec<u8>, )
crates/ixon/src/metadata.rs:653
↓ 15 callersFunctionuniv_eq
Semantic universe equality: `u ≡ v` for all parameter assignments.
crates/kernel/src/level.rs:696
↓ 14 callersFunctionadd_eq_axioms
Add Eq.{u} and Eq.refl.{u} as axioms to the environment. Eq : {α : Sort u} → α → α → Prop Eq.refl : {α : Sort u} → (a : α) → Eq a a
crates/kernel/src/testing.rs:201
↓ 14 callersMethodcount
Number of fvars generated so far. Used by Stage B to save/restore the counter when needed (rare; binder open/close are usually nested in a way that do
crates/kernel/src/lctx.rs:242
↓ 14 callersMethoddecode
Decode Ixon.Definition. Lean stores scalar fields ordered by size (largest first). Layout: header(8) + typ(8) + value(8) + lvls(8) + kind(1) + safety(
crates/ffi/src/lean_ixon/constant.rs:63
↓ 14 callersMethoddepth
Current logical binding depth. During the FVar transition, some code pushes legacy de-Bruijn locals into `ctx` while newer code opens binders into `l
crates/kernel/src/tc.rs:334
↓ 14 callersMethodget_mut
(&mut self, k: &K)
crates/ixon/src/map.rs:61
↓ 14 callersMethodget_type
Returns the type of this constant.
crates/common/src/env.rs:1413
↓ 14 callersMethodis_zero
True if this level is definitionally zero (Prop).
crates/kernel/src/level.rs:90
↓ 14 callersFunctionm
Raw `Level::max` (no simplification) — what Lean's exporter and `Level.instantiateParams` produce.
crates/compile/src/congruence.rs:422
↓ 14 callersFunctionmk_addr
(s: &str)
crates/kernel/src/canonical_check.rs:841
↓ 14 callersFunctionnat_to_u64
Convert a Nat to u64, returning an error if the value is too large.
crates/compile/src/compile.rs:326
↓ 14 callersMethodproven_targets
Every `env.consts` key this item certifies (proves) well-typed when its `primary` is checked — the *proven targets*, in the same address space as `Con
crates/kernel/src/anon_work.rs:93
↓ 14 callersFunctionsort0
()
crates/compile/src/kernel_egress.rs:1287
↓ 14 callersFunctionsort0
()
crates/kernel/src/check.rs:939
↓ 14 callersMethodstore_blob
(&self, bytes: Vec<u8>)
crates/ixon/src/env.rs:155
↓ 14 callersFunctionsubst_levels
Substitute universe parameters in expressions.
crates/compile/src/compile/aux_gen/expr_utils.rs:859
↓ 14 callersFunctiontimed_intern_or_build
( intern: &mut InternTable<M>, hash: blake3::Hash, build: impl FnOnce(Addr) -> KExpr<M>, stats: &mut C
crates/kernel/src/ingress.rs:294
↓ 13 callersFunctionapply_mdata
Wrap a LeanExpr in pre-decompiled mdata layers. The `lean_mdata` vec stores layers outermost-first. We iterate in reverse to wrap innermost-first: gi
crates/compile/src/decompile.rs:413
↓ 13 callersFunctioncheap_beta_reduce
Cheap beta reduction: peephole-reduce `App(λ...λ. body, args)` shapes without invoking the full [`subst`] machinery in trivial cases. Mirrors `lean4l
crates/kernel/src/subst.rs:512
↓ 13 callersMethodcmp
(&self, other: &Self)
crates/kernel/src/id.rs:39
↓ 13 callersFunctioncompute_call_site_plans
( sorted_classes: &[Vec<Name>], original_all: &[Name], lean_env: &LeanEnv, aux_layout: Option<&AuxLayo
crates/compile/src/compile/surgery.rs:247
↓ 13 callersMethoddelta_unfold_one
Delta unfold: unfold one defined constant.
crates/kernel/src/whnf.rs:757
↓ 13 callersMethodfresh_fvar_id
(&mut self)
crates/kernel/src/tc.rs:474
↓ 13 callersMethodlookup_name
Look up a name.
crates/ixon/src/env.rs:231
↓ 13 callersFunctionnode
(l: AggNode, r: AggNode)
crates/kernel/src/shard.rs:2412
↓ 13 callersMethodpop_locals
Pop locals pushed by `push_locals`.
crates/compile/src/compile/aux_gen/expr_utils.rs:2278
↓ 13 callersMethodreport
(&self)
crates/ffi/src/lean_env.rs:1669
↓ 13 callersFunctionrewrite_nested_const_levels_cached
Targeted rewrite of nested type universe levels in constructor fields. Lean's kernel recomputes nested type universes from the element's sort (via `e
crates/compile/src/compile/aux_gen/expr_utils.rs:1385
↓ 12 callersFunctionaddr
(n: u64)
crates/kernel/src/equiv.rs:143
↓ 12 callersFunctionaddr_u32
A distinct address for each `n` (more than the 256 `addr(u8)` affords), for fixtures large enough to exercise the multilevel coarsening path. Big-endi
crates/kernel/src/shard.rs:2030
↓ 12 callersFunctioncollect_const_refs
Collect all constant names referenced in a LeanExpr. Uses an explicit stack to avoid stack overflow on deeply nested expressions.
crates/compile/src/compile/aux_gen/recursor.rs:2695
↓ 12 callersFunctioncompile_env_with_options
Compile an entire Lean environment with explicit resource/correctness options. See [`CompileOptions`] for the intended call-site split between trusted
crates/compile/src/compile/env.rs:109
↓ 12 callersFunctioncompute_mask
(flags: &[bool])
crates/ixon/src/proof.rs:254
↓ 12 callersMethoddebug_label_matches_env
(&self)
crates/kernel/src/tc.rs:852
↓ 12 callersFunctionenv_with_id
()
crates/kernel/src/def_eq.rs:1776
↓ 12 callersFunctiongenerate_below_constants
Generate `.below` constants for all classes in a block. For Type-level inductives: generates a `BelowDef` (reducible definition). For Prop-level indu
crates/compile/src/compile/aux_gen/below.rs:110
↓ 12 callersFunctionget_expr
Deserialize an expression from bytes (iterative to avoid stack overflow).
crates/ixon/src/serialize.rs:257
↓ 12 callersFunctionget_expr_references
( expr: &'a Expr, cache: &mut FxHashMap<&'a Expr, NameSet>, )
crates/compile/src/graph.rs:137
↓ 12 callersFunctionground_expr
( expr: &Expr, env: &Env, univs: &[Name], binds: usize, stt: &mut GroundState, )
crates/compile/src/ground.rs:150
↓ 12 callersFunctionlean_expr_to_zexpr_cached
( expr: &LeanExpr, param_names: &[Name], binder_names: &mut Vec<Name>, intern: &mut InternTable<Meta>,
crates/kernel/src/ingress.rs:2250
↓ 12 callersFunctionlean_expr_to_zexpr_with_kenv
Cached variant that takes a full `KEnv` reference instead of just `InternTable`. Uses the KEnv's `ingress_cache` to avoid re-converting shared LeanExp
crates/kernel/src/ingress.rs:2211
↓ 12 callersFunctionlean_name_to_addr
Name → Address for KId construction from Lean Names.
crates/kernel/src/ingress.rs:2532
↓ 12 callersFunctionmk_name
(s: &str)
crates/kernel/src/expr.rs:813
↓ 12 callersFunctionp
(s: &str)
crates/compile/src/congruence.rs:411
↓ 12 callersFunctionpop_result
Pop a result from the decompilation stack, returning a structured error instead of panicking if the stack is empty (malformed Ixon data).
crates/compile/src/decompile.rs:495
↓ 12 callersMethodvec
(&mut self, items: &[T], mut f: impl FnMut(&mut Self, &T))
crates/aiur/src/vk_codec.rs:136
↓ 12 callersMethodwhnf_key
(&mut self, e: &KExpr<M>)
crates/kernel/src/tc.rs:358
↓ 11 callersFunctionabstract_fvars
Inverse of [`instantiate_rev`]: replace each occurrence of the listed fvars in `body` with the appropriate `Var(level)` and shift other loose bvars up
crates/kernel/src/subst.rs:731
↓ 11 callersFunctionanalyze_block
Analyze expressions for sharing opportunities within a block. Returns a map from content hash to SubtermInfo, and a map from pointer to hash. Uses a
crates/ixon/src/sharing.rs:221
↓ 11 callersFunctionbuild_anon_work
Enumerate the anon-mode kernel work set from `env.consts`. Returns one `AnonWorkItem` per kernel-checkable group of constants. The total number of ch
crates/kernel/src/anon_work.rs:115
↓ 11 callersFunctioncollect_list_borrowed
Collect list elements as borrowed pointers (no refcount changes). Uses `LeanList::to_vec` which preserves the `'a` lifetime from the underlying Lean o
crates/ffi/src/lean_env.rs:583
↓ 11 callersFunctionconst_congruent
Check that a Lean `ConstantInfo` matches a `KConst<Anon>` structurally.
crates/kernel/src/congruence.rs:168
↓ 11 callersMethoddump_eta_trace
( &self, reason: &str, id: Option<&KId<M>>, idx: usize, a: &KExpr<M>, b: &KExpr<M>,
crates/kernel/src/def_eq.rs:1547
↓ 11 callersFunctionegress_expr
Convert a zero kernel expression to a Lean expression.
crates/compile/src/kernel_egress.rs:59
↓ 11 callersFunctiongenerate_canonical_recursors
( sorted_classes: &[Vec<Name>], lean_env: &LeanEnv, stt: &crate::compile::CompileState, kctx: &mut cra
crates/compile/src/compile/aux_gen/recursor.rs:293
↓ 11 callersMethodget
(&self, key: &[G])
crates/aiur/src/querymap.rs:100
↓ 11 callersMethodget
(buf: &mut &[u8])
crates/ixon/src/serialize.rs:527
↓ 11 callersMethodhex
Returns the address as a lowercase hexadecimal string.
crates/common/src/address.rs:31
↓ 11 callersFunctioningress_expr
( root_expr: &Arc<IxonExpr>, root_arena: u64, ctx: &Ctx<'_, M>, intern: &mut InternTable<M>, ixon_en
crates/kernel/src/ingress.rs:597
↓ 11 callersFunctionlean_level_to_kuniv
Convert a Lean Level to KUniv<Meta>, mapping named params to positional indices.
crates/kernel/src/ingress.rs:2115
↓ 11 callersMethodmax
Constructs `max x y`.
crates/common/src/env.rs:326
↓ 11 callersFunctionmax_rec_fuel
()
crates/kernel/src/tc.rs:69
↓ 11 callersFunctionmk_addr
(s: &str)
crates/kernel/src/id.rs:112
↓ 11 callersFunctionmk_id
(s: &str)
crates/kernel/src/infer.rs:626
↓ 11 callersFunctionmk_name
(s: &str)
crates/kernel/src/level.rs:716
↓ 11 callersFunctionn_lit
(x: u64)
crates/compile/src/compile/aux_gen/cases_on.rs:384
↓ 11 callersMethodpartition
Partition the blocks into `num_shards` shards via recursive bisection. Returns the shard id (in `0..num_shards`) for every block id. `epsilon` is the
crates/kernel/src/shard.rs:221
↓ 11 callersMethodptr_eq
(&self, other: &KExpr<M>)
crates/kernel/src/expr.rs:147
↓ 11 callersMethodpush_let
Push a let-bound variable (type + value). WHNF will zeta-reduce references to this variable by substituting the value (lean4lean withExtendedLetCtx).
crates/kernel/src/tc.rs:461
↓ 11 callersFunctionrestore_source_names_same_content
Restore source-side display names after a WHNF roundtrip that did not change the expression's kernel content hash. Kernel cache keys intentionally ig
crates/compile/src/compile/aux_gen/expr_utils.rs:3053
↓ 11 callersFunctionz
()
crates/compile/src/congruence.rs:414
↓ 10 callersFunctionarbitrary_expr
Generate an arbitrary Expr using pointer-tree technique (no stack overflow)
crates/ixon/src/expr.rs:172
↓ 10 callersMethodbump_multiplicity_for
(&mut self, i: &G, j: &G, col: usize)
crates/aiur/src/gadgets/bytes2.rs:473
← previousnext →201–300 of 3,453, ranked by callers