eutaxy 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eutaxy",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Deterministic simulation and formal proof for TypeScript on Cloudflare Workers",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -62,7 +62,8 @@
62
62
  "vitest": ">=4.1.0",
63
63
  "@aws-sdk/client-dynamodb": ">=3.0.0",
64
64
  "@aws-sdk/util-dynamodb": ">=3.0.0",
65
- "@smithy/smithy-client": ">=3.0.0"
65
+ "@smithy/smithy-client": ">=3.0.0",
66
+ "typescript": ">=7.1.0-beta"
66
67
  },
67
68
  "peerDependenciesMeta": {
68
69
  "@cloudflare/workers-types": {
@@ -86,9 +87,7 @@
86
87
  "@eutaxy/engine": "0.0.0",
87
88
  "@eutaxy/prover": "0.0.0",
88
89
  "@eutaxy/prover-lean": "0.0.0",
89
- "@eutaxy/prover-lemmascript": "0.0.0",
90
90
  "@eutaxy/prover-smt": "0.0.0",
91
- "@eutaxy/prover-thales": "0.0.0",
92
91
  "@eutaxy/report": "0.0.0",
93
92
  "@eutaxy/spec": "0.0.0",
94
93
  "@types/node": "24.19.2"
@@ -1,2 +0,0 @@
1
- import "./src-CMoBPQuE.mjs";
2
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"combinators-B7tV5fM_.d.mts","names":[],"sources":["../../spec/src/combinators.ts"],"mappings":";;;;;;;;;KAUY,SAAS;;;;;;UAOJ,OAAO,UAAU;WACvB;WACA,IAAI;WACJ,WAAW,MAAM,WAAW;WAC5B,aAAa,MAAM,WAAW;;;UAIxB,MAAM,UAAU;WACtB;WACA,IAAI;;KAGH,OAAO,OAAO,MAAM,MAAM;iBAEtB,OAAO,UAAU,IAC/B,IAAI,GACJ;WACW,WAAW,MAAM,WAAW;WAC5B,aAAa,MAAM,WAAW;IAExC,OAAO;iBASM,MAAM,UAAU,IAAI,IAAI,IAAI,MAAM;;iBAKlC,OAAO,iBAAiB,SAAS"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"combinators-N4LmG4p4.mjs","names":[],"sources":["../../spec/src/combinators.ts"],"sourcesContent":["/**\n * What a spec file writes: `forall(f, { when, ensures })` and `total(f)`.\n * Both return plain data holding the function itself, so the user's\n * compiler types the arrows' parameters as `f`'s and a spec that does not\n * match its function does not compile. Nothing here runs a check: the\n * simulator's rungs evaluate the arrows on inputs, and the engines read\n * the spec file's text.\n */\n\n/** Any function; `never[]` so that every parameter list is accepted. */\nexport type Fn = (...args: never[]) => unknown;\n\n/**\n * A universally quantified claim: for every input of `fn`'s parameter\n * types where `when` holds, `ensures` holds. `ensures` is evaluated only\n * where `when` does, so a guard such as `c !== null` protects what follows.\n */\nexport interface Forall<F extends Fn> {\n readonly kind: \"forall\";\n readonly fn: F;\n readonly when?: (...args: Parameters<F>) => boolean;\n readonly ensures: (...args: Parameters<F>) => boolean;\n}\n\n/** The claim that `fn` terminates on every input of its parameter types. */\nexport interface Total<F extends Fn> {\n readonly kind: \"total\";\n readonly fn: F;\n}\n\nexport type Spec = Forall<Fn> | Total<Fn>;\n\nexport function forall<F extends Fn>(\n fn: F,\n property: {\n readonly when?: (...args: Parameters<F>) => boolean;\n readonly ensures: (...args: Parameters<F>) => boolean;\n },\n): Forall<F> {\n return {\n kind: \"forall\",\n fn,\n ...(property.when === undefined ? {} : { when: property.when }),\n ensures: property.ensures,\n };\n}\n\nexport function total<F extends Fn>(fn: F): Total<F> {\n return { kind: \"total\", fn };\n}\n\n/** Whether a spec file's export is one of the two spec shapes. */\nexport function isSpec(value: unknown): value is Spec {\n if (typeof value !== \"object\" || value === null) return false;\n const v = value as { kind?: unknown; fn?: unknown; ensures?: unknown; when?: unknown };\n if (typeof v.fn !== \"function\") return false;\n if (v.kind === \"total\") return true;\n return (\n v.kind === \"forall\" &&\n typeof v.ensures === \"function\" &&\n (v.when === undefined || typeof v.when === \"function\")\n );\n}\n"],"mappings":";AAgCA,SAAgB,OACd,IACA,UAIW;CACX,OAAO;EACL,MAAM;EACN;EACA,GAAI,SAAS,SAAS,KAAA,IAAY,CAAC,IAAI,EAAE,MAAM,SAAS,KAAK;EAC7D,SAAS,SAAS;CACpB;AACF;AAEA,SAAgB,MAAoB,IAAiB;CACnD,OAAO;EAAE,MAAM;EAAS;CAAG;AAC7B;;AAGA,SAAgB,OAAO,OAA+B;CACpD,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;CACxD,MAAM,IAAI;CACV,IAAI,OAAO,EAAE,OAAO,YAAY,OAAO;CACvC,IAAI,EAAE,SAAS,SAAS,OAAO;CAC/B,OACE,EAAE,SAAS,YACX,OAAO,EAAE,YAAY,eACpB,EAAE,SAAS,KAAA,KAAa,OAAO,EAAE,SAAS;AAE/C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"explore-DhfREiX9.d.mts","names":[],"sources":["../../core/src/verdict.ts","../../spec/src/ir.ts","../../engine/src/explore.ts"],"mappings":";UAOiB;WACN;WACA;WACA;WACA;;;;;;;WAOA;aACE;aACA;aACA;;;UAIH;WACC;WACA;WACA,SAAS;WACT;;UAGM;WACN;WACA;WACA;;UAGM,iBAAiB;WACvB;WACA,WAAW;;WAEX,OAAO;WACP,UAAU;;WAEV;WACA,QAAQ;;UAGF,gBAAgB;WACtB;WACA,QAAQ;;KAGP;UAMK,oBAAoB;WAC1B;WACA,OAAO;WACP;;KAGC,kBAAkB,WAAW,UAAU;;iBAGnC,gBAAgB,GAAG;;;;;;;;;;;KC1DvB;WACG;;WACA;;WACA;;WACA;;WACA;WAA0B;;WAC1B;;WACA;;WAEA;;WAEA;WACA,iBAAiB;;WAEjB;WAAwB,kBAAkB;;WAC1C;WAA0B;;UAExB;WACN;WACA,MAAM;;;UAIA;WACN;WACA;;;;;;;UAQM;WACN;WACA,QAAQ;WACR,QAAQ;WACR;aAAmB;aAA0B;;;;UAIvC;;WAEN;WACA,MAAM;;;UAIA;WACN;WACA,MAAM;WACN,OAAO;;;UAID;;WAEN;;WAEA;WACA;;WAEA;;;;;;;UAQM;;WAEN;WACA;;WAEA,kBAAkB;WAClB,OAAO;WACP,UAAU;;;;;WAKV;aAA6B;aAAwB;;;WAErD;;WAEA;;;UAIM;WACN;WACA,iBAAiB;WACjB,qBAAqB;;WAErB;;WAEA;;;UAIM;WACN;WACA;WACA;;;UAIM;WACN,oBAAoB;WACpB,iBAAiB;;UC9FX;WACN;;WAEA;;;;;;;;WAQA;;;;;;;WAOA;;WAEA;;WAEA;;;;;;WAMA;;;;;;;;WAQA;aAAkC;;;;iBAqKvB,OACpB,MAAM,cACN,UAAU,UACV,UAAU,WACT,QAAQ;iBAIW,QACpB,UAAU,cACV,UAAU,UACV,SAAS,iBACR,QAAQ"}