@e4779/pi-fabric 0.117.2-fork.31 → 0.131.4-fork.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -6
- package/THIRD_PARTY_NOTICES.md +6 -14
- package/dist/activity/store.d.ts +2 -1
- package/dist/activity/store.d.ts.map +1 -1
- package/dist/actors/binding-store.d.ts +13 -0
- package/dist/actors/binding-store.d.ts.map +1 -1
- package/dist/actors/directory.d.ts.map +1 -1
- package/dist/actors/feedback.d.ts +5 -0
- package/dist/actors/feedback.d.ts.map +1 -0
- package/dist/actors/global-registry.d.ts +8 -0
- package/dist/actors/global-registry.d.ts.map +1 -1
- package/dist/actors/host-event-payload.d.ts +14 -0
- package/dist/actors/host-event-payload.d.ts.map +1 -1
- package/dist/actors/manager.d.ts +4 -3
- package/dist/actors/manager.d.ts.map +1 -1
- package/dist/actors/mesh-monitor.d.ts +2 -0
- package/dist/actors/mesh-monitor.d.ts.map +1 -1
- package/dist/actors/name-policy.d.ts +3 -0
- package/dist/actors/name-policy.d.ts.map +1 -0
- package/dist/actors/registry-store.d.ts +14 -5
- package/dist/actors/registry-store.d.ts.map +1 -1
- package/dist/actors/store-read.d.ts +16 -0
- package/dist/actors/store-read.d.ts.map +1 -0
- package/dist/agents/agent-files.d.ts +80 -0
- package/dist/agents/agent-files.d.ts.map +1 -0
- package/dist/agents/agent-files.js +327 -0
- package/dist/agents/agent-files.js.map +7 -0
- package/dist/agents/child-skills.d.ts +60 -0
- package/dist/agents/child-skills.d.ts.map +1 -0
- package/dist/agents/child-skills.js +94 -0
- package/dist/agents/child-skills.js.map +7 -0
- package/dist/agents/clone-first-worktree.d.ts +6 -0
- package/dist/agents/clone-first-worktree.d.ts.map +1 -1
- package/dist/agents/completion-inbox.d.ts.map +1 -1
- package/dist/agents/cow-clone.d.ts.map +1 -1
- package/dist/agents/handoff.d.ts +12 -2
- package/dist/agents/handoff.d.ts.map +1 -1
- package/dist/agents/herdr-status.d.ts +26 -0
- package/dist/agents/herdr-status.d.ts.map +1 -0
- package/dist/agents/herdr-status.js +161 -0
- package/dist/agents/herdr-status.js.map +7 -0
- package/dist/agents/hosted-run.d.ts +20 -4
- package/dist/agents/hosted-run.d.ts.map +1 -1
- package/dist/agents/manager.d.ts +18 -2
- package/dist/agents/manager.d.ts.map +1 -1
- package/dist/agents/model-pin-guard.d.ts +27 -0
- package/dist/agents/model-pin-guard.d.ts.map +1 -0
- package/dist/agents/model-pin-guard.js +86 -0
- package/dist/agents/model-pin-guard.js.map +7 -0
- package/dist/agents/model-pin.d.ts +25 -0
- package/dist/agents/model-pin.d.ts.map +1 -0
- package/dist/agents/provider-bridge.d.ts +7 -6
- package/dist/agents/provider-bridge.d.ts.map +1 -1
- package/dist/agents/provider-bridge.js +33 -5
- package/dist/agents/provider-bridge.js.map +3 -3
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/result.d.ts.map +1 -1
- package/dist/agents/result.js +1 -1
- package/dist/agents/runner-notice.d.ts.map +1 -1
- package/dist/agents/runner-protocol.d.ts +8 -0
- package/dist/agents/runner-protocol.d.ts.map +1 -1
- package/dist/agents/service-schema.d.ts.map +1 -1
- package/dist/agents/transports/herdr-core-socket.d.ts +13 -0
- package/dist/agents/transports/herdr-core-socket.d.ts.map +1 -0
- package/dist/agents/transports/herdr-core-transport.d.ts +10 -0
- package/dist/agents/transports/herdr-core-transport.d.ts.map +1 -0
- package/dist/agents/transports/herdr-socket.d.ts +12 -0
- package/dist/agents/transports/herdr-socket.d.ts.map +1 -0
- package/dist/agents/transports/herdr-transport.d.ts.map +1 -1
- package/dist/agents/types.d.ts +51 -0
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/agents/worker-recovery.d.ts +75 -0
- package/dist/agents/worker-recovery.d.ts.map +1 -0
- package/dist/agents/worktree-manager.d.ts.map +1 -1
- package/dist/agents.js +12 -11
- package/dist/agents.js.map +2 -2
- package/dist/audit/details.d.ts +38 -1
- package/dist/audit/details.d.ts.map +1 -1
- package/dist/audit/projection.d.ts.map +1 -1
- package/dist/audit/trace-schema.d.ts +50 -0
- package/dist/audit/trace-schema.d.ts.map +1 -0
- package/dist/audit/trace.d.ts +2 -48
- package/dist/audit/trace.d.ts.map +1 -1
- package/dist/chunks/chunk-2RWNVCFD.js +483 -0
- package/dist/chunks/chunk-2RWNVCFD.js.map +7 -0
- package/dist/chunks/chunk-2SCMGO2Z.js +16 -0
- package/dist/chunks/chunk-2SCMGO2Z.js.map +7 -0
- package/dist/chunks/chunk-35EEGOH3.js +324 -0
- package/dist/chunks/chunk-35EEGOH3.js.map +7 -0
- package/dist/chunks/{chunk-UTOBAZ5T.js → chunk-37NIOSVU.js} +1 -1
- package/dist/chunks/chunk-37NIOSVU.js.map +7 -0
- package/dist/chunks/chunk-3IJEQBFS.js +25 -0
- package/dist/chunks/chunk-3IJEQBFS.js.map +7 -0
- package/dist/chunks/{chunk-EHQQ4KCX.js → chunk-3MOY6WIB.js} +84 -19
- package/dist/chunks/chunk-3MOY6WIB.js.map +7 -0
- package/dist/chunks/chunk-3VK6UGAN.js +64 -0
- package/dist/chunks/chunk-3VK6UGAN.js.map +7 -0
- package/dist/chunks/{chunk-ROTCDDOV.js → chunk-3XT5WHSG.js} +59 -119
- package/dist/chunks/chunk-3XT5WHSG.js.map +7 -0
- package/dist/chunks/{chunk-FIDUHKMM.js → chunk-4BYS4ZLY.js} +16 -16
- package/dist/chunks/chunk-4BYS4ZLY.js.map +7 -0
- package/dist/chunks/{chunk-UOM37PE4.js → chunk-4PBW54I2.js} +162 -92
- package/dist/chunks/chunk-4PBW54I2.js.map +7 -0
- package/dist/chunks/{chunk-ZEXCKK4K.js → chunk-4WKD3YM3.js} +3 -3
- package/dist/chunks/{chunk-PK4NIJEV.js → chunk-4XMXFHAR.js} +62 -3
- package/dist/chunks/chunk-4XMXFHAR.js.map +7 -0
- package/dist/chunks/{chunk-4EW7GVUR.js → chunk-56NMRVTV.js} +589 -377
- package/dist/chunks/chunk-56NMRVTV.js.map +7 -0
- package/dist/chunks/chunk-5QJFDKPN.js +179 -0
- package/dist/chunks/chunk-5QJFDKPN.js.map +7 -0
- package/dist/chunks/{chunk-P7CBPPHY.js → chunk-6GWDGTHC.js} +5 -5
- package/dist/chunks/{chunk-P7CBPPHY.js.map → chunk-6GWDGTHC.js.map} +1 -1
- package/dist/chunks/chunk-6HO2IUQ5.js +104 -0
- package/dist/chunks/chunk-6HO2IUQ5.js.map +7 -0
- package/dist/chunks/chunk-6OGYPHNQ.js +62 -0
- package/dist/chunks/chunk-6OGYPHNQ.js.map +7 -0
- package/dist/chunks/{chunk-G4TLWHRS.js → chunk-7N7IC3Z2.js} +4 -3
- package/dist/chunks/{chunk-G4TLWHRS.js.map → chunk-7N7IC3Z2.js.map} +2 -2
- package/dist/chunks/{chunk-5XBYFSI5.js → chunk-7YNE4NB2.js} +2 -2
- package/dist/chunks/chunk-ASOJYFKU.js +1316 -0
- package/dist/chunks/chunk-ASOJYFKU.js.map +7 -0
- package/dist/chunks/{chunk-NTC2MCB6.js → chunk-B5L3X3ID.js} +1 -1
- package/dist/chunks/{chunk-NTC2MCB6.js.map → chunk-B5L3X3ID.js.map} +1 -1
- package/dist/chunks/chunk-BIBRWZWQ.js +325 -0
- package/dist/chunks/chunk-BIBRWZWQ.js.map +7 -0
- package/dist/chunks/{chunk-K6QXUGS5.js → chunk-BMAEZNZ5.js} +2 -1
- package/dist/chunks/{chunk-FSB2VIRZ.js → chunk-CBIV747V.js} +14 -3
- package/dist/chunks/chunk-CBIV747V.js.map +7 -0
- package/dist/chunks/{chunk-CCHZXF6K.js → chunk-CXYJJ3HZ.js} +3 -3
- package/dist/chunks/{chunk-R2XQ6AHT.js → chunk-DGERP4VL.js} +22 -10
- package/dist/chunks/chunk-DGERP4VL.js.map +7 -0
- package/dist/chunks/{chunk-C7Z6F3SO.js → chunk-DGUXJSYA.js} +64 -33
- package/dist/chunks/chunk-DGUXJSYA.js.map +7 -0
- package/dist/chunks/chunk-F2LGSRIN.js +38 -0
- package/dist/chunks/chunk-F2LGSRIN.js.map +7 -0
- package/dist/chunks/chunk-F6A6MQ6G.js +609 -0
- package/dist/chunks/chunk-F6A6MQ6G.js.map +7 -0
- package/dist/chunks/{chunk-IR3PIHJM.js → chunk-FK73YJKV.js} +67 -2
- package/dist/chunks/chunk-FK73YJKV.js.map +7 -0
- package/dist/chunks/{chunk-XCEEQ5AB.js → chunk-G2DZJ5LK.js} +1607 -1567
- package/dist/chunks/chunk-G2DZJ5LK.js.map +7 -0
- package/dist/chunks/{chunk-VYQV5JRT.js → chunk-GJVKEHDL.js} +2 -2
- package/dist/chunks/chunk-GJVKEHDL.js.map +7 -0
- package/dist/chunks/{chunk-TIIIHPHF.js → chunk-GS67KDMV.js} +2 -2
- package/dist/chunks/{chunk-D5NYNIST.js → chunk-H57KPL3V.js} +5 -5
- package/dist/chunks/{chunk-KVYNGDGC.js → chunk-HFDJWLMS.js} +6 -6
- package/dist/chunks/{chunk-KVYNGDGC.js.map → chunk-HFDJWLMS.js.map} +1 -1
- package/dist/chunks/{chunk-INRXG4J5.js → chunk-HGD75NZY.js} +2 -2
- package/dist/chunks/{chunk-CRRUW26I.js → chunk-HRDMBGMY.js} +12 -12
- package/dist/chunks/{chunk-CRRUW26I.js.map → chunk-HRDMBGMY.js.map} +2 -2
- package/dist/chunks/{chunk-GO32KSEZ.js → chunk-HRVYXRWZ.js} +85 -10
- package/dist/chunks/chunk-HRVYXRWZ.js.map +7 -0
- package/dist/chunks/{chunk-MLLYR3Y6.js → chunk-HSEZPCL5.js} +19 -78
- package/dist/chunks/chunk-HSEZPCL5.js.map +7 -0
- package/dist/chunks/chunk-JMUUNW2H.js +65 -0
- package/dist/chunks/chunk-JMUUNW2H.js.map +7 -0
- package/dist/chunks/{chunk-UXIBKMUM.js → chunk-KIFOEBYJ.js} +4 -4
- package/dist/chunks/{chunk-3FJUP3GV.js → chunk-L6H46CPY.js} +2 -2
- package/dist/chunks/{chunk-SPCJXN4K.js → chunk-LKYLD5SN.js} +298 -65
- package/dist/chunks/chunk-LKYLD5SN.js.map +7 -0
- package/dist/chunks/{chunk-K7J2ABAZ.js → chunk-LRSZFYUC.js} +92 -32
- package/dist/chunks/chunk-LRSZFYUC.js.map +7 -0
- package/dist/chunks/{chunk-GIK2WNAK.js → chunk-LZ2ZXOCU.js} +112 -23
- package/dist/chunks/chunk-LZ2ZXOCU.js.map +7 -0
- package/dist/chunks/{chunk-FUY6XVRX.js → chunk-MPMEK3IQ.js} +2 -2
- package/dist/chunks/{chunk-HP5P7NBO.js → chunk-MSDL7U6Q.js} +4 -4
- package/dist/chunks/{chunk-ASSLHWZS.js → chunk-MX53BRAC.js} +2 -2
- package/dist/chunks/chunk-N7ZAK2PB.js +132 -0
- package/dist/chunks/chunk-N7ZAK2PB.js.map +7 -0
- package/dist/chunks/{chunk-VSDUSNIA.js → chunk-NBIYYMKS.js} +8 -2
- package/dist/chunks/chunk-NBIYYMKS.js.map +7 -0
- package/dist/chunks/chunk-NENQZCGW.js +45 -0
- package/dist/chunks/chunk-NENQZCGW.js.map +7 -0
- package/dist/chunks/chunk-NJHJKINP.js +47 -0
- package/dist/chunks/chunk-NJHJKINP.js.map +7 -0
- package/dist/chunks/{chunk-U366I5K2.js → chunk-NQ7IWEIF.js} +18 -6
- package/dist/chunks/chunk-NQ7IWEIF.js.map +7 -0
- package/dist/chunks/{chunk-ZQMBS5SH.js → chunk-OJ4HAALD.js} +15 -12
- package/dist/chunks/chunk-OJ4HAALD.js.map +7 -0
- package/dist/chunks/chunk-OZCJU3PZ.js +33 -0
- package/dist/chunks/chunk-OZCJU3PZ.js.map +7 -0
- package/dist/chunks/chunk-P3DCXKL3.js +40 -0
- package/dist/chunks/chunk-P3DCXKL3.js.map +7 -0
- package/dist/chunks/chunk-P7YSPKTM.js +294 -0
- package/dist/chunks/chunk-P7YSPKTM.js.map +7 -0
- package/dist/chunks/chunk-PQVUMJ5J.js +223 -0
- package/dist/chunks/chunk-PQVUMJ5J.js.map +7 -0
- package/dist/chunks/chunk-PUBHBEYO.js +84 -0
- package/dist/chunks/chunk-PUBHBEYO.js.map +7 -0
- package/dist/chunks/{chunk-P4KH4S4S.js → chunk-QGTD3LAZ.js} +5 -20
- package/dist/chunks/chunk-QGTD3LAZ.js.map +7 -0
- package/dist/chunks/{chunk-TIJ3YQXX.js → chunk-QOEOKW2X.js} +2 -2
- package/dist/chunks/{chunk-TIJ3YQXX.js.map → chunk-QOEOKW2X.js.map} +1 -1
- package/dist/chunks/{chunk-QT4W5YVB.js → chunk-RAA3FAYZ.js} +2 -2
- package/dist/chunks/{chunk-3UGN25XS.js → chunk-RKJPBTBB.js} +98 -1664
- package/dist/chunks/chunk-RKJPBTBB.js.map +7 -0
- package/dist/chunks/{chunk-WJJXODAB.js → chunk-RLKRZXSX.js} +8 -1
- package/dist/chunks/{chunk-WJJXODAB.js.map → chunk-RLKRZXSX.js.map} +2 -2
- package/dist/chunks/chunk-RWKQ5SRW.js +129 -0
- package/dist/chunks/chunk-RWKQ5SRW.js.map +7 -0
- package/dist/chunks/chunk-SW25R47N.js +71 -0
- package/dist/chunks/chunk-SW25R47N.js.map +7 -0
- package/dist/chunks/{chunk-EKODKR6Y.js → chunk-TEMKDJJY.js} +148 -72
- package/dist/chunks/chunk-TEMKDJJY.js.map +7 -0
- package/dist/chunks/{chunk-EFETPXU2.js → chunk-TJZYM2SP.js} +118 -237
- package/dist/chunks/chunk-TJZYM2SP.js.map +7 -0
- package/dist/chunks/{chunk-53N2I4QA.js → chunk-TXCNZCZP.js} +2 -2
- package/dist/chunks/{chunk-LNASO4VT.js → chunk-U6Y6TKJL.js} +45 -20
- package/dist/chunks/chunk-U6Y6TKJL.js.map +7 -0
- package/dist/chunks/chunk-UD7LFV43.js +28 -0
- package/dist/chunks/chunk-UD7LFV43.js.map +7 -0
- package/dist/chunks/{chunk-7QKKLBHJ.js → chunk-UPMWLOKL.js} +10 -1
- package/dist/chunks/{chunk-7QKKLBHJ.js.map → chunk-UPMWLOKL.js.map} +2 -2
- package/dist/chunks/chunk-V4OW2ULC.js +422 -0
- package/dist/chunks/chunk-V4OW2ULC.js.map +7 -0
- package/dist/chunks/{chunk-FE6NOAO7.js → chunk-VGRUWTMG.js} +1993 -659
- package/dist/chunks/chunk-VGRUWTMG.js.map +7 -0
- package/dist/chunks/{chunk-PYFJW3HC.js → chunk-W5FEHVZA.js} +2 -16
- package/dist/chunks/{chunk-PYFJW3HC.js.map → chunk-W5FEHVZA.js.map} +3 -3
- package/dist/chunks/chunk-WKFRGICG.js +101 -0
- package/dist/chunks/chunk-WKFRGICG.js.map +7 -0
- package/dist/chunks/{chunk-LEU5CDSL.js → chunk-XFOSUGLU.js} +5 -5
- package/dist/chunks/{chunk-MZUC6LLH.js → chunk-XMYG2TKR.js} +4 -4
- package/dist/chunks/{chunk-MZUC6LLH.js.map → chunk-XMYG2TKR.js.map} +1 -1
- package/dist/chunks/chunk-YC65P7ZO.js +57 -0
- package/dist/chunks/chunk-YC65P7ZO.js.map +7 -0
- package/dist/chunks/{chunk-5UBRGTVN.js → chunk-ZHROHNEE.js} +31 -15
- package/dist/chunks/chunk-ZHROHNEE.js.map +7 -0
- package/dist/cli/decisions.d.ts.map +1 -1
- package/dist/cli/decisions.js +15 -3
- package/dist/cli/decisions.js.map +2 -2
- package/dist/cli/mesh.js +4 -3
- package/dist/cli/mesh.js.map +1 -1
- package/dist/commands/fabric-handler.d.ts +7 -0
- package/dist/commands/fabric-handler.d.ts.map +1 -0
- package/dist/commands/fabric-handler.js +916 -0
- package/dist/commands/fabric-handler.js.map +7 -0
- package/dist/commands/fabric.d.ts +11 -1
- package/dist/commands/fabric.d.ts.map +1 -1
- package/dist/compaction/claim-events.d.ts +61 -0
- package/dist/compaction/claim-events.d.ts.map +1 -0
- package/dist/compaction/claim-events.js +210 -0
- package/dist/compaction/claim-events.js.map +7 -0
- package/dist/compaction/claim.d.ts +51 -0
- package/dist/compaction/claim.d.ts.map +1 -0
- package/dist/compaction/hook.d.ts +28 -2
- package/dist/compaction/hook.d.ts.map +1 -1
- package/dist/compaction/hook.js +12 -7
- package/dist/compaction/owner.js +9 -8
- package/dist/compaction/trace-events.d.ts +1 -1
- package/dist/compaction/trace-events.d.ts.map +1 -1
- package/dist/components/configuration.js +6 -6
- package/dist/components/effect-scope.d.ts.map +1 -1
- package/dist/config.d.ts +40 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/core/action-arguments.d.ts.map +1 -1
- package/dist/core/action-policy-hooks.d.ts +69 -0
- package/dist/core/action-policy-hooks.d.ts.map +1 -0
- package/dist/core/action-registry.d.ts +31 -10
- package/dist/core/action-registry.d.ts.map +1 -1
- package/dist/core/action-registry.js +12 -9
- package/dist/core/approval-controller.d.ts +23 -3
- package/dist/core/approval-controller.d.ts.map +1 -1
- package/dist/core/atomic-write.d.ts +164 -0
- package/dist/core/atomic-write.d.ts.map +1 -1
- package/dist/core/call-presentation.d.ts +14 -0
- package/dist/core/call-presentation.d.ts.map +1 -0
- package/dist/core/child-tool-allowlist.d.ts +17 -1
- package/dist/core/child-tool-allowlist.d.ts.map +1 -1
- package/dist/core/compact-controller.d.ts +34 -0
- package/dist/core/compact-controller.d.ts.map +1 -1
- package/dist/core/core-override-guidance.d.ts +3 -1
- package/dist/core/core-override-guidance.d.ts.map +1 -1
- package/dist/core/file-lock.d.ts.map +1 -1
- package/dist/core/foreground-tools.d.ts +4 -1
- package/dist/core/foreground-tools.d.ts.map +1 -1
- package/dist/core/host-policy.d.ts +43 -0
- package/dist/core/host-policy.d.ts.map +1 -0
- package/dist/core/host-sdk-runtime.d.ts.map +1 -1
- package/dist/core/host-sdk.d.ts.map +1 -1
- package/dist/core/host-sdk.js +1 -1
- package/dist/core/managed-host-guidance.d.ts +5 -0
- package/dist/core/managed-host-guidance.d.ts.map +1 -0
- package/dist/core/model-aliases.d.ts +22 -0
- package/dist/core/model-aliases.d.ts.map +1 -0
- package/dist/core/model-resolution.d.ts +41 -20
- package/dist/core/model-resolution.d.ts.map +1 -1
- package/dist/core/native-tool-result.d.ts +1 -0
- package/dist/core/native-tool-result.d.ts.map +1 -1
- package/dist/core/program-tasks.d.ts +52 -0
- package/dist/core/program-tasks.d.ts.map +1 -0
- package/dist/core/prompt-guidance.d.ts +5 -0
- package/dist/core/prompt-guidance.d.ts.map +1 -0
- package/dist/core/prompt-guidance.js +159 -0
- package/dist/core/prompt-guidance.js.map +7 -0
- package/dist/core/provider-operations.d.ts.map +1 -1
- package/dist/core/provider-operations.js +60 -108
- package/dist/core/provider-operations.js.map +3 -3
- package/dist/core/shell-inbox.d.ts.map +1 -1
- package/dist/core/shell-jobs.d.ts +7 -5
- package/dist/core/shell-jobs.d.ts.map +1 -1
- package/dist/core/shell-timing.d.ts.map +1 -1
- package/dist/core/skill-prompt.d.ts +1 -1
- package/dist/core/skill-prompt.d.ts.map +1 -1
- package/dist/core/skill-references.d.ts +1 -1
- package/dist/core/skill-references.d.ts.map +1 -1
- package/dist/core/system-guidance.d.ts.map +1 -1
- package/dist/core/tool-result-proxy.d.ts.map +1 -1
- package/dist/decisions/command.d.ts +2 -1
- package/dist/decisions/command.d.ts.map +1 -1
- package/dist/decisions/command.js +40 -12
- package/dist/decisions/command.js.map +2 -2
- package/dist/decisions/events.d.ts +12 -0
- package/dist/decisions/events.d.ts.map +1 -0
- package/dist/decisions/events.js +130 -0
- package/dist/decisions/events.js.map +7 -0
- package/dist/decisions/host.d.ts +31 -3
- package/dist/decisions/host.d.ts.map +1 -1
- package/dist/decisions/render.d.ts +44 -0
- package/dist/decisions/render.d.ts.map +1 -0
- package/dist/decisions/store.d.ts +8 -0
- package/dist/decisions/store.d.ts.map +1 -1
- package/dist/durable/agent.d.ts +8 -0
- package/dist/durable/agent.d.ts.map +1 -1
- package/dist/durable/extension-load-error.d.ts +8 -0
- package/dist/durable/extension-load-error.d.ts.map +1 -0
- package/dist/durable/session.d.ts +1 -0
- package/dist/durable/session.d.ts.map +1 -1
- package/dist/durable/worker-host.d.ts +10 -1
- package/dist/durable/worker-host.d.ts.map +1 -1
- package/dist/durable/worker-host.js +10 -1181
- package/dist/durable/worker-host.js.map +4 -4
- package/dist/durable/worker-options.d.ts +3 -0
- package/dist/durable/worker-options.d.ts.map +1 -1
- package/dist/durable/worker-role-seed.d.ts +82 -0
- package/dist/durable/worker-role-seed.d.ts.map +1 -0
- package/dist/durable/worker.js +43 -4
- package/dist/durable/worker.js.map +2 -2
- package/dist/durable-controls.d.ts.map +1 -1
- package/dist/durable-extension-wasm.d.ts +8 -0
- package/dist/durable-extension-wasm.d.ts.map +1 -0
- package/dist/durable-extension-wasm.js +32 -0
- package/dist/durable-extension-wasm.js.map +7 -0
- package/dist/durable-extension.d.ts +94 -0
- package/dist/durable-extension.d.ts.map +1 -0
- package/dist/durable-extension.js +649 -0
- package/dist/durable-extension.js.map +7 -0
- package/dist/durable-host.d.ts +8 -0
- package/dist/durable-host.d.ts.map +1 -0
- package/dist/durable-host.js +20 -0
- package/dist/durable-host.js.map +7 -0
- package/dist/durable-journal.d.ts +94 -0
- package/dist/durable-journal.d.ts.map +1 -0
- package/dist/durable.d.ts.map +1 -1
- package/dist/durable.js +13 -10
- package/dist/durable.js.map +2 -2
- package/dist/entropy/index.js +12 -10
- package/dist/entropy/pool-store.d.ts.map +1 -1
- package/dist/execution-service.d.ts +14 -0
- package/dist/execution-service.d.ts.map +1 -1
- package/dist/extension-bootstrap.d.ts.map +1 -1
- package/dist/extension-bootstrap.js +28 -27
- package/dist/extension-bootstrap.js.map +2 -2
- package/dist/extension-copy.d.ts +21 -0
- package/dist/extension-copy.d.ts.map +1 -0
- package/dist/extension-copy.js +90 -0
- package/dist/extension-copy.js.map +7 -0
- package/dist/extension.d.ts +1 -1
- package/dist/extension.d.ts.map +1 -1
- package/dist/fabric-exec-arguments.d.ts.map +1 -1
- package/dist/fabric-exec-tool.d.ts +2 -1
- package/dist/fabric-exec-tool.d.ts.map +1 -1
- package/dist/fabric-runtime-state.d.ts +19 -0
- package/dist/fabric-runtime-state.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +2205 -839
- package/dist/fabric-runtime-state.js.map +4 -4
- package/dist/fabric-state.d.ts +44 -1
- package/dist/fabric-state.d.ts.map +1 -1
- package/dist/feedback.d.ts +5 -0
- package/dist/feedback.d.ts.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +88 -53
- package/dist/index.js.map +2 -2
- package/dist/jev/client.js +2 -2
- package/dist/jev/manager.d.ts +3 -0
- package/dist/jev/manager.d.ts.map +1 -1
- package/dist/jev/observation.d.ts +1 -1
- package/dist/jev/observation.js +6 -6
- package/dist/jev-fabric/bridge.d.ts.map +1 -1
- package/dist/jev.js +11 -12
- package/dist/main-agent.d.ts +2 -1
- package/dist/main-agent.d.ts.map +1 -1
- package/dist/managed-host.d.ts +13 -0
- package/dist/managed-host.d.ts.map +1 -1
- package/dist/memory/digest.js +2 -2
- package/dist/memory/discovery.js +6 -7
- package/dist/memory/file-worker.js +10 -11
- package/dist/memory/file-worker.js.map +1 -1
- package/dist/memory/normalize.js +5 -6
- package/dist/memory/search.js +7 -8
- package/dist/memory/worker-provider.js +11 -12
- package/dist/memory.js +11 -12
- package/dist/memory.js.map +1 -1
- package/dist/mesh/grants.d.ts +3 -3
- package/dist/mesh/grants.d.ts.map +1 -1
- package/dist/mesh/store.d.ts +8 -0
- package/dist/mesh/store.d.ts.map +1 -1
- package/dist/native-codemode.d.ts.map +1 -1
- package/dist/native-tool-catalog.d.ts.map +1 -1
- package/dist/native-tool-catalog.js +12 -3
- package/dist/native-tool-catalog.js.map +2 -2
- package/dist/programs/host.d.ts +18 -6
- package/dist/programs/host.d.ts.map +1 -1
- package/dist/programs/host.js +71 -47
- package/dist/programs/host.js.map +2 -2
- package/dist/programs/source.d.ts +11 -0
- package/dist/programs/source.d.ts.map +1 -1
- package/dist/programs/store.d.ts.map +1 -1
- package/dist/protocol.d.ts +504 -8
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +41 -11
- package/dist/provider-globals.d.ts +13 -0
- package/dist/provider-globals.d.ts.map +1 -0
- package/dist/providers/agents-actions.d.ts.map +1 -1
- package/dist/providers/agents-provider.d.ts +3 -0
- package/dist/providers/agents-provider.d.ts.map +1 -1
- package/dist/providers/captured-tools-provider.d.ts +5 -0
- package/dist/providers/captured-tools-provider.d.ts.map +1 -1
- package/dist/providers/compact-provider.d.ts +4 -1
- package/dist/providers/compact-provider.d.ts.map +1 -1
- package/dist/providers/components-provider.d.ts.map +1 -1
- package/dist/providers/decisions-provider.d.ts +9 -1
- package/dist/providers/decisions-provider.d.ts.map +1 -1
- package/dist/providers/jev-provider.d.ts +1 -1
- package/dist/providers/jev-provider.js +11 -12
- package/dist/providers/memory-provider.js +10 -11
- package/dist/providers/pi-tools-provider.d.ts +14 -0
- package/dist/providers/pi-tools-provider.d.ts.map +1 -1
- package/dist/providers/programs-provider.d.ts.map +1 -1
- package/dist/providers/sessions-provider.d.ts +7 -0
- package/dist/providers/sessions-provider.d.ts.map +1 -1
- package/dist/repeat-guard.d.ts +7 -6
- package/dist/repeat-guard.d.ts.map +1 -1
- package/dist/residency/actor-client.js +3 -3
- package/dist/residency/client.d.ts +15 -0
- package/dist/residency/client.d.ts.map +1 -1
- package/dist/residency/host.d.ts.map +1 -1
- package/dist/residency/host.js +34 -23
- package/dist/residency/launcher.js +1 -1
- package/dist/residency/pi-entry.js +34 -23
- package/dist/residency/pi-entry.js.map +1 -1
- package/dist/residency/protocol.d.ts +2 -0
- package/dist/residency/protocol.d.ts.map +1 -1
- package/dist/runners.js +11 -1
- package/dist/runners.js.map +2 -2
- package/dist/runtime/core-override-guest-types.js +2 -2
- package/dist/runtime/cpython-child-source.d.ts.map +1 -1
- package/dist/runtime/cpython-runtime.d.ts.map +1 -1
- package/dist/runtime/cpython-runtime.js +51 -21
- package/dist/runtime/cpython-runtime.js.map +2 -2
- package/dist/runtime/deadline-pause.d.ts +2 -0
- package/dist/runtime/deadline-pause.d.ts.map +1 -1
- package/dist/runtime/dynamic-guest-types.d.ts.map +1 -1
- package/dist/runtime/dynamic-guest-types.js +2 -1
- package/dist/runtime/exec-journal.d.ts +73 -0
- package/dist/runtime/exec-journal.d.ts.map +1 -0
- package/dist/runtime/exec-journal.js +335 -0
- package/dist/runtime/exec-journal.js.map +7 -0
- package/dist/runtime/guest-types.d.ts +3 -2
- package/dist/runtime/guest-types.d.ts.map +1 -1
- package/dist/runtime/guest-types.js +1 -1
- package/dist/runtime/journal-shim.d.ts +3 -0
- package/dist/runtime/journal-shim.d.ts.map +1 -0
- package/dist/runtime/kernel.d.ts +95 -1
- package/dist/runtime/kernel.d.ts.map +1 -1
- package/dist/runtime/monty-bridge.d.ts +6 -2
- package/dist/runtime/monty-bridge.d.ts.map +1 -1
- package/dist/runtime/monty-runtime.d.ts.map +1 -1
- package/dist/runtime/monty-runtime.js +27 -15
- package/dist/runtime/monty-runtime.js.map +2 -2
- package/dist/runtime/native-codemode-guest.d.ts.map +1 -1
- package/dist/runtime/node-process-runtime.d.ts.map +1 -1
- package/dist/runtime/node-process-runtime.js +7 -5
- package/dist/runtime/quickjs-runtime.d.ts +7 -1
- package/dist/runtime/quickjs-runtime.d.ts.map +1 -1
- package/dist/runtime/quickjs-runtime.js +5 -4
- package/dist/runtime/sha256.d.ts +4 -0
- package/dist/runtime/sha256.d.ts.map +1 -0
- package/dist/runtime/transpile.d.ts +8 -0
- package/dist/runtime/transpile.d.ts.map +1 -0
- package/dist/runtime/type-checker.d.ts +1 -7
- package/dist/runtime/type-checker.d.ts.map +1 -1
- package/dist/runtime/type-checker.js +4 -2
- package/dist/runtime/typescript-kernel.js +13 -10
- package/dist/runtime/typescript-kernel.js.map +1 -1
- package/dist/runtime-state-builtins.d.ts.map +1 -1
- package/dist/speculation/scanner.js +1 -1
- package/dist/speculation/store.d.ts +7 -16
- package/dist/speculation/store.d.ts.map +1 -1
- package/dist/speculation/types.d.ts +1 -0
- package/dist/speculation/types.d.ts.map +1 -1
- package/dist/storage/retention.d.ts.map +1 -1
- package/dist/topology/participant-directory.d.ts +26 -1
- package/dist/topology/participant-directory.d.ts.map +1 -1
- package/dist/topology/peer-presence.d.ts.map +1 -1
- package/dist/topology/peer-settle.js +11 -0
- package/dist/topology/peer-settle.js.map +7 -0
- package/dist/topology/session-label-settings.d.ts +13 -0
- package/dist/topology/session-label-settings.d.ts.map +1 -0
- package/dist/topology/session-label.d.ts +60 -0
- package/dist/topology/session-label.d.ts.map +1 -0
- package/dist/topology/types.d.ts +27 -0
- package/dist/topology/types.d.ts.map +1 -1
- package/dist/type-error-guidance.js +1 -1
- package/dist/ui/controller.d.ts +1 -0
- package/dist/ui/controller.d.ts.map +1 -1
- package/dist/ui/conversation-chrome.d.ts.map +1 -1
- package/dist/ui/conversation-chrome.js +3 -2
- package/dist/ui/conversation-commands.d.ts +1 -1
- package/dist/ui/conversation-commands.d.ts.map +1 -1
- package/dist/ui/conversation-native-reader.js +2 -2
- package/dist/ui/conversation-selection.d.ts +4 -1
- package/dist/ui/conversation-selection.d.ts.map +1 -1
- package/dist/ui/conversation-targets.d.ts.map +1 -1
- package/dist/ui/conversation-targets.js +2 -2
- package/dist/ui/conversation.d.ts +25 -24
- package/dist/ui/conversation.d.ts.map +1 -1
- package/dist/ui/conversation.js +170 -339
- package/dist/ui/conversation.js.map +2 -2
- package/dist/ui/core-tool-render.d.ts +1 -0
- package/dist/ui/core-tool-render.d.ts.map +1 -1
- package/dist/ui/dashboard-model.d.ts.map +1 -1
- package/dist/ui/dashboard.d.ts.map +1 -1
- package/dist/ui/dashboard.js +23 -16
- package/dist/ui/dashboard.js.map +2 -2
- package/dist/ui/fabric-render.d.ts +7 -0
- package/dist/ui/fabric-render.d.ts.map +1 -1
- package/dist/ui/footer-dock.d.ts +48 -0
- package/dist/ui/footer-dock.d.ts.map +1 -0
- package/dist/ui/format.d.ts +7 -0
- package/dist/ui/format.d.ts.map +1 -1
- package/dist/ui/settings-sections-lifecycle.d.ts.map +1 -1
- package/dist/ui/settings-sections-presentation.d.ts.map +1 -1
- package/dist/ui/settings-values.d.ts +2 -1
- package/dist/ui/settings-values.d.ts.map +1 -1
- package/dist/ui/settings.js +60 -19
- package/dist/ui/settings.js.map +2 -2
- package/dist/ui/shell-hang-keys.d.ts +8 -1
- package/dist/ui/shell-hang-keys.d.ts.map +1 -1
- package/dist/ui/shell-tasks.d.ts +2 -2
- package/dist/ui/shell-tasks.d.ts.map +1 -1
- package/dist/ui/shell-tasks.js +27 -94
- package/dist/ui/shell-tasks.js.map +2 -2
- package/dist/ui/snapshot.d.ts.map +1 -1
- package/dist/ui/terminal-title.d.ts +41 -0
- package/dist/ui/terminal-title.d.ts.map +1 -0
- package/dist/ui/types.d.ts +4 -0
- package/dist/ui/types.d.ts.map +1 -1
- package/dist/ui/widget-keys.d.ts +5 -0
- package/dist/ui/widget-keys.d.ts.map +1 -0
- package/dist/ui/widget.d.ts +40 -18
- package/dist/ui/widget.d.ts.map +1 -1
- package/dist/ui/word-diff/line-emphasis.js +1603 -0
- package/dist/ui/word-diff/line-emphasis.js.map +7 -0
- package/dist/util.d.ts +2 -0
- package/dist/util.d.ts.map +1 -1
- package/dist/verified/authority.d.ts +2 -2
- package/dist/verified/authority.d.ts.map +1 -1
- package/dist/verified/budget.d.ts +4 -0
- package/dist/verified/budget.d.ts.map +1 -0
- package/dist/verified/generated/actor-name.d.ts +4 -0
- package/dist/verified/generated/actor-name.js +17 -0
- package/dist/verified/generated/authority.d.ts +4 -0
- package/dist/verified/generated/authority.js +28 -0
- package/dist/verified/generated/budget.d.ts +4 -0
- package/dist/verified/generated/budget.js +17 -0
- package/dist/verified/generated/compaction.d.ts +4 -0
- package/dist/verified/generated/compaction.js +19 -0
- package/dist/verified/generated/grants.d.ts +4 -0
- package/dist/verified/generated/grants.js +17 -0
- package/dist/verified/generated/lifecycle.d.ts +4 -0
- package/dist/verified/generated/lifecycle.js +50 -0
- package/dist/verified/generated/manifest.json +137 -48
- package/dist/verified/generated/policy.d.ts +17 -0
- package/dist/verified/generated/policy.js +211 -0
- package/dist/verified/generated/provider.d.ts +4 -0
- package/dist/verified/generated/provider.js +18 -0
- package/dist/verified/generated/resources.d.ts +6 -0
- package/dist/verified/generated/resources.js +73 -0
- package/dist/verified/generated/speculation.d.ts +6 -0
- package/dist/verified/generated/speculation.js +48 -0
- package/dist/verified/generated/storage.d.ts +4 -0
- package/dist/verified/generated/storage.js +18 -0
- package/dist/verified/grants.d.ts +22 -0
- package/dist/verified/grants.d.ts.map +1 -0
- package/dist/verified/lifecycle.d.ts +31 -0
- package/dist/verified/lifecycle.d.ts.map +1 -0
- package/dist/verified/machine.d.ts +18 -0
- package/dist/verified/machine.d.ts.map +1 -0
- package/dist/verified/memory.d.ts +1 -1
- package/dist/verified/memory.d.ts.map +1 -1
- package/dist/verified/nat.d.ts +1 -1
- package/dist/verified/nat.d.ts.map +1 -1
- package/dist/verified/policy.d.ts +17 -5
- package/dist/verified/policy.d.ts.map +1 -1
- package/dist/verified/provider.d.ts +22 -0
- package/dist/verified/provider.d.ts.map +1 -0
- package/dist/verified/resources.d.ts +21 -7
- package/dist/verified/resources.d.ts.map +1 -1
- package/dist/verified/speculation.d.ts +36 -0
- package/dist/verified/speculation.d.ts.map +1 -0
- package/dist/verified/storage.d.ts.map +1 -1
- package/dist/worker/missing-install.d.ts +8 -0
- package/dist/worker/missing-install.d.ts.map +1 -0
- package/dist/worker/options.d.ts.map +1 -1
- package/dist/worker/options.js +25 -0
- package/dist/worker/options.js.map +2 -2
- package/dist/worker/prompt-lifecycle.d.ts +16 -0
- package/dist/worker/prompt-lifecycle.d.ts.map +1 -0
- package/dist/worker/prompt-lifecycle.js +90 -0
- package/dist/worker/prompt-lifecycle.js.map +7 -0
- package/dist/worker/questions.d.ts +15 -3
- package/dist/worker/questions.d.ts.map +1 -1
- package/dist/worker/questions.js +53 -8
- package/dist/worker/questions.js.map +2 -2
- package/dist/worker/recovery-watchdog.d.ts +22 -0
- package/dist/worker/recovery-watchdog.d.ts.map +1 -1
- package/dist/worker/recovery-watchdog.js +116 -1
- package/dist/worker/recovery-watchdog.js.map +2 -2
- package/dist/worker/result.js +1 -1
- package/dist/worker/result.js.map +2 -2
- package/dist/worker.js +131 -21
- package/dist/worker.js.map +2 -2
- package/docs/actor-name-policy-handoff.md +5 -0
- package/docs/agents.md +172 -22
- package/docs/architecture.md +5 -1
- package/docs/audit-trace.md +2 -1
- package/docs/background-tasks.md +126 -28
- package/docs/codemode-parity.md +2 -2
- package/docs/compaction.md +21 -5
- package/docs/components.md +1 -1
- package/docs/configuration.md +113 -66
- package/docs/decisions.md +92 -10
- package/docs/durable-extension.md +121 -0
- package/docs/durable-pi.md +306 -6
- package/docs/extractive-history.md +3 -1
- package/docs/interface.md +22 -17
- package/docs/jev.md +2 -2
- package/docs/kernels.md +1 -1
- package/{node_modules/pi-coralbricks-provider/LICENSE → docs/licenses/gdp-wired-mit.txt} +1 -1
- package/docs/managed-host-migration.md +50 -0
- package/docs/programmatic-compaction.md +216 -6
- package/docs/programs.md +23 -1
- package/docs/prompt-cache.md +4 -2
- package/docs/provider-capabilities.md +15 -14
- package/docs/providers.md +99 -3
- package/docs/shell-composition.md +15 -0
- package/docs/short-lock-protocol.md +90 -0
- package/docs/skills.md +5 -1
- package/docs/speculation.md +6 -0
- package/docs/verified-kernels.md +309 -220
- package/package.json +45 -24
- package/proofs/actor-name.ts +27 -0
- package/proofs/authority.ts +62 -0
- package/proofs/budget.ts +24 -0
- package/proofs/compaction.ts +51 -0
- package/proofs/grants.ts +39 -0
- package/proofs/index.ts +40 -0
- package/proofs/kernel.ts +44 -0
- package/proofs/lifecycle.ts +128 -0
- package/proofs/policy.ts +195 -0
- package/proofs/provider.ts +52 -0
- package/proofs/resources.ts +160 -0
- package/proofs/speculation.ts +69 -0
- package/proofs/storage.ts +66 -0
- package/scripts/verified-kernels.ts +141 -0
- package/skillsets/python/fabric-council/SKILL.md +94 -20
- package/skillsets/python/fabric-exec/SKILL.md +2 -2
- package/skillsets/python/fabric-exec/references/agents.md +10 -4
- package/skillsets/python/fabric-fusion/SKILL.md +1 -1
- package/skillsets/python/fabric-guide/SKILL.md +1 -1
- package/skillsets/typescript/fabric-council/SKILL.md +110 -22
- package/skillsets/typescript/fabric-exec/SKILL.md +7 -7
- package/skillsets/typescript/fabric-exec/references/agents.md +17 -8
- package/skillsets/typescript/fabric-fusion/SKILL.md +1 -1
- package/skillsets/typescript/fabric-guide/SKILL.md +1 -1
- package/LAWS.bend +0 -502
- package/PROOF.bend +0 -452
- package/dist/chunks/chunk-3UGN25XS.js.map +0 -7
- package/dist/chunks/chunk-4EW7GVUR.js.map +0 -7
- package/dist/chunks/chunk-5UBRGTVN.js.map +0 -7
- package/dist/chunks/chunk-BN7F52EG.js +0 -525
- package/dist/chunks/chunk-BN7F52EG.js.map +0 -7
- package/dist/chunks/chunk-C7Z6F3SO.js.map +0 -7
- package/dist/chunks/chunk-DK35W6U7.js +0 -259
- package/dist/chunks/chunk-DK35W6U7.js.map +0 -7
- package/dist/chunks/chunk-EFETPXU2.js.map +0 -7
- package/dist/chunks/chunk-EHQQ4KCX.js.map +0 -7
- package/dist/chunks/chunk-EKODKR6Y.js.map +0 -7
- package/dist/chunks/chunk-FE6NOAO7.js.map +0 -7
- package/dist/chunks/chunk-FIDUHKMM.js.map +0 -7
- package/dist/chunks/chunk-FSB2VIRZ.js.map +0 -7
- package/dist/chunks/chunk-GIK2WNAK.js.map +0 -7
- package/dist/chunks/chunk-GO32KSEZ.js.map +0 -7
- package/dist/chunks/chunk-IR3PIHJM.js.map +0 -7
- package/dist/chunks/chunk-ITVLKXCI.js +0 -266
- package/dist/chunks/chunk-ITVLKXCI.js.map +0 -7
- package/dist/chunks/chunk-K7J2ABAZ.js.map +0 -7
- package/dist/chunks/chunk-KJZAOENY.js +0 -212
- package/dist/chunks/chunk-KJZAOENY.js.map +0 -7
- package/dist/chunks/chunk-LNASO4VT.js.map +0 -7
- package/dist/chunks/chunk-MLLYR3Y6.js.map +0 -7
- package/dist/chunks/chunk-P4KH4S4S.js.map +0 -7
- package/dist/chunks/chunk-PK4NIJEV.js.map +0 -7
- package/dist/chunks/chunk-Q2JQ3RYZ.js +0 -99
- package/dist/chunks/chunk-Q2JQ3RYZ.js.map +0 -7
- package/dist/chunks/chunk-R2XQ6AHT.js.map +0 -7
- package/dist/chunks/chunk-ROTCDDOV.js.map +0 -7
- package/dist/chunks/chunk-SPCJXN4K.js.map +0 -7
- package/dist/chunks/chunk-U366I5K2.js.map +0 -7
- package/dist/chunks/chunk-UKMQK5VP.js +0 -231
- package/dist/chunks/chunk-UKMQK5VP.js.map +0 -7
- package/dist/chunks/chunk-UOM37PE4.js.map +0 -7
- package/dist/chunks/chunk-UTOBAZ5T.js.map +0 -7
- package/dist/chunks/chunk-VSDUSNIA.js.map +0 -7
- package/dist/chunks/chunk-VTK2FEH7.js +0 -229
- package/dist/chunks/chunk-VTK2FEH7.js.map +0 -7
- package/dist/chunks/chunk-VYQV5JRT.js.map +0 -7
- package/dist/chunks/chunk-XCEEQ5AB.js.map +0 -7
- package/dist/chunks/chunk-ZLNJDTCN.js +0 -226
- package/dist/chunks/chunk-ZLNJDTCN.js.map +0 -7
- package/dist/chunks/chunk-ZQMBS5SH.js.map +0 -7
- package/dist/ui/conversation-shortcut.d.ts +0 -3
- package/dist/ui/conversation-shortcut.d.ts.map +0 -1
- package/dist/ui/widget-activity.d.ts +0 -21
- package/dist/ui/widget-activity.d.ts.map +0 -1
- package/dist/verified/generated/authority-kernel.d.ts +0 -10
- package/dist/verified/generated/authority-kernel.js +0 -127
- package/dist/verified/generated/kernel.d.ts +0 -31
- package/dist/verified/generated/kernel.js +0 -389
- package/dist/verified/generated/lifecycle-kernel.d.ts +0 -7
- package/dist/verified/generated/lifecycle-kernel.js +0 -164
- package/dist/verified/generated/provider-kernel.d.ts +0 -9
- package/dist/verified/generated/provider-kernel.js +0 -87
- package/dist/verified/generated/storage-kernel.d.ts +0 -11
- package/dist/verified/generated/storage-kernel.js +0 -107
- package/docs/licenses/bend-apache-2.0.txt +0 -202
- package/node_modules/pi-coralbricks-provider/README.md +0 -306
- package/node_modules/pi-coralbricks-provider/auth.ts +0 -30
- package/node_modules/pi-coralbricks-provider/custom-models.json +0 -1
- package/node_modules/pi-coralbricks-provider/deprecated-models.json +0 -1
- package/node_modules/pi-coralbricks-provider/guard.ts +0 -155
- package/node_modules/pi-coralbricks-provider/index.ts +0 -662
- package/node_modules/pi-coralbricks-provider/models.json +0 -88
- package/node_modules/pi-coralbricks-provider/package.json +0 -74
- package/node_modules/pi-coralbricks-provider/park.ts +0 -122
- package/node_modules/pi-coralbricks-provider/patch.json +0 -34
- package/node_modules/pi-coralbricks-provider/scripts/update-models.js +0 -658
- package/node_modules/pi-coralbricks-provider/settings.ts +0 -143
- package/node_modules/pi-coralbricks-provider/sync-policy.ts +0 -309
- package/proofs/abi.json +0 -308
- package/proofs/authority-abi.json +0 -7
- package/proofs/authority-kernel.bend +0 -23
- package/proofs/authority-proof.bend +0 -74
- package/proofs/authority-spec.bend +0 -30
- package/proofs/authority-state.bend +0 -43
- package/proofs/authority-types.d.ts +0 -3
- package/proofs/kernel.bend +0 -139
- package/proofs/lifecycle-abi.json +0 -3
- package/proofs/lifecycle-kernel.bend +0 -11
- package/proofs/lifecycle-proof.bend +0 -249
- package/proofs/lifecycle-spec.bend +0 -261
- package/proofs/lifecycle-types.d.ts +0 -4
- package/proofs/lifecycle.bend +0 -119
- package/proofs/provider-abi.json +0 -4
- package/proofs/provider-kernel.bend +0 -14
- package/proofs/provider-plans.bend +0 -28
- package/proofs/provider-spec.bend +0 -14
- package/proofs/provider-types.d.ts +0 -5
- package/proofs/resource-proof.bend +0 -633
- package/proofs/resource-spec.bend +0 -133
- package/proofs/resources.bend +0 -160
- package/proofs/state-kernel.bend +0 -17
- package/proofs/state-plans.bend +0 -40
- package/proofs/state-proof.bend +0 -42
- package/proofs/state-spec.bend +0 -26
- package/proofs/storage-abi.json +0 -3
- package/proofs/storage-kernel.bend +0 -11
- package/proofs/storage-plans.bend +0 -100
- package/proofs/storage-proof.bend +0 -176
- package/proofs/storage-spec.bend +0 -70
- package/proofs/storage-types.d.ts +0 -8
- package/proofs/types.d.ts +0 -7
- package/scripts/test-verified-kernels.mjs +0 -107
- package/scripts/verified-kernels.mjs +0 -176
- /package/dist/chunks/{chunk-ZEXCKK4K.js.map → chunk-4WKD3YM3.js.map} +0 -0
- /package/dist/chunks/{chunk-5XBYFSI5.js.map → chunk-7YNE4NB2.js.map} +0 -0
- /package/dist/chunks/{chunk-K6QXUGS5.js.map → chunk-BMAEZNZ5.js.map} +0 -0
- /package/dist/chunks/{chunk-CCHZXF6K.js.map → chunk-CXYJJ3HZ.js.map} +0 -0
- /package/dist/chunks/{chunk-TIIIHPHF.js.map → chunk-GS67KDMV.js.map} +0 -0
- /package/dist/chunks/{chunk-D5NYNIST.js.map → chunk-H57KPL3V.js.map} +0 -0
- /package/dist/chunks/{chunk-INRXG4J5.js.map → chunk-HGD75NZY.js.map} +0 -0
- /package/dist/chunks/{chunk-UXIBKMUM.js.map → chunk-KIFOEBYJ.js.map} +0 -0
- /package/dist/chunks/{chunk-3FJUP3GV.js.map → chunk-L6H46CPY.js.map} +0 -0
- /package/dist/chunks/{chunk-FUY6XVRX.js.map → chunk-MPMEK3IQ.js.map} +0 -0
- /package/dist/chunks/{chunk-HP5P7NBO.js.map → chunk-MSDL7U6Q.js.map} +0 -0
- /package/dist/chunks/{chunk-ASSLHWZS.js.map → chunk-MX53BRAC.js.map} +0 -0
- /package/dist/chunks/{chunk-QT4W5YVB.js.map → chunk-RAA3FAYZ.js.map} +0 -0
- /package/dist/chunks/{chunk-53N2I4QA.js.map → chunk-TXCNZCZP.js.map} +0 -0
- /package/dist/chunks/{chunk-LEU5CDSL.js.map → chunk-XFOSUGLU.js.map} +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type StateText = { $: "Nil" } | { $: "Con"; head: number; tail: StateText };
|
|
2
|
-
export interface StateGrant { $: "Grant"; active: boolean; key: StateText }
|
|
3
|
-
export type StatePlan = { $: "Denied" } | { $: "Read"; key: StateText } | { $: "Write"; key: StateText; expected: StateText; value: StateText };
|
|
4
|
-
export interface ProviderTicket { $: "Ticket"; grant: StateGrant; expected: StateText; payload: StateText }
|
|
5
|
-
export interface ProviderOutcome { $: "Outcome"; next: ProviderTicket; plan: StatePlan }
|
|
@@ -1,633 +0,0 @@
|
|
|
1
|
-
import Base
|
|
2
|
-
import ./resources.bend as R
|
|
3
|
-
import ./resource-spec.bend as S
|
|
4
|
-
|
|
5
|
-
# Helpers are proof-only; none are linked into the executable artifact.
|
|
6
|
-
def discriminate(b: Bool) -> Type:
|
|
7
|
-
match b:
|
|
8
|
-
case False{}:
|
|
9
|
-
Unit
|
|
10
|
-
case True{}:
|
|
11
|
-
Empty
|
|
12
|
-
|
|
13
|
-
def falseTrue(p: {False{} == True{} : Bool}) -> Empty:
|
|
14
|
-
%p : discriminate(_)
|
|
15
|
-
Unit{}
|
|
16
|
-
|
|
17
|
-
def orLeft(+a: Bool, +b: Bool, p: {a == True{} : Bool}) -> {a || b == True{} : Bool}:
|
|
18
|
-
match a:
|
|
19
|
-
case False{}:
|
|
20
|
-
Empty.absurd({False{} || b == True{} : Bool}, falseTrue(p))
|
|
21
|
-
case True{}:
|
|
22
|
-
{==}
|
|
23
|
-
|
|
24
|
-
def orRight(+a: Bool, +b: Bool, p: {b == True{} : Bool}) -> {a || b == True{} : Bool}:
|
|
25
|
-
match a:
|
|
26
|
-
case False{}:
|
|
27
|
-
p
|
|
28
|
-
case True{}:
|
|
29
|
-
{==}
|
|
30
|
-
|
|
31
|
-
def orCases(+a: Bool, +b: Bool, p: {a || b == True{} : Bool}) -> {a == True{} : Bool} | {b == True{} : Bool}:
|
|
32
|
-
match a:
|
|
33
|
-
case False{}:
|
|
34
|
-
Inr{p}
|
|
35
|
-
case True{}:
|
|
36
|
-
Inl{{==}}
|
|
37
|
-
|
|
38
|
-
def andCases(+a: Bool, +b: Bool, p: {a && b == True{} : Bool}) -> {a == True{} : Bool} & {b == True{} : Bool}:
|
|
39
|
-
match a:
|
|
40
|
-
case False{}:
|
|
41
|
-
Empty.absurd({False{} == True{} : Bool} & {b == True{} : Bool}, falseTrue(p))
|
|
42
|
-
case True{}:
|
|
43
|
-
({==}, p)
|
|
44
|
-
|
|
45
|
-
def andMake(+a: Bool, +b: Bool, ap: {a == True{} : Bool}, bp: {b == True{} : Bool}) -> {a && b == True{} : Bool}:
|
|
46
|
-
match a:
|
|
47
|
-
case False{}:
|
|
48
|
-
Empty.absurd({False{} && b == True{} : Bool}, falseTrue(ap))
|
|
49
|
-
case True{}:
|
|
50
|
-
bp
|
|
51
|
-
|
|
52
|
-
def natRefl(+n: Nat) -> {Nat.is_eq(n, n) == True{} : Bool}:
|
|
53
|
-
match n:
|
|
54
|
-
case 0n:
|
|
55
|
-
{==}
|
|
56
|
-
case 1n+p:
|
|
57
|
-
natRefl(p)
|
|
58
|
-
|
|
59
|
-
def natExact(+a: Nat, +b: Nat, p: {Nat.is_eq(a, b) == True{} : Bool}) -> {a == b : Nat}:
|
|
60
|
-
match a b:
|
|
61
|
-
case 0n 0n:
|
|
62
|
-
{==}
|
|
63
|
-
case 0n 1n+bp:
|
|
64
|
-
Empty.absurd({0n == 1n+bp : Nat}, falseTrue(p))
|
|
65
|
-
case 1n+ap 0n:
|
|
66
|
-
Empty.absurd({1n+ap == 0n : Nat}, falseTrue(p))
|
|
67
|
-
case 1n+ap 1n+bp:
|
|
68
|
-
%natExact(ap, bp, p) : {1n+ap == 1n+_ : Nat}
|
|
69
|
-
{==}
|
|
70
|
-
|
|
71
|
-
def second(-A: Type, -B: Type, p: A & B) -> B:
|
|
72
|
-
(a, b) = p
|
|
73
|
-
b
|
|
74
|
-
|
|
75
|
-
def andUse(-T: Type, +a: Bool, +b: Bool, p: {a && b == True{} : Bool}, k: {a == True{} : Bool} -> {b == True{} : Bool} -> T) -> T:
|
|
76
|
-
match a:
|
|
77
|
-
case False{}:
|
|
78
|
-
Empty.absurd(T, falseTrue(p))
|
|
79
|
-
case True{}:
|
|
80
|
-
k({==}, p)
|
|
81
|
-
|
|
82
|
-
def consEqual(+a: Nat, +at: +List<Nat>, +b: Nat, +bt: +List<Nat>, head: {a == b : Nat}, tail: {at == bt : +List<Nat>}) -> {a <> at == b <> bt : +List<Nat>}:
|
|
83
|
-
%tail : {a <> at == b <> _ : +List<Nat>}
|
|
84
|
-
%head : {a <> at == _ <> at : +List<Nat>}
|
|
85
|
-
{==}
|
|
86
|
-
|
|
87
|
-
def nameReflWith(+xs: +List<Nat>, +equal: Bool, p: {equal == True{} : Bool}) -> {R.nameEqual(xs, xs, equal) == True{} : Bool}:
|
|
88
|
-
match xs:
|
|
89
|
-
case Nil{}:
|
|
90
|
-
p
|
|
91
|
-
case Con{h, t}:
|
|
92
|
-
nameReflWith(t, equal && Nat.is_eq(h, h), andMake(equal, Nat.is_eq(h, h), p, natRefl(h)))
|
|
93
|
-
|
|
94
|
-
def nameRefl(+xs: +List<Nat>) -> {R.nameEqual(xs, xs, True{}) == True{} : Bool}:
|
|
95
|
-
nameReflWith(xs, True{}, {==})
|
|
96
|
-
|
|
97
|
-
def nameSoundStep(+a: Nat, +at: +List<Nat>, +b: Nat, +bt: +List<Nat>, +equal: Bool, p: {equal && Nat.is_eq(a, b) == True{} : Bool} & {at == bt : +List<Nat>}) -> {equal == True{} : Bool} & {a <> at == b <> bt : +List<Nat>}:
|
|
98
|
-
(qp, tp) = p
|
|
99
|
-
andUse({equal == True{} : Bool} & {a <> at == b <> bt : +List<Nat>}, equal, Nat.is_eq(a, b), qp, ep => hp => (ep, consEqual(a, at, b, bt, natExact(a, b, hp), tp)))
|
|
100
|
-
|
|
101
|
-
def nameSound(+xs: +List<Nat>, +ys: +List<Nat>, +equal: Bool, p: {R.nameEqual(xs, ys, equal) == True{} : Bool}) -> {equal == True{} : Bool} & {xs == ys : +List<Nat>}:
|
|
102
|
-
match xs ys:
|
|
103
|
-
case Nil{} Nil{}:
|
|
104
|
-
(p, {==})
|
|
105
|
-
case Nil{} Con{h, t}:
|
|
106
|
-
Empty.absurd({equal == True{} : Bool} & {Nil{} == h <> t : +List<Nat>}, falseTrue(p))
|
|
107
|
-
case Con{h, t} Nil{}:
|
|
108
|
-
Empty.absurd({equal == True{} : Bool} & {h <> t == Nil{} : +List<Nat>}, falseTrue(p))
|
|
109
|
-
case Con{a, at} Con{b, bt}:
|
|
110
|
-
nameSoundStep(a, at, b, bt, equal, nameSound(at, bt, equal && Nat.is_eq(a, b), p))
|
|
111
|
-
|
|
112
|
-
def nameExact(+xs: +List<Nat>, +ys: +List<Nat>, p: {R.nameEqual(xs, ys, True{}) == True{} : Bool}) -> {xs == ys : +List<Nat>}:
|
|
113
|
-
second({True{} == True{} : Bool}, {xs == ys : +List<Nat>}, nameSound(xs, ys, True{}, p))
|
|
114
|
-
|
|
115
|
-
def nameFromEq(+xs: +List<Nat>, +ys: +List<Nat>, p: {xs == ys : +List<Nat>}) -> {R.nameEqual(xs, ys, True{}) == True{} : Bool}:
|
|
116
|
-
%p : {R.nameEqual(xs, _, True{}) == True{} : Bool}
|
|
117
|
-
nameRefl(xs)
|
|
118
|
-
|
|
119
|
-
def notBoth(+b: Bool, np: {Bool.not(b) == True{} : Bool}, p: {b == True{} : Bool}) -> Empty:
|
|
120
|
-
match b:
|
|
121
|
-
case False{}:
|
|
122
|
-
falseTrue(p)
|
|
123
|
-
case True{}:
|
|
124
|
-
falseTrue(np)
|
|
125
|
-
|
|
126
|
-
def nameDifferent(+xs: +List<Nat>, +ys: +List<Nat>, p: {Bool.not(R.nameEqual(xs, ys, True{})) == True{} : Bool}) -> {xs != ys : +List<Nat>}:
|
|
127
|
-
e => notBoth(R.nameEqual(xs, ys, True{}), p, nameFromEq(xs, ys, e))
|
|
128
|
-
|
|
129
|
-
def nameInequality(+xs: +List<Nat>, +ys: +List<Nat>, +same: Bool, p: {R.nameEqual(xs, ys, True{}) == same : Bool}, neq: {xs != ys : +List<Nat>}) -> {Bool.not(same) == True{} : Bool}:
|
|
130
|
-
match same:
|
|
131
|
-
case False{}:
|
|
132
|
-
{==}
|
|
133
|
-
case True{}:
|
|
134
|
-
Empty.absurd({False{} == True{} : Bool}, neq(nameExact(xs, ys, p)))
|
|
135
|
-
|
|
136
|
-
def nameBoundSound(+xs: +List<Nat>, +limit: Nat, p: {R.nameBounded(xs, limit) == True{} : Bool}) -> S.NameAtMost(xs, limit):
|
|
137
|
-
match xs limit:
|
|
138
|
-
case Nil{} _:
|
|
139
|
-
Unit{}
|
|
140
|
-
case Con{h, t} 0n:
|
|
141
|
-
falseTrue(p)
|
|
142
|
-
case Con{h, t} 1n+l:
|
|
143
|
-
nameBoundSound(t, l, p)
|
|
144
|
-
|
|
145
|
-
def nameBoundComplete(+xs: +List<Nat>, +limit: Nat, p: S.NameAtMost(xs, limit)) -> {R.nameBounded(xs, limit) == True{} : Bool}:
|
|
146
|
-
match xs limit:
|
|
147
|
-
case Nil{} _:
|
|
148
|
-
{==}
|
|
149
|
-
case Con{h, t} 0n:
|
|
150
|
-
Empty.absurd({False{} == True{} : Bool}, p)
|
|
151
|
-
case Con{h, t} 1n+l:
|
|
152
|
-
nameBoundComplete(t, l, p)
|
|
153
|
-
|
|
154
|
-
def nameNonemptySound(+xs: +List<Nat>, p: {R.nameNonempty(xs) == True{} : Bool}) -> S.NameNonempty(xs):
|
|
155
|
-
match xs:
|
|
156
|
-
case Nil{}:
|
|
157
|
-
falseTrue(p)
|
|
158
|
-
case Con{h, t}:
|
|
159
|
-
Unit{}
|
|
160
|
-
|
|
161
|
-
def nameNonemptyComplete(+xs: +List<Nat>, p: S.NameNonempty(xs)) -> {R.nameNonempty(xs) == True{} : Bool}:
|
|
162
|
-
match xs:
|
|
163
|
-
case Nil{}:
|
|
164
|
-
Empty.absurd({False{} == True{} : Bool}, p)
|
|
165
|
-
case Con{h, t}:
|
|
166
|
-
{==}
|
|
167
|
-
|
|
168
|
-
def nameValidSound(+name: +List<Nat>, p: {R.nameValid(name) == True{} : Bool}) -> S.NameValid(name):
|
|
169
|
-
andUse(S.NameValid(name), R.nameNonempty(name), R.nameBounded(name, 256n) && Bool.not(R.nameEqual(name, [42n], True{})), p, np => rest =>
|
|
170
|
-
andUse(S.NameValid(name), R.nameBounded(name, 256n), Bool.not(R.nameEqual(name, [42n], True{})), rest, bp => sp =>
|
|
171
|
-
(nameNonemptySound(name, np), (nameBoundSound(name, 256n, bp), nameDifferent(name, [42n], sp)))))
|
|
172
|
-
|
|
173
|
-
def nameValidComplete(+name: +List<Nat>, p: S.NameValid(name)) -> {R.nameValid(name) == True{} : Bool}:
|
|
174
|
-
(np, rest) = p
|
|
175
|
-
(bp, neq) = rest
|
|
176
|
-
andMake(R.nameNonempty(name), R.nameBounded(name, 256n) && Bool.not(R.nameEqual(name, [42n], True{})), nameNonemptyComplete(name, np),
|
|
177
|
-
andMake(R.nameBounded(name, 256n), Bool.not(R.nameEqual(name, [42n], True{})), nameBoundComplete(name, 256n, bp), nameInequality(name, [42n], R.nameEqual(name, [42n], True{}), {==}, neq)))
|
|
178
|
-
|
|
179
|
-
def memberTrue(+xs: +List<+List<Nat>>, +name: +List<Nat>) -> {R.member(xs, name, True{}) == True{} : Bool}:
|
|
180
|
-
match xs:
|
|
181
|
-
case Nil{}:
|
|
182
|
-
{==}
|
|
183
|
-
case Con{h, t}:
|
|
184
|
-
memberTrue(t, name)
|
|
185
|
-
|
|
186
|
-
def memberFound(+xs: +List<+List<Nat>>, +name: +List<Nat>, +found: Bool, p: {found == True{} : Bool}) -> {R.member(xs, name, found) == True{} : Bool}:
|
|
187
|
-
match found:
|
|
188
|
-
case False{}:
|
|
189
|
-
Empty.absurd({R.member(xs, name, False{}) == True{} : Bool}, falseTrue(p))
|
|
190
|
-
case True{}:
|
|
191
|
-
memberTrue(xs, name)
|
|
192
|
-
|
|
193
|
-
def memberComplete(+xs: +List<+List<Nat>>, +name: +List<Nat>, +found: Bool, p: S.Member(name, xs)) -> {R.member(xs, name, found) == True{} : Bool}:
|
|
194
|
-
match xs:
|
|
195
|
-
case Nil{}:
|
|
196
|
-
Empty.absurd({found == True{} : Bool}, p)
|
|
197
|
-
case Con{h, t}:
|
|
198
|
-
match p:
|
|
199
|
-
case Inl{hp}:
|
|
200
|
-
%hp : {R.member(t, name, found || R.nameEqual(name, _, True{})) == True{} : Bool}
|
|
201
|
-
memberFound(t, name, found || R.nameEqual(name, name, True{}), orRight(found, R.nameEqual(name, name, True{}), nameRefl(name)))
|
|
202
|
-
case Inr{tp}:
|
|
203
|
-
memberComplete(t, name, found || R.nameEqual(name, h, True{}), tp)
|
|
204
|
-
|
|
205
|
-
def memberHeadCases(+name: +List<Nat>, +h: +List<Nat>, +t: +List<+List<Nat>>, +found: Bool, p: {found == True{} : Bool} | {R.nameEqual(name, h, True{}) == True{} : Bool}) -> {found == True{} : Bool} | S.Member(name, h <> t):
|
|
206
|
-
match p:
|
|
207
|
-
case Inl{fp}:
|
|
208
|
-
Inl{fp}
|
|
209
|
-
case Inr{hp}:
|
|
210
|
-
Inr{Inl{nameExact(name, h, hp)}}
|
|
211
|
-
|
|
212
|
-
def memberLift(+name: +List<Nat>, +h: +List<Nat>, +t: +List<+List<Nat>>, +found: Bool, p: {found || R.nameEqual(name, h, True{}) == True{} : Bool} | S.Member(name, t)) -> {found == True{} : Bool} | S.Member(name, h <> t):
|
|
213
|
-
match p:
|
|
214
|
-
case Inl{hp}:
|
|
215
|
-
memberHeadCases(name, h, t, found, orCases(found, R.nameEqual(name, h, True{}), hp))
|
|
216
|
-
case Inr{tp}:
|
|
217
|
-
Inr{Inr{tp}}
|
|
218
|
-
|
|
219
|
-
def memberSound(+xs: +List<+List<Nat>>, +name: +List<Nat>, +found: Bool, p: {R.member(xs, name, found) == True{} : Bool}) -> {found == True{} : Bool} | S.Member(name, xs):
|
|
220
|
-
match xs:
|
|
221
|
-
case Nil{}:
|
|
222
|
-
Inl{p}
|
|
223
|
-
case Con{h, t}:
|
|
224
|
-
memberLift(name, h, t, found, memberSound(t, name, found || R.nameEqual(name, h, True{}), p))
|
|
225
|
-
|
|
226
|
-
def memberNotFound(+name: +List<Nat>, +xs: +List<+List<Nat>>, p: {False{} == True{} : Bool} | S.Member(name, xs)) -> S.Member(name, xs):
|
|
227
|
-
match p:
|
|
228
|
-
case Inl{fp}:
|
|
229
|
-
Empty.absurd(S.Member(name, xs), falseTrue(fp))
|
|
230
|
-
case Inr{mp}:
|
|
231
|
-
mp
|
|
232
|
-
|
|
233
|
-
def memberEvidence(+name: +List<Nat>, +xs: +List<+List<Nat>>, p: {R.member(xs, name, False{}) == True{} : Bool}) -> S.Member(name, xs):
|
|
234
|
-
memberNotFound(name, xs, memberSound(xs, name, False{}, p))
|
|
235
|
-
|
|
236
|
-
def coveredStep(+h: +List<Nat>, +t: +List<+List<Nat>>, +ys: +List<+List<Nat>>, +good: Bool, p: {good && R.member(ys, h, False{}) == True{} : Bool} & S.Subset(t, ys)) -> {good == True{} : Bool} & S.Subset(h <> t, ys):
|
|
237
|
-
(gp, tp) = p
|
|
238
|
-
andUse({good == True{} : Bool} & S.Subset(h <> t, ys), good, R.member(ys, h, False{}), gp, gp => hp => (gp, (memberEvidence(h, ys, hp), tp)))
|
|
239
|
-
|
|
240
|
-
def coveredSound(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, +good: Bool, p: {R.covered(xs, ys, good) == True{} : Bool}) -> {good == True{} : Bool} & S.Subset(xs, ys):
|
|
241
|
-
match xs:
|
|
242
|
-
case Nil{}:
|
|
243
|
-
(p, Unit{})
|
|
244
|
-
case Con{h, t}:
|
|
245
|
-
coveredStep(h, t, ys, good, coveredSound(t, ys, good && R.member(ys, h, False{}), p))
|
|
246
|
-
|
|
247
|
-
def coverage(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, p: {R.covered(xs, ys, True{}) == True{} : Bool}) -> S.Subset(xs, ys):
|
|
248
|
-
second({True{} == True{} : Bool}, S.Subset(xs, ys), coveredSound(xs, ys, True{}, p))
|
|
249
|
-
|
|
250
|
-
def coveredComplete(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, +good: Bool, gp: {good == True{} : Bool}, p: S.Subset(xs, ys)) -> {R.covered(xs, ys, good) == True{} : Bool}:
|
|
251
|
-
match xs:
|
|
252
|
-
case Nil{}:
|
|
253
|
-
gp
|
|
254
|
-
case Con{h, t}:
|
|
255
|
-
(hp, tp) = p
|
|
256
|
-
coveredComplete(t, ys, good && R.member(ys, h, False{}), andMake(good, R.member(ys, h, False{}), gp, memberComplete(ys, h, False{}, hp)), tp)
|
|
257
|
-
|
|
258
|
-
def subsetMember(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, +name: +List<Nat>, member: S.Member(name, xs), subset: S.Subset(xs, ys)) -> S.Member(name, ys):
|
|
259
|
-
match xs:
|
|
260
|
-
case Nil{}:
|
|
261
|
-
Empty.absurd(S.Member(name, ys), member)
|
|
262
|
-
case Con{h, t}:
|
|
263
|
-
match member:
|
|
264
|
-
case Inl{e}:
|
|
265
|
-
(hp, tp) = subset
|
|
266
|
-
%Equal.sym(+List<Nat>, name, h, e) : S.Member(_, ys)
|
|
267
|
-
hp
|
|
268
|
-
case Inr{mp}:
|
|
269
|
-
(hp, tp) = subset
|
|
270
|
-
subsetMember(t, ys, name, mp, tp)
|
|
271
|
-
|
|
272
|
-
def subsetCons(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, +h: +List<Nat>, p: S.Subset(xs, ys)) -> S.Subset(xs, h <> ys):
|
|
273
|
-
match xs:
|
|
274
|
-
case Nil{}:
|
|
275
|
-
Unit{}
|
|
276
|
-
case Con{x, t}:
|
|
277
|
-
(xp, tp) = p
|
|
278
|
-
(Inr{xp}, subsetCons(t, ys, h, tp))
|
|
279
|
-
|
|
280
|
-
def subsetRefl(+xs: +List<+List<Nat>>) -> S.Subset(xs, xs):
|
|
281
|
-
match xs:
|
|
282
|
-
case Nil{}:
|
|
283
|
-
Unit{}
|
|
284
|
-
case Con{h, t}:
|
|
285
|
-
(Inl{{==}}, subsetCons(t, t, h, subsetRefl(t)))
|
|
286
|
-
|
|
287
|
-
def boundedSound(+xs: +List<+List<Nat>>, +limit: Nat, p: {R.bounded(xs, limit) == True{} : Bool}) -> S.AtMost(xs, limit):
|
|
288
|
-
match xs limit:
|
|
289
|
-
case Nil{} _:
|
|
290
|
-
Unit{}
|
|
291
|
-
case Con{h, t} 0n:
|
|
292
|
-
falseTrue(p)
|
|
293
|
-
case Con{h, t} 1n+l:
|
|
294
|
-
boundedSound(t, l, p)
|
|
295
|
-
|
|
296
|
-
def boundedComplete(+xs: +List<+List<Nat>>, +limit: Nat, p: S.AtMost(xs, limit)) -> {R.bounded(xs, limit) == True{} : Bool}:
|
|
297
|
-
match xs limit:
|
|
298
|
-
case Nil{} _:
|
|
299
|
-
{==}
|
|
300
|
-
case Con{h, t} 0n:
|
|
301
|
-
Empty.absurd({False{} == True{} : Bool}, p)
|
|
302
|
-
case Con{h, t} 1n+l:
|
|
303
|
-
boundedComplete(t, l, p)
|
|
304
|
-
|
|
305
|
-
def nonemptySound(+xs: +List<+List<Nat>>, p: {R.nonempty(xs) == True{} : Bool}) -> S.Nonempty(xs):
|
|
306
|
-
match xs:
|
|
307
|
-
case Nil{}:
|
|
308
|
-
falseTrue(p)
|
|
309
|
-
case Con{h, t}:
|
|
310
|
-
Unit{}
|
|
311
|
-
|
|
312
|
-
def nonemptyComplete(+xs: +List<+List<Nat>>, p: S.Nonempty(xs)) -> {R.nonempty(xs) == True{} : Bool}:
|
|
313
|
-
match xs:
|
|
314
|
-
case Nil{}:
|
|
315
|
-
Empty.absurd({False{} == True{} : Bool}, p)
|
|
316
|
-
case Con{h, t}:
|
|
317
|
-
{==}
|
|
318
|
-
|
|
319
|
-
def namesStep(+h: +List<Nat>, +t: +List<+List<Nat>>, +good: Bool, p: {good && R.nameValid(h) == True{} : Bool} & S.NamesValid(t)) -> {good == True{} : Bool} & S.NamesValid(h <> t):
|
|
320
|
-
(gp, tp) = p
|
|
321
|
-
andUse({good == True{} : Bool} & S.NamesValid(h <> t), good, R.nameValid(h), gp, gp => hp => (gp, (nameValidSound(h, hp), tp)))
|
|
322
|
-
|
|
323
|
-
def namesSound(+xs: +List<+List<Nat>>, +good: Bool, p: {R.namesValid(xs, good) == True{} : Bool}) -> {good == True{} : Bool} & S.NamesValid(xs):
|
|
324
|
-
match xs:
|
|
325
|
-
case Nil{}:
|
|
326
|
-
(p, Unit{})
|
|
327
|
-
case Con{h, t}:
|
|
328
|
-
namesStep(h, t, good, namesSound(t, good && R.nameValid(h), p))
|
|
329
|
-
|
|
330
|
-
def namesComplete(+xs: +List<+List<Nat>>, +good: Bool, gp: {good == True{} : Bool}, p: S.NamesValid(xs)) -> {R.namesValid(xs, good) == True{} : Bool}:
|
|
331
|
-
match xs:
|
|
332
|
-
case Nil{}:
|
|
333
|
-
gp
|
|
334
|
-
case Con{h, t}:
|
|
335
|
-
(hp, tp) = p
|
|
336
|
-
namesComplete(t, good && R.nameValid(h), andMake(good, R.nameValid(h), gp, nameValidComplete(h, hp)), tp)
|
|
337
|
-
|
|
338
|
-
def qualitySound(+xs: +List<+List<Nat>>, p: {R.quality(xs) == True{} : Bool}) -> S.Quality(xs):
|
|
339
|
-
andUse(S.Quality(xs), R.nonempty(xs), R.bounded(xs, 64n) && R.namesValid(xs, True{}), p, np => rest =>
|
|
340
|
-
andUse(S.Quality(xs), R.bounded(xs, 64n), R.namesValid(xs, True{}), rest, bp => vp =>
|
|
341
|
-
(nonemptySound(xs, np), (boundedSound(xs, 64n, bp), second({True{} == True{} : Bool}, S.NamesValid(xs), namesSound(xs, True{}, vp))))))
|
|
342
|
-
|
|
343
|
-
def qualityComplete(+xs: +List<+List<Nat>>, p: S.Quality(xs)) -> {R.quality(xs) == True{} : Bool}:
|
|
344
|
-
(np, rest) = p
|
|
345
|
-
(bp, vp) = rest
|
|
346
|
-
andMake(R.nonempty(xs), R.bounded(xs, 64n) && R.namesValid(xs, True{}), nonemptyComplete(xs, np), andMake(R.bounded(xs, 64n), R.namesValid(xs, True{}), boundedComplete(xs, 64n, bp), namesComplete(xs, True{}, {==}, vp)))
|
|
347
|
-
|
|
348
|
-
def whenQualityExact(+ok: Bool, +xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>) -> {R.whenQuality(ok, xs, ys) == ok && (R.covered(xs, ys, True{}) && R.covered(ys, xs, True{})) : Bool}:
|
|
349
|
-
match ok:
|
|
350
|
-
case False{}:
|
|
351
|
-
{==}
|
|
352
|
-
case True{}:
|
|
353
|
-
{==}
|
|
354
|
-
|
|
355
|
-
def acceptedView(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, p: {R.accepted(xs, ys) == True{} : Bool}) -> {R.quality(ys) && (R.covered(xs, ys, True{}) && R.covered(ys, xs, True{})) == True{} : Bool}:
|
|
356
|
-
%whenQualityExact(R.quality(ys), xs, ys) : {_ == True{} : Bool}
|
|
357
|
-
p
|
|
358
|
-
|
|
359
|
-
def acceptedSound(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, p: {R.accepted(xs, ys) == True{} : Bool}) -> S.Quality(ys) & (S.Subset(xs, ys) & S.Subset(ys, xs)):
|
|
360
|
-
andUse(S.Quality(ys) & (S.Subset(xs, ys) & S.Subset(ys, xs)), R.quality(ys), R.covered(xs, ys, True{}) && R.covered(ys, xs, True{}), acceptedView(xs, ys, p), qp => cp =>
|
|
361
|
-
andUse(S.Quality(ys) & (S.Subset(xs, ys) & S.Subset(ys, xs)), R.covered(xs, ys, True{}), R.covered(ys, xs, True{}), cp, fp => bp =>
|
|
362
|
-
(qualitySound(ys, qp), (coverage(xs, ys, fp), coverage(ys, xs, bp)))))
|
|
363
|
-
|
|
364
|
-
def acceptedComplete(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, quality: S.Quality(ys), forward: S.Subset(xs, ys), backward: S.Subset(ys, xs)) -> {R.accepted(xs, ys) == True{} : Bool}:
|
|
365
|
-
%Equal.sym(Bool, R.accepted(xs, ys), R.quality(ys) && (R.covered(xs, ys, True{}) && R.covered(ys, xs, True{})), whenQualityExact(R.quality(ys), xs, ys)) : {_ == True{} : Bool}
|
|
366
|
-
andMake(R.quality(ys), R.covered(xs, ys, True{}) && R.covered(ys, xs, True{}), qualityComplete(ys, quality), andMake(R.covered(xs, ys, True{}), R.covered(ys, xs, True{}), coveredComplete(xs, ys, True{}, {==}, forward), coveredComplete(ys, xs, True{}, {==}, backward)))
|
|
367
|
-
|
|
368
|
-
def sharedTail(+h: +List<Nat>, +t: +List<+List<Nat>>, +ys: +List<+List<Nat>>, p: S.Shared(t, ys)) -> S.Shared(h <> t, ys):
|
|
369
|
-
(name, both) = p
|
|
370
|
-
(lp, rp) = both
|
|
371
|
-
(name, (Inr{lp}, rp))
|
|
372
|
-
|
|
373
|
-
def overlapHead(+h: +List<Nat>, +t: +List<+List<Nat>>, +ys: +List<+List<Nat>>, +found: Bool, p: {found == True{} : Bool} | {R.member(ys, h, False{}) == True{} : Bool}) -> {found == True{} : Bool} | S.Shared(h <> t, ys):
|
|
374
|
-
match p:
|
|
375
|
-
case Inl{fp}:
|
|
376
|
-
Inl{fp}
|
|
377
|
-
case Inr{hp}:
|
|
378
|
-
Inr{(h, (Inl{{==}}, memberEvidence(h, ys, hp)))}
|
|
379
|
-
|
|
380
|
-
def overlapLift(+h: +List<Nat>, +t: +List<+List<Nat>>, +ys: +List<+List<Nat>>, +found: Bool, p: {found || R.member(ys, h, False{}) == True{} : Bool} | S.Shared(t, ys)) -> {found == True{} : Bool} | S.Shared(h <> t, ys):
|
|
381
|
-
match p:
|
|
382
|
-
case Inl{hp}:
|
|
383
|
-
overlapHead(h, t, ys, found, orCases(found, R.member(ys, h, False{}), hp))
|
|
384
|
-
case Inr{tp}:
|
|
385
|
-
Inr{sharedTail(h, t, ys, tp)}
|
|
386
|
-
|
|
387
|
-
def overlapSound(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, +found: Bool, p: {R.overlapNames(xs, ys, found) == True{} : Bool}) -> {found == True{} : Bool} | S.Shared(xs, ys):
|
|
388
|
-
match xs:
|
|
389
|
-
case Nil{}:
|
|
390
|
-
Inl{p}
|
|
391
|
-
case Con{h, t}:
|
|
392
|
-
overlapLift(h, t, ys, found, overlapSound(t, ys, found || R.member(ys, h, False{}), p))
|
|
393
|
-
|
|
394
|
-
def overlapNotFound(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, p: {False{} == True{} : Bool} | S.Shared(xs, ys)) -> S.Shared(xs, ys):
|
|
395
|
-
match p:
|
|
396
|
-
case Inl{fp}:
|
|
397
|
-
Empty.absurd(S.Shared(xs, ys), falseTrue(fp))
|
|
398
|
-
case Inr{sp}:
|
|
399
|
-
sp
|
|
400
|
-
|
|
401
|
-
def overlapTrue(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>) -> {R.overlapNames(xs, ys, True{}) == True{} : Bool}:
|
|
402
|
-
match xs:
|
|
403
|
-
case Nil{}:
|
|
404
|
-
{==}
|
|
405
|
-
case Con{h, t}:
|
|
406
|
-
overlapTrue(t, ys)
|
|
407
|
-
|
|
408
|
-
def overlapFound(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, +found: Bool, p: {found == True{} : Bool}) -> {R.overlapNames(xs, ys, found) == True{} : Bool}:
|
|
409
|
-
match found:
|
|
410
|
-
case False{}:
|
|
411
|
-
Empty.absurd({R.overlapNames(xs, ys, found) == True{} : Bool}, falseTrue(p))
|
|
412
|
-
case True{}:
|
|
413
|
-
overlapTrue(xs, ys)
|
|
414
|
-
|
|
415
|
-
def overlapMember(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, +name: +List<Nat>, +found: Bool, lp: S.Member(name, xs), rp: S.Member(name, ys)) -> {R.overlapNames(xs, ys, found) == True{} : Bool}:
|
|
416
|
-
match xs:
|
|
417
|
-
case Nil{}:
|
|
418
|
-
Empty.absurd({found == True{} : Bool}, lp)
|
|
419
|
-
case Con{h, t}:
|
|
420
|
-
match lp:
|
|
421
|
-
case Inl{e}:
|
|
422
|
-
%e : {R.overlapNames(t, ys, found || R.member(ys, _, False{})) == True{} : Bool}
|
|
423
|
-
overlapFound(t, ys, found || R.member(ys, name, False{}), orRight(found, R.member(ys, name, False{}), memberComplete(ys, name, False{}, rp)))
|
|
424
|
-
case Inr{tp}:
|
|
425
|
-
overlapMember(t, ys, name, found || R.member(ys, h, False{}), tp, rp)
|
|
426
|
-
|
|
427
|
-
def overlapComplete(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, p: S.Shared(xs, ys)) -> {R.overlapNames(xs, ys, False{}) == True{} : Bool}:
|
|
428
|
-
(name, both) = p
|
|
429
|
-
(lp, rp) = both
|
|
430
|
-
overlapMember(xs, ys, name, False{}, lp, rp)
|
|
431
|
-
|
|
432
|
-
def overlapAllSound(+left: R.Scope, +right: R.Scope, p: {R.overlap(left, right) == True{} : Bool}) -> S.Overlap(left, right):
|
|
433
|
-
match left right:
|
|
434
|
-
case R.Unknown{} _:
|
|
435
|
-
Unit{}
|
|
436
|
-
case R.Exact{xs} R.Unknown{}:
|
|
437
|
-
Unit{}
|
|
438
|
-
case R.Exact{xs} R.Exact{ys}:
|
|
439
|
-
overlapNotFound(xs, ys, overlapSound(xs, ys, False{}, p))
|
|
440
|
-
|
|
441
|
-
def overlapAllComplete(+left: R.Scope, +right: R.Scope, p: S.Overlap(left, right)) -> {R.overlap(left, right) == True{} : Bool}:
|
|
442
|
-
match left right:
|
|
443
|
-
case R.Unknown{} _:
|
|
444
|
-
{==}
|
|
445
|
-
case R.Exact{xs} R.Unknown{}:
|
|
446
|
-
{==}
|
|
447
|
-
case R.Exact{xs} R.Exact{ys}:
|
|
448
|
-
overlapComplete(xs, ys, p)
|
|
449
|
-
|
|
450
|
-
def conflictSound(+left: R.Scope, +right: R.Scope, +lo: Bool, +ro: Bool, p: {R.conflict(left, right, lo, ro) == True{} : Bool}) -> S.Conflicts(left, right, lo, ro):
|
|
451
|
-
andUse(S.Conflicts(left, right, lo, ro), lo || ro, R.overlap(left, right), p, op => sp => (orCases(lo, ro, op), overlapAllSound(left, right, sp)))
|
|
452
|
-
|
|
453
|
-
def orEvidence(+a: Bool, +b: Bool, p: {a == True{} : Bool} | {b == True{} : Bool}) -> {a || b == True{} : Bool}:
|
|
454
|
-
match p:
|
|
455
|
-
case Inl{ap}:
|
|
456
|
-
orLeft(a, b, ap)
|
|
457
|
-
case Inr{bp}:
|
|
458
|
-
orRight(a, b, bp)
|
|
459
|
-
|
|
460
|
-
def conflictComplete(+left: R.Scope, +right: R.Scope, +lo: Bool, +ro: Bool, p: S.Conflicts(left, right, lo, ro)) -> {R.conflict(left, right, lo, ro) == True{} : Bool}:
|
|
461
|
-
(op, sp) = p
|
|
462
|
-
andMake(lo || ro, R.overlap(left, right), orEvidence(lo, ro, op), overlapAllComplete(left, right, sp))
|
|
463
|
-
|
|
464
|
-
def selectedRefines(+decision: Bool, +original: +List<+List<Nat>>, +candidate: +List<+List<Nat>>, p: {R.accepted(original, candidate) == decision : Bool}) -> S.Refines(R.Exact{original}, R.select(decision, candidate)):
|
|
465
|
-
match decision:
|
|
466
|
-
case False{}:
|
|
467
|
-
Unit{}
|
|
468
|
-
case True{}:
|
|
469
|
-
second(S.Quality(candidate), S.Subset(original, candidate) & S.Subset(candidate, original), acceptedSound(original, candidate, p))
|
|
470
|
-
|
|
471
|
-
def first(-A: Type, -B: Type, p: A & B) -> A:
|
|
472
|
-
(a, b) = p
|
|
473
|
-
a
|
|
474
|
-
|
|
475
|
-
def selectedValid(+decision: Bool, +original: +List<+List<Nat>>, +candidate: +List<+List<Nat>>, p: {R.accepted(original, candidate) == decision : Bool}) -> S.OutputValid(R.select(decision, candidate)):
|
|
476
|
-
match decision:
|
|
477
|
-
case False{}:
|
|
478
|
-
Unit{}
|
|
479
|
-
case True{}:
|
|
480
|
-
first(S.Quality(candidate), S.Subset(original, candidate) & S.Subset(candidate, original), acceptedSound(original, candidate, p))
|
|
481
|
-
|
|
482
|
-
def normalizationRefinement(+original: R.Scope, +candidate: +List<+List<Nat>>) -> S.Refines(original, R.normalize(original, candidate)):
|
|
483
|
-
match original:
|
|
484
|
-
case R.Unknown{}:
|
|
485
|
-
Unit{}
|
|
486
|
-
case R.Exact{xs}:
|
|
487
|
-
selectedRefines(R.accepted(xs, candidate), xs, candidate, {==})
|
|
488
|
-
|
|
489
|
-
def normalizationValid(+original: R.Scope, +candidate: +List<+List<Nat>>) -> S.OutputValid(R.normalize(original, candidate)):
|
|
490
|
-
match original:
|
|
491
|
-
case R.Unknown{}:
|
|
492
|
-
Unit{}
|
|
493
|
-
case R.Exact{xs}:
|
|
494
|
-
selectedValid(R.accepted(xs, candidate), xs, candidate, {==})
|
|
495
|
-
|
|
496
|
-
def sharedRefines(+xs: +List<+List<Nat>>, +nx: +List<+List<Nat>>, +ys: +List<+List<Nat>>, +ny: +List<+List<Nat>>, left: S.Subset(xs, nx) & S.Subset(nx, xs), right: S.Subset(ys, ny) & S.Subset(ny, ys), p: S.Shared(xs, ys)) -> S.Shared(nx, ny):
|
|
497
|
-
(lf, lb) = left
|
|
498
|
-
(rf, rb) = right
|
|
499
|
-
(+name, both) = p
|
|
500
|
-
(lp, rp) = both
|
|
501
|
-
(name, (subsetMember(xs, nx, name, lp, lf), subsetMember(ys, ny, name, rp, rf)))
|
|
502
|
-
|
|
503
|
-
def overlapRefines(+left: R.Scope, +nl: R.Scope, +right: R.Scope, +nr: R.Scope, lp: S.Refines(left, nl), rp: S.Refines(right, nr), p: S.Overlap(left, right)) -> S.Overlap(nl, nr):
|
|
504
|
-
match left nl right nr:
|
|
505
|
-
case _ R.Unknown{} _ _:
|
|
506
|
-
Unit{}
|
|
507
|
-
case _ R.Exact{nx} _ R.Unknown{}:
|
|
508
|
-
Unit{}
|
|
509
|
-
case R.Unknown{} R.Exact{xs} _ R.Exact{ys}:
|
|
510
|
-
Empty.absurd(S.Shared(xs, ys), lp)
|
|
511
|
-
case R.Exact{xs} R.Exact{nx} R.Unknown{} R.Exact{ny}:
|
|
512
|
-
Empty.absurd(S.Shared(nx, ny), rp)
|
|
513
|
-
case R.Exact{xs} R.Exact{nx} R.Exact{ys} R.Exact{ny}:
|
|
514
|
-
sharedRefines(xs, nx, ys, ny, lp, rp, p)
|
|
515
|
-
|
|
516
|
-
def preserveEvidence(+left: R.Scope, +right: R.Scope, +lp: +List<+List<Nat>>, +rp: +List<+List<Nat>>, +lo: Bool, +ro: Bool, p: S.Conflicts(left, right, lo, ro)) -> S.Conflicts(R.normalize(left, lp), R.normalize(right, rp), lo, ro):
|
|
517
|
-
(op, sp) = p
|
|
518
|
-
(op, overlapRefines(left, R.normalize(left, lp), right, R.normalize(right, rp), normalizationRefinement(left, lp), normalizationRefinement(right, rp), sp))
|
|
519
|
-
|
|
520
|
-
def normalizePrecise(+xs: +List<+List<Nat>>, +ys: +List<+List<Nat>>, quality: S.Quality(ys), forward: S.Subset(xs, ys), backward: S.Subset(ys, xs)) -> {R.normalize(R.Exact{xs}, ys) == R.Exact{ys} : R.Scope}:
|
|
521
|
-
%Equal.sym(Bool, R.accepted(xs, ys), True{}, acceptedComplete(xs, ys, quality, forward, backward)) : {R.select(_, ys) == R.Exact{ys} : R.Scope}
|
|
522
|
-
{==}
|
|
523
|
-
|
|
524
|
-
def normalizeIdentity(+xs: +List<+List<Nat>>, quality: S.Quality(xs)) -> {R.normalize(R.Exact{xs}, xs) == R.Exact{xs} : R.Scope}:
|
|
525
|
-
normalizePrecise(xs, xs, quality, subsetRefl(xs), subsetRefl(xs))
|
|
526
|
-
|
|
527
|
-
def recheckSelected(+decision: Bool, +original: +List<+List<Nat>>, +candidate: +List<+List<Nat>>, p: {R.accepted(original, candidate) == decision : Bool}) -> {R.normalize(R.select(decision, candidate), candidate) == R.select(decision, candidate) : R.Scope}:
|
|
528
|
-
match decision:
|
|
529
|
-
case False{}:
|
|
530
|
-
{==}
|
|
531
|
-
case True{}:
|
|
532
|
-
normalizeIdentity(candidate, first(S.Quality(candidate), S.Subset(original, candidate) & S.Subset(candidate, original), acceptedSound(original, candidate, p)))
|
|
533
|
-
|
|
534
|
-
def normalizeRecheck(+original: R.Scope, +candidate: +List<+List<Nat>>) -> {R.normalize(R.normalize(original, candidate), candidate) == R.normalize(original, candidate) : R.Scope}:
|
|
535
|
-
match original:
|
|
536
|
-
case R.Unknown{}:
|
|
537
|
-
{==}
|
|
538
|
-
case R.Exact{xs}:
|
|
539
|
-
recheckSelected(R.accepted(xs, candidate), xs, candidate, {==})
|
|
540
|
-
|
|
541
|
-
def orFalse(+a: Bool) -> {a || False{} == a : Bool}:
|
|
542
|
-
match a:
|
|
543
|
-
case False{}:
|
|
544
|
-
{==}
|
|
545
|
-
case True{}:
|
|
546
|
-
{==}
|
|
547
|
-
|
|
548
|
-
def orAssoc(+a: Bool, +b: Bool, +c: Bool) -> {(a || b) || c == a || (b || c) : Bool}:
|
|
549
|
-
match a:
|
|
550
|
-
case False{}:
|
|
551
|
-
{==}
|
|
552
|
-
case True{}:
|
|
553
|
-
{==}
|
|
554
|
-
|
|
555
|
-
def againstExact(+ys: +List<R.Effect>, +left: R.Effect, +found: Bool) -> {R.against(ys, left, found) == found || S.Against(ys, left) : Bool}:
|
|
556
|
-
match ys:
|
|
557
|
-
case Nil{}:
|
|
558
|
-
Equal.sym(Bool, found || False{}, found, orFalse(found))
|
|
559
|
-
case Con{h, t}:
|
|
560
|
-
%orAssoc(found, R.pairConflict(left, h), S.Against(t, left)) : {R.against(t, left, found || R.pairConflict(left, h)) == _ : Bool}
|
|
561
|
-
againstExact(t, left, found || R.pairConflict(left, h))
|
|
562
|
-
|
|
563
|
-
def groupsExact(+xs: +List<R.Effect>, +ys: +List<R.Effect>, +found: Bool) -> {R.groups(xs, ys, found) == found || S.Groups(xs, ys) : Bool}:
|
|
564
|
-
match xs:
|
|
565
|
-
case Nil{}:
|
|
566
|
-
Equal.sym(Bool, found || False{}, found, orFalse(found))
|
|
567
|
-
case Con{h, t}:
|
|
568
|
-
%againstExact(ys, h, False{}) : {R.groups(t, ys, found || R.against(ys, h, False{})) == found || (_ || S.Groups(t, ys)) : Bool}
|
|
569
|
-
%orAssoc(found, R.against(ys, h, False{}), S.Groups(t, ys)) : {R.groups(t, ys, found || R.against(ys, h, False{})) == _ : Bool}
|
|
570
|
-
groupsExact(t, ys, found || R.against(ys, h, False{}))
|
|
571
|
-
|
|
572
|
-
def identitySound(+name: +List<Nat>, p: {R.identityValid(name) == True{} : Bool}) -> S.IdentityValid(name):
|
|
573
|
-
andUse(S.IdentityValid(name), R.nameNonempty(name), Bool.not(R.nameEqual(name, [42n], True{})), p, np => sp => (nameNonemptySound(name, np), nameDifferent(name, [42n], sp)))
|
|
574
|
-
|
|
575
|
-
def identitiesStep(+h: +List<Nat>, +t: +List<+List<Nat>>, +good: Bool, p: {good && R.identityValid(h) == True{} : Bool} & S.IdentitiesValid(t)) -> {good == True{} : Bool} & S.IdentitiesValid(h <> t):
|
|
576
|
-
(gp, tp) = p
|
|
577
|
-
andUse({good == True{} : Bool} & S.IdentitiesValid(h <> t), good, R.identityValid(h), gp, gp => hp => (gp, (identitySound(h, hp), tp)))
|
|
578
|
-
|
|
579
|
-
def identitiesSound(+xs: +List<+List<Nat>>, +good: Bool, p: {R.identitiesValid(xs, good) == True{} : Bool}) -> {good == True{} : Bool} & S.IdentitiesValid(xs):
|
|
580
|
-
match xs:
|
|
581
|
-
case Nil{}:
|
|
582
|
-
(p, Unit{})
|
|
583
|
-
case Con{h, t}:
|
|
584
|
-
identitiesStep(h, t, good, identitiesSound(t, good && R.identityValid(h), p))
|
|
585
|
-
|
|
586
|
-
def sourceValidSelected(+decision: Bool, +names: +List<+List<Nat>>, p: {R.nonempty(names) && R.identitiesValid(names, True{}) == decision : Bool}) -> S.SourceValid(R.select(decision, names)):
|
|
587
|
-
match decision:
|
|
588
|
-
case False{}:
|
|
589
|
-
Unit{}
|
|
590
|
-
case True{}:
|
|
591
|
-
andUse(S.SourceValid(R.Exact{names}), R.nonempty(names), R.identitiesValid(names, True{}), p, np => vp => (nonemptySound(names, np), second({True{} == True{} : Bool}, S.IdentitiesValid(names), identitiesSound(names, True{}, vp))))
|
|
592
|
-
|
|
593
|
-
def sourceRefinesSelected(+decision: Bool, +names: +List<+List<Nat>>) -> S.Refines(R.Exact{names}, R.select(decision, names)):
|
|
594
|
-
match decision:
|
|
595
|
-
case False{}:
|
|
596
|
-
Unit{}
|
|
597
|
-
case True{}:
|
|
598
|
-
(subsetRefl(names), subsetRefl(names))
|
|
599
|
-
|
|
600
|
-
def pairSound(+left: R.Effect, +right: R.Effect, p: {R.pairConflict(left, right) == True{} : Bool}) -> S.EffectConflicts(left, right):
|
|
601
|
-
match left right:
|
|
602
|
-
case R.Quiet{} _:
|
|
603
|
-
falseTrue(p)
|
|
604
|
-
case R.Effect{lo, ls} R.Quiet{}:
|
|
605
|
-
falseTrue(p)
|
|
606
|
-
case R.Effect{lo, ls} R.Effect{ro, rs}:
|
|
607
|
-
conflictSound(ls, rs, lo, ro, p)
|
|
608
|
-
|
|
609
|
-
def pairComplete(+left: R.Effect, +right: R.Effect, p: S.EffectConflicts(left, right)) -> {R.pairConflict(left, right) == True{} : Bool}:
|
|
610
|
-
match left right:
|
|
611
|
-
case R.Quiet{} _:
|
|
612
|
-
Empty.absurd({False{} == True{} : Bool}, p)
|
|
613
|
-
case R.Effect{lo, ls} R.Quiet{}:
|
|
614
|
-
Empty.absurd({False{} == True{} : Bool}, p)
|
|
615
|
-
case R.Effect{lo, ls} R.Effect{ro, rs}:
|
|
616
|
-
conflictComplete(ls, rs, lo, ro, p)
|
|
617
|
-
|
|
618
|
-
def identityComplete(+name: +List<Nat>, p: S.IdentityValid(name)) -> {R.identityValid(name) == True{} : Bool}:
|
|
619
|
-
(np, neq) = p
|
|
620
|
-
andMake(R.nameNonempty(name), Bool.not(R.nameEqual(name, [42n], True{})), nameNonemptyComplete(name, np), nameInequality(name, [42n], R.nameEqual(name, [42n], True{}), {==}, neq))
|
|
621
|
-
|
|
622
|
-
def identitiesComplete(+xs: +List<+List<Nat>>, +good: Bool, gp: {good == True{} : Bool}, p: S.IdentitiesValid(xs)) -> {R.identitiesValid(xs, good) == True{} : Bool}:
|
|
623
|
-
match xs:
|
|
624
|
-
case Nil{}:
|
|
625
|
-
gp
|
|
626
|
-
case Con{h, t}:
|
|
627
|
-
(hp, tp) = p
|
|
628
|
-
identitiesComplete(t, good && R.identityValid(h), andMake(good, R.identityValid(h), gp, identityComplete(h, hp)), tp)
|
|
629
|
-
|
|
630
|
-
def sourceComplete(+names: +List<+List<Nat>>, p: S.SourceValid(R.Exact{names})) -> {R.source(names) == R.Exact{names} : R.Scope}:
|
|
631
|
-
(np, vp) = p
|
|
632
|
-
%Equal.sym(Bool, R.nonempty(names) && R.identitiesValid(names, True{}), True{}, andMake(R.nonempty(names), R.identitiesValid(names, True{}), nonemptyComplete(names, np), identitiesComplete(names, True{}, {==}, vp))) : {R.select(_, names) == R.Exact{names} : R.Scope}
|
|
633
|
-
{==}
|