MCPcopy Create free account

hub / github.com/chyanju/picus / functions

Functions4,080 in github.com/chyanju/picus

↓ 15 callersFunctionrun_dpvl
Run DPVL on a parsed R1CS file.
crates/picus-analysis/src/dpvl.rs:241
↓ 15 callersFunctionsmall_field
()
crates/picus-solver/src/ff/univariate_tests.rs:4
↓ 15 callersFunctionsmall_ring
()
crates/picus-core/src/ff/polynomial/dense_reduce_tests.rs:21
↓ 14 callersMethodassert_equality
Assert a polynomial equation `sum(terms) == 0`.
crates/picus-solver/src/gb/incremental.rs:84
↓ 14 callersMethodbacktrack_to
Cancel assignments down to (but not including) `level + 1`, so the next decision will be at level `level + 1`. `qhead` is reset to the current trail l
crates/picus-solver/src/sat/solver.rs:715
↓ 14 callersFunctionbn128_test_values
Pick test values for a large prime: 0, 1, several small constants, and `p - 1`. Constants chosen independently of the field's behaviour.
crates/picus-core/src/ff/field_tests.rs:171
↓ 14 callersMethodfeedback
Record the outcome of a solver call on `signal`.
crates/picus-analysis/src/selector.rs:58
↓ 14 callersFunctionintern_eq_var
( tbl: &mut AtomTable, sat: &mut Solver, vn: &mut Vec<String>, var: &str, c: u64, )
crates/picus-solver/src/cdclt/equality_engine_tests.rs:31
↓ 14 callersMethodnext
(&mut self)
crates/picus-core/src/ff/matrix_order_tests.rs:13
↓ 14 callersFunctionparse_sexprs
(toks: &[Tok])
crates/picus-solver/src/smt2/tokenizer.rs:77
↓ 14 callersMethodpow_u64
Modular exponentiation by a `u64` exponent.
crates/picus-core/src/ff/field.rs:667
↓ 14 callersMethodpropagate
Two-tier propagation; reasons cached in `pending_reasons` for `explain()`. See [`compute_tier1`] and [`compute_tier2`].
crates/picus-solver/src/cdclt/ff_theory.rs:388
↓ 14 callersMethodpush
(&mut self)
crates/picus-solver/src/cdclt/ff_theory.rs:369
↓ 14 callersMethodreduce_by_refs_geobucket
Geobucket-based reduction: the shared implementation every `reduce_by_refs[_cancel|_counted|…]` wrapper forwards to (each selecting a different `(canc
crates/picus-core/src/ff/polynomial/dense_reduce.rs:126
↓ 14 callersFunctionring
(prime: u64, n_vars: usize)
crates/picus-core/src/ff/sparse_geobucket_tests.rs:26
↓ 14 callersFunctionring2
()
crates/picus-solver/src/ff/sparse_gb_tests.rs:7
↓ 14 callersFunctionvals_field
Evaluate a slice of `BigUint` values (interpreted modulo the ring's prime) as a `FieldElem` vector of length `n_vars`. Indices past the supplied slice
crates/picus-solver/src/frontend/encoder_tests_spec.rs:65
↓ 13 callersMethodadd_assignment
(&mut self, v: VarIdx, val: BigUint)
crates/picus-solver/src/frontend/encoder/constraint_system.rs:155
↓ 13 callersMethodassert_assignment
Assert `var = value`.
crates/picus-solver/src/gb/incremental.rs:94
↓ 13 callersMethodclone
(&self)
crates/cvc5-ff/src/op.rs:17
↓ 13 callersMethodctx
(&mut self)
crates/picus-analysis/src/propagation/linear_tests.rs:79
↓ 13 callersMethodctx
(&mut self)
crates/picus-analysis/src/propagation/binary01_tests.rs:82
↓ 13 callersMethoddivides
Whether `self` divides `other` in the module — same index and `self.monom` divides `other.monom`. Used to test whether `other` is a multiple of a reco
crates/picus-solver/src/ff/buchberger/signature.rs:45
↓ 13 callersMethodis_null
Return `true` if this is a null (empty) command.
crates/cvc5-ff/src/parser.rs:164
↓ 13 callersMethodlinear_term
Build a `Poly` representing the linear polynomial `coeff * x` for variable index `var`. Used by lemmas that need to emit a learned constraint from a `
crates/picus-smt/src/poly_ir.rs:130
↓ 13 callersFunctionmake
(i: usize, j: usize, sugar: u32, lcm_deg: u32, age: u64)
crates/picus-solver/src/ff/spair_tests.rs:5
↓ 13 callersFunctionmake_ir
Build a `PolyIR` with `n_wires` wires and an explicit `equalities` list built via the supplied closure.
crates/picus-analysis/src/propagation/binary01_tests.rs:34
↓ 13 callersMethodpow
Modular exponentiation `a^exp mod p`.
crates/picus-core/src/ff/field.rs:617
↓ 13 callersMethodprime
(&self)
crates/picus-core/src/ff/field.rs:294
↓ 13 callersFunctionsplit_zero_extend
Try to extend `cur_r` into a complete zero of the ideal whose generators are `orig_polys`.
crates/picus-solver/src/split_gb/search.rs:34
↓ 13 callersMethodsub
(&self, a: Poly, b: Poly)
crates/picus-core/src/poly.rs:79
↓ 13 callersMethodtrim
(&mut self)
crates/picus-solver/src/ff/hilbert.rs:187
↓ 13 callersMethodvar_to_wire
Map a ring variable index back to its underlying wire index. `x_i` (index `i`) and `y_i` (index `n_wires + i`) both refer to the same wire `i` from a
crates/picus-smt/src/poly_ir.rs:107
↓ 12 callersFunctionall_names
All registered lemma names, sorted. Used by `LemmaSet::parse` to validate `--lemmas` flags against the live registry.
crates/picus-analysis/src/propagation/lemma.rs:85
↓ 12 callersMethodassert_formula
Assert a formula to the solver.
crates/cvc5-ff/src/solver.rs:260
↓ 12 callersFunctionbuild_dense
(terms: &[(Vec<u16>, u64)], r: &PolyRing)
crates/picus-solver/src/ff/repr_oracle.rs:231
↓ 12 callersMethodcancel
Request cancellation.
crates/picus-core/src/timeout.rs:93
↓ 12 callersMethodcontent_hash
(&self)
crates/picus-core/src/ff/polynomial.rs:330
↓ 12 callersFunctiondigest_constraint_side
Hash an [`ConstraintSystem`]'s constraint side (everything except `disequalities`) into a 128-bit cache key. Self-consistent: two systems agreeing on
crates/picus-solver/src/incremental_context.rs:693
↓ 12 callersMethodevaluate
(&self, values: &[FieldElem], ring: &PolyRing)
crates/picus-core/src/ff/polynomial.rs:251
↓ 12 callersFunctionff
(p: u32)
crates/picus-solver/src/split_gb/tests.rs:8
↓ 12 callersFunctiongm_insert
Gebauer-Möller M-criterion insertion. A pair with a smaller `lcm` dominates pairs with larger `lcm`s: `lcm(LT_a, LT_b)` dividing `lcm(LT_c, LT_d)` ma
crates/picus-solver/src/ff/spair_criteria.rs:68
↓ 12 callersFunctionintern_eq_var
( tbl: &mut AtomTable, sat: &mut Solver, vn: &mut Vec<String>, var: &str, c: u64, )
crates/picus-solver/src/cdclt/ff_theory_incremental_tests.rs:33
↓ 12 callersMethodis_one
(&self, a: &FieldElem)
crates/picus-core/src/ff/field.rs:604
↓ 12 callersMethodone
(&self)
crates/picus-core/src/ff/field.rs:312
↓ 12 callersFunctionprocess_batch_with_workspace
Workspace-threaded variant of [`process_batch`]. Caches the reducer-row computation across calls in `workspace.reducer_cache`; output matches [`proces
crates/picus-solver/src/ff/f4/mod.rs:211
↓ 12 callersFunctionrand_terms
Random terms shared by both representations, so dense and sparse are built from identical input and can be compared directly.
crates/picus-solver/src/ff/repr_oracle.rs:226
↓ 12 callersFunctionring_prime_str
Large-prime ring helper (BN254 needs a string-parsed prime).
crates/picus-solver/src/ff/sparse_gb_tests.rs:502
↓ 12 callersFunctionstateless_solve
(cs: &ConstraintSystem, cancel: &CancelToken)
crates/picus-solver/src/incremental_context.rs:671
↓ 12 callersMethodto_constraint_system
Lower this `PolyIR` to a [`ConstraintSystem`] via the `ConstraintSystemBuilder`. Variable names are interned in `ring.var_names()` order so builder in
crates/picus-smt/src/backends/native_lower.rs:74
↓ 12 callersMethodzero
(&self)
crates/picus-core/src/ff/field.rs:304
↓ 11 callersMethodadd_clause
Add a clause from the input formula. Returns `false` if the formula is trivially UNSAT at the root level (an empty clause was added, or unit propagati
crates/picus-solver/src/sat/solver.rs:298
↓ 11 callersMethodadd_poly
Add a polynomial. Amortized O(L * log(N/L)) where L = len(p), N = total size.
crates/picus-core/src/ff/geobucket.rs:111
↓ 11 callersFunctionassert_ideal_eq_mutual
Mutual ideal-membership assertion: every element of `a` reduces to 0 mod `b` and vice versa. SPEC: bidirectional ideal-membership is the defining prop
crates/picus-solver/src/ff/sparse_gb_tests.rs:830
↓ 11 callersFunctionb
()
crates/picus-solver/src/frontend/encoder/constraint_system_tests.rs:3
↓ 11 callersFunctioncfg
()
crates/picus-solver/src/ff/buchberger/incremental_tests.rs:15
↓ 11 callersMethodcheck
Solve the current fact set. Encodes from scratch and dispatches to the Split GB engine.
crates/picus-solver/src/gb/incremental.rs:100
↓ 11 callersMethodcoefficient
(&self)
crates/picus-core/src/ff/polynomial.rs:361
↓ 11 callersMethoddegree
Degree of the polynomial; `None` for the zero polynomial.
crates/picus-solver/src/ff/univariate.rs:46
↓ 11 callersFunctionfglm_to_lex
Convert the (reduced) Gröbner basis held by `ideal` to a reduced Lex Gröbner basis via FGLM. Returns `None` if the ideal is not zero-dimensional (the
crates/picus-solver/src/gb/fglm.rs:65
↓ 11 callersMethodhash
(&self, state: &mut H)
crates/picus-core/src/ff/field.rs:202
↓ 11 callersMethodinto_poly
Consolidate every bucket into a single canonical `DensePoly`.
crates/picus-core/src/ff/geobucket.rs:293
↓ 11 callersFunctionmake_ir
( n_wires: usize, build: impl FnOnce(&Arc<FfPolyRing>) -> Vec<picus_core::poly::IrPoly>, )
crates/picus-analysis/src/propagation/linear_tests.rs:31
↓ 11 callersFunctionnames
(ns: &[&str])
crates/picus-solver/src/cdclt/atoms_tests.rs:24
↓ 11 callersMethodpop_leading_term
Pop the leading term across all buckets. Cancellations are resolved here: if multiple buckets share the leading monomial, their coefficients are summe
crates/picus-core/src/ff/geobucket.rs:221
↓ 11 callersFunctionpr_one_var
()
crates/picus-solver/src/split_gb/fixpoint_tests.rs:5
↓ 11 callersMethodpropagate
Watched-literal unit propagation. Returns `Some(conflict)` for the first clause whose literals are all False under the current assignment, or `None` w
crates/picus-solver/src/sat/solver.rs:406
↓ 11 callersMethodreduce_by_refs
Like `reduce_by` but takes references to divisors — avoids cloning the divisor list when the caller already holds polynomials inside some larger conta
crates/picus-core/src/ff/polynomial/dense_reduce.rs:26
↓ 11 callersMethodregister_atom
Register `(var, atom_key)`. If another registered atom has the same canonical poly, `var` is unioned into that atom's class. Returns [`RegisterOutcome
crates/picus-solver/src/cdclt/equality_engine.rs:163
↓ 11 callersFunctionring2
()
crates/picus-solver/src/ff/buchberger/incremental_tests.rs:6
↓ 11 callersFunctionring_for_order
Build a per-call `ff::PolyRing` whose monomial order matches `order`. Cheap (an `Arc<PolyRing>` with the same field/var-name data).
crates/picus-solver/src/gb/ideal/engine.rs:247
↓ 11 callersFunctionring_p
Polynomial ring builder for a given prime + variable count.
crates/picus-solver/src/ff/sparse_gb_tests.rs:260
↓ 11 callersFunctionrun
(src: &str)
crates/picus-solver/src/smt2/session_tests.rs:3
↓ 11 callersFunctionsample_q
A second sample in 3 vars: x0*x2 + 4*x1 - 1
crates/picus-core/src/ff/polynomial/tests.rs:303
↓ 11 callersMethodset_add_field_polys
(&mut self, on: bool)
crates/picus-solver/src/frontend/encoder/constraint_system.rs:163
↓ 11 callersFunctionsolve_boolean_query_dnf
DNF-enumeration path: try each DNF disjunct in order through the GB solver. Returns `Sat` on the first SAT disjunct, `Unsat` only if every disjunct is
crates/picus-solver/src/boolean.rs:425
↓ 11 callersFunctionsolve_encoded
Solve an `EncodedSystem` directly. Convenience wrapper.
crates/picus-solver/src/core.rs:119
↓ 11 callersFunctionsolve_encoded_with_cancel
Solve an `EncodedSystem` with cooperative timeout. Returns `SolveOutcome::Unknown` if the cancel token fires.
crates/picus-solver/src/core.rs:158
↓ 10 callersMethodanalyze
1-UIP conflict analysis. Returns `(learnt, bt_level)` where `learnt[0]` is the asserting literal (negated 1-UIP), `learnt[1..]` are lower-level litera
crates/picus-solver/src/sat/solver.rs:614
↓ 10 callersMethodas_gmp_mut
(&mut self)
crates/picus-core/src/ff/field.rs:90
↓ 10 callersFunctionbuild_sparse
(terms: &[(Vec<u16>, u64)], r: &PolyRing)
crates/picus-solver/src/ff/repr_oracle.rs:239
↓ 10 callersMethodconstant
Constant polynomial from a field element.
crates/picus-core/src/poly.rs:71
↓ 10 callersFunctioncs_with
(prime: u64, build: impl FnOnce(&mut ConstraintSystemBuilder))
crates/picus-solver/src/frontend/encoder/bitsum_extract_tests.rs:32
↓ 10 callersFunctiondense_perpair_reduced_gb
Helper: compute the reduced dense GB via the per-pair path; lift back to sparse.
crates/picus-solver/src/ff/sparse_gb_tests.rs:804
↓ 10 callersMethoddivides_consistent_with
(self, other: DivMask)
crates/picus-core/src/ff/divmask.rs:26
↓ 10 callersFunctioneq
`coeff * <var idx> = rhs_const`.
crates/picus-solver/src/cdclt/orchestrator_tests.rs:7
↓ 10 callersFunctionevaluate_full
Substitute the partial assignment into a polynomial and evaluate it. Returns `Some(value)` if all variables in `p` are assigned (so it can be fully ev
crates/picus-solver/src/split_gb/search.rs:366
↓ 10 callersFunctionfind_bitsum_chain
Looks for `c·b_0 + 2c·b_1 + ... + 2^(k-1)·c·b_{k-1}` where each `b_i` is a known bit (degree 1 in a single index, coefficient `(2^i · base) mod p`). S
crates/picus-solver/src/frontend/encoder/bitsum_extract.rs:160
↓ 10 callersFunctionfinish_gb
Resolve a GB `Result` into a basis under the soundness contract shared by every public GB entry point: on **cancellation** return `backup` (the caller
crates/picus-solver/src/gb/ideal/engine.rs:324
↓ 10 callersMethodis_zero
(&self)
crates/picus-core/src/ff/sparse_polynomial.rs:66
↓ 10 callersMethodmk_ff_elem
Create a finite field element from a string value in the given base.
crates/cvc5-ff/src/term_manager.rs:375
↓ 10 callersFunctionmk_pair
(lcm_exps: Vec<u16>, age: u64, is_coprime: bool, ring: &PolyRing)
crates/picus-solver/src/ff/buchberger/tests.rs:84
↓ 10 callersMethodmonomial
(&self)
crates/picus-core/src/ff/polynomial.rs:381
↓ 10 callersMethodmul_assign
(&self, a: &mut FieldElem, b: &FieldElem)
crates/picus-core/src/ff/field.rs:474
↓ 10 callersFunctionnormalize_term_list
Normalize an `PolyTerm` list in place. Each term's `vars: Vec<(VarIdx, u16)>` is sorted by index and entries with the same index are merged by adding
crates/picus-solver/src/frontend/rewriter.rs:30
↓ 10 callersFunctionparse_ff_const
Parse `ffN`, `ff-N`, `#fNmP`, or `#f-NmP` constant. Negative forms return `(p - N) mod p`. Returns `None` for non-constant symbols.
crates/picus-solver/src/smt2/mod.rs:212
↓ 10 callersMethodreduce_by_refs_cancel
( &self, divisors: &[&Polynomial], ring: &PolyRing, cancel: &crate::timeout::C
crates/picus-core/src/ff/polynomial.rs:279
↓ 10 callersFunctionsample_q
(ring: &PolyRing)
crates/picus-core/src/ff/sparse_polynomial_tests.rs:62
↓ 10 callersFunctionsolve_with_cached
( cached: &CachedBase, cs: &ConstraintSystem, cancel: &CancelToken, )
crates/picus-solver/src/incremental_context.rs:536
↓ 10 callersFunctionsplit_gb_cancel
( poly_ring: &'r FfPolyRing, generator_sets: Vec<Vec<Poly>>, bit_prop: &mut BitProp<'r>, cance
crates/picus-solver/src/split_gb/fixpoint.rs:55
← previousnext →201–300 of 4,080, ranked by callers