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 + AnsatzFressianCodec (only ns touching ansatz classes; codec delegates to hive-fressian) |
| addon | hive-ansatz.addon | IAddon record; ansatz_proofs supertool |
Core namespaces never require ansatz or hive-fressian — the adapter loads only when both are on the classpath. Without a prover the addon initializes degraded with the recipes surface still available.
deps.edn is :mvn/version-only. Unpublished deps (ansatz, hive-fressian
pre-publish) are supplied by the untracked local.deps.edn:
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/fressian-codec))
(p/export! env env codec "exports/session.fressian" {:exclude #{"scratch"}})
(p/import! env env codec "exports/session.fressian")
;; => {: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 |