Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyanju/picus
/ functions
Functions
4,080 in github.com/chyanju/picus
⨍
Functions
4,080
◇
Types & classes
283
↓ 29 callers
Method
n_vars
Number of indeterminates.
crates/picus-core/src/poly.rs:61
↓ 28 callers
Method
as_str
Canonical lowercase name. Matches the `name` field on the backend's `inventory::submit!`'d [`backends::SolverBackendDescriptor`] (except `None`, which
crates/picus-smt/src/lib.rs:50
↓ 28 callers
Method
terms
Iterator over the terms of `p` in descending order, yielding `(coefficient, monomial)` pairs. The monomial is freshly cloned per term (cheap; a small
crates/picus-core/src/poly.rs:150
↓ 27 callers
Method
below
(&mut self, n: u64)
crates/picus-solver/src/ff/repr_oracle.rs:40
↓ 27 callers
Function
ff
(p: u32)
crates/picus-solver/src/gb/fglm_tests.rs:8
↓ 27 callers
Function
pr3
()
crates/picus-solver/src/gb/ideal/engine_tests.rs:8
↓ 26 callers
Function
groebner_basis
Compute a Groebner basis of `generators` from scratch.
crates/picus-solver/src/ff/buchberger/mod.rs:137
↓ 26 callers
Method
is_whole_ring
Returns `true` iff `I = R` (i.e. `1 ∈ I`).
crates/picus-solver/src/gb/ideal.rs:197
↓ 26 callers
Method
lcm
(&self)
crates/picus-solver/src/ff/spair.rs:58
↓ 26 callers
Method
parse
Parse a `--lemmas` spec. Formats: - `all` — enable every registered lemma - `none` — disable every registered lemma - `all-X,Y` — all except `X` and
crates/picus-analysis/src/dpvl.rs:78
↓ 26 callers
Function
run_with
(s: &mut SmtSession, src: &str)
crates/picus-solver/src/smt2/session_tests.rs:8
↓ 26 callers
Function
sample_p
A standard sample polynomial in 3 vars used across property tests: 2*x0^2*x1 + 3*x1*x2 + 5*x0 + 7
crates/picus-core/src/ff/polynomial/tests.rs:289
↓ 26 callers
Function
sp
Build a sparse polynomial from `(exponents, coeff_u64)` triples.
crates/picus-core/src/ff/sparse_polynomial_tests.rs:40
↓ 25 callers
Function
ff
(p: u32)
crates/picus-solver/src/frontend/parse_tests.rs:6
↓ 25 callers
Function
sum_polys
Sum a list of polys into one.
crates/picus-analysis/src/propagation/basis2/compconstant_tests.rs:476
↓ 24 callers
Method
as_small
(&self)
crates/picus-core/src/ff/field.rs:98
↓ 24 callers
Function
cross_validate_agreement
Assert CDCL(T) and DNF agree, skipping when DNF gave up at the size cap.
crates/picus-solver/tests/cdclt_vs_dnf_parity.rs:944
↓ 24 callers
Function
empty_builder
(prime: u32)
crates/picus-solver/src/frontend/encoder_tests_spec.rs:9
↓ 24 callers
Function
hilbert_numerator
(gens: &[Monomial])
crates/picus-solver/src/ff/hilbert.rs:275
↓ 23 callers
Method
ctx
Reference to the underlying `ff::PolyRing` context.
crates/picus-core/src/poly.rs:96
↓ 23 callers
Method
get
Access the underlying `(var_index, max_degree)` pair at position `i`. Used by callers that index `appearing[0]` directly (e.g. univariate-detection pa
crates/picus-core/src/poly.rs:251
↓ 23 callers
Function
load
`metric::*!` take the typed counter path and lower to a gated direct atomic update. Per-test gating is the thread-local gb_stats flag; each test uses
crates/picus-core/src/profile_tests.rs:8
↓ 23 callers
Method
make_monic
(&self, field: &PrimeField)
crates/picus-solver/src/ff/univariate.rs:188
↓ 23 callers
Function
mk
(ring: &PolyRing, terms: Vec<(Vec<u16>, u64)>)
crates/picus-core/src/ff/geobucket_tests.rs:16
↓ 23 callers
Function
mk_ctx
Build a `ParseCtx` with the given prime, declared vars, and macros.
crates/picus-solver/src/smt2/tests.rs:620
↓ 23 callers
Method
neg
(&self, a: &FieldElem)
crates/picus-core/src/ff/field.rs:550
↓ 23 callers
Function
ring_mod7
(n_vars: usize)
crates/picus-solver/src/ff/f4/tests.rs:8
↓ 23 callers
Function
ring_repr
(prime: u64, n_vars: usize, repr: crate::config::ReprKind)
crates/picus-core/src/ff/polynomial/tests.rs:693
↓ 23 callers
Function
tokenize
(src: &str)
crates/picus-solver/src/smt2/tokenizer.rs:28
↓ 22 callers
Function
auto_extract_bitsums
Rewrite equalities to extract bitsum subpatterns into `ConstraintSystem::bitsums`. Operates on [`PolyTerm`] lists: `bits: HashSet<VarIdx>`, chain exte
crates/picus-solver/src/frontend/encoder/bitsum_extract.rs:56
↓ 22 callers
Method
basis
(&self)
crates/picus-solver/src/ff/buchberger/incremental.rs:159
↓ 22 callers
Function
compute_gb_with_order
( poly_ring: &FfPolyRing, generators: Vec<Poly>, cancel: &CancelToken, order: FfOrder, )
crates/picus-solver/src/gb/ideal/engine.rs:347
↓ 22 callers
Function
ff
(p: u32)
crates/picus-solver/src/split_gb/tests_hard.rs:7
↓ 22 callers
Method
mk_term
Create a term with the given kind and children.
crates/cvc5-ff/src/term_manager.rs:209
↓ 22 callers
Function
poly_from_ints
(coeffs: &[i64], f: &PrimeField)
crates/picus-solver/src/ff/univariate_tests.rs:13
↓ 22 callers
Function
run_one
( polys: &[picus_core::ff::polynomial::Polynomial], ring: &Arc<PolyRing>, use_f4: bool
crates/picus-solver/tests/bench_perf.rs:243
↓ 21 callers
Method
exponent_at
Exponent of variable `var` in monomial `m`. Accepts both `&Monomial` and `Monomial` so callers iterating over [`Self::terms`], which yields owned `Mon
crates/picus-core/src/poly.rs:160
↓ 21 callers
Method
prime
(&self)
crates/picus-solver/src/cdclt/atoms.rs:244
↓ 21 callers
Function
read_r1cs
Read an R1CS binary file from a byte slice.
crates/picus-r1cs/src/parser.rs:73
↓ 21 callers
Function
ring_with
(prime: u64, n_vars: usize, order: MonomialOrder)
crates/picus-core/src/ff/polynomial/tests.rs:281
↓ 21 callers
Function
solve_split_gb
Solve a system of polynomial constraints using the Split GB algorithm. `original_polys` is the full list of input polynomial generators (in the same
crates/picus-solver/src/core.rs:77
↓ 21 callers
Method
to_dense
Materialise a dense polynomial with the same terms.
crates/picus-core/src/ff/sparse_polynomial.rs:364
↓ 20 callers
Method
appearing_indeterminates
Variables that actually appear in `p` (delegates to the inner [`PolyRingFacade`]). Exposed here so the IR ring — which is just an `FfPolyRing` — offer
crates/picus-core/src/poly.rs:101
↓ 20 callers
Method
as_dense
View as the dense arm, materialising the sparse arm if needed. For the rare dense-flavoured readers.
crates/picus-core/src/ff/polynomial.rs:129
↓ 20 callers
Function
atom
(s: &str)
crates/picus-solver/src/smt2/tests.rs:611
↓ 20 callers
Function
build_poly_from_src
Build a `ParseCtx` with declared FF variables `xs` under `prime`, then build the polynomial for the given source fragment. Returns the polynomial plus
crates/picus-solver/src/smt2/tests_property.rs:55
↓ 19 callers
Function
empty_ir
Build a small PolyIR over GF(p) with `n_wires` wires, no constraints, the inputs from `inputs`, and a target signal. Convenient for unit tests of acce
crates/picus-smt/src/poly_ir_tests.rs:71
↓ 19 callers
Function
ff
(p: u32)
crates/picus-solver/src/gb/ideal_tests.rs:5
↓ 19 callers
Method
hash
(&self, state: &mut H)
crates/picus-solver/src/ff/f4/matrix.rs:135
↓ 19 callers
Method
is_constant
(&self)
crates/picus-core/src/ff/polynomial.rs:181
↓ 19 callers
Method
is_empty
`true` when the index is empty.
crates/picus-core/src/ff/polynomial.rs:471
↓ 19 callers
Function
make_r1cs
Build a minimal in-memory R1csFile with the supplied prime, n_wires, inputs, and constraints (each as triples of (a, b, c) blocks).
crates/picus-smt/src/poly_ir_tests.rs:17
↓ 19 callers
Method
poly_terms_idx
Iterate every term of `poly` as `(coeff, vars_with_exp)` where `vars_with_exp` lists the variables that actually appear in this monomial together with
crates/picus-smt/src/poly_ir.rs:209
↓ 19 callers
Function
sample_p
(ring: &PolyRing)
crates/picus-core/src/ff/sparse_polynomial_tests.rs:49
↓ 19 callers
Function
take
Take the current accumulated profile, clearing the table. Returns rows sorted by total time descending.
crates/picus-core/src/profile.rs:747
↓ 19 callers
Method
term
(&self, idx: usize, ring: &PolyRing)
crates/picus-core/src/ff/polynomial.rs:601
↓ 19 callers
Method
terms
Iterate terms in descending order.
crates/picus-core/src/ff/polynomial.rs:658
↓ 18 callers
Function
bn128
()
crates/picus-core/src/ff/field_tests.rs:3
↓ 18 callers
Function
empty_builder
(prime: u32)
crates/picus-solver/src/frontend/encoder_tests.rs:5
↓ 18 callers
Method
evaluate
(&self, x: &FieldElem, field: &PrimeField)
crates/picus-solver/src/ff/univariate.rs:59
↓ 18 callers
Method
is_empty
(&self)
crates/picus-analysis/src/propagation/range.rs:80
↓ 18 callers
Method
is_zero
(&self, p: &Poly)
crates/picus-core/src/poly.rs:83
↓ 18 callers
Function
lin_eq_with_diseq
Adds `x != 0` to `lin_eq_sys`; still SAT (x = 4 ≠ 0).
crates/picus-solver/src/incremental_context_tests.rs:25
↓ 18 callers
Method
mul_ref
(&self, a: &FieldElem, b: &FieldElem)
crates/picus-core/src/ff/field.rs:712
↓ 18 callers
Method
to_state
Snapshot the logical state into an owned form (for caching).
crates/picus-solver/src/frontend/bitprop.rs:61
↓ 17 callers
Function
assert_to_formula
(s: &Sexpr, ctx: &mut ParseCtx)
crates/picus-solver/src/smt2/mod.rs:928
↓ 17 callers
Function
build_bit_ideal
(pr: &'r FfPolyRing, extra: Vec<Poly>)
crates/picus-solver/src/frontend/bitprop_tests.rs:296
↓ 17 callers
Function
build_poly
( s: &Sexpr, prime: &BigUint, vars: &HashMap<String, VarSort>, builder: &mut ConstraintSystemB
crates/picus-solver/src/smt2/mod.rs:281
↓ 17 callers
Function
build_poly_with_ctx
Build an FF polynomial recursively. Threads `ctx.builder` so every FF-typed leaf reference goes through `builder.var(name)`, producing index-keyed `Ve
crates/picus-solver/src/smt2/mod.rs:729
↓ 17 callers
Method
cmp_with_order
Compare under the given ordering.
crates/picus-core/src/ff/monomial.rs:173
↓ 17 callers
Function
intern_eq_terms
Atom variable for arbitrary `(= sum_lhs sum_rhs)` from `&[(coeff, &[var_names])]` term specs.
crates/picus-solver/src/cdclt/ff_theory_tests.rs:52
↓ 17 callers
Method
inv
Multiplicative inverse. Returns `None` if `a` is zero.
crates/picus-core/src/ff/field.rs:568
↓ 17 callers
Method
is_zero
(&self, a: &FieldElem)
crates/picus-core/src/ff/field.rs:596
↓ 17 callers
Method
is_zero
(&self)
crates/picus-core/src/ff/polynomial.rs:169
↓ 17 callers
Method
is_zero
(&self)
crates/picus-solver/src/ff/univariate.rs:50
↓ 17 callers
Method
mul_term
Multiply by a single (monomial, coefficient) term. Result preserves sorted order.
crates/picus-core/src/ff/polynomial.rs:905
↓ 17 callers
Method
n_clauses
(&self)
crates/picus-solver/src/sat/solver.rs:505
↓ 17 callers
Function
p7
()
crates/picus-smt/src/backends/native_lower_tests.rs:54
↓ 17 callers
Function
print_field
(label: &str, value: &str)
crates/picus-cli/src/main.rs:460
↓ 17 callers
Function
process_batch
Process one F4 batch. Returns the new basis generators produced by the batch (already monic, not inter-reduced — integration is the caller's responsib
crates/picus-solver/src/ff/f4/mod.rs:197
↓ 17 callers
Function
ring_p
Build a ring over GF(prime) with `n_vars` variables x0..x_{n-1} in DegRevLex order. Mirrors the file-local `ring(n)` helper but parameterises the prim
crates/picus-solver/src/ff/buchberger/tests.rs:754
↓ 17 callers
Function
small_ring
()
crates/picus-core/src/ff/geobucket_tests.rs:7
↓ 17 callers
Function
tseitin
Apply Tseitin to `formula`, registering atoms in `atoms` and emitting clauses into `sat`. `var_names` is the producing builder's variable frame, used
crates/picus-solver/src/cdclt/cnf.rs:21
↓ 16 callers
Method
as_gmp
(&self)
crates/picus-core/src/ff/field.rs:82
↓ 16 callers
Function
cdclt_loop
( sat: &mut Solver, theory: &mut T, cancel: &CancelToken, )
crates/picus-solver/src/cdclt/orchestrator.rs:195
↓ 16 callers
Function
empty_ir
(p: BigUint, n_wires: usize, inputs: Vec<usize>, target: usize)
crates/picus-smt/src/backends/native_lower_tests.rs:58
↓ 16 callers
Function
ff
(p: u32)
crates/picus-solver/src/split_gb/tests_prop.rs:6
↓ 16 callers
Method
leading_coefficient
Leading coefficient (None for the zero polynomial).
crates/picus-solver/src/ff/univariate.rs:55
↓ 16 callers
Method
n_vars
Number of variables interned so far.
crates/picus-solver/src/frontend/encoder/constraint_system.rs:97
↓ 16 callers
Method
pop
Discard all facts added since the most recent `push`. No-op if no checkpoint exists.
crates/picus-solver/src/gb/incremental.rs:71
↓ 16 callers
Method
pop
(&mut self)
crates/picus-solver/src/ff/buchberger/incremental.rs:145
↓ 16 callers
Method
term_at
The `idx`-th `(monomial, coeff)` term in descending ring order, or `None` past the end. Lets a positional iterator walk the terms without exposing the
crates/picus-core/src/ff/sparse_polynomial.rs:134
↓ 16 callers
Method
var_names
Variable-name frame interned so far. Used by callers like `BooleanQuery` to feed the SAT-side `AtomTable` for reverse-resolving `PolyTerm` indices to
crates/picus-solver/src/frontend/encoder/constraint_system.rs:104
↓ 15 callers
Method
add_assign
Add `other` into `self` in place. Per-coefficient `i64::saturating_add` clamps to `i64::{MIN, MAX}` on overflow.
crates/picus-solver/src/ff/hilbert.rs:94
↓ 15 callers
Function
build_canon
Canonical-variable map: union-find over pure two-term linear identities `c1·x_i + c2·x_j = 0` with `c1 + c2 ≡ 0` (i.e. `x_i = x_j`). `canon[v]` is the
crates/picus-analysis/src/propagation/basis2/compconstant.rs:102
↓ 15 callers
Function
build_solver
Build a fresh solver, add `n_vars` propositional vars, then add all `clauses`. Returns the solver and the var vector. None of the clauses may triviall
crates/picus-solver/src/sat/solver_tests.rs:788
↓ 15 callers
Method
encode
(&self)
crates/picus-solver/tests/common/mod.rs:119
↓ 15 callers
Method
find
(&mut self, v: Var)
crates/picus-solver/src/cdclt/equality_engine.rs:115
↓ 15 callers
Function
interreduce
Inter-reduce a basis (make every element's tail reduced w.r.t. all others; make monic).
crates/picus-solver/src/ff/buchberger/mod.rs:177
↓ 15 callers
Method
leading_term
Peek at the leading term. Implemented on top of `pop_leading_term` — resolves any pending cancellations, then re-inserts the surviving term.
crates/picus-core/src/ff/geobucket.rs:285
← previous
next →
101–200 of 4,080, ranked by callers