Prover-agnostic proof persistence for ansatz-style
kernel environments, packaged as a host-neutral
hive-addon (IAddon 0.2.0).
:all-verified true.hive-ansatz.recipes) — deterministic,
simp-free tactic strategies for large stores, queryable by tag.| layer | ns | role |
|---|---|---|
| types | hive-ansatz.schema | malli value objects (drive m/=> + synthesized tests) |
| ports | hive-ansatz.ports | IProofEnv / IDeclInfo / IDeclCodec (ISP; decls stay opaque) |
| pure | hive-ansatz.snapshot | selection + import-plan decisions |
| pure | hive-ansatz.recipes | idioms as data (OCP: new idiom = new entry) |
| boundary | hive-ansatz.persistence | export! / import! / inspect over injected ports (DIP) |
| adapter | hive-ansatz.adapters.ansatz | LiveAnsatzEnv + AnsatzCborCodec (only ns touching ansatz classes; the codec uses ansatz.export.codec, so it needs ansatz 0.2.715 or later) |
| addon | hive-ansatz.addon | IAddon record; ansatz_proofs supertool |
Core namespaces never require ansatz. The adapter loads only when ansatz is on the classpath. Without a prover the addon initializes degraded with the recipes surface still available.
deps.edn is :mvn/version-only and does not name ansatz. It is supplied by
the untracked local.deps.edn (org.replikativ/ansatz, 0.2.715 or later):
clj -Sdeps "$(cat local.deps.edn)" -M:test ...
;; with ansatz on the classpath and a live env
(require '[hive-ansatz.adapters.ansatz :as ad]
'[hive-ansatz.persistence :as p])
(def env (ad/live-env))
(def codec (ad/cbor-codec))
(p/export! env env codec "exports/session.cbor" {:exclude #{"scratch"}})
(p/import! env env codec "exports/session.cbor")
;; => {:added [..] :skipped [..] :all-verified true :results {..}}
clj -M:test -e "(require 'hive-ansatz.snapshot-test 'hive-ansatz.recipes-test)(let [r (clojure.test/run-all-tests #\"hive-ansatz.*-test\")](shutdown-agents)(System/exit (+ (:fail r)(:error r))))"
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |