logic-atlas 0.0.0-stage → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CITATION.cff +20 -0
- package/LICENSE +21 -0
- package/LICENSE-DATA +429 -0
- package/README.md +97 -2
- package/dist/case-preload.browser.js +5 -0
- package/dist/case-preload.browser.js.map +1 -0
- package/dist/case-preload.node.js +1 -0
- package/dist/case.js +3 -0
- package/dist/cases/billy-suzy-early-preemption-CRfOz7Bt.js +217 -0
- package/dist/cases/billy-suzy-early-preemption-CRfOz7Bt.js.map +1 -0
- package/dist/cases/billy-suzy-overdetermination-B2ZuwqYR.js +267 -0
- package/dist/cases/billy-suzy-overdetermination-B2ZuwqYR.js.map +1 -0
- package/dist/cases/bodyguard-omission-BElbBkSw.js +228 -0
- package/dist/cases/bodyguard-omission-BElbBkSw.js.map +1 -0
- package/dist/cases/bogus-prevention-DuWQ6iVk.js +236 -0
- package/dist/cases/bogus-prevention-DuWQ6iVk.js.map +1 -0
- package/dist/cases/cable-cut-three-scenarios-Ddthb0un.js +406 -0
- package/dist/cases/cable-cut-three-scenarios-Ddthb0un.js.map +1 -0
- package/dist/cases/double-prevention-bomber-PvPhPQ2s.js +269 -0
- package/dist/cases/double-prevention-bomber-PvPhPQ2s.js.map +1 -0
- package/dist/cases/farmer-pesticide-barrel-doctor-cMLTNJp3.js +261 -0
- package/dist/cases/farmer-pesticide-barrel-doctor-cMLTNJp3.js.map +1 -0
- package/dist/cases/firing-squad-D4Yp8GZ8.js +249 -0
- package/dist/cases/firing-squad-D4Yp8GZ8.js.map +1 -0
- package/dist/cases/fishing-port-joss-paper-TbZhNtht.js +357 -0
- package/dist/cases/fishing-port-joss-paper-TbZhNtht.js.map +1 -0
- package/dist/cases/forest-fire-conjunctive-ulNESjJ5.js +183 -0
- package/dist/cases/forest-fire-conjunctive-ulNESjJ5.js.map +1 -0
- package/dist/cases/forest-fire-disjunctive-CGd1W8od.js +227 -0
- package/dist/cases/forest-fire-disjunctive-CGd1W8od.js.map +1 -0
- package/dist/cases/forgetful-drunk-gardener-cZvuR4Gu.js +165 -0
- package/dist/cases/forgetful-drunk-gardener-cZvuR4Gu.js.map +1 -0
- package/dist/cases/frankfurt-jones-black-BAriyrst.js +190 -0
- package/dist/cases/frankfurt-jones-black-BAriyrst.js.map +1 -0
- package/dist/cases/frankfurt-style-omission-fsoc-B9ml6z0U.js +201 -0
- package/dist/cases/frankfurt-style-omission-fsoc-B9ml6z0U.js.map +1 -0
- package/dist/cases/gardener-queen-D_G9qm3z.js +215 -0
- package/dist/cases/gardener-queen-D_G9qm3z.js.map +1 -0
- package/dist/cases/half-poison-twice-CF1ytMLh.js +217 -0
- package/dist/cases/half-poison-twice-CF1ytMLh.js.map +1 -0
- package/dist/cases/harassment-and-dress-CsAP591f.js +233 -0
- package/dist/cases/harassment-and-dress-CsAP591f.js.map +1 -0
- package/dist/cases/hit-and-abandon-9_rV57bi.js +352 -0
- package/dist/cases/hit-and-abandon-9_rV57bi.js.map +1 -0
- package/dist/cases/india-famine-D2Nrut-V.js +221 -0
- package/dist/cases/india-famine-D2Nrut-V.js.map +1 -0
- package/dist/cases/intern-doctor-pharmacist-Dc1snaQa.js +236 -0
- package/dist/cases/intern-doctor-pharmacist-Dc1snaQa.js.map +1 -0
- package/dist/cases/murder-lesion-yTnWn4To.js +264 -0
- package/dist/cases/murder-lesion-yTnWn4To.js.map +1 -0
- package/dist/cases/newcomb-Cl1gd6uf.js +257 -0
- package/dist/cases/newcomb-Cl1gd6uf.js.map +1 -0
- package/dist/cases/palsgraf-NfvM1K9U.js +297 -0
- package/dist/cases/palsgraf-NfvM1K9U.js.map +1 -0
- package/dist/cases/pen-case-both-permitted-BNqPBJct.js +227 -0
- package/dist/cases/pen-case-both-permitted-BNqPBJct.js.map +1 -0
- package/dist/cases/pen-case-professor-assistant-CVQnSN5y.js +243 -0
- package/dist/cases/pen-case-professor-assistant-CVQnSN5y.js.map +1 -0
- package/dist/cases/pen-fiasco-funding-loss-DgGrOlqy.js +276 -0
- package/dist/cases/pen-fiasco-funding-loss-DgGrOlqy.js.map +1 -0
- package/dist/cases/penned-in-sharks-BlHMXii-.js +165 -0
- package/dist/cases/penned-in-sharks-BlHMXii-.js.map +1 -0
- package/dist/cases/planted-sharks-D6mI-GlJ.js +249 -0
- package/dist/cases/planted-sharks-D6mI-GlJ.js.map +1 -0
- package/dist/cases/prince-of-wales-pancakes-DLaLe7aZ.js +195 -0
- package/dist/cases/prince-of-wales-pancakes-DLaLe7aZ.js.map +1 -0
- package/dist/cases/psychopath-button-C0zEz5cq.js +241 -0
- package/dist/cases/psychopath-button-C0zEz5cq.js.map +1 -0
- package/dist/cases/red-light-collision-DLwpoJpK.js +223 -0
- package/dist/cases/red-light-collision-DLwpoJpK.js.map +1 -0
- package/dist/cases/rental-car-double-omission-ClAcUXpU.js +174 -0
- package/dist/cases/rental-car-double-omission-ClAcUXpU.js.map +1 -0
- package/dist/cases/rock-throwing-b9OWOyAi.js +259 -0
- package/dist/cases/rock-throwing-b9OWOyAi.js.map +1 -0
- package/dist/cases/school-lunch-poisoning-BphWQpQm.js +284 -0
- package/dist/cases/school-lunch-poisoning-BphWQpQm.js.map +1 -0
- package/dist/cases/sharks-Cwd6PSFD.js +226 -0
- package/dist/cases/sharks-Cwd6PSFD.js.map +1 -0
- package/dist/cases/smoking-lesion-DTJJDKMu.js +290 -0
- package/dist/cases/smoking-lesion-DTJJDKMu.js.map +1 -0
- package/dist/cases/snakebite-doctor-entGsPZe.js +213 -0
- package/dist/cases/snakebite-doctor-entGsPZe.js.map +1 -0
- package/dist/cases/styrofoam-fire-B86b_qDD.js +279 -0
- package/dist/cases/styrofoam-fire-B86b_qDD.js.map +1 -0
- package/dist/cases/summers-v-tice-7qnTEtJs.js +245 -0
- package/dist/cases/summers-v-tice-7qnTEtJs.js.map +1 -0
- package/dist/cases/taroko-derailment-2021-FgwyGqHj.js +386 -0
- package/dist/cases/taroko-derailment-2021-FgwyGqHj.js.map +1 -0
- package/dist/cases/train-switching-DolPBKWM.js +335 -0
- package/dist/cases/train-switching-DolPBKWM.js.map +1 -0
- package/dist/cases/trumping-merlin-morgana-u2OmSCY2.js +335 -0
- package/dist/cases/trumping-merlin-morgana-u2OmSCY2.js.map +1 -0
- package/dist/cases/voting-11-voters-NQUw6ak4.js +1389 -0
- package/dist/cases/voting-11-voters-NQUw6ak4.js.map +1 -0
- package/dist/cases/xi-antidote-Ciuul3cR.js +243 -0
- package/dist/cases/xi-antidote-Ciuul3cR.js.map +1 -0
- package/dist/cases/yard-vs-pitch-dodge-BQVdnACx.js +287 -0
- package/dist/cases/yard-vs-pitch-dodge-BQVdnACx.js.map +1 -0
- package/dist/chunks/CasePage-R2k_0lls.js +609 -0
- package/dist/chunks/CasePage-R2k_0lls.js.map +1 -0
- package/dist/chunks/CausalPlayground-Cd7Sok3F.js +982 -0
- package/dist/chunks/CausalPlayground-Cd7Sok3F.js.map +1 -0
- package/dist/chunks/CiteBlock-irdT1sjg.js +61 -0
- package/dist/chunks/CiteBlock-irdT1sjg.js.map +1 -0
- package/dist/chunks/ConservativeExtension-BX4EtG16.js +412 -0
- package/dist/chunks/ConservativeExtension-BX4EtG16.js.map +1 -0
- package/dist/chunks/ExpectedUtility-DtgptRz5.js +13 -0
- package/dist/chunks/ExpectedUtility-DtgptRz5.js.map +1 -0
- package/dist/chunks/ExportMenu-B5HoqaQl.js +240 -0
- package/dist/chunks/ExportMenu-B5HoqaQl.js.map +1 -0
- package/dist/chunks/FigureTabs-Dl3RgQQa.js +539 -0
- package/dist/chunks/FigureTabs-Dl3RgQQa.js.map +1 -0
- package/dist/chunks/GraphBox-Tg3kDWNT.js +339 -0
- package/dist/chunks/GraphBox-Tg3kDWNT.js.map +1 -0
- package/dist/chunks/IdentifyPanel-BVmZsWGN.js +618 -0
- package/dist/chunks/IdentifyPanel-BVmZsWGN.js.map +1 -0
- package/dist/chunks/ModelEditor-oAvvVqX5.js +1958 -0
- package/dist/chunks/ModelEditor-oAvvVqX5.js.map +1 -0
- package/dist/chunks/ProbabilityPanel-8-cC68rq.js +1453 -0
- package/dist/chunks/ProbabilityPanel-8-cC68rq.js.map +1 -0
- package/dist/chunks/RulesPanel-Cr6R9xCK.js +923 -0
- package/dist/chunks/RulesPanel-Cr6R9xCK.js.map +1 -0
- package/dist/chunks/SignalGraph-yoGcj7jf.js +1405 -0
- package/dist/chunks/SignalGraph-yoGcj7jf.js.map +1 -0
- package/dist/chunks/SliderList-BrILQCA4.js +211 -0
- package/dist/chunks/SliderList-BrILQCA4.js.map +1 -0
- package/dist/chunks/Story-BaEwzLZ9.js +40 -0
- package/dist/chunks/Story-BaEwzLZ9.js.map +1 -0
- package/dist/chunks/Supplement-DPsflADp.js +13 -0
- package/dist/chunks/Supplement-DPsflADp.js.map +1 -0
- package/dist/chunks/WorldLanes-kxYTRnB5.js +602 -0
- package/dist/chunks/WorldLanes-kxYTRnB5.js.map +1 -0
- package/dist/chunks/cases-dHdtbyLY.js +96 -0
- package/dist/chunks/cases-dHdtbyLY.js.map +1 -0
- package/dist/chunks/cases-of-DpCMbUyl.js +23 -0
- package/dist/chunks/cases-of-DpCMbUyl.js.map +1 -0
- package/dist/chunks/cite-B6emUIEW.js +27 -0
- package/dist/chunks/cite-B6emUIEW.js.map +1 -0
- package/dist/chunks/doc-case-YauWsu0F.js +1048 -0
- package/dist/chunks/doc-case-YauWsu0F.js.map +1 -0
- package/dist/chunks/download-CPDtyW_P.js +8 -0
- package/dist/chunks/download-CPDtyW_P.js.map +1 -0
- package/dist/chunks/engine-CO00-1sC.js +3290 -0
- package/dist/chunks/engine-CO00-1sC.js.map +1 -0
- package/dist/chunks/errors-BIaMWtNv.js +123 -0
- package/dist/chunks/errors-BIaMWtNv.js.map +1 -0
- package/dist/chunks/export-image-IsI6PVd9.js +635 -0
- package/dist/chunks/export-image-IsI6PVd9.js.map +1 -0
- package/dist/chunks/messages-ZiFmPfDY.js +1746 -0
- package/dist/chunks/messages-ZiFmPfDY.js.map +1 -0
- package/dist/chunks/model-doc-NQlyTjL9.js +796 -0
- package/dist/chunks/model-doc-NQlyTjL9.js.map +1 -0
- package/dist/chunks/parts-8cUsl2jJ.js +236 -0
- package/dist/chunks/parts-8cUsl2jJ.js.map +1 -0
- package/dist/chunks/rolldown-runtime-CGnMp29N.js +10 -0
- package/dist/chunks/url-state-DWdnkiC2.js +80 -0
- package/dist/chunks/url-state-DWdnkiC2.js.map +1 -0
- package/dist/chunks/use-node-menu-DJISBUAm.js +521 -0
- package/dist/chunks/use-node-menu-DJISBUAm.js.map +1 -0
- package/dist/cite.js +1 -0
- package/dist/data.js +17 -0
- package/dist/data.js.map +1 -0
- package/dist/editor.js +1 -0
- package/dist/engine.js +3 -0
- package/dist/extension.js +3 -0
- package/dist/i18n.js +1 -0
- package/dist/identify.js +3 -0
- package/dist/index.js +12 -0
- package/dist/lanes.js +3 -0
- package/dist/modal.css +2 -0
- package/dist/modal.js +3385 -0
- package/dist/modal.js.map +1 -0
- package/dist/playground.js +3 -0
- package/dist/probability.js +3 -0
- package/dist/style.css +2 -0
- package/dist/supplement.js +1 -0
- package/dist/types/components/case/CasePage.d.ts +36 -0
- package/dist/types/components/case/Story.d.ts +5 -0
- package/dist/types/components/case/Verdicts.d.ts +12 -0
- package/dist/types/components/editor/CaseInfo.d.ts +28 -0
- package/dist/types/components/editor/CaseList.d.ts +31 -0
- package/dist/types/components/editor/EditorEquations.d.ts +12 -0
- package/dist/types/components/editor/EditorNormality.d.ts +7 -0
- package/dist/types/components/editor/EditorValues.d.ts +10 -0
- package/dist/types/components/editor/EditorVariables.d.ts +12 -0
- package/dist/types/components/editor/ModelEditor.d.ts +66 -0
- package/dist/types/components/editor/SaveShare.d.ts +7 -0
- package/dist/types/components/editor/TaskCard.d.ts +10 -0
- package/dist/types/components/editor/catalog.d.ts +46 -0
- package/dist/types/components/editor/do-state.d.ts +18 -0
- package/dist/types/components/editor/draft-edits.d.ts +12 -0
- package/dist/types/components/editor/draft.d.ts +73 -0
- package/dist/types/components/editor/session.d.ts +79 -0
- package/dist/types/components/editor/tasks.d.ts +43 -0
- package/dist/types/components/editor/use-hash-sync.d.ts +29 -0
- package/dist/types/components/entries/case.d.ts +5 -0
- package/dist/types/components/entries/cite.d.ts +3 -0
- package/dist/types/components/entries/editor.d.ts +4 -0
- package/dist/types/components/entries/extension.d.ts +5 -0
- package/dist/types/components/entries/i18n.d.ts +2 -0
- package/dist/types/components/entries/identify.d.ts +6 -0
- package/dist/types/components/entries/lanes.d.ts +5 -0
- package/dist/types/components/entries/playground.d.ts +7 -0
- package/dist/types/components/entries/probability.d.ts +10 -0
- package/dist/types/components/entries/supplement.d.ts +3 -0
- package/dist/types/components/export/CiteBlock.d.ts +12 -0
- package/dist/types/components/export/ExportMenu.d.ts +17 -0
- package/dist/types/components/export/cite.d.ts +13 -0
- package/dist/types/components/export/download.d.ts +2 -0
- package/dist/types/components/export/embed.d.ts +50 -0
- package/dist/types/components/export/export-image.d.ts +90 -0
- package/dist/types/components/export/export-loader.d.ts +10 -0
- package/dist/types/components/export/export-render.d.ts +34 -0
- package/dist/types/components/export/page-theme.d.ts +3 -0
- package/dist/types/components/export/url-state.d.ts +38 -0
- package/dist/types/components/extension/ConservativeExtension.d.ts +36 -0
- package/dist/types/components/extension/extension-view.d.ts +50 -0
- package/dist/types/components/graph/BarChart.d.ts +15 -0
- package/dist/types/components/graph/SignalGraph.d.ts +92 -0
- package/dist/types/components/graph/graph-labels.d.ts +32 -0
- package/dist/types/components/graph/graph-layout.d.ts +65 -0
- package/dist/types/components/graph/signal-geometry.d.ts +160 -0
- package/dist/types/components/graph/signal-shapes.d.ts +97 -0
- package/dist/types/components/graph/use-node-gestures.d.ts +27 -0
- package/dist/types/components/i18n/common.d.ts +53 -0
- package/dist/types/components/i18n/en.d.ts +2 -0
- package/dist/types/components/i18n/messages.d.ts +36 -0
- package/dist/types/components/i18n/zh.d.ts +771 -0
- package/dist/types/components/index.d.ts +30 -0
- package/dist/types/components/lanes/WorldLanes.d.ts +37 -0
- package/dist/types/components/model/CaseGate.d.ts +15 -0
- package/dist/types/components/model/assignments.d.ts +14 -0
- package/dist/types/components/model/cases-of.d.ts +6 -0
- package/dist/types/components/model/doc-case.d.ts +21 -0
- package/dist/types/components/model/dsep-view.d.ts +39 -0
- package/dist/types/components/model/model-state.d.ts +67 -0
- package/dist/types/components/model/normality-view.d.ts +12 -0
- package/dist/types/components/model/notation.d.ts +8 -0
- package/dist/types/components/model/probability-view.d.ts +34 -0
- package/dist/types/components/model/shown-variables.d.ts +7 -0
- package/dist/types/components/model/slider-groups.d.ts +20 -0
- package/dist/types/components/model/verdict-rows.d.ts +130 -0
- package/dist/types/components/model/wording.d.ts +49 -0
- package/dist/types/components/panels/EquationBox.d.ts +25 -0
- package/dist/types/components/panels/Equations.d.ts +25 -0
- package/dist/types/components/panels/GraphBox.d.ts +72 -0
- package/dist/types/components/panels/NodeMenu.d.ts +43 -0
- package/dist/types/components/panels/SliderList.d.ts +21 -0
- package/dist/types/components/panels/causal-table.d.ts +33 -0
- package/dist/types/components/panels/equation-rows.d.ts +28 -0
- package/dist/types/components/panels/equations-latex.d.ts +3 -0
- package/dist/types/components/panels/menu-place.d.ts +28 -0
- package/dist/types/components/panels/use-node-menu.d.ts +12 -0
- package/dist/types/components/playground/CausalPlayground.d.ts +130 -0
- package/dist/types/components/playground/DecisionBars.d.ts +15 -0
- package/dist/types/components/playground/DsepLine.d.ts +10 -0
- package/dist/types/components/playground/PlaygroundBlame.d.ts +14 -0
- package/dist/types/components/playground/PlaygroundVerdicts.d.ts +19 -0
- package/dist/types/components/playground/blame-view.d.ts +47 -0
- package/dist/types/components/playground/playground-options.d.ts +56 -0
- package/dist/types/components/playground/trail.d.ts +17 -0
- package/dist/types/components/playground/use-trail.d.ts +17 -0
- package/dist/types/components/probability/AdjustPanel.d.ts +23 -0
- package/dist/types/components/probability/CfStepper.d.ts +20 -0
- package/dist/types/components/probability/ComparePanel.d.ts +15 -0
- package/dist/types/components/probability/IdentifyPanel.d.ts +15 -0
- package/dist/types/components/probability/MediationStepper.d.ts +22 -0
- package/dist/types/components/probability/ProbabilityPanel.d.ts +92 -0
- package/dist/types/components/probability/RulesPanel.d.ts +29 -0
- package/dist/types/components/probability/SliderSection.d.ts +16 -0
- package/dist/types/components/probability/adjust-view.d.ts +41 -0
- package/dist/types/components/probability/cf-steps.d.ts +56 -0
- package/dist/types/components/probability/identify-view.d.ts +33 -0
- package/dist/types/components/probability/mediation-steps.d.ts +74 -0
- package/dist/types/components/probability/rules-view.d.ts +187 -0
- package/dist/types/components/shared/FigureTabs.d.ts +32 -0
- package/dist/types/components/shared/Supplement.d.ts +8 -0
- package/dist/types/components/shared/digits.d.ts +14 -0
- package/dist/types/components/shared/focus-visible.d.ts +2 -0
- package/dist/types/components/shared/parts.d.ts +64 -0
- package/dist/types/components/shared/tab-height.d.ts +6 -0
- package/dist/types/components/shared/use-narrow.d.ts +6 -0
- package/dist/types/components/shared/use-tabs.d.ts +11 -0
- package/dist/types/components/test-menu.d.ts +17 -0
- package/dist/types/components/text/ExpectedUtility.d.ts +4 -0
- package/dist/types/components/text/Tex.d.ts +7 -0
- package/dist/types/components/text/subscript.d.ts +11 -0
- package/dist/types/components/text/svg-text.d.ts +6 -0
- package/dist/types/components/text/tex-html.d.ts +2 -0
- package/dist/types/components/text/text-measure.d.ts +13 -0
- package/dist/types/components/text/typeset-text.d.ts +20 -0
- package/dist/types/components/text/typeset.d.ts +27 -0
- package/dist/types/data/case-id.d.ts +2 -0
- package/dist/types/data/case-preload-browser.d.ts +1 -0
- package/dist/types/data/case-preload.d.ts +1 -0
- package/dist/types/data/case-store.d.ts +21 -0
- package/dist/types/data/cases.d.ts +7 -0
- package/dist/types/data/index.d.ts +15 -0
- package/dist/types/data/load.d.ts +29 -0
- package/dist/types/data/model-doc.d.ts +53 -0
- package/dist/types/data/schema.d.ts +522 -0
- package/dist/types/engine/actual.d.ts +177 -0
- package/dist/types/engine/arithmetic.d.ts +52 -0
- package/dist/types/engine/blame.d.ts +43 -0
- package/dist/types/engine/counterfactual.d.ts +43 -0
- package/dist/types/engine/decision.d.ts +45 -0
- package/dist/types/engine/dseparation.d.ts +48 -0
- package/dist/types/engine/errors.d.ts +272 -0
- package/dist/types/engine/evaluate.d.ts +20 -0
- package/dist/types/engine/expr.d.ts +81 -0
- package/dist/types/engine/extension.d.ts +70 -0
- package/dist/types/engine/formula.d.ts +16 -0
- package/dist/types/engine/identifier-format.d.ts +5 -0
- package/dist/types/engine/identify/admg.d.ts +52 -0
- package/dist/types/engine/identify/check.d.ts +50 -0
- package/dist/types/engine/identify/derive.d.ts +87 -0
- package/dist/types/engine/identify/do-evaluate.d.ts +41 -0
- package/dist/types/engine/identify/evaluate.d.ts +32 -0
- package/dist/types/engine/identify/id.d.ts +38 -0
- package/dist/types/engine/identify/index.d.ts +15 -0
- package/dist/types/engine/identify/prob-expr.d.ts +97 -0
- package/dist/types/engine/identify/prob-render.d.ts +17 -0
- package/dist/types/engine/index.d.ts +36 -0
- package/dist/types/engine/mediation.d.ts +68 -0
- package/dist/types/engine/model.d.ts +44 -0
- package/dist/types/engine/parse.d.ts +18 -0
- package/dist/types/engine/probability.d.ts +57 -0
- package/dist/types/engine/render.d.ts +54 -0
- package/dist/types/engine/switches.d.ts +12 -0
- package/dist/types/engine/types.d.ts +29 -0
- package/dist/types/engine/values.d.ts +34 -0
- package/dist/types/logic/relations.d.ts +27 -0
- package/dist/types/modal/components/FrameConditions.d.ts +20 -0
- package/dist/types/modal/components/IntensionTable.d.ts +14 -0
- package/dist/types/modal/components/KripkeView.d.ts +22 -0
- package/dist/types/modal/components/SphereDiagram.d.ts +16 -0
- package/dist/types/modal/components/SphereView.d.ts +19 -0
- package/dist/types/modal/components/StrictImplication.d.ts +15 -0
- package/dist/types/modal/components/SurgeryVsSimilarity.d.ts +17 -0
- package/dist/types/modal/components/TcsCheck.d.ts +27 -0
- package/dist/types/modal/components/WorldGraph.d.ts +16 -0
- package/dist/types/modal/components/doc-graph.d.ts +21 -0
- package/dist/types/modal/components/explain-text.d.ts +12 -0
- package/dist/types/modal/components/parts.d.ts +47 -0
- package/dist/types/modal/components/sphere-graph.d.ts +34 -0
- package/dist/types/modal/components/sphere-view-model.d.ts +23 -0
- package/dist/types/modal/components/use-doc.d.ts +28 -0
- package/dist/types/modal/components/world-graph.d.ts +57 -0
- package/dist/types/modal/data/load.d.ts +39 -0
- package/dist/types/modal/data/schema.d.ts +246 -0
- package/dist/types/modal/engine/errors.d.ts +137 -0
- package/dist/types/modal/engine/evaluate.d.ts +72 -0
- package/dist/types/modal/engine/formula.d.ts +49 -0
- package/dist/types/modal/engine/frames.d.ts +54 -0
- package/dist/types/modal/engine/index.d.ts +19 -0
- package/dist/types/modal/engine/inference.d.ts +36 -0
- package/dist/types/modal/engine/model.d.ts +58 -0
- package/dist/types/modal/engine/print.d.ts +31 -0
- package/dist/types/modal/engine/similarity.d.ts +40 -0
- package/dist/types/modal/engine/surgery.d.ts +38 -0
- package/dist/types/modal/i18n/en.d.ts +2 -0
- package/dist/types/modal/i18n/messages.d.ts +14 -0
- package/dist/types/modal/i18n/zh.d.ts +92 -0
- package/dist/types/modal/index.d.ts +22 -0
- package/package.json +122 -4
package/CITATION.cff
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "學術或教學使用請引用 / If you use logic-atlas in research or teaching, please cite it as below."
|
|
3
|
+
title: logic-atlas
|
|
4
|
+
abstract: "Interactive structural causal models and a dataset of philosophical causation and decision cases."
|
|
5
|
+
type: software
|
|
6
|
+
authors:
|
|
7
|
+
- given-names: Wei
|
|
8
|
+
family-names: Hung
|
|
9
|
+
alias: 洪偉
|
|
10
|
+
version: 0.25.0
|
|
11
|
+
date-released: "2026-11-26"
|
|
12
|
+
url: "https://github.com/wayne930242/logic-atlas"
|
|
13
|
+
license:
|
|
14
|
+
- MIT
|
|
15
|
+
- CC-BY-4.0
|
|
16
|
+
keywords:
|
|
17
|
+
- causation
|
|
18
|
+
- structural causal models
|
|
19
|
+
- actual causality
|
|
20
|
+
- philosophy
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 洪偉 Wei Hung
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/LICENSE-DATA
ADDED
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
logic-atlas data and teaching text
|
|
2
|
+
Copyright (c) 2026 洪偉 Wei Hung
|
|
3
|
+
|
|
4
|
+
The case data and the teaching text are licensed under the Creative Commons Attribution 4.0
|
|
5
|
+
International License (CC BY 4.0).
|
|
6
|
+
https://creativecommons.org/licenses/by/4.0/
|
|
7
|
+
|
|
8
|
+
This covers, wherever it is bundled, compiled or copied:
|
|
9
|
+
- the case data: the JSON case files in src/data/cases/ and the text they carry (titles,
|
|
10
|
+
stories, explanations, intuitions, notes, sources), including the same content inside the
|
|
11
|
+
published package, such as dist/cases/ (one file per case) and dist/chunks/ (the dist/*.js
|
|
12
|
+
files and the .js files in the folders under dist/);
|
|
13
|
+
- the teaching text shown by the components (step notes, verdict sentences, labels), in
|
|
14
|
+
src/components and in the same published .js files.
|
|
15
|
+
|
|
16
|
+
Most cases are adapted from published works: philosophical papers and books, court decisions,
|
|
17
|
+
and news reports quoted in them. Each case file names its originals in `sources`, and the
|
|
18
|
+
components show them with the case. The rights in those works stay with their authors and
|
|
19
|
+
publishers. CC BY 4.0 here covers only this dataset's own contribution: its wording of the
|
|
20
|
+
stories and notes, its causal models, equations, verdicts and layouts, and the teaching text.
|
|
21
|
+
When you reuse a case, credit both this dataset and the originals its `sources` lists.
|
|
22
|
+
|
|
23
|
+
Source code (*.ts, *.tsx, *.css, *.mjs) anywhere in this repository, including the
|
|
24
|
+
schema and loader in src/data, is licensed under the MIT License in LICENSE.
|
|
25
|
+
In the published .js files under dist/ the two are bundled together: the code in them is MIT, and
|
|
26
|
+
the case data and teaching text in them remain CC BY 4.0.
|
|
27
|
+
|
|
28
|
+
Attribution: 洪偉(Wei Hung), logic-atlas, https://github.com/wayne930242/logic-atlas (CC BY 4.0).
|
|
29
|
+
For academic or teaching use, please cite the project as described in CITATION.cff
|
|
30
|
+
and the README section "Citation".
|
|
31
|
+
|
|
32
|
+
The full text of CC BY 4.0 follows.
|
|
33
|
+
|
|
34
|
+
Attribution 4.0 International
|
|
35
|
+
|
|
36
|
+
=======================================================================
|
|
37
|
+
|
|
38
|
+
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
|
39
|
+
does not provide legal services or legal advice. Distribution of
|
|
40
|
+
Creative Commons public licenses does not create a lawyer-client or
|
|
41
|
+
other relationship. Creative Commons makes its licenses and related
|
|
42
|
+
information available on an "as-is" basis. Creative Commons gives no
|
|
43
|
+
warranties regarding its licenses, any material licensed under their
|
|
44
|
+
terms and conditions, or any related information. Creative Commons
|
|
45
|
+
disclaims all liability for damages resulting from their use to the
|
|
46
|
+
fullest extent possible.
|
|
47
|
+
|
|
48
|
+
Using Creative Commons Public Licenses
|
|
49
|
+
|
|
50
|
+
Creative Commons public licenses provide a standard set of terms and
|
|
51
|
+
conditions that creators and other rights holders may use to share
|
|
52
|
+
original works of authorship and other material subject to copyright
|
|
53
|
+
and certain other rights specified in the public license below. The
|
|
54
|
+
following considerations are for informational purposes only, are not
|
|
55
|
+
exhaustive, and do not form part of our licenses.
|
|
56
|
+
|
|
57
|
+
Considerations for licensors: Our public licenses are
|
|
58
|
+
intended for use by those authorized to give the public
|
|
59
|
+
permission to use material in ways otherwise restricted by
|
|
60
|
+
copyright and certain other rights. Our licenses are
|
|
61
|
+
irrevocable. Licensors should read and understand the terms
|
|
62
|
+
and conditions of the license they choose before applying it.
|
|
63
|
+
Licensors should also secure all rights necessary before
|
|
64
|
+
applying our licenses so that the public can reuse the
|
|
65
|
+
material as expected. Licensors should clearly mark any
|
|
66
|
+
material not subject to the license. This includes other CC-
|
|
67
|
+
licensed material, or material used under an exception or
|
|
68
|
+
limitation to copyright. More considerations for licensors:
|
|
69
|
+
wiki.creativecommons.org/Considerations_for_licensors
|
|
70
|
+
|
|
71
|
+
Considerations for the public: By using one of our public
|
|
72
|
+
licenses, a licensor grants the public permission to use the
|
|
73
|
+
licensed material under specified terms and conditions. If
|
|
74
|
+
the licensor's permission is not necessary for any reason--for
|
|
75
|
+
example, because of any applicable exception or limitation to
|
|
76
|
+
copyright--then that use is not regulated by the license. Our
|
|
77
|
+
licenses grant only permissions under copyright and certain
|
|
78
|
+
other rights that a licensor has authority to grant. Use of
|
|
79
|
+
the licensed material may still be restricted for other
|
|
80
|
+
reasons, including because others have copyright or other
|
|
81
|
+
rights in the material. A licensor may make special requests,
|
|
82
|
+
such as asking that all changes be marked or described.
|
|
83
|
+
Although not required by our licenses, you are encouraged to
|
|
84
|
+
respect those requests where reasonable. More considerations
|
|
85
|
+
for the public:
|
|
86
|
+
wiki.creativecommons.org/Considerations_for_licensees
|
|
87
|
+
|
|
88
|
+
=======================================================================
|
|
89
|
+
|
|
90
|
+
Creative Commons Attribution 4.0 International Public License
|
|
91
|
+
|
|
92
|
+
By exercising the Licensed Rights (defined below), You accept and agree
|
|
93
|
+
to be bound by the terms and conditions of this Creative Commons
|
|
94
|
+
Attribution 4.0 International Public License ("Public License"). To the
|
|
95
|
+
extent this Public License may be interpreted as a contract, You are
|
|
96
|
+
granted the Licensed Rights in consideration of Your acceptance of
|
|
97
|
+
these terms and conditions, and the Licensor grants You such rights in
|
|
98
|
+
consideration of benefits the Licensor receives from making the
|
|
99
|
+
Licensed Material available under these terms and conditions.
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
Section 1 -- Definitions.
|
|
103
|
+
|
|
104
|
+
a. Adapted Material means material subject to Copyright and Similar
|
|
105
|
+
Rights that is derived from or based upon the Licensed Material
|
|
106
|
+
and in which the Licensed Material is translated, altered,
|
|
107
|
+
arranged, transformed, or otherwise modified in a manner requiring
|
|
108
|
+
permission under the Copyright and Similar Rights held by the
|
|
109
|
+
Licensor. For purposes of this Public License, where the Licensed
|
|
110
|
+
Material is a musical work, performance, or sound recording,
|
|
111
|
+
Adapted Material is always produced where the Licensed Material is
|
|
112
|
+
synched in timed relation with a moving image.
|
|
113
|
+
|
|
114
|
+
b. Adapter's License means the license You apply to Your Copyright
|
|
115
|
+
and Similar Rights in Your contributions to Adapted Material in
|
|
116
|
+
accordance with the terms and conditions of this Public License.
|
|
117
|
+
|
|
118
|
+
c. Copyright and Similar Rights means copyright and/or similar rights
|
|
119
|
+
closely related to copyright including, without limitation,
|
|
120
|
+
performance, broadcast, sound recording, and Sui Generis Database
|
|
121
|
+
Rights, without regard to how the rights are labeled or
|
|
122
|
+
categorized. For purposes of this Public License, the rights
|
|
123
|
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
|
124
|
+
Rights.
|
|
125
|
+
|
|
126
|
+
d. Effective Technological Measures means those measures that, in the
|
|
127
|
+
absence of proper authority, may not be circumvented under laws
|
|
128
|
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
|
129
|
+
Treaty adopted on December 20, 1996, and/or similar international
|
|
130
|
+
agreements.
|
|
131
|
+
|
|
132
|
+
e. Exceptions and Limitations means fair use, fair dealing, and/or
|
|
133
|
+
any other exception or limitation to Copyright and Similar Rights
|
|
134
|
+
that applies to Your use of the Licensed Material.
|
|
135
|
+
|
|
136
|
+
f. Licensed Material means the artistic or literary work, database,
|
|
137
|
+
or other material to which the Licensor applied this Public
|
|
138
|
+
License.
|
|
139
|
+
|
|
140
|
+
g. Licensed Rights means the rights granted to You subject to the
|
|
141
|
+
terms and conditions of this Public License, which are limited to
|
|
142
|
+
all Copyright and Similar Rights that apply to Your use of the
|
|
143
|
+
Licensed Material and that the Licensor has authority to license.
|
|
144
|
+
|
|
145
|
+
h. Licensor means the individual(s) or entity(ies) granting rights
|
|
146
|
+
under this Public License.
|
|
147
|
+
|
|
148
|
+
i. Share means to provide material to the public by any means or
|
|
149
|
+
process that requires permission under the Licensed Rights, such
|
|
150
|
+
as reproduction, public display, public performance, distribution,
|
|
151
|
+
dissemination, communication, or importation, and to make material
|
|
152
|
+
available to the public including in ways that members of the
|
|
153
|
+
public may access the material from a place and at a time
|
|
154
|
+
individually chosen by them.
|
|
155
|
+
|
|
156
|
+
j. Sui Generis Database Rights means rights other than copyright
|
|
157
|
+
resulting from Directive 96/9/EC of the European Parliament and of
|
|
158
|
+
the Council of 11 March 1996 on the legal protection of databases,
|
|
159
|
+
as amended and/or succeeded, as well as other essentially
|
|
160
|
+
equivalent rights anywhere in the world.
|
|
161
|
+
|
|
162
|
+
k. You means the individual or entity exercising the Licensed Rights
|
|
163
|
+
under this Public License. Your has a corresponding meaning.
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
Section 2 -- Scope.
|
|
167
|
+
|
|
168
|
+
a. License grant.
|
|
169
|
+
|
|
170
|
+
1. Subject to the terms and conditions of this Public License,
|
|
171
|
+
the Licensor hereby grants You a worldwide, royalty-free,
|
|
172
|
+
non-sublicensable, non-exclusive, irrevocable license to
|
|
173
|
+
exercise the Licensed Rights in the Licensed Material to:
|
|
174
|
+
|
|
175
|
+
a. reproduce and Share the Licensed Material, in whole or
|
|
176
|
+
in part; and
|
|
177
|
+
|
|
178
|
+
b. produce, reproduce, and Share Adapted Material.
|
|
179
|
+
|
|
180
|
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
|
181
|
+
Exceptions and Limitations apply to Your use, this Public
|
|
182
|
+
License does not apply, and You do not need to comply with
|
|
183
|
+
its terms and conditions.
|
|
184
|
+
|
|
185
|
+
3. Term. The term of this Public License is specified in Section
|
|
186
|
+
6(a).
|
|
187
|
+
|
|
188
|
+
4. Media and formats; technical modifications allowed. The
|
|
189
|
+
Licensor authorizes You to exercise the Licensed Rights in
|
|
190
|
+
all media and formats whether now known or hereafter created,
|
|
191
|
+
and to make technical modifications necessary to do so. The
|
|
192
|
+
Licensor waives and/or agrees not to assert any right or
|
|
193
|
+
authority to forbid You from making technical modifications
|
|
194
|
+
necessary to exercise the Licensed Rights, including
|
|
195
|
+
technical modifications necessary to circumvent Effective
|
|
196
|
+
Technological Measures. For purposes of this Public License,
|
|
197
|
+
simply making modifications authorized by this Section 2(a)
|
|
198
|
+
(4) never produces Adapted Material.
|
|
199
|
+
|
|
200
|
+
5. Downstream recipients.
|
|
201
|
+
|
|
202
|
+
a. Offer from the Licensor -- Licensed Material. Every
|
|
203
|
+
recipient of the Licensed Material automatically
|
|
204
|
+
receives an offer from the Licensor to exercise the
|
|
205
|
+
Licensed Rights under the terms and conditions of this
|
|
206
|
+
Public License.
|
|
207
|
+
|
|
208
|
+
b. No downstream restrictions. You may not offer or impose
|
|
209
|
+
any additional or different terms or conditions on, or
|
|
210
|
+
apply any Effective Technological Measures to, the
|
|
211
|
+
Licensed Material if doing so restricts exercise of the
|
|
212
|
+
Licensed Rights by any recipient of the Licensed
|
|
213
|
+
Material.
|
|
214
|
+
|
|
215
|
+
6. No endorsement. Nothing in this Public License constitutes or
|
|
216
|
+
may be construed as permission to assert or imply that You
|
|
217
|
+
are, or that Your use of the Licensed Material is, connected
|
|
218
|
+
with, or sponsored, endorsed, or granted official status by,
|
|
219
|
+
the Licensor or others designated to receive attribution as
|
|
220
|
+
provided in Section 3(a)(1)(A)(i).
|
|
221
|
+
|
|
222
|
+
b. Other rights.
|
|
223
|
+
|
|
224
|
+
1. Moral rights, such as the right of integrity, are not
|
|
225
|
+
licensed under this Public License, nor are publicity,
|
|
226
|
+
privacy, and/or other similar personality rights; however, to
|
|
227
|
+
the extent possible, the Licensor waives and/or agrees not to
|
|
228
|
+
assert any such rights held by the Licensor to the limited
|
|
229
|
+
extent necessary to allow You to exercise the Licensed
|
|
230
|
+
Rights, but not otherwise.
|
|
231
|
+
|
|
232
|
+
2. Patent and trademark rights are not licensed under this
|
|
233
|
+
Public License.
|
|
234
|
+
|
|
235
|
+
3. To the extent possible, the Licensor waives any right to
|
|
236
|
+
collect royalties from You for the exercise of the Licensed
|
|
237
|
+
Rights, whether directly or through a collecting society
|
|
238
|
+
under any voluntary or waivable statutory or compulsory
|
|
239
|
+
licensing scheme. In all other cases the Licensor expressly
|
|
240
|
+
reserves any right to collect such royalties.
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
Section 3 -- License Conditions.
|
|
244
|
+
|
|
245
|
+
Your exercise of the Licensed Rights is expressly made subject to the
|
|
246
|
+
following conditions.
|
|
247
|
+
|
|
248
|
+
a. Attribution.
|
|
249
|
+
|
|
250
|
+
1. If You Share the Licensed Material (including in modified
|
|
251
|
+
form), You must:
|
|
252
|
+
|
|
253
|
+
a. retain the following if it is supplied by the Licensor
|
|
254
|
+
with the Licensed Material:
|
|
255
|
+
|
|
256
|
+
i. identification of the creator(s) of the Licensed
|
|
257
|
+
Material and any others designated to receive
|
|
258
|
+
attribution, in any reasonable manner requested by
|
|
259
|
+
the Licensor (including by pseudonym if
|
|
260
|
+
designated);
|
|
261
|
+
|
|
262
|
+
ii. a copyright notice;
|
|
263
|
+
|
|
264
|
+
iii. a notice that refers to this Public License;
|
|
265
|
+
|
|
266
|
+
iv. a notice that refers to the disclaimer of
|
|
267
|
+
warranties;
|
|
268
|
+
|
|
269
|
+
v. a URI or hyperlink to the Licensed Material to the
|
|
270
|
+
extent reasonably practicable;
|
|
271
|
+
|
|
272
|
+
b. indicate if You modified the Licensed Material and
|
|
273
|
+
retain an indication of any previous modifications; and
|
|
274
|
+
|
|
275
|
+
c. indicate the Licensed Material is licensed under this
|
|
276
|
+
Public License, and include the text of, or the URI or
|
|
277
|
+
hyperlink to, this Public License.
|
|
278
|
+
|
|
279
|
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
|
280
|
+
reasonable manner based on the medium, means, and context in
|
|
281
|
+
which You Share the Licensed Material. For example, it may be
|
|
282
|
+
reasonable to satisfy the conditions by providing a URI or
|
|
283
|
+
hyperlink to a resource that includes the required
|
|
284
|
+
information.
|
|
285
|
+
|
|
286
|
+
3. If requested by the Licensor, You must remove any of the
|
|
287
|
+
information required by Section 3(a)(1)(A) to the extent
|
|
288
|
+
reasonably practicable.
|
|
289
|
+
|
|
290
|
+
4. If You Share Adapted Material You produce, the Adapter's
|
|
291
|
+
License You apply must not prevent recipients of the Adapted
|
|
292
|
+
Material from complying with this Public License.
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
Section 4 -- Sui Generis Database Rights.
|
|
296
|
+
|
|
297
|
+
Where the Licensed Rights include Sui Generis Database Rights that
|
|
298
|
+
apply to Your use of the Licensed Material:
|
|
299
|
+
|
|
300
|
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
|
301
|
+
to extract, reuse, reproduce, and Share all or a substantial
|
|
302
|
+
portion of the contents of the database;
|
|
303
|
+
|
|
304
|
+
b. if You include all or a substantial portion of the database
|
|
305
|
+
contents in a database in which You have Sui Generis Database
|
|
306
|
+
Rights, then the database in which You have Sui Generis Database
|
|
307
|
+
Rights (but not its individual contents) is Adapted Material; and
|
|
308
|
+
|
|
309
|
+
c. You must comply with the conditions in Section 3(a) if You Share
|
|
310
|
+
all or a substantial portion of the contents of the database.
|
|
311
|
+
|
|
312
|
+
For the avoidance of doubt, this Section 4 supplements and does not
|
|
313
|
+
replace Your obligations under this Public License where the Licensed
|
|
314
|
+
Rights include other Copyright and Similar Rights.
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
|
318
|
+
|
|
319
|
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
|
320
|
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
|
321
|
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
|
322
|
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
|
323
|
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
|
324
|
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
325
|
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
|
326
|
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
|
327
|
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
|
328
|
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
|
329
|
+
|
|
330
|
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
|
331
|
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
|
332
|
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
|
333
|
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
|
334
|
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
|
335
|
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
|
336
|
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
|
337
|
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
|
338
|
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
|
339
|
+
|
|
340
|
+
c. The disclaimer of warranties and limitation of liability provided
|
|
341
|
+
above shall be interpreted in a manner that, to the extent
|
|
342
|
+
possible, most closely approximates an absolute disclaimer and
|
|
343
|
+
waiver of all liability.
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
Section 6 -- Term and Termination.
|
|
347
|
+
|
|
348
|
+
a. This Public License applies for the term of the Copyright and
|
|
349
|
+
Similar Rights licensed here. However, if You fail to comply with
|
|
350
|
+
this Public License, then Your rights under this Public License
|
|
351
|
+
terminate automatically.
|
|
352
|
+
|
|
353
|
+
b. Where Your right to use the Licensed Material has terminated under
|
|
354
|
+
Section 6(a), it reinstates:
|
|
355
|
+
|
|
356
|
+
1. automatically as of the date the violation is cured, provided
|
|
357
|
+
it is cured within 30 days of Your discovery of the
|
|
358
|
+
violation; or
|
|
359
|
+
|
|
360
|
+
2. upon express reinstatement by the Licensor.
|
|
361
|
+
|
|
362
|
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
|
363
|
+
right the Licensor may have to seek remedies for Your violations
|
|
364
|
+
of this Public License.
|
|
365
|
+
|
|
366
|
+
c. For the avoidance of doubt, the Licensor may also offer the
|
|
367
|
+
Licensed Material under separate terms or conditions or stop
|
|
368
|
+
distributing the Licensed Material at any time; however, doing so
|
|
369
|
+
will not terminate this Public License.
|
|
370
|
+
|
|
371
|
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
|
372
|
+
License.
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
Section 7 -- Other Terms and Conditions.
|
|
376
|
+
|
|
377
|
+
a. The Licensor shall not be bound by any additional or different
|
|
378
|
+
terms or conditions communicated by You unless expressly agreed.
|
|
379
|
+
|
|
380
|
+
b. Any arrangements, understandings, or agreements regarding the
|
|
381
|
+
Licensed Material not stated herein are separate from and
|
|
382
|
+
independent of the terms and conditions of this Public License.
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
Section 8 -- Interpretation.
|
|
386
|
+
|
|
387
|
+
a. For the avoidance of doubt, this Public License does not, and
|
|
388
|
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
|
389
|
+
conditions on any use of the Licensed Material that could lawfully
|
|
390
|
+
be made without permission under this Public License.
|
|
391
|
+
|
|
392
|
+
b. To the extent possible, if any provision of this Public License is
|
|
393
|
+
deemed unenforceable, it shall be automatically reformed to the
|
|
394
|
+
minimum extent necessary to make it enforceable. If the provision
|
|
395
|
+
cannot be reformed, it shall be severed from this Public License
|
|
396
|
+
without affecting the enforceability of the remaining terms and
|
|
397
|
+
conditions.
|
|
398
|
+
|
|
399
|
+
c. No term or condition of this Public License will be waived and no
|
|
400
|
+
failure to comply consented to unless expressly agreed to by the
|
|
401
|
+
Licensor.
|
|
402
|
+
|
|
403
|
+
d. Nothing in this Public License constitutes or may be interpreted
|
|
404
|
+
as a limitation upon, or waiver of, any privileges and immunities
|
|
405
|
+
that apply to the Licensor or You, including from the legal
|
|
406
|
+
processes of any jurisdiction or authority.
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
=======================================================================
|
|
410
|
+
|
|
411
|
+
Creative Commons is not a party to its public
|
|
412
|
+
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
|
413
|
+
its public licenses to material it publishes and in those instances
|
|
414
|
+
will be considered the “Licensor.” The text of the Creative Commons
|
|
415
|
+
public licenses is dedicated to the public domain under the CC0 Public
|
|
416
|
+
Domain Dedication. Except for the limited purpose of indicating that
|
|
417
|
+
material is shared under a Creative Commons public license or as
|
|
418
|
+
otherwise permitted by the Creative Commons policies published at
|
|
419
|
+
creativecommons.org/policies, Creative Commons does not authorize the
|
|
420
|
+
use of the trademark "Creative Commons" or any other trademark or logo
|
|
421
|
+
of Creative Commons without its prior written consent including,
|
|
422
|
+
without limitation, in connection with any unauthorized modifications
|
|
423
|
+
to any of its public licenses or any other arrangements,
|
|
424
|
+
understandings, or agreements concerning use of licensed material. For
|
|
425
|
+
the avoidance of doubt, this paragraph does not form part of the
|
|
426
|
+
public licenses.
|
|
427
|
+
|
|
428
|
+
Creative Commons may be contacted at creativecommons.org.
|
|
429
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,98 @@
|
|
|
1
|
-
#
|
|
1
|
+
# logic-atlas
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Interactive structural causal models and a dataset of philosophical causation and decision cases.
|
|
4
|
+
|
|
5
|
+
[**Live demo**][demo] · [Component explorer][explorer] · [npm][npm]
|
|
6
|
+
|
|
7
|
+
## What it is
|
|
8
|
+
|
|
9
|
+
- A causal-model engine that solves structural equations, computes interventions and counterfactuals, and checks actual causation.
|
|
10
|
+
- React components for embedding interactive causal graphs or building and editing models.
|
|
11
|
+
- A bundled case dataset with stories, models, verdicts, and sources.
|
|
12
|
+
- Modal-logic figures (Kripke models, frame conditions, spheres) for a modal-logic lesson series.
|
|
13
|
+
- A Traditional Chinese (`zh-TW`) and English (`en`) interface and bilingual case text.
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
pnpm add logic-atlas react react-dom
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
For equations, add `katex` to the app and load `katex/dist/katex.min.css` once if the site does not already load it.
|
|
22
|
+
|
|
23
|
+
With React configured in Astro, embed a bundled case in MDX:
|
|
24
|
+
|
|
25
|
+
```mdx
|
|
26
|
+
import { CasePage } from 'logic-atlas/causal'
|
|
27
|
+
import 'logic-atlas/causal/style.css'
|
|
28
|
+
|
|
29
|
+
<CasePage client:visible caseId="rock-throwing" locale="en" />
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Entries
|
|
33
|
+
|
|
34
|
+
There is no root export: choose `logic-atlas/causal` or `logic-atlas/modal` explicitly. `logic-atlas/set` is reserved, not published.
|
|
35
|
+
|
|
36
|
+
| Import | Contents |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| `logic-atlas/causal` | React components: `CasePage`, `CausalPlayground`, `ConservativeExtension`, `IdentifyPanel`, `ModelEditor`, `ProbabilityPanel`, `WorldLanes`, `Supplement`, `CiteBlock`; `LocaleProvider`; `preloadCase` |
|
|
39
|
+
| `logic-atlas/causal/playground` | `CausalPlayground`, `preloadCase` |
|
|
40
|
+
| `logic-atlas/causal/probability` | `ProbabilityPanel`, `preloadCase` |
|
|
41
|
+
| `logic-atlas/causal/identify` | `IdentifyPanel`, `preloadCase` |
|
|
42
|
+
| `logic-atlas/causal/lanes` | `WorldLanes`, `preloadCase` |
|
|
43
|
+
| `logic-atlas/causal/extension` | `ConservativeExtension`, `preloadCase` |
|
|
44
|
+
| `logic-atlas/causal/case` | `CasePage`, `preloadCase` |
|
|
45
|
+
| `logic-atlas/causal/editor` | `ModelEditor` (it lists every case, so it carries the whole dataset) |
|
|
46
|
+
| `logic-atlas/causal/cite`, `logic-atlas/causal/supplement`, `logic-atlas/causal/i18n` | `CiteBlock`; `Supplement`; `LocaleProvider`, `DEFAULT_LOCALE`, `LANGUAGE_NAMES` |
|
|
47
|
+
| `logic-atlas/causal/engine` | The causal-model engine |
|
|
48
|
+
| `logic-atlas/causal/data` | The bundled cases: `listCases`, `getCase`, `caseIds`, `loadCase`, the schemas; model documents: `caseToDoc`, `docToCase`, `parseModelJson`, `encodeShare`, `decodeShare`, `sameModel` |
|
|
49
|
+
| `logic-atlas/modal` | Modal-logic figures: `IntensionTable`, `KripkeView`, `FrameConditions`, `StrictImplication`, `TcsCheck`, `SphereView`, `SurgeryVsSimilarity`; `parseModalJson`; the modal engine (see [Modal logic figures](docs/components.md#modal-logic-figures)) |
|
|
50
|
+
| `logic-atlas/causal/style.css` | Styles for the components; import it once |
|
|
51
|
+
| `logic-atlas/modal/style.css` | Styles for the modal figures, loaded with `style.css` |
|
|
52
|
+
|
|
53
|
+
## Documentation
|
|
54
|
+
|
|
55
|
+
- [Components and API](docs/components.md): server rendering, case loading, and component props.
|
|
56
|
+
- [Changelog](CHANGELOG.md): changes by release.
|
|
57
|
+
|
|
58
|
+
## Development
|
|
59
|
+
|
|
60
|
+
- `pnpm dev`: run the demo site locally.
|
|
61
|
+
- `pnpm typecheck`, `pnpm test`, `pnpm lint`: check types, run tests, and lint the code.
|
|
62
|
+
- `pnpm build`: build the demo site into `dist-demo/`.
|
|
63
|
+
- `pnpm build:lib`: build the library into `dist/` and run `pnpm check:dist`.
|
|
64
|
+
- `pnpm check:dist`: check package size budgets and server rendering.
|
|
65
|
+
|
|
66
|
+
## Citation
|
|
67
|
+
|
|
68
|
+
Please cite logic-atlas when using it for research or teaching.
|
|
69
|
+
The citation is also available in [CITATION.cff](CITATION.cff) and the `CiteBlock` component.
|
|
70
|
+
|
|
71
|
+
> 洪偉(Wei Hung)(2026)。logic-atlas(0.25.0 版)。https://github.com/wayne930242/logic-atlas
|
|
72
|
+
|
|
73
|
+
> Hung, W. (2026). logic-atlas (Version 0.25.0) [Software and dataset]. https://github.com/wayne930242/logic-atlas
|
|
74
|
+
|
|
75
|
+
```bibtex
|
|
76
|
+
@software{hung_causal_atlas_2026,
|
|
77
|
+
author = {Hung, Wei},
|
|
78
|
+
title = {logic-atlas},
|
|
79
|
+
year = {2026},
|
|
80
|
+
version = {0.25.0},
|
|
81
|
+
url = {https://github.com/wayne930242/logic-atlas},
|
|
82
|
+
note = {Code: MIT; data and teaching text: CC BY 4.0}
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## License
|
|
87
|
+
|
|
88
|
+
- Code: [MIT](LICENSE), copyright Wei Hung (洪偉).
|
|
89
|
+
- Case data (`src/data/cases/`) and teaching text: [CC BY 4.0](LICENSE-DATA), including when bundled in `dist/*.js`.
|
|
90
|
+
When reusing either, credit 洪偉(Wei Hung) and cite the source.
|
|
91
|
+
- `package.json` declares `MIT AND CC-BY-4.0`.
|
|
92
|
+
- Most cases are adapted from published papers, books, court decisions and news reports, which each case lists in its `sources`.
|
|
93
|
+
Those works belong to their authors; CC BY 4.0 covers only this dataset's own wording, models and teaching text.
|
|
94
|
+
When reusing a case, credit its original sources as well.
|
|
95
|
+
|
|
96
|
+
[demo]: https://wayne930242.github.io/logic-atlas/
|
|
97
|
+
[explorer]: https://wayne930242.github.io/logic-atlas/#/explorer
|
|
98
|
+
[npm]: https://www.npmjs.com/package/logic-atlas
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case-preload.browser.js","names":["preloadedCaseFiles"],"sources":["../src/data/case-preload-browser.ts"],"sourcesContent":["// The browser target of `#case-preload`: nothing is preloaded, each case loads on demand (case-store.ts).\nexport const preloadedCaseFiles: Readonly<Record<string, unknown>> | undefined = undefined\n"],"mappings":";AACA,IAAaA,IAAoE,KAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as preloadedCaseFiles } from "./chunks/cases-dHdtbyLY.js";
|
package/dist/case.js
ADDED