gdp-wired 0.48.0 → 0.50.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.
Files changed (361) hide show
  1. package/README.md +6 -2
  2. package/dist/core/bmc.js +10 -7
  3. package/dist/core/candidate-seeds.d.ts +25 -0
  4. package/dist/core/candidate-seeds.js +90 -0
  5. package/dist/core/check.js +7 -2
  6. package/dist/core/cli.js +3 -0
  7. package/dist/core/count-attempt-work.d.ts +29 -0
  8. package/dist/core/count-attempt-work.js +96 -0
  9. package/dist/core/count-boolean-partition.d.ts +5 -0
  10. package/dist/core/count-boolean-partition.js +47 -0
  11. package/dist/core/count-bounded-quotient.d.ts +2 -0
  12. package/dist/core/count-bounded-quotient.js +13 -0
  13. package/dist/core/count-case-compose.d.ts +20 -0
  14. package/dist/core/count-case-compose.js +289 -0
  15. package/dist/core/count-cases.js +3 -2
  16. package/dist/core/count-cert-rename.d.ts +10 -0
  17. package/dist/core/count-cert-rename.js +69 -0
  18. package/dist/core/count-cert-transport.d.ts +10 -2
  19. package/dist/core/count-cert-transport.js +60 -9
  20. package/dist/core/count-certificate-minimize.d.ts +57 -0
  21. package/dist/core/count-certificate-minimize.js +263 -0
  22. package/dist/core/count-closed-family.d.ts +32 -0
  23. package/dist/core/count-closed-family.js +143 -0
  24. package/dist/core/count-closing-budget.d.ts +10 -0
  25. package/dist/core/count-closing-budget.js +49 -0
  26. package/dist/core/count-closing-needs.d.ts +5 -0
  27. package/dist/core/count-closing-needs.js +9 -0
  28. package/dist/core/count-component-budget.d.ts +5 -0
  29. package/dist/core/count-component-budget.js +9 -0
  30. package/dist/core/count-copy-shape.d.ts +11 -0
  31. package/dist/core/count-copy-shape.js +40 -0
  32. package/dist/core/count-disjoint-funding.d.ts +75 -0
  33. package/dist/core/count-disjoint-funding.js +284 -0
  34. package/dist/core/count-emitter-frame-pool.d.ts +23 -0
  35. package/dist/core/count-emitter-frame-pool.js +87 -0
  36. package/dist/core/count-final-step.d.ts +5 -0
  37. package/dist/core/count-final-step.js +20 -0
  38. package/dist/core/count-fixed-frame.d.ts +4 -0
  39. package/dist/core/count-fixed-frame.js +30 -0
  40. package/dist/core/count-frames.d.ts +25 -0
  41. package/dist/core/count-frames.js +118 -0
  42. package/dist/core/count-frozen-guard.d.ts +2 -0
  43. package/dist/core/count-frozen-guard.js +31 -0
  44. package/dist/core/count-generation-phase.d.ts +7 -0
  45. package/dist/core/count-generation-phase.js +33 -0
  46. package/dist/core/count-guard-composition.d.ts +12 -0
  47. package/dist/core/count-guard-composition.js +48 -0
  48. package/dist/core/count-guard-context.d.ts +11 -0
  49. package/dist/core/count-guard-context.js +50 -0
  50. package/dist/core/count-guard-facts.d.ts +50 -0
  51. package/dist/core/count-guard-facts.js +97 -0
  52. package/dist/core/count-guard-proposals.d.ts +7 -0
  53. package/dist/core/count-guard-proposals.js +106 -0
  54. package/dist/core/count-guard-shape.d.ts +18 -0
  55. package/dist/core/count-guard-shape.js +100 -0
  56. package/dist/core/count-guard-tree.d.ts +17 -0
  57. package/dist/core/count-guard-tree.js +125 -0
  58. package/dist/core/count-leader-facts.d.ts +10 -0
  59. package/dist/core/count-leader-facts.js +52 -0
  60. package/dist/core/count-leader.d.ts +10 -0
  61. package/dist/core/count-leader.js +331 -0
  62. package/dist/core/count-lemma-transport.d.ts +8 -0
  63. package/dist/core/count-lemma-transport.js +47 -0
  64. package/dist/core/count-lifted-budget.d.ts +54 -0
  65. package/dist/core/count-lifted-budget.js +97 -0
  66. package/dist/core/count-lifted-copy.d.ts +3 -0
  67. package/dist/core/count-lifted-copy.js +166 -0
  68. package/dist/core/count-lifted-increment.d.ts +3 -0
  69. package/dist/core/count-lifted-increment.js +146 -0
  70. package/dist/core/count-lifted-load.d.ts +5 -0
  71. package/dist/core/count-lifted-load.js +179 -0
  72. package/dist/core/count-lifted-prerequisite.d.ts +14 -0
  73. package/dist/core/count-lifted-prerequisite.js +53 -0
  74. package/dist/core/count-lifted-replacement.d.ts +3 -0
  75. package/dist/core/count-lifted-replacement.js +540 -0
  76. package/dist/core/count-lifted-shape.d.ts +63 -0
  77. package/dist/core/count-lifted-shape.js +115 -0
  78. package/dist/core/count-lifted-strategy.d.ts +7 -0
  79. package/dist/core/count-lifted-strategy.js +226 -0
  80. package/dist/core/count-lifted-transports.d.ts +32 -0
  81. package/dist/core/count-lifted-transports.js +293 -0
  82. package/dist/core/count-load-shape.d.ts +17 -0
  83. package/dist/core/count-load-shape.js +67 -0
  84. package/dist/core/count-minimal-view.d.ts +26 -0
  85. package/dist/core/count-minimal-view.js +46 -0
  86. package/dist/core/count-operation-observation.d.ts +9 -0
  87. package/dist/core/count-operation-observation.js +22 -0
  88. package/dist/core/count-operation-order.d.ts +5 -0
  89. package/dist/core/count-operation-order.js +4 -0
  90. package/dist/core/count-phase.d.ts +9 -0
  91. package/dist/core/count-phase.js +127 -0
  92. package/dist/core/count-premise-search.d.ts +9 -0
  93. package/dist/core/count-premise-search.js +41 -0
  94. package/dist/core/count-premise-view.d.ts +19 -0
  95. package/dist/core/count-premise-view.js +220 -0
  96. package/dist/core/count-prerequisite-components.d.ts +67 -0
  97. package/dist/core/count-prerequisite-components.js +239 -0
  98. package/dist/core/count-prerequisite-memory.d.ts +24 -0
  99. package/dist/core/count-prerequisite-memory.js +37 -0
  100. package/dist/core/count-prerequisite-plan.d.ts +12 -0
  101. package/dist/core/count-prerequisite-plan.js +88 -0
  102. package/dist/core/count-primitive-budget.d.ts +1 -0
  103. package/dist/core/count-primitive-budget.js +8 -0
  104. package/dist/core/count-project-free.d.ts +3 -0
  105. package/dist/core/count-project-free.js +24 -0
  106. package/dist/core/count-project-witness.d.ts +4 -0
  107. package/dist/core/count-project-witness.js +48 -0
  108. package/dist/core/count-proof-rescope.d.ts +14 -0
  109. package/dist/core/count-proof-rescope.js +71 -0
  110. package/dist/core/count-proof-scope.d.ts +68 -0
  111. package/dist/core/count-proof-scope.js +333 -0
  112. package/dist/core/count-prune-owned-root.d.ts +5 -0
  113. package/dist/core/count-prune-owned-root.js +27 -0
  114. package/dist/core/count-query-context.d.ts +3 -0
  115. package/dist/core/count-query-context.js +7 -0
  116. package/dist/core/count-query.d.ts +15 -0
  117. package/dist/core/count-query.js +59 -0
  118. package/dist/core/count-quorum-leaf.d.ts +9 -0
  119. package/dist/core/count-quorum-leaf.js +38 -0
  120. package/dist/core/count-reachability-budget.d.ts +1 -0
  121. package/dist/core/count-reachability-budget.js +7 -0
  122. package/dist/core/count-reachability-reconcile.d.ts +11 -0
  123. package/dist/core/count-reachability-reconcile.js +19 -0
  124. package/dist/core/count-reachability.d.ts +50 -0
  125. package/dist/core/count-reachability.js +351 -0
  126. package/dist/core/count-rebase-path.d.ts +9 -0
  127. package/dist/core/count-rebase-path.js +68 -0
  128. package/dist/core/count-recipe-context.d.ts +45 -0
  129. package/dist/core/count-recipe-context.js +71 -0
  130. package/dist/core/count-recipe-controller.d.ts +115 -0
  131. package/dist/core/count-recipe-controller.js +417 -0
  132. package/dist/core/count-recipe-graph.d.ts +36 -0
  133. package/dist/core/count-recipe-graph.js +211 -0
  134. package/dist/core/count-recovery/conditional-check-cache.js +3 -2
  135. package/dist/core/count-recovery/conditional-cuts.js +5 -4
  136. package/dist/core/count-recovery/conditional-proof.d.ts +37 -3
  137. package/dist/core/count-recovery/conditional-proof.js +72 -30
  138. package/dist/core/count-recovery/derivability-closure.js +2 -1
  139. package/dist/core/count-recovery/guard-cases.js +2 -1
  140. package/dist/core/count-recovery/reframe-tree.d.ts +2 -0
  141. package/dist/core/count-recovery/reframe-tree.js +24 -0
  142. package/dist/core/count-recovery/replay-linear-skeleton.d.ts +2 -0
  143. package/dist/core/count-recovery/replay-linear-skeleton.js +28 -0
  144. package/dist/core/count-recovery/row-cases.js +2 -1
  145. package/dist/core/count-rejection-budget.d.ts +8 -0
  146. package/dist/core/count-rejection-budget.js +15 -0
  147. package/dist/core/count-replacement.d.ts +5 -0
  148. package/dist/core/count-replacement.js +129 -0
  149. package/dist/core/count-replay-diagnostic.d.ts +21 -0
  150. package/dist/core/count-replay-diagnostic.js +49 -0
  151. package/dist/core/count-replay-skeleton.d.ts +4 -0
  152. package/dist/core/count-replay-skeleton.js +28 -0
  153. package/dist/core/count-rescope-funding.d.ts +3 -0
  154. package/dist/core/count-rescope-funding.js +17 -0
  155. package/dist/core/count-restrictions.d.ts +11 -0
  156. package/dist/core/count-restrictions.js +31 -0
  157. package/dist/core/count-retry-budget.d.ts +67 -0
  158. package/dist/core/count-retry-budget.js +114 -0
  159. package/dist/core/count-retry-round.d.ts +24 -0
  160. package/dist/core/count-retry-round.js +44 -0
  161. package/dist/core/count-row-agreement.d.ts +35 -0
  162. package/dist/core/count-row-agreement.js +270 -0
  163. package/dist/core/count-row-aliases.d.ts +3 -0
  164. package/dist/core/count-row-aliases.js +59 -0
  165. package/dist/core/count-row-composition.d.ts +6 -0
  166. package/dist/core/count-row-composition.js +55 -0
  167. package/dist/core/count-row-copy-linear.d.ts +4 -0
  168. package/dist/core/count-row-copy-linear.js +83 -0
  169. package/dist/core/count-row-copy.d.ts +4 -0
  170. package/dist/core/count-row-copy.js +94 -0
  171. package/dist/core/count-row-policy.d.ts +3 -0
  172. package/dist/core/count-row-policy.js +56 -0
  173. package/dist/core/count-row-reindex.d.ts +11 -0
  174. package/dist/core/count-row-reindex.js +126 -0
  175. package/dist/core/count-row-support.d.ts +9 -0
  176. package/dist/core/count-row-support.js +42 -0
  177. package/dist/core/count-row-symmetry.d.ts +7 -0
  178. package/dist/core/count-row-symmetry.js +100 -0
  179. package/dist/core/count-scope-hyps.d.ts +2 -0
  180. package/dist/core/count-scope-hyps.js +163 -0
  181. package/dist/core/count-scope-row-reuse.d.ts +3 -0
  182. package/dist/core/count-scope-row-reuse.js +92 -0
  183. package/dist/core/count-search-allowance.d.ts +1 -0
  184. package/dist/core/count-search-allowance.js +17 -0
  185. package/dist/core/count-stabilize-tree.d.ts +9 -0
  186. package/dist/core/count-stabilize-tree.js +35 -0
  187. package/dist/core/count-stage-trace.d.ts +8 -0
  188. package/dist/core/count-stage-trace.js +45 -0
  189. package/dist/core/count-strategies.d.ts +16 -0
  190. package/dist/core/count-strategies.js +155 -0
  191. package/dist/core/count-strategy-premises.d.ts +5 -0
  192. package/dist/core/count-strategy-premises.js +14 -0
  193. package/dist/core/count-strategy.d.ts +41 -0
  194. package/dist/core/count-strategy.js +76 -0
  195. package/dist/core/count-support.d.ts +1 -0
  196. package/dist/core/count-support.js +26 -4
  197. package/dist/core/count-tier-budget.d.ts +14 -0
  198. package/dist/core/count-tier-budget.js +64 -0
  199. package/dist/core/count-unwritten-prefix.d.ts +24 -0
  200. package/dist/core/count-unwritten-prefix.js +97 -0
  201. package/dist/core/count-write-shape.d.ts +15 -0
  202. package/dist/core/count-write-shape.js +73 -0
  203. package/dist/core/counted-candidate-seeds.d.ts +12 -0
  204. package/dist/core/counted-candidate-seeds.js +31 -0
  205. package/dist/core/counts.d.ts +37 -13
  206. package/dist/core/counts.js +999 -129
  207. package/dist/core/cycles.js +5 -4
  208. package/dist/core/cyclic.js +11 -10
  209. package/dist/core/data.js +16 -15
  210. package/dist/core/dsl-deadline.d.ts +3 -0
  211. package/dist/core/dsl-deadline.js +27 -0
  212. package/dist/core/dsl.d.ts +32 -2
  213. package/dist/core/dsl.js +202 -64
  214. package/dist/core/evaluation-admission.d.ts +1 -0
  215. package/dist/core/evaluation-admission.js +3 -0
  216. package/dist/core/exists.d.ts +6 -1
  217. package/dist/core/exists.js +53 -10
  218. package/dist/core/field-laws.d.ts +3 -1
  219. package/dist/core/field-laws.js +159 -3
  220. package/dist/core/finite-houdini.d.ts +6 -0
  221. package/dist/core/finite-houdini.js +63 -21
  222. package/dist/core/finite-tiny.js +95 -67
  223. package/dist/core/fixtures/count-completion/paxos-decision.json +1 -0
  224. package/dist/core/fresh.js +5 -1
  225. package/dist/core/infer.js +49 -33
  226. package/dist/core/kind.js +2 -1
  227. package/dist/core/lemma-cuts.js +11 -10
  228. package/dist/core/lift-cli.d.ts +11 -0
  229. package/dist/core/lift-cli.js +113 -0
  230. package/dist/core/linear-admission.d.ts +14 -0
  231. package/dist/core/linear-admission.js +151 -0
  232. package/dist/core/machine.d.ts +5 -2
  233. package/dist/core/machine.js +105 -31
  234. package/dist/core/meter.d.ts +22 -0
  235. package/dist/core/meter.js +34 -0
  236. package/dist/core/nonterm.js +4 -3
  237. package/dist/core/proof-output.d.ts +53 -0
  238. package/dist/core/proof-output.js +38 -0
  239. package/dist/core/prover-row-budget.d.ts +3 -0
  240. package/dist/core/prover-row-budget.js +106 -0
  241. package/dist/core/quorum-laws.d.ts +21 -1
  242. package/dist/core/quorum-laws.js +80 -17
  243. package/dist/core/rationals.js +3 -2
  244. package/dist/core/rejection-discovery.d.ts +34 -0
  245. package/dist/core/rejection-discovery.js +36 -0
  246. package/dist/core/rejection-stage.d.ts +39 -0
  247. package/dist/core/rejection-stage.js +205 -0
  248. package/dist/core/request-quotient.d.ts +8 -0
  249. package/dist/core/request-quotient.js +299 -0
  250. package/dist/core/row-agreement-shape.d.ts +15 -0
  251. package/dist/core/row-agreement-shape.js +68 -0
  252. package/dist/core/runtime-wall.d.ts +2 -0
  253. package/dist/core/search-policy.d.ts +15 -0
  254. package/dist/core/search-policy.js +68 -0
  255. package/dist/core/solver.d.ts +1 -1
  256. package/dist/core/solver.js +40 -6
  257. package/dist/core/step-work.d.ts +12 -0
  258. package/dist/core/step-work.js +14 -0
  259. package/dist/core/strategy-premises.d.ts +8 -0
  260. package/dist/core/strategy-premises.js +64 -0
  261. package/dist/core/system.js +4 -3
  262. package/dist/core/table-admission.d.ts +1 -0
  263. package/dist/core/table-admission.js +3 -0
  264. package/dist/core/trace-clock.d.ts +3 -0
  265. package/dist/core/trace-clock.js +16 -0
  266. package/dist/core/transfer.js +3 -2
  267. package/dist/core/translate.js +16 -3
  268. package/dist/core/wall.d.ts +6 -1
  269. package/dist/core/wall.js +23 -9
  270. package/dist/core/watch.d.ts +1 -1
  271. package/dist/core/watch.js +13 -4
  272. package/dist/core/work-admission.d.ts +164 -0
  273. package/dist/core/work-admission.js +418 -0
  274. package/dist/core/work-amount.d.ts +21 -0
  275. package/dist/core/work-amount.js +80 -0
  276. package/dist/core/work-collections.d.ts +11 -0
  277. package/dist/core/work-collections.js +198 -0
  278. package/dist/core/work-kinds.d.ts +11 -0
  279. package/dist/core/work-kinds.js +9 -0
  280. package/dist/core/work-meter.d.ts +8 -0
  281. package/dist/core/work-meter.js +83 -0
  282. package/dist/core/work-observe.d.ts +12 -0
  283. package/dist/core/work-observe.js +39 -0
  284. package/dist/core/work-profile.d.ts +10 -0
  285. package/dist/core/work-profile.js +21 -0
  286. package/dist/core/work-refusal.d.ts +1 -0
  287. package/dist/core/work-refusal.js +6 -0
  288. package/dist/interchange/format.js +2 -0
  289. package/dist/kernel/cdcl.js +93 -40
  290. package/dist/kernel/epr.js +23 -8
  291. package/dist/kernel/function-instances.d.ts +45 -0
  292. package/dist/kernel/function-instances.js +460 -0
  293. package/dist/kernel/kernel.d.ts +47 -1
  294. package/dist/kernel/kernel.js +417 -68
  295. package/dist/kernel/prove.d.ts +61 -6
  296. package/dist/kernel/prove.js +625 -205
  297. package/dist/kernel/prover-rows.d.ts +1 -0
  298. package/dist/kernel/prover-rows.js +12 -1
  299. package/dist/kernel/reader.d.ts +1 -1
  300. package/dist/kernel/reader.js +57 -12
  301. package/dist/kernel/simplex.js +9 -2
  302. package/dist/lean-kernel/axiom-audit.d.ts +11 -0
  303. package/dist/lean-kernel/axiom-audit.js +50 -0
  304. package/dist/lean-kernel/emit.d.ts +34 -3
  305. package/dist/lean-kernel/emit.js +215 -28
  306. package/dist/lean-kernel/legacy-family-library.d.ts +1 -0
  307. package/dist/lean-kernel/legacy-family-library.js +5 -0
  308. package/dist/lean-kernel/legacy-family-order.d.ts +1 -0
  309. package/dist/lean-kernel/legacy-family-order.js +26 -0
  310. package/dist/lean-kernel/library.js +25 -3
  311. package/dist/lean-kernel/lift/counted-source-data.d.ts +7 -0
  312. package/dist/lean-kernel/lift/counted-source-data.js +78 -0
  313. package/dist/lean-kernel/lift/index.d.ts +82 -0
  314. package/dist/lean-kernel/lift/index.js +116 -0
  315. package/dist/lean-kernel/lift/project.d.ts +4 -0
  316. package/dist/lean-kernel/lift/project.js +15 -0
  317. package/dist/lean-kernel/lift/proof-capture.d.ts +104 -0
  318. package/dist/lean-kernel/lift/proof-capture.js +216 -0
  319. package/dist/lean-kernel/lift/proof-codec.d.ts +28 -0
  320. package/dist/lean-kernel/lift/proof-codec.js +299 -0
  321. package/dist/lean-kernel/lift/proof-counted-source.d.ts +16 -0
  322. package/dist/lean-kernel/lift/proof-counted-source.js +68 -0
  323. package/dist/lean-kernel/lift/proof-frontier.d.ts +19 -0
  324. package/dist/lean-kernel/lift/proof-frontier.js +153 -0
  325. package/dist/lean-kernel/lift/proof-graph.d.ts +17 -0
  326. package/dist/lean-kernel/lift/proof-graph.js +130 -0
  327. package/dist/lean-kernel/lift/proof-parts.d.ts +29 -0
  328. package/dist/lean-kernel/lift/proof-parts.js +131 -0
  329. package/dist/lean-kernel/lift/proof-prelude.d.ts +2 -0
  330. package/dist/lean-kernel/lift/proof-prelude.js +38 -0
  331. package/dist/lean-kernel/lift/proof-witness.d.ts +30 -0
  332. package/dist/lean-kernel/lift/proof-witness.js +283 -0
  333. package/dist/lean-kernel/lift/shape.d.ts +5 -0
  334. package/dist/lean-kernel/lift/shape.js +57 -0
  335. package/dist/lean-kernel/lift/source-projection.d.ts +16 -0
  336. package/dist/lean-kernel/lift/source-projection.js +81 -0
  337. package/dist/lean-kernel/lift/source.d.ts +23 -0
  338. package/dist/lean-kernel/lift/source.js +111 -0
  339. package/dist/lean-kernel/lift/witness-alpha.d.ts +9 -0
  340. package/dist/lean-kernel/lift/witness-alpha.js +31 -0
  341. package/dist/lean-kernel/lift-legacy.d.ts +58 -0
  342. package/dist/lean-kernel/lift-legacy.js +84 -0
  343. package/dist/lean-kernel/lift-names.d.ts +22 -0
  344. package/dist/lean-kernel/lift-names.js +36 -0
  345. package/dist/lean-kernel/lift-simulation/index.d.ts +29 -0
  346. package/dist/lean-kernel/lift-simulation/index.js +352 -0
  347. package/dist/lean-kernel/lift-simulation/shape.d.ts +41 -0
  348. package/dist/lean-kernel/lift-simulation/shape.js +173 -0
  349. package/dist/lean-kernel/lift-special/index.d.ts +36 -0
  350. package/dist/lean-kernel/lift-special/index.js +241 -0
  351. package/dist/lean-kernel/lift-special/structural.d.ts +25 -0
  352. package/dist/lean-kernel/lift-special/structural.js +126 -0
  353. package/dist/lean-kernel/lift-typed/index.d.ts +35 -0
  354. package/dist/lean-kernel/lift-typed/index.js +256 -0
  355. package/dist/lean-kernel/lift-typed/roles.d.ts +17 -0
  356. package/dist/lean-kernel/lift-typed/roles.js +170 -0
  357. package/dist/lean-kernel/lift-typed/shape.d.ts +1 -0
  358. package/dist/lean-kernel/lift-typed/shape.js +12 -0
  359. package/dist/lean-kernel/lift.d.ts +30 -0
  360. package/dist/lean-kernel/lift.js +97 -0
  361. package/package.json +5 -1
@@ -0,0 +1 @@
1
+ {"schema":1,"source":"97463c564351448373ca49f6af980b31b1a0f0c5","m":{"name":"paxos epr","params":["none","size"],"inputs":["op","n","r","v","maxr","w"],"state":{"busy":{"op":"const","value":0},"cnt":{"op":"const","value":0},"pr":{"op":"const","value":0},"pmaxr":{"op":"const","value":0},"pv":{"op":"const","value":0}},"maps":{"OneA":0,"OneB":0,"Left":0,"Proposal":0,"Vote":0,"Decision":0,"Qs":0},"inputMaps":["Q"],"counts":{"members":{"j":"members$x","key":"members$k","below":{"op":"var","name":"size"},"body":{"op":"if","c":{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Q","key":{"op":"var","name":"members$k"}}},"then":{"op":"const","value":1},"else":{"op":"const","value":0}}},"missing":{"j":"missing$x","key":"missing$k","below":{"op":"var","name":"size"},"body":{"op":"if","c":{"op":"and","xs":[{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Q","key":{"op":"var","name":"missing$k"}}},{"op":"not","x":{"op":"=","a":{"op":"get","map":"Vote","key":{"op":"add","a":{"op":"add","a":{"op":"mul","k":4096,"a":{"op":"var","name":"missing$k"}},"b":{"op":"mul","k":64,"a":{"op":"var","name":"r"}}},"b":{"op":"var","name":"v"}}},"b":{"op":"const","value":1}}}]},"then":{"op":"const","value":1},"else":{"op":"const","value":0}}},"members$Qs":{"j":"members$Qs$x","key":"members$Qs$k","below":{"op":"var","name":"size"},"body":{"op":"if","c":{"op":"=","a":{"op":"get","map":"Qs","key":{"op":"var","name":"members$Qs$k"}},"b":{"op":"const","value":1}},"then":{"op":"const","value":1},"else":{"op":"const","value":0}}},"members$Decision":{"j":"members$Decision$x","key":"members$Decision$k","below":{"op":"var","name":"size"},"body":{"op":"if","c":{"op":"=","a":{"op":"get","map":"Vote","key":{"op":"add","a":{"op":"add","a":{"op":"mul","k":4096,"a":{"op":"var","name":"members$Decision$k"}},"b":{"op":"mul","k":64,"a":{"op":"var","name":"members$Decision$x"}}},"b":{"op":"var","name":"members$Decision$y"}}},"b":{"op":"const","value":1}},"then":{"op":"const","value":1},"else":{"op":"const","value":0}},"lo":"members$Decision$y","base":64},"can$Vote$members":{"j":"can$Vote$members$x","key":"can$Vote$members$k","lo":"can$Vote$members$y","base":64,"below":{"op":"var","name":"size"},"body":{"op":"if","c":{"op":"or","xs":[{"op":"and","xs":[{"op":"not","x":{"op":"=","a":{"op":"get","map":"Left","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"can$Vote$members$k"}},"b":{"op":"var","name":"can$Vote$members$x"}}},"b":{"op":"const","value":1}}}]},{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Vote","key":{"op":"add","a":{"op":"add","a":{"op":"mul","k":4096,"a":{"op":"var","name":"can$Vote$members$k"}},"b":{"op":"mul","k":64,"a":{"op":"var","name":"can$Vote$members$x"}}},"b":{"op":"var","name":"can$Vote$members$y"}}}}]},"then":{"op":"const","value":1},"else":{"op":"const","value":0}}}},"step":{"flags":{"noProposal":{"op":"all","key":"k$19","c":{"op":"or","xs":[{"op":"not","x":{"op":"<","a":{"op":"var","name":"k$19"},"b":{"op":"const","value":64}}},{"op":"not","x":{"op":"=","a":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"r"}},"b":{"op":"var","name":"k$19"}}},"b":{"op":"const","value":1}}}]}},"joined":{"op":"all","key":"k$20","c":{"op":"or","xs":[{"op":"not","x":{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Q","key":{"op":"var","name":"k$20"}}}},{"op":"=","a":{"op":"get","map":"OneB","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"r"}},"b":{"op":"var","name":"k$20"}}},"b":{"op":"const","value":1}}]}},"rowOk":{"op":"all","key":"k$21","c":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"=","a":{"op":"get","map":"Vote","key":{"op":"add","a":{"op":"mul","k":4096,"a":{"op":"var","name":"cnt"}},"b":{"op":"var","name":"k$21"}}},"b":{"op":"const","value":1}},{"op":"<","a":{"op":"var","name":"k$21"},"b":{"op":"mul","k":64,"a":{"op":"var","name":"pr"}}}]}},{"op":"and","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"pmaxr"},"b":{"op":"var","name":"none"}}},{"op":"<","a":{"op":"var","name":"k$21"},"b":{"op":"mul","k":64,"a":{"op":"add","a":{"op":"var","name":"pmaxr"},"b":{"op":"const","value":1}}}}]}]}},"sends":{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"op"},"b":{"op":"const","value":0}},{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":0}},{"op":"not","x":{"op":"=","a":{"op":"var","name":"r"},"b":{"op":"var","name":"none"}}}]}]},"joins":{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"op"},"b":{"op":"const","value":1}},{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":0}},{"op":"not","x":{"op":"=","a":{"op":"var","name":"r"},"b":{"op":"var","name":"none"}}}]},{"op":"=","a":{"op":"get","map":"OneA","key":{"op":"var","name":"r"}},"b":{"op":"const","value":1}},{"op":"not","x":{"op":"=","a":{"op":"get","map":"Left","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"n"}},"b":{"op":"var","name":"r"}}},"b":{"op":"const","value":1}}}]},"proposes":{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"op"},"b":{"op":"const","value":2}},{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":0}},{"op":"not","x":{"op":"=","a":{"op":"var","name":"r"},"b":{"op":"var","name":"none"}}}]},{"op":"flag","name":"noProposal"},{"op":"flag","name":"joined"},{"op":"or","xs":[{"op":"=","a":{"op":"var","name":"maxr"},"b":{"op":"var","name":"none"}},{"op":"and","xs":[{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Q","key":{"op":"var","name":"w"}}},{"op":"<","a":{"op":"var","name":"maxr"},"b":{"op":"var","name":"r"}},{"op":"=","a":{"op":"get","map":"Vote","key":{"op":"add","a":{"op":"add","a":{"op":"mul","k":4096,"a":{"op":"var","name":"w"}},"b":{"op":"mul","k":64,"a":{"op":"var","name":"maxr"}}},"b":{"op":"var","name":"v"}}},"b":{"op":"const","value":1}}]}]}]},"checks":{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"op"},"b":{"op":"const","value":3}},{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}]},"fails":{"op":"and","xs":[{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"op"},"b":{"op":"const","value":3}},{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}]},{"op":"=","a":{"op":"get","map":"Qs","key":{"op":"var","name":"cnt"}},"b":{"op":"const","value":1}},{"op":"not","x":{"op":"flag","name":"rowOk"}}]},"commits":{"op":"and","xs":[{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"op"},"b":{"op":"const","value":3}},{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}]},{"op":"not","x":{"op":"and","xs":[{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"op"},"b":{"op":"const","value":3}},{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}]},{"op":"=","a":{"op":"get","map":"Qs","key":{"op":"var","name":"cnt"}},"b":{"op":"const","value":1}},{"op":"not","x":{"op":"flag","name":"rowOk"}}]}},{"op":"=","a":{"op":"add","a":{"op":"var","name":"cnt"},"b":{"op":"const","value":1}},"b":{"op":"var","name":"size"}}]},"casts":{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"op"},"b":{"op":"const","value":4}},{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":0}},{"op":"not","x":{"op":"=","a":{"op":"var","name":"r"},"b":{"op":"var","name":"none"}}}]},{"op":"not","x":{"op":"=","a":{"op":"get","map":"Left","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"n"}},"b":{"op":"var","name":"r"}}},"b":{"op":"const","value":1}}},{"op":"=","a":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"r"}},"b":{"op":"var","name":"v"}}},"b":{"op":"const","value":1}}]},"decides":{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"op"},"b":{"op":"const","value":5}},{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":0}},{"op":"not","x":{"op":"=","a":{"op":"var","name":"r"},"b":{"op":"var","name":"none"}}}]},{"op":"=","a":{"op":"get","map":"missing","key":{"op":"const","value":0}},"b":{"op":"const","value":0}}]},"all$1":{"op":"all","key":"k$24","c":{"op":"and","xs":[{"op":"<=","a":{"op":"get","map":"Q","key":{"op":"var","name":"k$24"}},"b":{"op":"const","value":1}},{"op":"or","xs":[{"op":"not","x":{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Q","key":{"op":"var","name":"k$24"}}}},{"op":"<","a":{"op":"var","name":"k$24"},"b":{"op":"var","name":"size"}}]}]}}},"state":{"busy":{"op":"if","c":{"op":"flag","name":"proposes"},"then":{"op":"const","value":1},"else":{"op":"if","c":{"op":"or","xs":[{"op":"flag","name":"fails"},{"op":"flag","name":"commits"}]},"then":{"op":"const","value":0},"else":{"op":"var","name":"busy"}}},"cnt":{"op":"if","c":{"op":"and","xs":[{"op":"flag","name":"checks"},{"op":"not","x":{"op":"or","xs":[{"op":"flag","name":"fails"},{"op":"flag","name":"commits"}]}}]},"then":{"op":"add","a":{"op":"var","name":"cnt"},"b":{"op":"const","value":1}},"else":{"op":"if","c":{"op":"or","xs":[{"op":"flag","name":"fails"},{"op":"flag","name":"commits"}]},"then":{"op":"const","value":0},"else":{"op":"var","name":"cnt"}}},"pr":{"op":"if","c":{"op":"flag","name":"proposes"},"then":{"op":"var","name":"r"},"else":{"op":"if","c":{"op":"or","xs":[{"op":"flag","name":"fails"},{"op":"flag","name":"commits"}]},"then":{"op":"const","value":0},"else":{"op":"var","name":"pr"}}},"pmaxr":{"op":"if","c":{"op":"flag","name":"proposes"},"then":{"op":"var","name":"maxr"},"else":{"op":"if","c":{"op":"or","xs":[{"op":"flag","name":"fails"},{"op":"flag","name":"commits"}]},"then":{"op":"const","value":0},"else":{"op":"var","name":"pmaxr"}}},"pv":{"op":"if","c":{"op":"flag","name":"proposes"},"then":{"op":"var","name":"v"},"else":{"op":"if","c":{"op":"or","xs":[{"op":"flag","name":"fails"},{"op":"flag","name":"commits"}]},"then":{"op":"const","value":0},"else":{"op":"var","name":"pv"}}}},"maps":{"Qs":{"each":"k$22","value":{"op":"if","c":{"op":"or","xs":[{"op":"and","xs":[{"op":"flag","name":"proposes"},{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Q","key":{"op":"var","name":"k$22"}}}]},{"op":"and","xs":[{"op":"not","x":{"op":"flag","name":"proposes"}},{"op":"or","xs":[{"op":"and","xs":[{"op":"or","xs":[{"op":"flag","name":"fails"},{"op":"flag","name":"commits"}]},{"op":"<","a":{"op":"const","value":0},"b":{"op":"const","value":0}}]},{"op":"and","xs":[{"op":"not","x":{"op":"or","xs":[{"op":"flag","name":"fails"},{"op":"flag","name":"commits"}]}},{"op":"=","a":{"op":"get","map":"Qs","key":{"op":"var","name":"k$22"}},"b":{"op":"const","value":1}}]}]}]}]},"then":{"op":"const","value":1},"else":{"op":"const","value":0}}},"OneA":{"key":{"op":"var","name":"r"},"value":{"op":"if","c":{"op":"or","xs":[{"op":"and","xs":[{"op":"flag","name":"sends"},{"op":"<=","a":{"op":"const","value":0},"b":{"op":"const","value":0}}]},{"op":"and","xs":[{"op":"not","x":{"op":"flag","name":"sends"}},{"op":"=","a":{"op":"get","map":"OneA","key":{"op":"var","name":"r"}},"b":{"op":"const","value":1}}]}]},"then":{"op":"const","value":1},"else":{"op":"const","value":0}}},"OneB":{"key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"r"}},"b":{"op":"var","name":"n"}},"value":{"op":"if","c":{"op":"or","xs":[{"op":"and","xs":[{"op":"flag","name":"joins"},{"op":"<=","a":{"op":"const","value":0},"b":{"op":"const","value":0}}]},{"op":"and","xs":[{"op":"not","x":{"op":"flag","name":"joins"}},{"op":"=","a":{"op":"get","map":"OneB","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"r"}},"b":{"op":"var","name":"n"}}},"b":{"op":"const","value":1}}]}]},"then":{"op":"const","value":1},"else":{"op":"const","value":0}}},"Left":{"each":"k$23","value":{"op":"if","c":{"op":"or","xs":[{"op":"and","xs":[{"op":"and","xs":[{"op":"flag","name":"joins"},{"op":"<=","a":{"op":"mul","k":64,"a":{"op":"var","name":"n"}},"b":{"op":"var","name":"k$23"}},{"op":"<","a":{"op":"var","name":"k$23"},"b":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"n"}},"b":{"op":"var","name":"r"}}}]},{"op":"<=","a":{"op":"const","value":0},"b":{"op":"const","value":0}}]},{"op":"and","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"flag","name":"joins"},{"op":"<=","a":{"op":"mul","k":64,"a":{"op":"var","name":"n"}},"b":{"op":"var","name":"k$23"}},{"op":"<","a":{"op":"var","name":"k$23"},"b":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"n"}},"b":{"op":"var","name":"r"}}}]}},{"op":"=","a":{"op":"get","map":"Left","key":{"op":"var","name":"k$23"}},"b":{"op":"const","value":1}}]}]},"then":{"op":"const","value":1},"else":{"op":"const","value":0}}},"Proposal":{"key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"pr"}},"b":{"op":"var","name":"pv"}},"value":{"op":"if","c":{"op":"or","xs":[{"op":"and","xs":[{"op":"flag","name":"commits"},{"op":"<=","a":{"op":"const","value":0},"b":{"op":"const","value":0}}]},{"op":"and","xs":[{"op":"not","x":{"op":"flag","name":"commits"}},{"op":"=","a":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"pr"}},"b":{"op":"var","name":"pv"}}},"b":{"op":"const","value":1}}]}]},"then":{"op":"const","value":1},"else":{"op":"const","value":0}}},"Vote":{"key":{"op":"add","a":{"op":"add","a":{"op":"mul","k":4096,"a":{"op":"var","name":"n"}},"b":{"op":"mul","k":64,"a":{"op":"var","name":"r"}}},"b":{"op":"var","name":"v"}},"value":{"op":"if","c":{"op":"or","xs":[{"op":"and","xs":[{"op":"flag","name":"casts"},{"op":"<=","a":{"op":"const","value":0},"b":{"op":"const","value":0}}]},{"op":"and","xs":[{"op":"not","x":{"op":"flag","name":"casts"}},{"op":"=","a":{"op":"get","map":"Vote","key":{"op":"add","a":{"op":"add","a":{"op":"mul","k":4096,"a":{"op":"var","name":"n"}},"b":{"op":"mul","k":64,"a":{"op":"var","name":"r"}}},"b":{"op":"var","name":"v"}}},"b":{"op":"const","value":1}}]}]},"then":{"op":"const","value":1},"else":{"op":"const","value":0}}},"Decision":{"key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"r"}},"b":{"op":"var","name":"v"}},"value":{"op":"if","c":{"op":"or","xs":[{"op":"and","xs":[{"op":"flag","name":"decides"},{"op":"<=","a":{"op":"const","value":0},"b":{"op":"const","value":0}}]},{"op":"and","xs":[{"op":"not","x":{"op":"flag","name":"decides"}},{"op":"=","a":{"op":"get","map":"Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"r"}},"b":{"op":"var","name":"v"}}},"b":{"op":"const","value":1}}]}]},"then":{"op":"const","value":1},"else":{"op":"const","value":0}}}}},"pre":{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"none"},"b":{"op":"const","value":64}},{"op":"<=","a":{"op":"var","name":"size"},"b":{"op":"const","value":64}}]},"assume":{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"op"},"b":{"op":"const","value":6}},{"op":"and","xs":[{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"n"},"b":{"op":"var","name":"size"}},{"op":"<","a":{"op":"var","name":"w"},"b":{"op":"var","name":"size"}},{"op":"and","xs":[{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"r"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"v"},"b":{"op":"const","value":64}}]},{"op":"<","a":{"op":"var","name":"maxr"},"b":{"op":"const","value":64}}]}]},{"op":"or","xs":[{"op":"not","x":{"op":"or","xs":[{"op":"=","a":{"op":"var","name":"op"},"b":{"op":"const","value":2}},{"op":"=","a":{"op":"var","name":"op"},"b":{"op":"const","value":5}}]}},{"op":"and","xs":[{"op":"flag","name":"all$1"},{"op":"<","a":{"op":"var","name":"size"},"b":{"op":"mul","k":2,"a":{"op":"get","map":"members","key":{"op":"const","value":0}}}}]}]}]}]}},"laws":[{"name":"every OneA cell is a value of its kind","forall":"key$7","holds":{"op":"<=","a":{"op":"get","map":"OneA","key":{"op":"var","name":"key$7"}},"b":{"op":"const","value":1}}},{"name":"every OneB cell is a value of its kind","forall":"key$9","holds":{"op":"<=","a":{"op":"get","map":"OneB","key":{"op":"var","name":"key$9"}},"b":{"op":"const","value":1}}},{"name":"every Left cell is a value of its kind","forall":"key$11","holds":{"op":"<=","a":{"op":"get","map":"Left","key":{"op":"var","name":"key$11"}},"b":{"op":"const","value":1}}},{"name":"every Proposal cell is a value of its kind","forall":"key$13","holds":{"op":"<=","a":{"op":"get","map":"Proposal","key":{"op":"var","name":"key$13"}},"b":{"op":"const","value":1}}},{"name":"every Vote cell is a value of its kind","forall":"key$15","holds":{"op":"<=","a":{"op":"get","map":"Vote","key":{"op":"var","name":"key$15"}},"b":{"op":"const","value":1}}},{"name":"every Decision cell is a value of its kind","forall":"key$17","holds":{"op":"<=","a":{"op":"get","map":"Decision","key":{"op":"var","name":"key$17"}},"b":{"op":"const","value":1}}},{"name":"every Qs cell is a value of its kind","forall":"key$19","holds":{"op":"<=","a":{"op":"get","map":"Qs","key":{"op":"var","name":"key$19"}},"b":{"op":"const","value":1}}},{"name":"one value decided","forall":"key$2","keys":["key$3","key$4","key$5"],"holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"and","xs":[{"op":"and","xs":[{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"key$2"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key$3"},"b":{"op":"const","value":64}}]},{"op":"<","a":{"op":"var","name":"key$4"},"b":{"op":"const","value":64}}]},{"op":"<","a":{"op":"var","name":"key$5"},"b":{"op":"const","value":64}}]},{"op":"=","a":{"op":"get","map":"Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key$2"}},"b":{"op":"var","name":"key$3"}}},"b":{"op":"const","value":1}},{"op":"=","a":{"op":"get","map":"Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key$4"}},"b":{"op":"var","name":"key$5"}}},"b":{"op":"const","value":1}}]}},{"op":"=","a":{"op":"var","name":"key$3"},"b":{"op":"var","name":"key$5"}}]}},{"name":"members$Qs keeps members's bound 0","forall":"a$c","holds":{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"get","map":"Qs","key":{"op":"var","name":"a$c"}},"b":{"op":"const","value":1}}},{"op":"<","a":{"op":"var","name":"size"},"b":{"op":"mul","k":2,"a":{"op":"get","map":"members$Qs","key":{"op":"var","name":"a$c"}}}}]}},{"name":"members$Qs keeps members's bound 2","forall":"a$c","holds":{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}},{"op":"<","a":{"op":"var","name":"size"},"b":{"op":"mul","k":2,"a":{"op":"get","map":"members$Qs","key":{"op":"var","name":"a$c"}}}}]}},{"name":"Decision keeps members's bound through members$Decision","forall":"a$c","keys":["b$c"],"holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"a$c"}},"b":{"op":"var","name":"b$c"}}}},{"op":"<","a":{"op":"var","name":"b$c"},"b":{"op":"const","value":64}}]}},{"op":"<","a":{"op":"var","name":"size"},"b":{"op":"mul","k":2,"a":{"op":"get","map":"members$Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"a$c"}},"b":{"op":"var","name":"b$c"}}}}}]}},{"name":"Proposal at (c, d) bounds can$Vote$members at (a, b): a < c, b ≠ d","forall":"a$c","keys":["b$c","c$c","d$c"],"holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"c$c"}},"b":{"op":"var","name":"d$c"}}}},{"op":"<","a":{"op":"var","name":"a$c"},"b":{"op":"var","name":"c$c"}},{"op":"not","x":{"op":"=","a":{"op":"var","name":"b$c"},"b":{"op":"var","name":"d$c"}}},{"op":"<","a":{"op":"var","name":"b$c"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"d$c"},"b":{"op":"const","value":64}}]}},{"op":"not","x":{"op":"<","a":{"op":"var","name":"size"},"b":{"op":"mul","k":2,"a":{"op":"get","map":"can$Vote$members","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"a$c"}},"b":{"op":"var","name":"b$c"}}}}}}]}},{"name":"Proposal at (c, d) bounds can$Vote$members at (a, b): a < c","forall":"a$c","keys":["b$c","c$c","d$c"],"holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"c$c"}},"b":{"op":"var","name":"d$c"}}}},{"op":"<","a":{"op":"var","name":"a$c"},"b":{"op":"var","name":"c$c"}},{"op":"<","a":{"op":"var","name":"b$c"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"d$c"},"b":{"op":"const","value":64}}]}},{"op":"not","x":{"op":"<","a":{"op":"var","name":"size"},"b":{"op":"mul","k":2,"a":{"op":"get","map":"can$Vote$members","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"a$c"}},"b":{"op":"var","name":"b$c"}}}}}}]}},{"name":"scan-prefix:cnt:rowOk:d93992f463f488aa:entry","holds":{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":0}}},{"op":"=","a":{"op":"var","name":"cnt"},"b":{"op":"const","value":0}}]}},{"name":"scan-prefix:cnt:rowOk:d93992f463f488aa","forall":"scanKey","keys":["k$21"],"holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}},{"op":"<","a":{"op":"var","name":"scanKey"},"b":{"op":"var","name":"cnt"}},{"op":"=","a":{"op":"get","map":"Qs","key":{"op":"var","name":"scanKey"}},"b":{"op":"const","value":1}}]}},{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"=","a":{"op":"get","map":"Vote","key":{"op":"add","a":{"op":"mul","k":4096,"a":{"op":"var","name":"scanKey"}},"b":{"op":"var","name":"k$21"}}},"b":{"op":"const","value":1}},{"op":"<","a":{"op":"var","name":"k$21"},"b":{"op":"mul","k":64,"a":{"op":"var","name":"pr"}}}]}},{"op":"and","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"pmaxr"},"b":{"op":"var","name":"none"}}},{"op":"<","a":{"op":"var","name":"k$21"},"b":{"op":"mul","k":64,"a":{"op":"add","a":{"op":"var","name":"pmaxr"},"b":{"op":"const","value":1}}}}]}]}]}},{"name":"every x, y with x < 64 ∧ y < 64: never OneA[x] is 0 and 1 <= Decision[64·x + y]","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"key1$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key2$enum"},"b":{"op":"const","value":64}}]}},{"op":"not","x":{"op":"and","xs":[{"op":"=","a":{"op":"get","map":"OneA","key":{"op":"var","name":"key1$enum"}},"b":{"op":"const","value":0}},{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key2$enum"}}}}}]}}]},"forall":"key1$enum","keys":["key2$enum"]},{"name":"every x, y with x < 64 ∧ y < 64: never OneA[x] is 0 and 1 <= Proposal[64·x + y]","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"key1$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key2$enum"},"b":{"op":"const","value":64}}]}},{"op":"not","x":{"op":"and","xs":[{"op":"=","a":{"op":"get","map":"OneA","key":{"op":"var","name":"key1$enum"}},"b":{"op":"const","value":0}},{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key2$enum"}}}}}]}}]},"forall":"key1$enum","keys":["key2$enum"]},{"name":"every x, y with x < 64 ∧ y < 64: never 1 <= Decision[64·x + y] and Proposal[64·x + y] is 0","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"key1$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key2$enum"},"b":{"op":"const","value":64}}]}},{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key2$enum"}}}}},{"op":"=","a":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key2$enum"}}},"b":{"op":"const","value":0}}]}}]},"forall":"key1$enum","keys":["key2$enum"]},{"name":"every x, y, z with x < 64 ∧ y < 64 ∧ z < 64 ∧ ¬(y = z): never 1 <= Decision[64·x + y] and 1 <= Decision[64·x + z]","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"key1$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key2$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key3$enum"},"b":{"op":"const","value":64}},{"op":"not","x":{"op":"=","a":{"op":"var","name":"key2$enum"},"b":{"op":"var","name":"key3$enum"}}}]}},{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key2$enum"}}}}},{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key3$enum"}}}}}]}}]},"forall":"key1$enum","keys":["key2$enum","key3$enum"]},{"name":"every x, y, z with x < 64 ∧ y < 64 ∧ z < 64 ∧ ¬(y = z): never 1 <= Decision[64·x + y] and 1 <= Proposal[64·x + z]","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"key1$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key2$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key3$enum"},"b":{"op":"const","value":64}},{"op":"not","x":{"op":"=","a":{"op":"var","name":"key2$enum"},"b":{"op":"var","name":"key3$enum"}}}]}},{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key2$enum"}}}}},{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key3$enum"}}}}}]}}]},"forall":"key1$enum","keys":["key2$enum","key3$enum"]},{"name":"every x, y, z with x < 64 ∧ y < 64 ∧ z < 64 ∧ ¬(y = z): never 1 <= Proposal[64·x + y] and 1 <= Proposal[64·x + z]","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"key1$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key2$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key3$enum"},"b":{"op":"const","value":64}},{"op":"not","x":{"op":"=","a":{"op":"var","name":"key2$enum"},"b":{"op":"var","name":"key3$enum"}}}]}},{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key2$enum"}}}}},{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key3$enum"}}}}}]}}]},"forall":"key1$enum","keys":["key2$enum","key3$enum"]},{"name":"every x, y, z with x < 64 ∧ y < 64 ∧ ¬(x = y) ∧ z < 64: never 1 <= Decision[64·x + z] and 1 <= Decision[64·y + z]","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"key1$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key2$enum"},"b":{"op":"const","value":64}},{"op":"not","x":{"op":"=","a":{"op":"var","name":"key1$enum"},"b":{"op":"var","name":"key2$enum"}}},{"op":"<","a":{"op":"var","name":"key3$enum"},"b":{"op":"const","value":64}}]}},{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key3$enum"}}}}},{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key2$enum"}},"b":{"op":"var","name":"key3$enum"}}}}}]}}]},"forall":"key1$enum","keys":["key2$enum","key3$enum"]},{"name":"every x, y, z with x < 64 ∧ y < 64 ∧ ¬(x = y) ∧ z < 64: never 1 <= Decision[64·x + z] and 1 <= Proposal[64·y + z]","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"key1$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key2$enum"},"b":{"op":"const","value":64}},{"op":"not","x":{"op":"=","a":{"op":"var","name":"key1$enum"},"b":{"op":"var","name":"key2$enum"}}},{"op":"<","a":{"op":"var","name":"key3$enum"},"b":{"op":"const","value":64}}]}},{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key3$enum"}}}}},{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key2$enum"}},"b":{"op":"var","name":"key3$enum"}}}}}]}}]},"forall":"key1$enum","keys":["key2$enum","key3$enum"]},{"name":"every x, y with x <= 63 ∧ y < 64: never OneA[y] is 0 and 1 <= OneB[64·y + x]","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"var","name":"key1$enum"},"b":{"op":"const","value":63}},{"op":"<","a":{"op":"var","name":"key2$enum"},"b":{"op":"const","value":64}}]}},{"op":"not","x":{"op":"and","xs":[{"op":"=","a":{"op":"get","map":"OneA","key":{"op":"var","name":"key2$enum"}},"b":{"op":"const","value":0}},{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"OneB","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key2$enum"}},"b":{"op":"var","name":"key1$enum"}}}}}]}}]},"forall":"key1$enum","keys":["key2$enum"]},{"name":"every x, y, z with x <= 63 ∧ y < 64 ∧ z < 64: never 1 <= Qs[x] and 1 <= Decision[64·y + z]","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"var","name":"key1$enum"},"b":{"op":"const","value":63}},{"op":"<","a":{"op":"var","name":"key2$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key3$enum"},"b":{"op":"const","value":64}}]}},{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Qs","key":{"op":"var","name":"key1$enum"}}}},{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Decision","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key2$enum"}},"b":{"op":"var","name":"key3$enum"}}}}}]}}]},"forall":"key1$enum","keys":["key2$enum","key3$enum"]},{"name":"every x, y, z with x <= 63 ∧ y < 64 ∧ z < 64: never OneA[y] is 0 and 1 <= Vote[64·64·x + y + z]","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"var","name":"key1$enum"},"b":{"op":"const","value":63}},{"op":"<","a":{"op":"var","name":"key2$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key3$enum"},"b":{"op":"const","value":64}}]}},{"op":"not","x":{"op":"and","xs":[{"op":"=","a":{"op":"get","map":"OneA","key":{"op":"var","name":"key2$enum"}},"b":{"op":"const","value":0}},{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Vote","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key2$enum"}}},"b":{"op":"var","name":"key3$enum"}}}}}]}}]},"forall":"key1$enum","keys":["key2$enum","key3$enum"]},{"name":"every x, y, z with x <= 63 ∧ y < 64 ∧ z < 64: never OneB[64·y + x] is 0 and 1 <= Vote[64·64·x + y + z]","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"var","name":"key1$enum"},"b":{"op":"const","value":63}},{"op":"<","a":{"op":"var","name":"key2$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key3$enum"},"b":{"op":"const","value":64}}]}},{"op":"not","x":{"op":"and","xs":[{"op":"=","a":{"op":"get","map":"OneB","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key2$enum"}},"b":{"op":"var","name":"key1$enum"}}},"b":{"op":"const","value":0}},{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Vote","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key2$enum"}}},"b":{"op":"var","name":"key3$enum"}}}}}]}}]},"forall":"key1$enum","keys":["key2$enum","key3$enum"]},{"name":"every x, y, z with x <= 63 ∧ y < 64 ∧ z < 64: never 1 <= Vote[64·64·x + y + z] and Proposal[64·y + z] is 0","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"var","name":"key1$enum"},"b":{"op":"const","value":63}},{"op":"<","a":{"op":"var","name":"key2$enum"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"key3$enum"},"b":{"op":"const","value":64}}]}},{"op":"not","x":{"op":"and","xs":[{"op":"<=","a":{"op":"add","a":{"op":"const","value":0},"b":{"op":"const","value":1}},"b":{"op":"add","a":{"op":"const","value":0},"b":{"op":"get","map":"Vote","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key1$enum"}},"b":{"op":"var","name":"key2$enum"}}},"b":{"op":"var","name":"key3$enum"}}}}},{"op":"=","a":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"key2$enum"}},"b":{"op":"var","name":"key3$enum"}}},"b":{"op":"const","value":0}}]}}]},"forall":"key1$enum","keys":["key2$enum","key3$enum"]},{"name":"carry:guard:e11bb2856a4188b5","holds":{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}},{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"pr"},"b":{"op":"var","name":"none"}}}]}]}},{"name":"carry:guard:71517ec714847e1e","holds":{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}},{"op":"or","xs":[{"op":"not","x":{"op":"<","a":{"op":"var","name":"k$19"},"b":{"op":"const","value":64}}},{"op":"not","x":{"op":"=","a":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"pr"}},"b":{"op":"var","name":"k$19"}}},"b":{"op":"const","value":1}}}]}]},"forall":"k$19"},{"name":"carry:guard:f8fa169d60df315a","holds":{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}},{"op":"or","xs":[{"op":"not","x":{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Qs","key":{"op":"var","name":"k$20"}}}},{"op":"=","a":{"op":"get","map":"OneB","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"pr"}},"b":{"op":"var","name":"k$20"}}},"b":{"op":"const","value":1}}]}]},"forall":"k$20"},{"name":"carry:guard:faa607cf227d2883","holds":{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}},{"op":"or","xs":[{"op":"not","x":{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Qs","key":{"op":"var","name":"k$20"}}}},{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"OneA","key":{"op":"var","name":"pr"}}}]}]},"forall":"k$20"},{"name":"carry:guard:8c4667f43952b1a7","holds":{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}},{"op":"or","xs":[{"op":"=","a":{"op":"var","name":"pmaxr"},"b":{"op":"var","name":"none"}},{"op":"<","a":{"op":"var","name":"pmaxr"},"b":{"op":"var","name":"pr"}}]}]}},{"name":"carry:guard:4817748873bf0d3a","holds":{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}},{"op":"or","xs":[{"op":"=","a":{"op":"var","name":"pmaxr"},"b":{"op":"var","name":"none"}},{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"OneA","key":{"op":"var","name":"pmaxr"}}}]}]}},{"name":"carry:guard:a1aac0f2b5acf946","holds":{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}},{"op":"or","xs":[{"op":"=","a":{"op":"var","name":"pmaxr"},"b":{"op":"var","name":"none"}},{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"pmaxr"}},"b":{"op":"var","name":"pv"}}}}]}]}},{"name":"carry:guard:69834f3e58d5e918","holds":{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}},{"op":"or","xs":[{"op":"<","a":{"op":"var","name":"pr"},"b":{"op":"const","value":64}}]}]}},{"name":"carry:guard:e6d2937e4bcb51dc","holds":{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}},{"op":"or","xs":[{"op":"<","a":{"op":"var","name":"pv"},"b":{"op":"const","value":64}}]}]}},{"name":"carry:guard:980373f5503cf4c6","holds":{"op":"or","xs":[{"op":"not","x":{"op":"=","a":{"op":"var","name":"busy"},"b":{"op":"const","value":1}}},{"op":"or","xs":[{"op":"<","a":{"op":"var","name":"pmaxr"},"b":{"op":"const","value":64}}]}]}},{"name":"carry:co-write:6282256ba10ee781","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"or","xs":[{"op":"<","a":{"op":"var","name":"carryKeyXX"},"b":{"op":"var","name":"size"}}]},{"op":"or","xs":[{"op":"<","a":{"op":"var","name":"carryKeyX"},"b":{"op":"const","value":64}}]},{"op":"<","a":{"op":"var","name":"carryKey"},"b":{"op":"var","name":"carryKeyX"}},{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"OneB","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"carryKeyX"}},"b":{"op":"var","name":"carryKeyXX"}}}}]}},{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Left","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"carryKeyXX"}},"b":{"op":"var","name":"carryKey"}}}}]},"forall":"carryKeyXX","keys":["carryKeyX","carryKey"]},{"name":"carry:global-range:f29c323756a78a95","holds":{"op":"<","a":{"op":"var","name":"pr"},"b":{"op":"const","value":64}}},{"name":"carry:global-range:345c4e9ce3eda2e1","holds":{"op":"<","a":{"op":"var","name":"pmaxr"},"b":{"op":"const","value":64}}},{"name":"carry:global-range:4d9ef1fb20062861","holds":{"op":"<","a":{"op":"var","name":"pv"},"b":{"op":"const","value":64}}},{"name":"carry:global-frame:ef4514c87a594d2c","holds":{"op":"or","xs":[{"op":"not","x":{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Qs","key":{"op":"var","name":"k$20"}}}},{"op":"=","a":{"op":"get","map":"OneB","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"pr"}},"b":{"op":"var","name":"k$20"}}},"b":{"op":"const","value":1}}]},"forall":"k$20"},{"name":"carry:point-guard:dbae780daebdcb74","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"carryKeyXXXXX"},"b":{"op":"var","name":"size"}},{"op":"<","a":{"op":"var","name":"carryKeyXXXX"},"b":{"op":"const","value":64}},{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"OneB","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"carryKeyXXXX"}},"b":{"op":"var","name":"carryKeyXXXXX"}}}}]}},{"op":"=","a":{"op":"get","map":"OneA","key":{"op":"var","name":"carryKeyXXXX"}},"b":{"op":"const","value":1}}]},"forall":"carryKeyXXXXX","keys":["carryKeyXXXX"]},{"name":"carry:point-guard:42b72ece9101070e","holds":{"op":"or","xs":[{"op":"not","x":{"op":"and","xs":[{"op":"<","a":{"op":"var","name":"carryKeyXXXXXX"},"b":{"op":"var","name":"size"}},{"op":"<","a":{"op":"var","name":"carryKeyXXXXXXX"},"b":{"op":"const","value":64}},{"op":"<","a":{"op":"var","name":"carryKeyXXXXXXXX"},"b":{"op":"const","value":64}},{"op":"<=","a":{"op":"const","value":1},"b":{"op":"get","map":"Vote","key":{"op":"add","a":{"op":"add","a":{"op":"mul","k":4096,"a":{"op":"var","name":"carryKeyXXXXXX"}},"b":{"op":"mul","k":64,"a":{"op":"var","name":"carryKeyXXXXXXX"}}},"b":{"op":"var","name":"carryKeyXXXXXXXX"}}}}]}},{"op":"=","a":{"op":"get","map":"Proposal","key":{"op":"add","a":{"op":"mul","k":64,"a":{"op":"var","name":"carryKeyXXXXXXX"}},"b":{"op":"var","name":"carryKeyXXXXXXXX"}}},"b":{"op":"const","value":1}}]},"forall":"carryKeyXXXXXX","keys":["carryKeyXXXXXXX","carryKeyXXXXXXXX"]}],"target":10,"caller":[0,1,2,3,4,5,6,7],"support":[13,14,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],"pass":1,"ms":896.1170999515151,"houdini":true}
@@ -11,12 +11,14 @@
11
11
  import { evalC, interpret, seeded } from "./machine.js";
12
12
  import { clock, counted, fullRate, proveSetFast, withDeadline } from "../kernel/prove.js";
13
13
  import { allowed, watch } from "./watch.js";
14
+ import { checkWorkEndpoint } from "./wall.js";
14
15
  const v = (name) => ({ op: 'var', name }), get = (map, key) => ({ op: 'get', map, key });
15
16
  // The budget is counted (kernel/prove.ts's cost model), as the invariant search's is: what is found is the same on any
16
17
  // machine. Houdini's set proofs are proveSetFast's, each round reusing the goals the last one settled.
17
18
  // (the deadline too, so a round's goals stop at the budget's end)
18
19
  export const freshLaws = (m, kinds, draws, opts = {}) => counted(fullRate, () => withDeadline(clock() + (opts.ms ?? 5000), () => fresh(m, kinds, draws, opts)), true);
19
20
  function fresh(m, kinds, draws, opts) {
21
+ checkWorkEndpoint('fresh entry');
20
22
  const maps = Object.entries(m.maps ?? {}).filter(([n]) => !(m.inputMaps ?? []).includes(n));
21
23
  if (!maps.length || m.history)
22
24
  return [];
@@ -27,6 +29,7 @@ function fresh(m, kinds, draws, opts) {
27
29
  // a cell written at b): each map no step wrote past it, and each it was seen bounding
28
30
  const past = new Set(), bounds = new Set();
29
31
  for (let trial = 0; trial < 60 && clock() < until; trial++) {
32
+ checkWorkEndpoint('fresh trial');
30
33
  let ps, st;
31
34
  try {
32
35
  ps = draws.params(rand, bound);
@@ -38,6 +41,7 @@ function fresh(m, kinds, draws, opts) {
38
41
  continue;
39
42
  }
40
43
  for (let d = 0, tries = 0; d < 20 && tries < 60; tries++) {
44
+ checkWorkEndpoint('fresh step');
41
45
  try {
42
46
  const input = draws.input(rand, bound, ps);
43
47
  if (!allowed(m, run, ps, st, input))
@@ -85,7 +89,7 @@ function fresh(m, kinds, draws, opts) {
85
89
  const init = m.maps[map];
86
90
  cands.push({ law: { name: `keys up to ${c}: ${map} unset past it`, holds: { op: 'or', xs: [{ op: '<=', a: v(key), b: v(c) }, { op: '=', a: get(map, v(key)), b: { op: 'const', value: init } }] }, forall: key }, text: `∀k. ${c} < k → ${map}[k] = ${init}` });
87
91
  }
88
- let alive = cands.filter(f => states.every(({ ps, st }) => { try {
92
+ let alive = cands.filter(f => states.every(({ ps, st }) => { checkWorkEndpoint('fresh validation'); try {
89
93
  return watch(m, run, f.law, ps, bound).start(st);
90
94
  }
91
95
  catch {
@@ -1,3 +1,5 @@
1
+ import { retainFrom } from "./proof-output.js";
2
+ import { searchNow as countedSearchNow, checkWorkEndpoint } from "./wall.js";
1
3
  // Invariants nobody wrote: a law that holds but isn't inductive, proven with laws the search finds. Nothing here is
2
4
  // trusted; what it finds is proven by the kernel with the rule's own laws, as laws of the same rule.
3
5
  // - runs: random runs from the start (params and requests by their kinds, the assumption met) give reachable states,
@@ -32,13 +34,15 @@
32
34
  // rules it out (and the most of those seen) is added; a chosen candidate that nothing supports, or that makes a proof slow, is dropped; the set proven as a whole
33
35
  // is the answer, after each chosen candidate the proof doesn't need is taken out again
34
36
  import { quietly } from "./cyclic.js";
37
+ import { observeCubeTest } from "./meter.js";
38
+ import { withEvaluationAdmission } from "./evaluation-admission.js";
35
39
  import { bitIntersection, bitIntersects } from "./bitsets.js";
36
40
  import { samplePredicates, sampleStateText } from "./sample-cache.js";
37
41
  import { sampleStep } from "./sample-step.js";
38
- import { all, any, atMost, carriedView, compileC, compileE, cpair, fastStep, divisorsIn, evalC, evalE, get, interpret, machineTerms, fnValue, modName, n, not, partsOf as tupleOf, plus, same, seeded, times, walk, withArithmetic, x } from "./machine.js";
42
+ import { all, any, atMost, carriedView, compileC, compileE, cpair, fastStep, divisorsIn, evalC, evalE, get, hasFinite, interpret, machineTerms, fnValue, modName, n, not, partsOf as tupleOf, plus, same, seeded, times, walk, withArithmetic, x } from "./machine.js";
39
43
  import { bool, refuteModelByRuns, verdictOf } from "./dsl.js";
40
44
  import { allowed, keysOf, linKey, watch } from "./watch.js";
41
- import { clock, counted, fullWork, decideLaw, decideNote, machineKey, memoHits, withStrict, fullRate, grow, keyValue, lawInstances, proveLaw, proveLaws, proveSetFast, proveStepLaws, stepLawInstances, usedHyps, withDeadline, withModels, withTrees, withWall, withWork } from "../kernel/prove.js";
45
+ import { clock, counted, fullWork, searchWork, decideLaw, decideNote, machineKey, memoHits, withStrict, fullRate, grow, keyValue, lawInstances, proveLaw, proveLaws, proveSetFast, proveStepLaws, stepLawInstances, usedHyps, withDeadline, withModels, withTrees, withWall, withSearchWork } from "../kernel/prove.js";
42
46
  import { assumed, eachParts, obligations, plainOf, stepLawObligations, substC, tuple, tupleParts } from "../kernel/kernel.js";
43
47
  import { env, gcd, work } from "./solver.js";
44
48
  import { bgcd } from "./q.js";
@@ -179,6 +183,8 @@ const few = (vals) => vals.length <= 4 && vals.every(x => x <= 8);
179
183
  // interpreted evaluations); the rest of the step the interpreter's. Its first steps are checked against the
180
184
  // interpreter's, and one that differs, or a domain past `most` tuples, leaves the interpreter's.
181
185
  export function domainStep(m, most = 20_000) {
186
+ if (hasFinite(m))
187
+ return undefined; // use the exact interpreter, never the speculative domain bound
182
188
  // (every write at every key, a relation's at its tuples and a plain map's at its keys, n 1; a write at one key as itself)
183
189
  const tupled = (mp) => (m.relations?.[mp]?.length ?? 0) > 1;
184
190
  if (!Object.entries(m.step.maps ?? {}).some(([mp, w]) => 'each' in w && tupled(mp)) || m.history || m.leasts || m.inputMaps?.length || m.counts || m.fns)
@@ -360,7 +366,7 @@ export function domainStep(m, most = 20_000) {
360
366
  for (const r of each) {
361
367
  const far = r.names.map(() => D + 1);
362
368
  r.names.forEach((nm, i) => (env[nm] = far[i]));
363
- const fallback = r.f(env, st), cells = new Map(), at = (xs) => { r.names.forEach((nm, i) => (env[nm] = xs[i])); const v = r.f(env, st); if (v !== fallback)
369
+ const fallback = r.f(env, st), cells = new Map(), at = (xs) => { checkWorkEndpoint('inference relation tuple'); r.names.forEach((nm, i) => (env[nm] = xs[i])); const v = r.f(env, st); if (v !== fallback)
364
370
  cells.set(xs.slice(0, -1).reduceRight((b, a) => cpair(a, b), xs.at(-1)), v); };
365
371
  // (the tuples it holds and those its pins allow, where its cells are 0 by default; else every tuple below D)
366
372
  const pins = fallback === 0 && !st.defaults?.[r.mp] && !m.maps?.[r.mp] ? pinsOf(r, env, st) : undefined;
@@ -1019,19 +1025,23 @@ function comparisons(m, laws, atoms, coords, more = []) {
1019
1025
  export function inferLaws(target, laws, stepLaws = [], opts = {}) {
1020
1026
  // Repeated rounds and minimization can ask the same root goal again. Keep only
1021
1027
  // completed trees for this search, keyed by exact hypotheses and prover modes.
1022
- return withTrees(() => quietly(() => withDeadline(clock() + (opts.wall === undefined ? opts.ms ?? 20000 : Math.max(0, opts.wall - performance.now())), () => inferLawsSearch(target, laws, stepLaws, opts))));
1028
+ return withTrees(() => quietly(() => withDeadline(clock() + (opts.wall === undefined ? opts.ms ?? 20000 : Math.max(0, opts.wall - countedSearchNow())), () => inferLawsSearch(target, laws, stepLaws, opts))));
1023
1029
  }
1024
1030
  function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
1031
+ return withEvaluationAdmission(() => inferLawsSearchIn(target, laws, stepLaws, opts));
1032
+ }
1033
+ function inferLawsSearchIn(target, laws, stepLaws, opts) {
1034
+ checkWorkEndpoint('inference entry');
1025
1035
  // (GDP_INFER_TRACE=2: each phase's progress too, to stderr)
1026
1036
  if (env.GDP_INFER_TRACE === '2' && !opts.progress)
1027
1037
  opts = { ...opts, progress: (phase, info) => globalThis.process.stderr.write(`[infer ${phase}] ${JSON.stringify(info)}\n`) };
1028
- const t0 = performance.now(), ms = opts.ms ?? 20000, wallUntil = opts.wall ?? t0 + ms, rule = isRule(target) ? target.withSumsOf(laws, stepLaws) : undefined;
1038
+ const t0 = countedSearchNow(), ms = opts.ms ?? 20000, wallUntil = opts.wall ?? t0 + ms, rule = isRule(target) ? target.withSumsOf(laws, stepLaws) : undefined;
1029
1039
  // The clock the budgets read (counted milliseconds since the start, or wall time where `timed`), and the stop.
1030
1040
  const timed = !!opts.timed, w0 = work.n, used = { tries: 0, rows: 0, evals: 0, watched: 0, erows: 0, etries: 0 };
1031
- const now = () => (timed ? performance.now() - t0
1041
+ const now = () => (timed ? countedSearchNow() - t0
1032
1042
  : used.tries / inferRates.tries + used.rows / inferRates.rows + used.evals / inferRates.evals + used.watched / inferRates.watched + (work.n - w0) / inferRates.work);
1033
1043
  let stopped = false;
1034
- const stop = () => stopped || (stopped = performance.now() > wallUntil);
1044
+ const stop = () => { checkWorkEndpoint('inference poll'); return stopped || (stopped = countedSearchNow() > wallUntil); };
1035
1045
  // The engine's clock (the stage below, from the small instance on): counted as `now` is, with the EPR path's work
1036
1046
  // (kernel/epr.ts's eprMeter) and the views' rows beside it, so that every choice it makes by its budget (a BFS cut, the
1037
1047
  // filter, a goal's cap, a round's growth) is the same on any machine; the wall (`stop`, `until` past `ms`) only ends it.
@@ -1039,15 +1049,15 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
1039
1049
  // of what is left of `ms` once the join's count is taken at 0.3 a millisecond (the join's rates count its work
1040
1050
  // 2 to 14 times faster than a Modal container does it), so the engine ends within the wall on a container somewhat
1041
1051
  // slower than Modal's usual; past `eUntil` it stops as it would past the wall, at the same place on any machine.
1042
- let eS = { now: 0, epr: eprMeter.n, erows: 0, etries: 0, full: fullWork() }, eUntil = ms;
1043
- const vnow = () => (timed ? now() : (used.etries - eS.etries) / inferRates.etries + (eprMeter.n - eS.epr) / inferRates.epr + (used.erows - eS.erows) / inferRates.erows + (fullWork() - eS.full) / inferRates.efull);
1044
- const meters = () => ({ real: Math.round(performance.now() - t0), v: Math.round(vnow()), now: Math.round(now()), full: Math.round(fullWork()), epr: eprMeter.n - eS.epr, erows: used.erows, etries: used.etries, tries: used.tries, rows: used.rows, evals: used.evals, work: work.n - w0 });
1052
+ let eS = { now: 0, epr: eprMeter.n, erows: 0, etries: 0, full: searchWork() }, eUntil = ms;
1053
+ const vnow = () => (timed ? now() : (used.etries - eS.etries) / inferRates.etries + (eprMeter.n - eS.epr) / inferRates.epr + (used.erows - eS.erows) / inferRates.erows + (searchWork() - eS.full) / inferRates.efull);
1054
+ const meters = () => ({ real: Math.round(countedSearchNow() - t0), v: Math.round(vnow()), now: Math.round(now()), full: Math.round(fullWork()), epr: eprMeter.n - eS.epr, erows: used.erows, etries: used.etries, tries: used.tries, rows: used.rows, evals: used.evals, work: work.n - w0 });
1045
1055
  const until = ms;
1046
- let tp = performance.now(), cp = 0, wp = w0;
1056
+ let tp = countedSearchNow(), cp = 0, wp = w0;
1047
1057
  const trace = (what, o = {}) => {
1048
1058
  if (!inferTrace)
1049
1059
  return;
1050
- const t = performance.now(), c = now();
1060
+ const t = countedSearchNow(), c = now();
1051
1061
  globalThis.process.stderr.write(`[infer] ${what} ${JSON.stringify({ ms: Math.round(t - tp), counted: Math.round(c - cp), work: work.n - wp, ...used, ...o })}\n`);
1052
1062
  tp = t;
1053
1063
  cp = c;
@@ -1088,14 +1098,14 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
1088
1098
  const out = stepLaws.length ? proveStepLaws(model, given, stepLaws) : (fast ? proveSetFast : proveLaws)(model, given);
1089
1099
  return verdictOf(out);
1090
1100
  };
1091
- const stats = (samples, candidates, alive) => ({ samples, candidates, alive, proofs, ms: Math.round(performance.now() - t0), stopped: stop() });
1101
+ const stats = (samples, candidates, alive) => ({ samples, candidates, alive, proofs, ms: Math.round(countedSearchNow() - t0), stopped: stop() });
1092
1102
  // The old public prover's first pass also sampled reachable counterexamples.
1093
1103
  // Keep that negative model evidence without invoking a source finalizer.
1094
1104
  const refuted = !opts.first && !opts.cubes && rule ? refuteModelByRuns(rule, laws, stepLaws) : undefined;
1095
1105
  const first = opts.first ?? (refuted?.run ? { proven: false, checked: false, stuck: 'sat', ...refuted }
1096
1106
  : opts.cubes ? { proven: false, checked: false } : prove(laws));
1097
1107
  if ((first.proven && first.checked) || first.run)
1098
- return { ...first, found: [], stats: stats(0, 0, 0) };
1108
+ return retainFrom({ ...first, found: [], stats: stats(0, 0, 0) }, [first]);
1099
1109
  // --- runs ------------------------------------------------------------------------------------------------------------
1100
1110
  const run = interpret(m), stepSample = sampleStep(m, run), rand = seeded(17), kinds = rule ? rule.kindsOfState() : [];
1101
1111
  const given = rule ? [...rule.kindLaws().filter(k => !laws.some(l => l.name === k.name)), ...laws] : laws;
@@ -1141,13 +1151,14 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
1141
1151
  // (a rule of relations: its steps by domainStep, its params small: a relation's tuples grow as a power of them; its
1142
1152
  // runs the least, the engine's small instance its samples)
1143
1153
  const relStep = domainStep(m);
1144
- const runsTimed = timed || opts.runsMs !== undefined, runsUntil = Math.min(wallUntil, performance.now() + (opts.runsMs ?? 500)), least = opts.runs ?? (relStep ? 2000 : Math.min(inferRuns, Math.max(2000, 4 * ms)));
1145
- const moreRuns = (trial) => !supplied && (runsTimed ? performance.now() < runsUntil : trial < (relStep ? 400 : Math.max(cap, least)) && (used.tries < least || offered < cap) && !stop());
1154
+ const runsTimed = timed || opts.runsMs !== undefined, runsUntil = Math.min(wallUntil, countedSearchNow() + (opts.runsMs ?? 500)), least = opts.runs ?? (relStep ? 2000 : Math.min(inferRuns, Math.max(2000, 4 * ms)));
1155
+ const moreRuns = (trial) => !supplied && (runsTimed ? countedSearchNow() < runsUntil : trial < (relStep ? 400 : Math.max(cap, least)) && (used.tries < least || offered < cap) && !stop());
1146
1156
  let trials = 0;
1147
1157
  // (an assumption with "there exists", a value the request brings, may admit no request at a small bound, a multiple
1148
1158
  // of 5 but 0, say: a trial whose steps moved nothing doubles the bound at once)
1149
1159
  const skolems = m.inputs.some(i => i.startsWith('some$a'));
1150
1160
  for (let trial = 0, bound = 2, stuck = false; moreRuns(trial); trial++, bound = trial % 20 === 0 || stuck ? (bound >= 1024 ? 2 : bound * 2) : bound) {
1161
+ checkWorkEndpoint('inference trial');
1151
1162
  stuck = false;
1152
1163
  trials++;
1153
1164
  // (a rule with maps: one trial in four goes on from a sample, of 64 drawn, holding the value of a state variable the
@@ -1183,6 +1194,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
1183
1194
  }
1184
1195
  let took = 0;
1185
1196
  for (let d = 0, tries = 0; d < 40 && tries < 200; tries++) {
1197
+ checkWorkEndpoint('inference sample');
1186
1198
  used.tries++;
1187
1199
  const input = randomInput(params, rare ? 2 : bound);
1188
1200
  let next;
@@ -1403,7 +1415,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
1403
1415
  const sizeOf = (coef) => coef.length * 100 + coef.reduce((s, [, c]) => s + Math.abs(c), 0);
1404
1416
  const forms = [];
1405
1417
  const NS = rowsS.length, NK = rowsK.length;
1406
- const at = (coef, vals, j) => { let s = 0; for (const [i, c] of coef)
1418
+ const at = (coef, vals, j) => { observeCubeTest(); let s = 0; for (const [i, c] of coef)
1407
1419
  s += c * vals[i][j]; return s; };
1408
1420
  const keyNots = plain.filter(i => !atoms[i].param && !atoms[i].int && !atoms[i].term);
1409
1421
  // The guards: the choices first, then yes/nos, then small naturals, at most eight; each shape's largest value per
@@ -1751,6 +1763,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
1751
1763
  return vs;
1752
1764
  };
1753
1765
  const holdsRow = (f, env) => {
1766
+ observeCubeTest();
1754
1767
  used.evals++;
1755
1768
  const vs = valuesOf(env);
1756
1769
  if (f.never)
@@ -2085,7 +2098,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
2085
2098
  try {
2086
2099
  // (a rule of relations: no round of the join, whose hulls and bounds state no law of a relation's tuples; the engine's)
2087
2100
  const noJoin = opts.join === 0 || !!Object.keys(m.relations ?? {}).length;
2088
- const jT0 = performance.now(), jUntil = Math.min(until, now() + (until - now()) * (noJoin ? 0 : opts.join ?? joinShare));
2101
+ const jT0 = countedSearchNow(), jUntil = Math.min(until, now() + (until - now()) * (noJoin ? 0 : opts.join ?? joinShare));
2089
2102
  // The control state: the choice (loc) and, where they are few, the yes/nos (a program counter in bits), each of its
2090
2103
  // values reached a part of its own.
2091
2104
  const jChoice = modes.find(mo => mo.choice && !atoms[mo.atom].cell), bits = modes.filter(mo => mo.bool && !atoms[mo.atom].cell && !atoms[mo.atom].param);
@@ -2188,6 +2201,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
2188
2201
  // (the frame, places and extra terms compiled once a view (`compiled`); one env the keys are set in, as each
2189
2202
  // assignment's own copy was: a level reads only the keys above it)
2190
2203
  const go = (i, env) => {
2204
+ checkWorkEndpoint('inference view bindings');
2191
2205
  if (i === v.vars.length) {
2192
2206
  try {
2193
2207
  if (!compiled.frame(env, st))
@@ -2358,7 +2372,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
2358
2372
  e[k] /= g2; const lead = e.find(x2 => x2 !== 0n); if (lead !== undefined && lead < 0n)
2359
2373
  for (let k = 0; k < e.length; k++)
2360
2374
  e[k] = -e[k]; return e; };
2361
- const dirValue = (t, vs) => { let v = 0; for (const [i, c] of t)
2375
+ const dirValue = (t, vs) => { observeCubeTest(); let v = 0; for (const [i, c] of t)
2362
2376
  v += c * vs[i]; return v; };
2363
2377
  let joins = 0, neversBroken = 0;
2364
2378
  // A space of the join: the states (one row each, the scalars), or, for a rule with maps, the cells at a key (a row per
@@ -2375,7 +2389,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
2375
2389
  const coords = own.filter(i => !exactAtoms.has(i)), CN = coords.length, dirs = directions(coords);
2376
2390
  const groups = new Map();
2377
2391
  let keyAtoms = ctl.map(c => c.atom);
2378
- const residual = (e, vs) => { let r = e[CN]; for (let k = 0; k < CN; k++)
2392
+ const residual = (e, vs) => { observeCubeTest(); let r = e[CN]; for (let k = 0; k < CN; k++)
2379
2393
  if (e[k])
2380
2394
  r += e[k] * BigInt(vs[coords[k]]); return r; };
2381
2395
  const join = (g, vs, widen, into = groups) => {
@@ -2623,7 +2637,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
2623
2637
  const flagless = !Object.keys(m.step.flags ?? {}).length && !!m.assume;
2624
2638
  // A kernel search's budget: wall time where the search is timed, else counted in the kernel's work (inferRates.work
2625
2639
  // a millisecond), so that what it finds doesn't depend on the machine.
2626
- const budgeted = (ms2, f) => (timed ? f(performance.now() + Math.max(200, Math.min(ms2, wallUntil - performance.now())))
2640
+ const budgeted = (ms2, f) => (timed ? f(countedSearchNow() + Math.max(200, Math.min(ms2, wallUntil - countedSearchNow())))
2627
2641
  : counted(inferRates.work, () => f(clock() + ms2)));
2628
2642
  const requestAt = (params, st) => {
2629
2643
  const vars = {};
@@ -2708,7 +2722,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
2708
2722
  // units and 1.6k), and an unknown one ran 13 s (wo's every k: Leader[k] <= VoteRequestMsg[k], 1.2M and 647k), the
2709
2723
  // engine's time; counted, where a 2 s wall used to end it, so the join ends where it ends on any machine)
2710
2724
  const follow = engineFollows();
2711
- const out = withEprCap(follow ? joinGrowEpr : Infinity, () => withWork(follow ? fullWork() + joinGrowWork : Infinity, () => budgeted(joinQueryMs, until2 => grow(g, new Map(), { nodes: 0, until: until2 }))));
2725
+ const out = withEprCap(follow ? joinGrowEpr : Infinity, () => withSearchWork(follow ? searchWork() + joinGrowWork : Infinity, () => budgeted(joinQueryMs, until2 => grow(g, new Map(), { nodes: 0, until: until2 }))));
2712
2726
  if (!('tree' in out))
2713
2727
  return { stuck: out.stuck, witness: out.stuck === 'sat' ? out.witness : undefined, g: g };
2714
2728
  for (const h of usedHyps(g, out.tree))
@@ -2716,7 +2730,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
2716
2730
  return { used, g: g };
2717
2731
  };
2718
2732
  let at = inst;
2719
- const { result } = withModels(mm, ls, inst, i2 => (at = i2, goalOf(i2)), gs => ask(gs, at), x => (mapNames.length && x.stuck === 'sat' && x.witness ? { goal: x.g, w: x.witness } : undefined), x => !!x.used || x.stuck === 'sat');
2733
+ const { result } = withModels(mm, ls, inst, i2 => (at = i2, goalOf(i2)), gs => ask(gs, at), x => (mapNames.length && x.stuck === 'sat' && x.witness ? { goal: x.g, w: x.witness } : undefined), x => !!x.used || (x.stuck === 'sat' && !!x.witness), (x, _why) => ({ g: x.g, stuck: 'unknown' }));
2720
2734
  return result.used ? { used: result.used } : { stuck: result.stuck, witness: result.witness };
2721
2735
  };
2722
2736
  const stateOf = (w) => {
@@ -3370,6 +3384,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
3370
3384
  }
3371
3385
  }
3372
3386
  const stepIn = (tb, params, st, input) => {
3387
+ checkWorkEndpoint('inference instance step');
3373
3388
  try {
3374
3389
  if (tb.js)
3375
3390
  return tb.js(params, st, input);
@@ -3925,7 +3940,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
3925
3940
  if (env.GDP_POOL_STOP !== '0' && k > 0 && !killed.size)
3926
3941
  break;
3927
3942
  }
3928
- opts.progress?.('join pool', { made: pool.length, left: live.length, states, ms: Math.round(vnow() - t5), real: Math.round(performance.now() - t0) });
3943
+ opts.progress?.('join pool', { made: pool.length, left: live.length, states, ms: Math.round(vnow() - t5), real: Math.round(countedSearchNow() - t0) });
3929
3944
  return live;
3930
3945
  }
3931
3946
  };
@@ -3950,7 +3965,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
3950
3965
  const engine = () => {
3951
3966
  if (sorts && callerLaws.some(l => l.keys?.length) && now() < until && !stop()) {
3952
3967
  if (!timed) {
3953
- eS = { now: now(), epr: eprMeter.n, erows: used.erows, etries: used.etries, full: fullWork() };
3968
+ eS = { now: now(), epr: eprMeter.n, erows: used.erows, etries: used.etries, full: searchWork() };
3954
3969
  eUntil = engineShare * (ms - 0.3 * eS.now);
3955
3970
  }
3956
3971
  opts.progress?.('join engine', { wall: Math.round(vnow()), eUntil: Math.round(eUntil) });
@@ -4981,8 +4996,8 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
4981
4996
  }
4982
4997
  ctx = whole;
4983
4998
  }
4984
- const tq = performance.now(), out = stepWith(todo, todoForm, ctx);
4985
- qms += Math.round(performance.now() - tq);
4999
+ const tq = countedSearchNow(), out = stepWith(todo, todoForm, ctx);
5000
+ qms += Math.round(countedSearchNow() - tq);
4986
5001
  if ('used' in out) {
4987
5002
  stood.set(todo, out.used);
4988
5003
  opts.progress?.('join', { round: rounds, set: set.length, ms: qms, proven: todo.slice(0, 60), reads: out.used.length, ctx: ctx.length, attempt });
@@ -5172,7 +5187,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
5172
5187
  // (a rule whose scalars the runs held at a few values each: no counter, the engine's shape)
5173
5188
  if (engineFollows() && why !== 'inductive')
5174
5189
  engine();
5175
- opts.progress?.('join end', { rounds, set: set.length, why, cone: cone.length, ms: Math.round(performance.now() - jT0), ...meters() });
5190
+ opts.progress?.('join end', { rounds, set: set.length, why, cone: cone.length, ms: Math.round(countedSearchNow() - jT0), ...meters() });
5176
5191
  // (unproven, the search below begins as it would have: the candidates and the counterexamples as they were)
5177
5192
  if (why === 'inductive')
5178
5193
  chosen = cone;
@@ -5182,6 +5197,7 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
5182
5197
  }
5183
5198
  }
5184
5199
  catch (e) {
5200
+ checkWorkEndpoint('inference failure');
5185
5201
  pool = pool0;
5186
5202
  ctis.length = ctis0;
5187
5203
  chosen = [];
@@ -5230,11 +5246,11 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
5230
5246
  if (enumProof)
5231
5247
  last = enumProof;
5232
5248
  for (let iter = 0; iter < 300 && !enumProof && now() < until && !stop(); iter++) {
5233
- const began = now(), wall = performance.now();
5249
+ const began = now(), wall = countedSearchNow();
5234
5250
  // (each law proven alone, then the set as a whole: the same goals, grown once)
5235
5251
  last = withTrees(() => search([...given, ...chosen.map(lawFor)]));
5236
5252
  const took = now() - began;
5237
- opts.progress?.('proof', { chosen: chosen.length, goal: last.goal ?? '', stuck: last.stuck ?? '', ms: Math.round(performance.now() - wall), counted: Math.round(took) });
5253
+ opts.progress?.('proof', { chosen: chosen.length, goal: last.goal ?? '', stuck: last.stuck ?? '', ms: Math.round(countedSearchNow() - wall), counted: Math.round(took) });
5238
5254
  if (last.proven && last.checked)
5239
5255
  break;
5240
5256
  if (!last.goal)
@@ -5267,10 +5283,10 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
5267
5283
  if (!next && p)
5268
5284
  next = best(p, true);
5269
5285
  if (!next && p) {
5270
- const t = performance.now(), made = fromCti(p);
5286
+ const t = countedSearchNow(), made = fromCti(p);
5271
5287
  pool.push(...made);
5272
5288
  next = best(p);
5273
- opts.progress?.('cti', { forms: made.length, ms: Math.round(performance.now() - t) });
5289
+ opts.progress?.('cti', { forms: made.length, ms: Math.round(countedSearchNow() - t) });
5274
5290
  }
5275
5291
  // (a cell form chosen with its mirror where that is alive: the equality both halves state at every key, neither
5276
5292
  // inductive without the other, as the real-world corpus's Timelock and blnk need; on CHC's scalar forms, measured,
@@ -5322,5 +5338,5 @@ function inferLawsSearch(target, laws, stepLaws = [], opts = {}) {
5322
5338
  if (kept.length)
5323
5339
  rule?.dividesBy(...kept);
5324
5340
  trace('end', { proven: true, stopped: stop(), found: chosen.map(f => textOf(f)).join('; ') });
5325
- return { ...last, found: [...chosen.map(f => { const law = lawFor(f), text = law.name, source = sourceOf(f, text); return { law, text, ...(source ? { source } : {}) }; }), ...(enumProof ? enumSome : []).map(law => ({ law, text: law.name }))], stats: stats(samples.length, forms.length, alive.length) };
5341
+ return retainFrom({ ...last, found: [...chosen.map(f => { const law = lawFor(f), text = law.name, source = sourceOf(f, text); return { law, text, ...(source ? { source } : {}) }; }), ...(enumProof ? enumSome : []).map(law => ({ law, text: law.name }))], stats: stats(samples.length, forms.length, alive.length) }, [last], { kind: 'inference', original: m, laws });
5326
5342
  }
package/dist/core/kind.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { searchNow as countedSearchNow } from "./wall.js";
1
2
  import { checkKInduction, historyMachine, kInductionStart, kInductionSteps, stepLawObligations } from "../kernel/kernel.js";
2
3
  import { clock, counted, grow, proveLaws } from "../kernel/prove.js";
3
4
  import { REFUTED, growCdcl } from "../kernel/cdcl.js";
@@ -14,7 +15,7 @@ export function proveKInduction(m, laws, law, opts) {
14
15
  if (!kindFits(m, laws, law))
15
16
  return { proven: false, checked: false, depths, why: 'a law or fact about every key, a flag at every key, or a carried map' };
16
17
  return counted(opts.rate ?? 200, () => {
17
- const until = clock() + opts.ms, over = () => clock() > until || (opts.wall !== undefined && performance.now() > opts.wall);
18
+ const until = clock() + opts.ms, over = () => clock() > until || (opts.wall !== undefined && countedSearchNow() > opts.wall);
18
19
  // A goal's tree: CDCL's, unfolded (prove.ts's grow keeps CDCL off a goal over k steps, for the size of the tree its
19
20
  // cuts would make smaller; but here the plain search's cases multiply with every step), else the plain search's.
20
21
  const treeOf = (g) => {