logic-atlas 0.27.0 → 0.28.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 +2 -2
- package/README.md +12 -3
- package/dist/case-preload.node.js +1 -1
- package/dist/case.js +2 -2
- package/dist/cases/{billy-suzy-early-preemption-CRfOz7Bt.js → billy-suzy-early-preemption-VMIzpY1n.js} +6 -6
- package/dist/cases/{billy-suzy-early-preemption-CRfOz7Bt.js.map → billy-suzy-early-preemption-VMIzpY1n.js.map} +1 -1
- package/dist/cases/{billy-suzy-overdetermination-B2ZuwqYR.js → billy-suzy-overdetermination-DoLzBeAz.js} +7 -7
- package/dist/cases/{billy-suzy-overdetermination-B2ZuwqYR.js.map → billy-suzy-overdetermination-DoLzBeAz.js.map} +1 -1
- package/dist/cases/{bodyguard-omission-BElbBkSw.js → bodyguard-omission-CN8QsSEB.js} +5 -5
- package/dist/cases/{bodyguard-omission-BElbBkSw.js.map → bodyguard-omission-CN8QsSEB.js.map} +1 -1
- package/dist/cases/{bogus-prevention-DuWQ6iVk.js → bogus-prevention-DiKPp-a5.js} +4 -4
- package/dist/cases/{bogus-prevention-DuWQ6iVk.js.map → bogus-prevention-DiKPp-a5.js.map} +1 -1
- package/dist/cases/{cable-cut-three-scenarios-Ddthb0un.js → cable-cut-three-scenarios-CW-zKG1G.js} +5 -5
- package/dist/cases/{cable-cut-three-scenarios-Ddthb0un.js.map → cable-cut-three-scenarios-CW-zKG1G.js.map} +1 -1
- package/dist/cases/{double-prevention-bomber-PvPhPQ2s.js → double-prevention-bomber-C7uLwNXo.js} +5 -5
- package/dist/cases/{double-prevention-bomber-PvPhPQ2s.js.map → double-prevention-bomber-C7uLwNXo.js.map} +1 -1
- package/dist/cases/{farmer-pesticide-barrel-doctor-cMLTNJp3.js → farmer-pesticide-barrel-doctor-CaU8E3En.js} +5 -5
- package/dist/cases/{farmer-pesticide-barrel-doctor-cMLTNJp3.js.map → farmer-pesticide-barrel-doctor-CaU8E3En.js.map} +1 -1
- package/dist/cases/{firing-squad-D4Yp8GZ8.js → firing-squad-CQ1d4kmG.js} +4 -4
- package/dist/cases/{firing-squad-D4Yp8GZ8.js.map → firing-squad-CQ1d4kmG.js.map} +1 -1
- package/dist/cases/{fishing-port-joss-paper-TbZhNtht.js → fishing-port-joss-paper-C8XEFRqd.js} +5 -5
- package/dist/cases/{fishing-port-joss-paper-TbZhNtht.js.map → fishing-port-joss-paper-C8XEFRqd.js.map} +1 -1
- package/dist/cases/{forest-fire-conjunctive-ulNESjJ5.js → forest-fire-conjunctive-ByJFxr3e.js} +5 -5
- package/dist/cases/{forest-fire-conjunctive-ulNESjJ5.js.map → forest-fire-conjunctive-ByJFxr3e.js.map} +1 -1
- package/dist/cases/{forest-fire-disjunctive-CGd1W8od.js → forest-fire-disjunctive-vKQTGAI5.js} +5 -5
- package/dist/cases/{forest-fire-disjunctive-CGd1W8od.js.map → forest-fire-disjunctive-vKQTGAI5.js.map} +1 -1
- package/dist/cases/{forgetful-drunk-gardener-cZvuR4Gu.js → forgetful-drunk-gardener-CSA-WgBo.js} +6 -6
- package/dist/cases/{forgetful-drunk-gardener-cZvuR4Gu.js.map → forgetful-drunk-gardener-CSA-WgBo.js.map} +1 -1
- package/dist/cases/{frankfurt-jones-black-BAriyrst.js → frankfurt-jones-black-DjMof3iS.js} +6 -6
- package/dist/cases/{frankfurt-jones-black-BAriyrst.js.map → frankfurt-jones-black-DjMof3iS.js.map} +1 -1
- package/dist/cases/{frankfurt-style-omission-fsoc-B9ml6z0U.js → frankfurt-style-omission-fsoc-BJ304WKN.js} +5 -5
- package/dist/cases/{frankfurt-style-omission-fsoc-B9ml6z0U.js.map → frankfurt-style-omission-fsoc-BJ304WKN.js.map} +1 -1
- package/dist/cases/{gardener-queen-D_G9qm3z.js → gardener-queen-ItlN_OGG.js} +5 -5
- package/dist/cases/{gardener-queen-D_G9qm3z.js.map → gardener-queen-ItlN_OGG.js.map} +1 -1
- package/dist/cases/{half-poison-twice-CF1ytMLh.js → half-poison-twice-CGCLQrmI.js} +4 -4
- package/dist/cases/{half-poison-twice-CF1ytMLh.js.map → half-poison-twice-CGCLQrmI.js.map} +1 -1
- package/dist/cases/{harassment-and-dress-CsAP591f.js → harassment-and-dress-Yk0Jbv30.js} +3 -3
- package/dist/cases/{harassment-and-dress-CsAP591f.js.map → harassment-and-dress-Yk0Jbv30.js.map} +1 -1
- package/dist/cases/{hit-and-abandon-9_rV57bi.js → hit-and-abandon-Z-Hz1vkC.js} +7 -7
- package/dist/cases/{hit-and-abandon-9_rV57bi.js.map → hit-and-abandon-Z-Hz1vkC.js.map} +1 -1
- package/dist/cases/{india-famine-D2Nrut-V.js → india-famine-rJzNppu5.js} +5 -5
- package/dist/cases/{india-famine-D2Nrut-V.js.map → india-famine-rJzNppu5.js.map} +1 -1
- package/dist/cases/{intern-doctor-pharmacist-Dc1snaQa.js → intern-doctor-pharmacist-RTjMrdU4.js} +5 -5
- package/dist/cases/{intern-doctor-pharmacist-Dc1snaQa.js.map → intern-doctor-pharmacist-RTjMrdU4.js.map} +1 -1
- package/dist/cases/{murder-lesion-yTnWn4To.js → murder-lesion-B7NjxE9w.js} +9 -9
- package/dist/cases/{murder-lesion-yTnWn4To.js.map → murder-lesion-B7NjxE9w.js.map} +1 -1
- package/dist/cases/{newcomb-Cl1gd6uf.js → newcomb-NY0Rx28u.js} +5 -5
- package/dist/cases/{newcomb-Cl1gd6uf.js.map → newcomb-NY0Rx28u.js.map} +1 -1
- package/dist/cases/{palsgraf-NfvM1K9U.js → palsgraf-_7Z1FMjh.js} +4 -4
- package/dist/cases/{palsgraf-NfvM1K9U.js.map → palsgraf-_7Z1FMjh.js.map} +1 -1
- package/dist/cases/{pen-case-both-permitted-BNqPBJct.js → pen-case-both-permitted-CoIRwdKp.js} +3 -3
- package/dist/cases/{pen-case-both-permitted-BNqPBJct.js.map → pen-case-both-permitted-CoIRwdKp.js.map} +1 -1
- package/dist/cases/{pen-case-professor-assistant-CVQnSN5y.js → pen-case-professor-assistant-Ctee0F13.js} +3 -3
- package/dist/cases/{pen-case-professor-assistant-CVQnSN5y.js.map → pen-case-professor-assistant-Ctee0F13.js.map} +1 -1
- package/dist/cases/{pen-fiasco-funding-loss-DgGrOlqy.js → pen-fiasco-funding-loss-CLkFPBlt.js} +5 -5
- package/dist/cases/{pen-fiasco-funding-loss-DgGrOlqy.js.map → pen-fiasco-funding-loss-CLkFPBlt.js.map} +1 -1
- package/dist/cases/{penned-in-sharks-BlHMXii-.js → penned-in-sharks-D8TKXF4a.js} +4 -4
- package/dist/cases/{penned-in-sharks-BlHMXii-.js.map → penned-in-sharks-D8TKXF4a.js.map} +1 -1
- package/dist/cases/{planted-sharks-D6mI-GlJ.js → planted-sharks-B8xKu9ND.js} +3 -3
- package/dist/cases/{planted-sharks-D6mI-GlJ.js.map → planted-sharks-B8xKu9ND.js.map} +1 -1
- package/dist/cases/{prince-of-wales-pancakes-DLaLe7aZ.js → prince-of-wales-pancakes-BCdorj3d.js} +5 -5
- package/dist/cases/{prince-of-wales-pancakes-DLaLe7aZ.js.map → prince-of-wales-pancakes-BCdorj3d.js.map} +1 -1
- package/dist/cases/{psychopath-button-C0zEz5cq.js → psychopath-button-BHCfQc-X.js} +5 -5
- package/dist/cases/{psychopath-button-C0zEz5cq.js.map → psychopath-button-BHCfQc-X.js.map} +1 -1
- package/dist/cases/{red-light-collision-DLwpoJpK.js → red-light-collision-BUXK1_UY.js} +12 -12
- package/dist/cases/{red-light-collision-DLwpoJpK.js.map → red-light-collision-BUXK1_UY.js.map} +1 -1
- package/dist/cases/{rental-car-double-omission-ClAcUXpU.js → rental-car-double-omission-CHEQ_rIR.js} +9 -9
- package/dist/cases/{rental-car-double-omission-ClAcUXpU.js.map → rental-car-double-omission-CHEQ_rIR.js.map} +1 -1
- package/dist/cases/{rock-throwing-b9OWOyAi.js → rock-throwing-DsQv5Kpy.js} +3 -3
- package/dist/cases/{rock-throwing-b9OWOyAi.js.map → rock-throwing-DsQv5Kpy.js.map} +1 -1
- package/dist/cases/{school-lunch-poisoning-BphWQpQm.js → school-lunch-poisoning-DFas2ts3.js} +4 -4
- package/dist/cases/{school-lunch-poisoning-BphWQpQm.js.map → school-lunch-poisoning-DFas2ts3.js.map} +1 -1
- package/dist/cases/{sharks-Cwd6PSFD.js → sharks-CtuoEhjg.js} +5 -5
- package/dist/cases/{sharks-Cwd6PSFD.js.map → sharks-CtuoEhjg.js.map} +1 -1
- package/dist/cases/{smoking-lesion-DTJJDKMu.js → smoking-lesion-DZUES09g.js} +4 -4
- package/dist/cases/{smoking-lesion-DTJJDKMu.js.map → smoking-lesion-DZUES09g.js.map} +1 -1
- package/dist/cases/{snakebite-doctor-entGsPZe.js → snakebite-doctor-Cg5_kKNT.js} +4 -4
- package/dist/cases/{snakebite-doctor-entGsPZe.js.map → snakebite-doctor-Cg5_kKNT.js.map} +1 -1
- package/dist/cases/{styrofoam-fire-B86b_qDD.js → styrofoam-fire-DAwmSPQG.js} +4 -4
- package/dist/cases/{styrofoam-fire-B86b_qDD.js.map → styrofoam-fire-DAwmSPQG.js.map} +1 -1
- package/dist/cases/{summers-v-tice-7qnTEtJs.js → summers-v-tice-CwytFrog.js} +4 -4
- package/dist/cases/{summers-v-tice-7qnTEtJs.js.map → summers-v-tice-CwytFrog.js.map} +1 -1
- package/dist/cases/{taroko-derailment-2021-FgwyGqHj.js → taroko-derailment-2021-DM81_snE.js} +5 -5
- package/dist/cases/{taroko-derailment-2021-FgwyGqHj.js.map → taroko-derailment-2021-DM81_snE.js.map} +1 -1
- package/dist/cases/{train-switching-DolPBKWM.js → train-switching-CkdcZaFU.js} +5 -5
- package/dist/cases/{train-switching-DolPBKWM.js.map → train-switching-CkdcZaFU.js.map} +1 -1
- package/dist/cases/{trumping-merlin-morgana-u2OmSCY2.js → trumping-merlin-morgana-CDdsbYUt.js} +5 -5
- package/dist/cases/{trumping-merlin-morgana-u2OmSCY2.js.map → trumping-merlin-morgana-CDdsbYUt.js.map} +1 -1
- package/dist/cases/{voting-11-voters-NQUw6ak4.js → voting-11-voters-CbyuCjdx.js} +4 -4
- package/dist/cases/{voting-11-voters-NQUw6ak4.js.map → voting-11-voters-CbyuCjdx.js.map} +1 -1
- package/dist/cases/{xi-antidote-Ciuul3cR.js → xi-antidote-Dl9SHP_s.js} +5 -5
- package/dist/cases/{xi-antidote-Ciuul3cR.js.map → xi-antidote-Dl9SHP_s.js.map} +1 -1
- package/dist/cases/{yard-vs-pitch-dodge-BQVdnACx.js → yard-vs-pitch-dodge-WH2MpQ9z.js} +7 -7
- package/dist/cases/{yard-vs-pitch-dodge-BQVdnACx.js.map → yard-vs-pitch-dodge-WH2MpQ9z.js.map} +1 -1
- package/dist/chunks/{CasePage-D9w8opn_.js → CasePage-DEwqO60i.js} +11 -11
- package/dist/chunks/{CasePage-D9w8opn_.js.map → CasePage-DEwqO60i.js.map} +1 -1
- package/dist/chunks/{CausalPlayground-DAItu6zY.js → CausalPlayground-DdQzYdty.js} +13 -13
- package/dist/chunks/{CausalPlayground-DAItu6zY.js.map → CausalPlayground-DdQzYdty.js.map} +1 -1
- package/dist/chunks/{CiteBlock-CxIS70aQ.js → CiteBlock-Dyoxi5xH.js} +4 -4
- package/dist/chunks/{CiteBlock-CxIS70aQ.js.map → CiteBlock-Dyoxi5xH.js.map} +1 -1
- package/dist/chunks/{ConservativeExtension-Cofe92ak.js → ConservativeExtension-DfWICJpA.js} +7 -7
- package/dist/chunks/{ConservativeExtension-Cofe92ak.js.map → ConservativeExtension-DfWICJpA.js.map} +1 -1
- package/dist/chunks/{ExpectedUtility-DtgptRz5.js → ExpectedUtility-CQpxO_12.js} +2 -2
- package/dist/chunks/{ExpectedUtility-DtgptRz5.js.map → ExpectedUtility-CQpxO_12.js.map} +1 -1
- package/dist/chunks/{ExportMenu-Bku7BhiT.js → ExportMenu-BfJpW1GU.js} +6 -6
- package/dist/chunks/{ExportMenu-Bku7BhiT.js.map → ExportMenu-BfJpW1GU.js.map} +1 -1
- package/dist/chunks/{FigureTabs-Dl3RgQQa.js → FigureTabs-BeRdG4gw.js} +4 -4
- package/dist/chunks/{FigureTabs-Dl3RgQQa.js.map → FigureTabs-BeRdG4gw.js.map} +1 -1
- package/dist/chunks/{GraphBox-K7ziPIVx.js → GraphBox-BrZcffUQ.js} +8 -8
- package/dist/chunks/{GraphBox-K7ziPIVx.js.map → GraphBox-BrZcffUQ.js.map} +1 -1
- package/dist/chunks/{IdentifyPanel-DNFM0h2W.js → IdentifyPanel-BJuWlA_m.js} +8 -8
- package/dist/chunks/{IdentifyPanel-DNFM0h2W.js.map → IdentifyPanel-BJuWlA_m.js.map} +1 -1
- package/dist/chunks/{ModelEditor-DskhGLjq.js → ModelEditor-GIpyJVnY.js} +9 -9
- package/dist/chunks/{ModelEditor-DskhGLjq.js.map → ModelEditor-GIpyJVnY.js.map} +1 -1
- package/dist/chunks/{ProbabilityPanel-7YIOtAmh.js → ProbabilityPanel-CEwVYKlE.js} +11 -11
- package/dist/chunks/{ProbabilityPanel-7YIOtAmh.js.map → ProbabilityPanel-CEwVYKlE.js.map} +1 -1
- package/dist/chunks/{RulesPanel-BXh_JKrO.js → RulesPanel-728s_fj5.js} +7 -7
- package/dist/chunks/{RulesPanel-BXh_JKrO.js.map → RulesPanel-728s_fj5.js.map} +1 -1
- package/dist/chunks/{SignalGraph-CWPf_sG8.js → SignalGraph-lk-qJzvX.js} +4 -4
- package/dist/chunks/{SignalGraph-CWPf_sG8.js.map → SignalGraph-lk-qJzvX.js.map} +1 -1
- package/dist/chunks/{SliderList-DmDURTeF.js → SliderList-BBGoo3ht.js} +5 -5
- package/dist/chunks/{SliderList-DmDURTeF.js.map → SliderList-BBGoo3ht.js.map} +1 -1
- package/dist/chunks/{Story-BaEwzLZ9.js → Story-wOKV92ch.js} +3 -3
- package/dist/chunks/{Story-BaEwzLZ9.js.map → Story-wOKV92ch.js.map} +1 -1
- package/dist/chunks/{Supplement-DPsflADp.js → Supplement-PjboAohM.js} +3 -3
- package/dist/chunks/{Supplement-DPsflADp.js.map → Supplement-PjboAohM.js.map} +1 -1
- package/dist/chunks/{WorldLanes-C6xXmN-Y.js → WorldLanes-D6igoh5O.js} +7 -7
- package/dist/chunks/{WorldLanes-C6xXmN-Y.js.map → WorldLanes-D6igoh5O.js.map} +1 -1
- package/dist/chunks/cases-BKdIGCvu.js +96 -0
- package/dist/chunks/{cases-dHdtbyLY.js.map → cases-BKdIGCvu.js.map} +1 -1
- package/dist/chunks/{cases-of-DpCMbUyl.js → cases-of-RC69Nnop.js} +2 -2
- package/dist/chunks/{cases-of-DpCMbUyl.js.map → cases-of-RC69Nnop.js.map} +1 -1
- package/dist/chunks/{cite-qX7YWepK.js → cite-pzfVBLCy.js} +3 -3
- package/dist/chunks/{cite-qX7YWepK.js.map → cite-pzfVBLCy.js.map} +1 -1
- package/dist/chunks/{doc-case-YauWsu0F.js → doc-case-MXrxY2zP.js} +3 -3
- package/dist/chunks/{doc-case-YauWsu0F.js.map → doc-case-MXrxY2zP.js.map} +1 -1
- package/dist/chunks/{export-image-DRX4_diW.js → export-image-C5hq83bR.js} +5 -5
- package/dist/chunks/{export-image-DRX4_diW.js.map → export-image-C5hq83bR.js.map} +1 -1
- package/dist/chunks/{messages-ZiFmPfDY.js → messages-CesXO6XJ.js} +45 -45
- package/dist/chunks/messages-CesXO6XJ.js.map +1 -0
- package/dist/chunks/{model-doc-NQlyTjL9.js → model-doc-beFVLMDG.js} +46 -46
- package/dist/chunks/{model-doc-NQlyTjL9.js.map → model-doc-beFVLMDG.js.map} +1 -1
- package/dist/chunks/{parts-8cUsl2jJ.js → parts-DzneR5ak.js} +2 -2
- package/dist/chunks/{parts-8cUsl2jJ.js.map → parts-DzneR5ak.js.map} +1 -1
- package/dist/chunks/{url-state-DWdnkiC2.js → url-state-C4DxGvUy.js} +3 -3
- package/dist/chunks/{url-state-DWdnkiC2.js.map → url-state-C4DxGvUy.js.map} +1 -1
- package/dist/chunks/{use-node-menu-DJISBUAm.js → use-node-menu-aBrt_arL.js} +4 -4
- package/dist/chunks/{use-node-menu-DJISBUAm.js.map → use-node-menu-aBrt_arL.js.map} +1 -1
- package/dist/cite.js +1 -1
- package/dist/data.js +2 -2
- package/dist/editor.js +1 -1
- package/dist/extension.js +2 -2
- package/dist/ground-cases.js +1 -779
- package/dist/ground-cases.js.map +1 -1
- package/dist/ground-chunks/download-graph-2ohIYT24.js +2 -0
- package/dist/ground-chunks/download-graph-2ohIYT24.js.map +1 -0
- package/dist/ground-chunks/identity-element-C-XNXkKl.js +2 -0
- package/dist/ground-chunks/identity-element-C-XNXkKl.js.map +1 -0
- package/dist/ground-chunks/messages-DJDddmqv.js +2 -0
- package/dist/ground-chunks/messages-DJDddmqv.js.map +1 -0
- package/dist/ground-chunks/root-C202UeBo.js +2 -0
- package/dist/ground-chunks/root-C202UeBo.js.map +1 -0
- package/dist/ground-pairing-cases.js +2 -0
- package/dist/ground-pairing-cases.js.map +1 -0
- package/dist/ground-pairing.js +2 -0
- package/dist/ground-pairing.js.map +1 -0
- package/dist/ground-spacetime-cases.js +2 -0
- package/dist/ground-spacetime-cases.js.map +1 -0
- package/dist/ground-spacetime.js +2 -0
- package/dist/ground-spacetime.js.map +1 -0
- package/dist/ground-structure-cases.js +788 -0
- package/dist/ground-structure-cases.js.map +1 -0
- package/dist/ground-structure.css +2 -0
- package/dist/ground-structure.js +1390 -0
- package/dist/ground-structure.js.map +1 -0
- package/dist/ground.css +1 -1
- package/dist/ground.js +1 -4007
- package/dist/ground.js.map +1 -1
- package/dist/i18n.js +1 -1
- package/dist/identify.js +2 -2
- package/dist/index.js +11 -11
- package/dist/lanes.js +2 -2
- package/dist/modal.js.map +1 -1
- package/dist/playground.js +2 -2
- package/dist/probability.js +2 -2
- package/dist/supplement.js +1 -1
- package/dist/types/ground/cases/extensions/identity-element.d.ts +160 -0
- package/dist/types/ground/cases/index.d.ts +159 -0
- package/dist/types/ground/components/CorrespondenceView.d.ts +7 -0
- package/dist/types/ground/components/IdentityHypotheses.d.ts +8 -0
- package/dist/types/ground/components/ParticleArrangements.d.ts +7 -0
- package/dist/types/ground/components/ProposalTable.d.ts +7 -0
- package/dist/types/ground/components/parts.d.ts +1 -14
- package/dist/types/ground/components/root.d.ts +20 -0
- package/dist/types/ground/data/finite-figures.d.ts +21 -0
- package/dist/types/ground/data/schema.d.ts +11 -4
- package/dist/types/ground/engine/classifications.d.ts +20 -0
- package/dist/types/ground/engine/correspondence.d.ts +3 -0
- package/dist/types/ground/engine/errors.d.ts +4 -0
- package/dist/types/ground/engine/finite-problems.d.ts +45 -0
- package/dist/types/ground/engine/particle-orbits.d.ts +5 -0
- package/dist/types/ground/engine/proposals.d.ts +7 -4
- package/dist/types/ground/i18n/pairing.d.ts +99 -0
- package/dist/types/ground/i18n/spacetime.d.ts +12 -0
- package/dist/types/ground/i18n/zh.d.ts +4 -1
- package/dist/types/ground/pairing/cases/index.d.ts +4 -0
- package/dist/types/ground/pairing/index.d.ts +9 -0
- package/dist/types/ground/spacetime/LightConeView.d.ts +7 -0
- package/dist/types/ground/spacetime/cases/index.d.ts +107 -0
- package/dist/types/ground/spacetime/index.d.ts +5 -0
- package/dist/types/ground/spacetime/interval.d.ts +12 -0
- package/dist/types/ground/spacetime/model.d.ts +25 -0
- package/dist/types/ground/structure/cases/index.d.ts +7 -0
- package/dist/types/ground/structure/components/GroundStructureView.d.ts +15 -0
- package/dist/types/ground/structure/components/ParthoodView.d.ts +17 -0
- package/dist/types/ground/structure/components/frame.d.ts +48 -0
- package/dist/types/ground/structure/components/grounding-layout.d.ts +67 -0
- package/dist/types/ground/structure/components/hasse-layout.d.ts +43 -0
- package/dist/types/ground/structure/components/layered-layout.d.ts +31 -0
- package/dist/types/ground/structure/components/use-structure-doc.d.ts +15 -0
- package/dist/types/ground/structure/data/load.d.ts +39 -0
- package/dist/types/ground/structure/data/problems.d.ts +58 -0
- package/dist/types/ground/structure/data/schema.d.ts +240 -0
- package/dist/types/ground/structure/engine/grounding.d.ts +61 -0
- package/dist/types/ground/structure/engine/parthood.d.ts +46 -0
- package/dist/types/ground/structure/i18n/en.d.ts +3 -0
- package/dist/types/ground/structure/i18n/messages.d.ts +8 -0
- package/dist/types/ground/structure/i18n/zh.d.ts +64 -0
- package/dist/types/ground/structure/index.d.ts +19 -0
- package/dist/types/logic/relations.d.ts +35 -0
- package/package.json +28 -3
- package/dist/chunks/cases-dHdtbyLY.js +0 -96
- package/dist/chunks/messages-ZiFmPfDY.js.map +0 -1
- /package/dist/{ground-chunks → ground-structure-chunks}/download-graph-GJWXyNLP.js +0 -0
- /package/dist/{ground-chunks → ground-structure-chunks}/download-graph-GJWXyNLP.js.map +0 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Text in both languages, or one string for both. */
|
|
3
|
+
export declare const structureTextSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
4
|
+
'zh-TW': z.ZodString;
|
|
5
|
+
en: z.ZodString;
|
|
6
|
+
}, z.core.$strict>]>;
|
|
7
|
+
export declare const groundingStructureSchema: z.ZodObject<{
|
|
8
|
+
kind: z.ZodLiteral<"grounding-structure">;
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
11
|
+
'zh-TW': z.ZodString;
|
|
12
|
+
en: z.ZodString;
|
|
13
|
+
}, z.core.$strict>]>;
|
|
14
|
+
sources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
15
|
+
cite: z.ZodString;
|
|
16
|
+
pages: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strict>>>;
|
|
18
|
+
notation: z.ZodDefault<z.ZodEnum<{
|
|
19
|
+
arrows: "arrows";
|
|
20
|
+
lines: "lines";
|
|
21
|
+
}>>;
|
|
22
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
25
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
26
|
+
'zh-TW': z.ZodString;
|
|
27
|
+
en: z.ZodString;
|
|
28
|
+
}, z.core.$strict>]>>;
|
|
29
|
+
}, z.core.$strict>>;
|
|
30
|
+
tails: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
31
|
+
full: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
32
|
+
grounded: z.ZodString;
|
|
33
|
+
by: z.ZodArray<z.ZodString>;
|
|
34
|
+
}, z.core.$strict>>>;
|
|
35
|
+
partial: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
36
|
+
grounded: z.ZodString;
|
|
37
|
+
by: z.ZodString;
|
|
38
|
+
proper: z.ZodDefault<z.ZodBoolean>;
|
|
39
|
+
}, z.core.$strict>>>;
|
|
40
|
+
columns: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
41
|
+
rows: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
42
|
+
priorities: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
45
|
+
'zh-TW': z.ZodString;
|
|
46
|
+
en: z.ZodString;
|
|
47
|
+
}, z.core.$strict>]>;
|
|
48
|
+
style: z.ZodEnum<{
|
|
49
|
+
dashed: "dashed";
|
|
50
|
+
dotted: "dotted";
|
|
51
|
+
}>;
|
|
52
|
+
ties: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
|
|
53
|
+
}, z.core.$strict>>>;
|
|
54
|
+
expect: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
fullFoundations: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
descent: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
fundamental: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
}, z.core.$strict>>;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
declare const pairPresetSchema: z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
63
|
+
'zh-TW': z.ZodString;
|
|
64
|
+
en: z.ZodString;
|
|
65
|
+
}, z.core.$strict>]>;
|
|
66
|
+
pair: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
67
|
+
test: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
68
|
+
'zh-TW': z.ZodString;
|
|
69
|
+
en: z.ZodString;
|
|
70
|
+
}, z.core.$strict>]>>;
|
|
71
|
+
expect: z.ZodObject<{
|
|
72
|
+
verdict: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
explained: "explained";
|
|
74
|
+
"necessitation-conflict": "necessitation-conflict";
|
|
75
|
+
"no-ground": "no-ground";
|
|
76
|
+
}>>;
|
|
77
|
+
mutual: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
overlap: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
}, z.core.$strict>;
|
|
81
|
+
export declare const parthoodModelSchema: z.ZodObject<{
|
|
82
|
+
kind: z.ZodLiteral<"parthood-model">;
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
85
|
+
'zh-TW': z.ZodString;
|
|
86
|
+
en: z.ZodString;
|
|
87
|
+
}, z.core.$strict>]>;
|
|
88
|
+
sources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
89
|
+
cite: z.ZodString;
|
|
90
|
+
pages: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, z.core.$strict>>>;
|
|
92
|
+
individuals: z.ZodArray<z.ZodObject<{
|
|
93
|
+
id: z.ZodString;
|
|
94
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
95
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
96
|
+
'zh-TW': z.ZodString;
|
|
97
|
+
en: z.ZodString;
|
|
98
|
+
}, z.core.$strict>]>>;
|
|
99
|
+
}, z.core.$strict>>;
|
|
100
|
+
parts: z.ZodDefault<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
|
|
101
|
+
reflexive: z.ZodDefault<z.ZodBoolean>;
|
|
102
|
+
continues: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
103
|
+
columns: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
104
|
+
presets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
107
|
+
'zh-TW': z.ZodString;
|
|
108
|
+
en: z.ZodString;
|
|
109
|
+
}, z.core.$strict>]>;
|
|
110
|
+
pair: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
111
|
+
test: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
112
|
+
'zh-TW': z.ZodString;
|
|
113
|
+
en: z.ZodString;
|
|
114
|
+
}, z.core.$strict>]>>;
|
|
115
|
+
expect: z.ZodObject<{
|
|
116
|
+
verdict: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
explained: "explained";
|
|
118
|
+
"necessitation-conflict": "necessitation-conflict";
|
|
119
|
+
"no-ground": "no-ground";
|
|
120
|
+
}>>;
|
|
121
|
+
mutual: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
+
overlap: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
+
}, z.core.$strict>;
|
|
124
|
+
}, z.core.$strict>>>;
|
|
125
|
+
expect: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
antisymmetric: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
atoms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
128
|
+
}, z.core.$strict>>;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
export declare const structureCaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
131
|
+
kind: z.ZodLiteral<"grounding-structure">;
|
|
132
|
+
id: z.ZodString;
|
|
133
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
134
|
+
'zh-TW': z.ZodString;
|
|
135
|
+
en: z.ZodString;
|
|
136
|
+
}, z.core.$strict>]>;
|
|
137
|
+
sources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
138
|
+
cite: z.ZodString;
|
|
139
|
+
pages: z.ZodOptional<z.ZodString>;
|
|
140
|
+
}, z.core.$strict>>>;
|
|
141
|
+
notation: z.ZodDefault<z.ZodEnum<{
|
|
142
|
+
arrows: "arrows";
|
|
143
|
+
lines: "lines";
|
|
144
|
+
}>>;
|
|
145
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
146
|
+
id: z.ZodString;
|
|
147
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
148
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
149
|
+
'zh-TW': z.ZodString;
|
|
150
|
+
en: z.ZodString;
|
|
151
|
+
}, z.core.$strict>]>>;
|
|
152
|
+
}, z.core.$strict>>;
|
|
153
|
+
tails: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
154
|
+
full: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
155
|
+
grounded: z.ZodString;
|
|
156
|
+
by: z.ZodArray<z.ZodString>;
|
|
157
|
+
}, z.core.$strict>>>;
|
|
158
|
+
partial: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
159
|
+
grounded: z.ZodString;
|
|
160
|
+
by: z.ZodString;
|
|
161
|
+
proper: z.ZodDefault<z.ZodBoolean>;
|
|
162
|
+
}, z.core.$strict>>>;
|
|
163
|
+
columns: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
164
|
+
rows: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
165
|
+
priorities: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
166
|
+
id: z.ZodString;
|
|
167
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
168
|
+
'zh-TW': z.ZodString;
|
|
169
|
+
en: z.ZodString;
|
|
170
|
+
}, z.core.$strict>]>;
|
|
171
|
+
style: z.ZodEnum<{
|
|
172
|
+
dashed: "dashed";
|
|
173
|
+
dotted: "dotted";
|
|
174
|
+
}>;
|
|
175
|
+
ties: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
|
|
176
|
+
}, z.core.$strict>>>;
|
|
177
|
+
expect: z.ZodOptional<z.ZodObject<{
|
|
178
|
+
fullFoundations: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
+
descent: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
+
fundamental: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
181
|
+
}, z.core.$strict>>;
|
|
182
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
183
|
+
kind: z.ZodLiteral<"parthood-model">;
|
|
184
|
+
id: z.ZodString;
|
|
185
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
186
|
+
'zh-TW': z.ZodString;
|
|
187
|
+
en: z.ZodString;
|
|
188
|
+
}, z.core.$strict>]>;
|
|
189
|
+
sources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
190
|
+
cite: z.ZodString;
|
|
191
|
+
pages: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, z.core.$strict>>>;
|
|
193
|
+
individuals: z.ZodArray<z.ZodObject<{
|
|
194
|
+
id: z.ZodString;
|
|
195
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
196
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
197
|
+
'zh-TW': z.ZodString;
|
|
198
|
+
en: z.ZodString;
|
|
199
|
+
}, z.core.$strict>]>>;
|
|
200
|
+
}, z.core.$strict>>;
|
|
201
|
+
parts: z.ZodDefault<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
|
|
202
|
+
reflexive: z.ZodDefault<z.ZodBoolean>;
|
|
203
|
+
continues: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
204
|
+
columns: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
205
|
+
presets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
206
|
+
id: z.ZodString;
|
|
207
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
208
|
+
'zh-TW': z.ZodString;
|
|
209
|
+
en: z.ZodString;
|
|
210
|
+
}, z.core.$strict>]>;
|
|
211
|
+
pair: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
212
|
+
test: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
213
|
+
'zh-TW': z.ZodString;
|
|
214
|
+
en: z.ZodString;
|
|
215
|
+
}, z.core.$strict>]>>;
|
|
216
|
+
expect: z.ZodObject<{
|
|
217
|
+
verdict: z.ZodOptional<z.ZodEnum<{
|
|
218
|
+
explained: "explained";
|
|
219
|
+
"necessitation-conflict": "necessitation-conflict";
|
|
220
|
+
"no-ground": "no-ground";
|
|
221
|
+
}>>;
|
|
222
|
+
mutual: z.ZodOptional<z.ZodBoolean>;
|
|
223
|
+
overlap: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
}, z.core.$strict>;
|
|
225
|
+
}, z.core.$strict>>>;
|
|
226
|
+
expect: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
antisymmetric: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
+
atoms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
229
|
+
}, z.core.$strict>>;
|
|
230
|
+
}, z.core.$strict>], "kind">;
|
|
231
|
+
export type StructureText = z.infer<typeof structureTextSchema>;
|
|
232
|
+
export type GroundingStructureDoc = z.infer<typeof groundingStructureSchema>;
|
|
233
|
+
export type ParthoodModelDoc = z.infer<typeof parthoodModelSchema>;
|
|
234
|
+
export type StructureCaseDoc = z.infer<typeof structureCaseSchema>;
|
|
235
|
+
/** A document as written, before defaults are filled in. */
|
|
236
|
+
export type StructureCaseInput = z.input<typeof structureCaseSchema>;
|
|
237
|
+
export type GroundingStructureInput = z.input<typeof groundingStructureSchema>;
|
|
238
|
+
export type ParthoodModelInput = z.input<typeof parthoodModelSchema>;
|
|
239
|
+
export type PairPreset = z.infer<typeof pairPresetSchema>;
|
|
240
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grounding structures drawn as pictures (Dixon, "Infinite Descent", in Raven 2020, Fig. 16.2; Bevan,
|
|
3
|
+
* "Metaphysical Foundationalism", 2025, Figs 1–2): nodes, their full grounds (one node or several
|
|
4
|
+
* jointly) and partial grounds. An infinite remainder is a tail node; a tail listed among its own
|
|
5
|
+
* grounds stands for "each one is grounded by the next". Only what Full Cut and transitivity entail is
|
|
6
|
+
* assumed besides the listed grounds (Dixon's caption).
|
|
7
|
+
*
|
|
8
|
+
* Computed: the fundamental nodes, for each grounded node a full ground of fundamental nodes found by
|
|
9
|
+
* Full Cut (Dixon's Full Foundations; Bevan's parafoundationalism), and the longest descending chain
|
|
10
|
+
* into a grounded tail. Pure.
|
|
11
|
+
*/
|
|
12
|
+
export interface GroundingSpec {
|
|
13
|
+
/** The drawn nodes, in order. */
|
|
14
|
+
readonly nodes: readonly string[];
|
|
15
|
+
/** The tails (each an ellipsis for the rest of a sequence). */
|
|
16
|
+
readonly tails: readonly string[];
|
|
17
|
+
/** `grounded` is fully grounded by the nodes `by`, jointly. */
|
|
18
|
+
readonly full: readonly {
|
|
19
|
+
readonly grounded: string;
|
|
20
|
+
readonly by: readonly string[];
|
|
21
|
+
}[];
|
|
22
|
+
/** `grounded` is partially (with `proper`, properly partially) grounded by `by`. */
|
|
23
|
+
readonly partial: readonly {
|
|
24
|
+
readonly grounded: string;
|
|
25
|
+
readonly by: string;
|
|
26
|
+
readonly proper?: boolean;
|
|
27
|
+
}[];
|
|
28
|
+
}
|
|
29
|
+
export interface GroundingReport {
|
|
30
|
+
/** Nodes and tails with no ground at all, in order. */
|
|
31
|
+
readonly fundamental: readonly string[];
|
|
32
|
+
/** For each grounded node with one: a full ground of fundamental nodes only, reached by Full Cut. */
|
|
33
|
+
readonly foundations: Readonly<Record<string, readonly string[]>>;
|
|
34
|
+
/** Grounded nodes and tails without such a ground, in order. */
|
|
35
|
+
readonly unfounded: readonly string[];
|
|
36
|
+
/** Every grounded node has a full ground of fundamental nodes (Full Foundations). */
|
|
37
|
+
readonly fullFoundations: boolean;
|
|
38
|
+
/** The longest chain x₀ ≻ x₁ ≻ … that ends in a grounded tail (an infinite descent), or none. */
|
|
39
|
+
readonly descent?: readonly string[];
|
|
40
|
+
}
|
|
41
|
+
export type GroundingIssue = {
|
|
42
|
+
readonly code: 'ground-cycle';
|
|
43
|
+
readonly node: string;
|
|
44
|
+
} | {
|
|
45
|
+
readonly code: 'priority-direction';
|
|
46
|
+
readonly order: string;
|
|
47
|
+
readonly a: string;
|
|
48
|
+
readonly b: string;
|
|
49
|
+
};
|
|
50
|
+
/** `below(a, b)`: a partially grounds b, by the listed grounds and transitivity (tails' self-reference aside). */
|
|
51
|
+
export declare function partialGroundRelation(spec: GroundingSpec): (a: string, b: string) => boolean;
|
|
52
|
+
/**
|
|
53
|
+
* What makes the spec no grounding structure: a node that partially grounds itself (ground is
|
|
54
|
+
* irreflexive; a tail may list itself), and a tie of a priority order between two nodes one of which
|
|
55
|
+
* partially grounds the other (Bevan's Direction).
|
|
56
|
+
*/
|
|
57
|
+
export declare function groundingIssues(spec: GroundingSpec, priorities: readonly {
|
|
58
|
+
readonly id: string;
|
|
59
|
+
readonly ties: readonly (readonly [string, string])[];
|
|
60
|
+
}[]): GroundingIssue[];
|
|
61
|
+
export declare function analyzeGrounding(spec: GroundingSpec): GroundingReport;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { FiniteRelation, RelationCheck, RelationReduction } from '../../../logic/relations.js';
|
|
2
|
+
/**
|
|
3
|
+
* Finite models of parthood (Varzi, SEP "Mereology", §§2–3) and the parthood proposal for identity
|
|
4
|
+
* (Shumener, "Identity", in Raven 2020, pp. 15–17): if x = y, [x = y] is fully grounded in [Pxy], [Pyx];
|
|
5
|
+
* if x ≠ y, [x ≠ y] is grounded in [¬Pxy] or in [¬Pyx]. P is the listed parts read as transitive, and
|
|
6
|
+
* reflexive unless the model says otherwise. Computed: antisymmetry with its witness, the atoms (no
|
|
7
|
+
* part other than itself), the Hasse diagram's lines, and each pair's parthood and verdict. Pure.
|
|
8
|
+
*/
|
|
9
|
+
export interface ParthoodModel {
|
|
10
|
+
readonly individuals: readonly string[];
|
|
11
|
+
/** [x, y]: x is part of y. */
|
|
12
|
+
readonly parts: readonly (readonly [string, string])[];
|
|
13
|
+
readonly reflexive: boolean;
|
|
14
|
+
/** Individuals with more parts than drawn (an ellipsis under them). */
|
|
15
|
+
readonly continues: readonly string[];
|
|
16
|
+
}
|
|
17
|
+
/** The verdicts the parthood proposal can give. */
|
|
18
|
+
export declare const PARTHOOD_VERDICTS: readonly ["explained", "no-ground", "necessitation-conflict"];
|
|
19
|
+
export type ParthoodVerdict = (typeof PARTHOOD_VERDICTS)[number];
|
|
20
|
+
export interface ParthoodReport {
|
|
21
|
+
/** P: the parts, closed under transitivity (and reflexivity). */
|
|
22
|
+
readonly relation: FiniteRelation;
|
|
23
|
+
readonly antisymmetry: RelationCheck;
|
|
24
|
+
/** Individuals with no part other than themselves (a continuing individual never counts), in order. */
|
|
25
|
+
readonly atoms: readonly string[];
|
|
26
|
+
readonly reduction: RelationReduction;
|
|
27
|
+
}
|
|
28
|
+
export interface PairParthood {
|
|
29
|
+
/** a is part of b. */
|
|
30
|
+
readonly aInB: boolean;
|
|
31
|
+
readonly bInA: boolean;
|
|
32
|
+
/** Each is part of the other (for a name and itself: it is part of itself). */
|
|
33
|
+
readonly mutual: boolean;
|
|
34
|
+
/** The parts they share, in order. */
|
|
35
|
+
readonly shared: readonly string[];
|
|
36
|
+
readonly overlap: boolean;
|
|
37
|
+
/** The identity clause's ground holds: [Pab] and [Pba]. */
|
|
38
|
+
readonly identityClause: boolean;
|
|
39
|
+
/** The distinctness clause's ground holds: [¬Pab] or [¬Pba]. */
|
|
40
|
+
readonly distinctnessClause: boolean;
|
|
41
|
+
readonly verdict: ParthoodVerdict;
|
|
42
|
+
}
|
|
43
|
+
export declare function parthoodRelation(m: ParthoodModel): FiniteRelation;
|
|
44
|
+
export declare function analyzeParthood(m: ParthoodModel): ParthoodReport;
|
|
45
|
+
/** How a and b stand to each other, and the parthood proposal's verdict (necessitation on: a ground that holds settles the fact). */
|
|
46
|
+
export declare function parthoodPair(m: ParthoodModel, a: string, b: string): PairParthood;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Locale } from '../../../engine/types.js';
|
|
2
|
+
import type { StructureProblem } from '../data/problems.js';
|
|
3
|
+
import type { StructureMessages } from './zh.js';
|
|
4
|
+
/** The structure figures' text in Traditional Chinese (zh.ts, the default) and English (en.ts), by the surrounding locale. */
|
|
5
|
+
export type { StructureMessages };
|
|
6
|
+
export declare const STRUCTURE_MESSAGES: Readonly<Record<Locale, StructureMessages>>;
|
|
7
|
+
export declare function useStructureMessages(): StructureMessages;
|
|
8
|
+
export declare function structureProblemMessage(p: StructureProblem, t: StructureMessages): string;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { Locale } from '../../../engine/types.js';
|
|
2
|
+
import type { StructureProblemWording } from '../data/problems.js';
|
|
3
|
+
import type { ParthoodVerdict } from '../engine/parthood.js';
|
|
4
|
+
export declare const STRUCTURE_ZH: {
|
|
5
|
+
locale: Locale;
|
|
6
|
+
problems: StructureProblemWording;
|
|
7
|
+
docInvalid: string;
|
|
8
|
+
details: string;
|
|
9
|
+
download: string;
|
|
10
|
+
presetsHeading: string;
|
|
11
|
+
presetMismatch: string;
|
|
12
|
+
list: (xs: readonly string[]) => string;
|
|
13
|
+
none: string;
|
|
14
|
+
modes: {
|
|
15
|
+
grounding: string;
|
|
16
|
+
parthood: string;
|
|
17
|
+
};
|
|
18
|
+
grounding: {
|
|
19
|
+
figure: (n: number) => string;
|
|
20
|
+
question: string;
|
|
21
|
+
holds: string;
|
|
22
|
+
fails: string;
|
|
23
|
+
fundamental: string;
|
|
24
|
+
noFundamental: string;
|
|
25
|
+
unfounded: string;
|
|
26
|
+
descent: string;
|
|
27
|
+
noDescent: string;
|
|
28
|
+
finite: string;
|
|
29
|
+
legend: {
|
|
30
|
+
full: string;
|
|
31
|
+
partial: string;
|
|
32
|
+
proper: string;
|
|
33
|
+
box: string;
|
|
34
|
+
arrow: string;
|
|
35
|
+
};
|
|
36
|
+
priorities: string;
|
|
37
|
+
showPriority: (label: string) => string;
|
|
38
|
+
listedHeading: string;
|
|
39
|
+
cutHeading: string;
|
|
40
|
+
tail: string;
|
|
41
|
+
/** Between a node and the none text when Full Cut finds no fundamental ground for it. */
|
|
42
|
+
noCut: string;
|
|
43
|
+
};
|
|
44
|
+
parthood: {
|
|
45
|
+
figure: (n: number) => string;
|
|
46
|
+
selectIndividual: (name: string) => string;
|
|
47
|
+
question: (a: string, b: string, same: boolean) => string;
|
|
48
|
+
verdict: (v: ParthoodVerdict, same: boolean) => string;
|
|
49
|
+
relation: (a: string, b: string, aInB: boolean, bInA: boolean) => string;
|
|
50
|
+
self: (a: string, own: boolean) => string;
|
|
51
|
+
shared: string;
|
|
52
|
+
noShared: string;
|
|
53
|
+
antisymmetric: string;
|
|
54
|
+
notAntisymmetric: (a: string, b: string) => string;
|
|
55
|
+
atoms: string;
|
|
56
|
+
noAtoms: string;
|
|
57
|
+
legend: string;
|
|
58
|
+
continues: string;
|
|
59
|
+
partsHeading: string;
|
|
60
|
+
partsOf: (x: string, parts: string) => string;
|
|
61
|
+
linesHeading: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export type StructureMessages = typeof STRUCTURE_ZH;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type { GroundStructureViewProps } from './components/GroundStructureView.js';
|
|
2
|
+
export { GroundStructureView } from './components/GroundStructureView.js';
|
|
3
|
+
export type { ParthoodViewProps } from './components/ParthoodView.js';
|
|
4
|
+
export { ParthoodView } from './components/ParthoodView.js';
|
|
5
|
+
export type { StructureCommonProps, StructureDocInput } from './components/frame.js';
|
|
6
|
+
export type { Locale } from '../../components/i18n/messages.js';
|
|
7
|
+
export { DEFAULT_LOCALE, LANGUAGE_NAMES, LocaleProvider } from '../../components/i18n/messages.js';
|
|
8
|
+
export type { StructureImportResult, StructureKind, StructureMismatch } from './data/load.js';
|
|
9
|
+
export { MAX_STRUCTURE_DOC_CHARS, analyzeStructureGrounding, checkStructureDoc, checkStructureExpectations, groundingSpec, parseStructureJson, parthoodModel, structureText } from './data/load.js';
|
|
10
|
+
export type { StructureProblem, StructureProblemCode, StructureProblemParams } from './data/problems.js';
|
|
11
|
+
export { STRUCTURE_PROBLEMS_EN, structureProblemText } from './data/problems.js';
|
|
12
|
+
export type { GroundingStructureDoc, GroundingStructureInput, PairPreset, ParthoodModelDoc, ParthoodModelInput, StructureCaseDoc, StructureCaseInput, StructureText } from './data/schema.js';
|
|
13
|
+
export { groundingStructureSchema, parthoodModelSchema, structureCaseSchema } from './data/schema.js';
|
|
14
|
+
export type { GroundingIssue, GroundingReport, GroundingSpec } from './engine/grounding.js';
|
|
15
|
+
export { analyzeGrounding, groundingIssues, partialGroundRelation } from './engine/grounding.js';
|
|
16
|
+
export type { PairParthood, ParthoodModel, ParthoodReport, ParthoodVerdict } from './engine/parthood.js';
|
|
17
|
+
export { PARTHOOD_VERDICTS, analyzeParthood, parthoodPair, parthoodRelation } from './engine/parthood.js';
|
|
18
|
+
export type { FiniteRelation, RelationCheck, RelationProperty, RelationReduction } from '../../logic/relations.js';
|
|
19
|
+
export { checkAntisymmetry, checkRelation, transitiveClosure, transitiveReduction } from '../../logic/relations.js';
|
|
@@ -8,6 +8,24 @@ export interface FiniteRelation {
|
|
|
8
8
|
/** The pairs (a, b) with a R b. */
|
|
9
9
|
readonly pairs: readonly (readonly [string, string])[];
|
|
10
10
|
}
|
|
11
|
+
/** A typed relation between two finite concepts. The concepts can overlap. */
|
|
12
|
+
export interface Correspondence {
|
|
13
|
+
readonly left: readonly string[];
|
|
14
|
+
readonly right: readonly string[];
|
|
15
|
+
readonly pairs: readonly (readonly [string, string])[];
|
|
16
|
+
}
|
|
17
|
+
export interface PartnerIssue {
|
|
18
|
+
readonly side: 'left' | 'right';
|
|
19
|
+
readonly element: string;
|
|
20
|
+
readonly degree: number;
|
|
21
|
+
}
|
|
22
|
+
/** Functional and injective mean at most one partner; a bijection needs exactly one on each side. */
|
|
23
|
+
export declare function checkCorrespondence(r: Correspondence): {
|
|
24
|
+
functional: boolean;
|
|
25
|
+
injective: boolean;
|
|
26
|
+
bijection: boolean;
|
|
27
|
+
issues: PartnerIssue[];
|
|
28
|
+
};
|
|
11
29
|
/** A property's verdict: `witness` lists the elements that break it, in the order the property names them. */
|
|
12
30
|
export type RelationCheck = {
|
|
13
31
|
readonly holds: true;
|
|
@@ -25,3 +43,20 @@ export declare const RELATION_PROPERTIES: readonly RelationProperty[];
|
|
|
25
43
|
* The first witness in the element order is returned.
|
|
26
44
|
*/
|
|
27
45
|
export declare function checkRelation(r: FiniteRelation, property: RelationProperty): RelationCheck;
|
|
46
|
+
/** Whether `r` is antisymmetric; a failure names the first (x, y) in the element order with x ≠ y, x R y and y R x. */
|
|
47
|
+
export declare function checkAntisymmetry(r: FiniteRelation): RelationCheck;
|
|
48
|
+
/** The transitive closure of `r` (Warshall): its pairs row by row in the element order. */
|
|
49
|
+
export declare function transitiveClosure(r: FiniteRelation): FiniteRelation;
|
|
50
|
+
/** The lines of a Hasse diagram of `r`, read through its reflexive and transitive closure R*. */
|
|
51
|
+
export interface RelationReduction {
|
|
52
|
+
/**
|
|
53
|
+
* Pairs (a, b) with a below b: a R* b, not b R* a, and nothing strictly between them. Elements that
|
|
54
|
+
* are R*-related both ways count as one point; a cover of such a class links the members the
|
|
55
|
+
* input relates directly (else its first members).
|
|
56
|
+
*/
|
|
57
|
+
readonly covers: readonly (readonly [string, string])[];
|
|
58
|
+
/** Distinct elements related both ways (the failures of antisymmetry): each class as a path of consecutive members. */
|
|
59
|
+
readonly mutual: readonly (readonly [string, string])[];
|
|
60
|
+
}
|
|
61
|
+
/** The transitive reduction of `r`'s reflexive and transitive closure: what a Hasse diagram draws. */
|
|
62
|
+
export declare function transitiveReduction(r: FiniteRelation): RelationReduction;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "logic-atlas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "Interactive structural causal models and a dataset of philosophical causation and decision cases.",
|
|
5
5
|
"license": "MIT AND CC-BY-4.0",
|
|
6
6
|
"author": "洪偉 (Wei Hung)",
|
|
@@ -67,10 +67,34 @@
|
|
|
67
67
|
"types": "./dist/types/ground/index.d.ts",
|
|
68
68
|
"import": "./dist/ground.js"
|
|
69
69
|
},
|
|
70
|
+
"./ground/spacetime": {
|
|
71
|
+
"types": "./dist/types/ground/spacetime/index.d.ts",
|
|
72
|
+
"import": "./dist/ground-spacetime.js"
|
|
73
|
+
},
|
|
74
|
+
"./ground/spacetime/cases": {
|
|
75
|
+
"types": "./dist/types/ground/spacetime/cases/index.d.ts",
|
|
76
|
+
"import": "./dist/ground-spacetime-cases.js"
|
|
77
|
+
},
|
|
70
78
|
"./ground/cases": {
|
|
71
79
|
"types": "./dist/types/ground/cases/index.d.ts",
|
|
72
80
|
"import": "./dist/ground-cases.js"
|
|
73
81
|
},
|
|
82
|
+
"./ground/structure": {
|
|
83
|
+
"types": "./dist/types/ground/structure/index.d.ts",
|
|
84
|
+
"import": "./dist/ground-structure.js"
|
|
85
|
+
},
|
|
86
|
+
"./ground/structure/cases": {
|
|
87
|
+
"types": "./dist/types/ground/structure/cases/index.d.ts",
|
|
88
|
+
"import": "./dist/ground-structure-cases.js"
|
|
89
|
+
},
|
|
90
|
+
"./ground/pairing": {
|
|
91
|
+
"types": "./dist/types/ground/pairing/index.d.ts",
|
|
92
|
+
"import": "./dist/ground-pairing.js"
|
|
93
|
+
},
|
|
94
|
+
"./ground/pairing/cases": {
|
|
95
|
+
"types": "./dist/types/ground/pairing/cases/index.d.ts",
|
|
96
|
+
"import": "./dist/ground-pairing-cases.js"
|
|
97
|
+
},
|
|
74
98
|
"./causal/engine": {
|
|
75
99
|
"types": "./dist/types/engine/index.d.ts",
|
|
76
100
|
"import": "./dist/engine.js"
|
|
@@ -81,7 +105,8 @@
|
|
|
81
105
|
},
|
|
82
106
|
"./causal/style.css": "./dist/style.css",
|
|
83
107
|
"./modal/style.css": "./dist/modal.css",
|
|
84
|
-
"./ground/style.css": "./dist/ground.css"
|
|
108
|
+
"./ground/style.css": "./dist/ground.css",
|
|
109
|
+
"./ground/structure/style.css": "./dist/ground-structure.css"
|
|
85
110
|
},
|
|
86
111
|
"imports": {
|
|
87
112
|
"#case-preload": {
|
|
@@ -94,7 +119,7 @@
|
|
|
94
119
|
"typecheck": "tsc -b",
|
|
95
120
|
"test": "vitest run",
|
|
96
121
|
"build": "tsc -b && vite build",
|
|
97
|
-
"build:lib": "vite build -c vite.lib.config.ts && vite build -c vite.lib.modal.config.ts && vite build -c vite.lib.ground.config.ts && tsc -p tsconfig.lib.json && node scripts/fix-dts.mjs dist/types && pnpm check:dist",
|
|
122
|
+
"build:lib": "vite build -c vite.lib.config.ts && vite build -c vite.lib.modal.config.ts && vite build -c vite.lib.ground.config.ts && vite build -c vite.lib.ground-structure.config.ts && tsc -p tsconfig.lib.json && node scripts/fix-dts.mjs dist/types && pnpm check:dist",
|
|
98
123
|
"check:dist": "node scripts/check-size.mjs && node scripts/check-dist-ssr.mjs",
|
|
99
124
|
"lint": "oxlint",
|
|
100
125
|
"preview": "vite preview",
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../cases/billy-suzy-early-preemption-CRfOz7Bt.js";
|
|
2
|
-
import { t } from "../cases/billy-suzy-overdetermination-B2ZuwqYR.js";
|
|
3
|
-
import { t as n } from "../cases/bodyguard-omission-BElbBkSw.js";
|
|
4
|
-
import { t as r } from "../cases/bogus-prevention-DuWQ6iVk.js";
|
|
5
|
-
import { t as i } from "../cases/cable-cut-three-scenarios-Ddthb0un.js";
|
|
6
|
-
import { t as a } from "../cases/double-prevention-bomber-PvPhPQ2s.js";
|
|
7
|
-
import { t as o } from "../cases/farmer-pesticide-barrel-doctor-cMLTNJp3.js";
|
|
8
|
-
import { t as s } from "../cases/firing-squad-D4Yp8GZ8.js";
|
|
9
|
-
import { t as c } from "../cases/fishing-port-joss-paper-TbZhNtht.js";
|
|
10
|
-
import { t as l } from "../cases/forest-fire-conjunctive-ulNESjJ5.js";
|
|
11
|
-
import { t as u } from "../cases/forest-fire-disjunctive-CGd1W8od.js";
|
|
12
|
-
import { t as d } from "../cases/forgetful-drunk-gardener-cZvuR4Gu.js";
|
|
13
|
-
import { t as f } from "../cases/frankfurt-jones-black-BAriyrst.js";
|
|
14
|
-
import { t as p } from "../cases/frankfurt-style-omission-fsoc-B9ml6z0U.js";
|
|
15
|
-
import { t as m } from "../cases/gardener-queen-D_G9qm3z.js";
|
|
16
|
-
import { t as h } from "../cases/half-poison-twice-CF1ytMLh.js";
|
|
17
|
-
import { t as g } from "../cases/harassment-and-dress-CsAP591f.js";
|
|
18
|
-
import { t as _ } from "../cases/hit-and-abandon-9_rV57bi.js";
|
|
19
|
-
import { t as v } from "../cases/india-famine-D2Nrut-V.js";
|
|
20
|
-
import { t as y } from "../cases/intern-doctor-pharmacist-Dc1snaQa.js";
|
|
21
|
-
import { t as b } from "../cases/murder-lesion-yTnWn4To.js";
|
|
22
|
-
import { t as x } from "../cases/newcomb-Cl1gd6uf.js";
|
|
23
|
-
import { t as S } from "../cases/palsgraf-NfvM1K9U.js";
|
|
24
|
-
import { t as C } from "../cases/pen-case-both-permitted-BNqPBJct.js";
|
|
25
|
-
import { t as w } from "../cases/pen-case-professor-assistant-CVQnSN5y.js";
|
|
26
|
-
import { t as T } from "../cases/pen-fiasco-funding-loss-DgGrOlqy.js";
|
|
27
|
-
import { t as E } from "../cases/penned-in-sharks-BlHMXii-.js";
|
|
28
|
-
import { t as D } from "../cases/planted-sharks-D6mI-GlJ.js";
|
|
29
|
-
import { t as O } from "../cases/prince-of-wales-pancakes-DLaLe7aZ.js";
|
|
30
|
-
import { t as k } from "../cases/psychopath-button-C0zEz5cq.js";
|
|
31
|
-
import { t as A } from "../cases/red-light-collision-DLwpoJpK.js";
|
|
32
|
-
import { t as j } from "../cases/rental-car-double-omission-ClAcUXpU.js";
|
|
33
|
-
import { t as M } from "../cases/rock-throwing-b9OWOyAi.js";
|
|
34
|
-
import { t as N } from "../cases/school-lunch-poisoning-BphWQpQm.js";
|
|
35
|
-
import { t as P } from "../cases/sharks-Cwd6PSFD.js";
|
|
36
|
-
import { t as F } from "../cases/smoking-lesion-DTJJDKMu.js";
|
|
37
|
-
import { t as I } from "../cases/snakebite-doctor-entGsPZe.js";
|
|
38
|
-
import { t as L } from "../cases/styrofoam-fire-B86b_qDD.js";
|
|
39
|
-
import { t as R } from "../cases/summers-v-tice-7qnTEtJs.js";
|
|
40
|
-
import { t as z } from "../cases/taroko-derailment-2021-FgwyGqHj.js";
|
|
41
|
-
import { t as B } from "../cases/train-switching-DolPBKWM.js";
|
|
42
|
-
import { t as V } from "../cases/trumping-merlin-morgana-u2OmSCY2.js";
|
|
43
|
-
import { t as H } from "../cases/voting-11-voters-NQUw6ak4.js";
|
|
44
|
-
import { t as U } from "../cases/xi-antidote-Ciuul3cR.js";
|
|
45
|
-
import { t as W } from "../cases/yard-vs-pitch-dodge-BQVdnACx.js";
|
|
46
|
-
// src/data/cases.ts
|
|
47
|
-
var G = /* #__PURE__ */ Object.assign({
|
|
48
|
-
"./cases/billy-suzy-early-preemption.json": e,
|
|
49
|
-
"./cases/billy-suzy-overdetermination.json": t,
|
|
50
|
-
"./cases/bodyguard-omission.json": n,
|
|
51
|
-
"./cases/bogus-prevention.json": r,
|
|
52
|
-
"./cases/cable-cut-three-scenarios.json": i,
|
|
53
|
-
"./cases/double-prevention-bomber.json": a,
|
|
54
|
-
"./cases/farmer-pesticide-barrel-doctor.json": o,
|
|
55
|
-
"./cases/firing-squad.json": s,
|
|
56
|
-
"./cases/fishing-port-joss-paper.json": c,
|
|
57
|
-
"./cases/forest-fire-conjunctive.json": l,
|
|
58
|
-
"./cases/forest-fire-disjunctive.json": u,
|
|
59
|
-
"./cases/forgetful-drunk-gardener.json": d,
|
|
60
|
-
"./cases/frankfurt-jones-black.json": f,
|
|
61
|
-
"./cases/frankfurt-style-omission-fsoc.json": p,
|
|
62
|
-
"./cases/gardener-queen.json": m,
|
|
63
|
-
"./cases/half-poison-twice.json": h,
|
|
64
|
-
"./cases/harassment-and-dress.json": g,
|
|
65
|
-
"./cases/hit-and-abandon.json": _,
|
|
66
|
-
"./cases/india-famine.json": v,
|
|
67
|
-
"./cases/intern-doctor-pharmacist.json": y,
|
|
68
|
-
"./cases/murder-lesion.json": b,
|
|
69
|
-
"./cases/newcomb.json": x,
|
|
70
|
-
"./cases/palsgraf.json": S,
|
|
71
|
-
"./cases/pen-case-both-permitted.json": C,
|
|
72
|
-
"./cases/pen-case-professor-assistant.json": w,
|
|
73
|
-
"./cases/pen-fiasco-funding-loss.json": T,
|
|
74
|
-
"./cases/penned-in-sharks.json": E,
|
|
75
|
-
"./cases/planted-sharks.json": D,
|
|
76
|
-
"./cases/prince-of-wales-pancakes.json": O,
|
|
77
|
-
"./cases/psychopath-button.json": k,
|
|
78
|
-
"./cases/red-light-collision.json": A,
|
|
79
|
-
"./cases/rental-car-double-omission.json": j,
|
|
80
|
-
"./cases/rock-throwing.json": M,
|
|
81
|
-
"./cases/school-lunch-poisoning.json": N,
|
|
82
|
-
"./cases/sharks.json": P,
|
|
83
|
-
"./cases/smoking-lesion.json": F,
|
|
84
|
-
"./cases/snakebite-doctor.json": I,
|
|
85
|
-
"./cases/styrofoam-fire.json": L,
|
|
86
|
-
"./cases/summers-v-tice.json": R,
|
|
87
|
-
"./cases/taroko-derailment-2021.json": z,
|
|
88
|
-
"./cases/train-switching.json": B,
|
|
89
|
-
"./cases/trumping-merlin-morgana.json": V,
|
|
90
|
-
"./cases/voting-11-voters.json": H,
|
|
91
|
-
"./cases/xi-antidote.json": U,
|
|
92
|
-
"./cases/yard-vs-pitch-dodge.json": W
|
|
93
|
-
});
|
|
94
|
-
export { G as t };
|
|
95
|
-
|
|
96
|
-
//# sourceMappingURL=cases-dHdtbyLY.js.map
|