import {
  getRing
} from "./chunk-ZI34HWXZ.mjs";
import {
  __export
} from "./chunk-QK4PKNB3.mjs";

// src/Ring.ts
var Ring_exports = {};
__export(Ring_exports, {
  getFunctionRing: () => getFunctionRing,
  getTupleRing: () => getTupleRing,
  negate: () => negate,
  tuple: () => tuple
});
var tuple = (...rings) => ({
  add: (x, y) => rings.map((R, i) => R.add(x[i], y[i])),
  zero: rings.map((R) => R.zero),
  mul: (x, y) => rings.map((R, i) => R.mul(x[i], y[i])),
  one: rings.map((R) => R.one),
  sub: (x, y) => rings.map((R, i) => R.sub(x[i], y[i]))
});
var negate = (R) => (a) => R.sub(R.zero, a);
var getTupleRing = tuple;
var getFunctionRing = getRing;

export {
  tuple,
  negate,
  getTupleRing,
  getFunctionRing,
  Ring_exports
};
