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,99 @@
|
|
|
1
|
+
import type { FiniteProblem } from '../engine/finite-problems.js';
|
|
2
|
+
export declare const PAIRING_MESSAGES: {
|
|
3
|
+
en: {
|
|
4
|
+
classifications: string;
|
|
5
|
+
correspondence: string;
|
|
6
|
+
particles: string;
|
|
7
|
+
matching: string;
|
|
8
|
+
division: string;
|
|
9
|
+
order: string;
|
|
10
|
+
classes: (n: number) => string;
|
|
11
|
+
maximal: string;
|
|
12
|
+
fewest: string;
|
|
13
|
+
excluded: string;
|
|
14
|
+
yes: (r: string) => string;
|
|
15
|
+
no: (r: string) => string;
|
|
16
|
+
unequal: (f: string, a: number, g: string, b: number) => string;
|
|
17
|
+
missing: (x: string) => string;
|
|
18
|
+
multiple: (x: string, n: number) => string;
|
|
19
|
+
remove: (x: string, f: string, y: string, g: string) => string;
|
|
20
|
+
count: (n: number) => string;
|
|
21
|
+
box: (n: number, contents: string) => string;
|
|
22
|
+
occupancy: (n: number) => string;
|
|
23
|
+
empty: string;
|
|
24
|
+
rules: {
|
|
25
|
+
MB: string;
|
|
26
|
+
BE: string;
|
|
27
|
+
FD: string;
|
|
28
|
+
};
|
|
29
|
+
MB: string;
|
|
30
|
+
BE: string;
|
|
31
|
+
FD: string;
|
|
32
|
+
docInvalid: string;
|
|
33
|
+
problem: (p: FiniteProblem) => string;
|
|
34
|
+
};
|
|
35
|
+
'zh-TW': {
|
|
36
|
+
classifications: string;
|
|
37
|
+
correspondence: string;
|
|
38
|
+
particles: string;
|
|
39
|
+
matching: string;
|
|
40
|
+
division: string;
|
|
41
|
+
order: string;
|
|
42
|
+
classes: (n: number) => string;
|
|
43
|
+
maximal: string;
|
|
44
|
+
fewest: string;
|
|
45
|
+
excluded: string;
|
|
46
|
+
yes: (r: string) => string;
|
|
47
|
+
no: (r: string) => string;
|
|
48
|
+
unequal: (f: string, a: number, g: string, b: number) => string;
|
|
49
|
+
missing: (x: string) => string;
|
|
50
|
+
multiple: (x: string, n: number) => string;
|
|
51
|
+
remove: (x: string, f: string, y: string, g: string) => string;
|
|
52
|
+
count: (n: number) => string;
|
|
53
|
+
box: (n: number, contents: string) => string;
|
|
54
|
+
occupancy: (n: number) => string;
|
|
55
|
+
empty: string;
|
|
56
|
+
rules: {
|
|
57
|
+
MB: string;
|
|
58
|
+
BE: string;
|
|
59
|
+
FD: string;
|
|
60
|
+
};
|
|
61
|
+
MB: string;
|
|
62
|
+
BE: string;
|
|
63
|
+
FD: string;
|
|
64
|
+
docInvalid: string;
|
|
65
|
+
problem: (p: FiniteProblem) => string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export declare function usePairingMessages(): {
|
|
69
|
+
classifications: string;
|
|
70
|
+
correspondence: string;
|
|
71
|
+
particles: string;
|
|
72
|
+
matching: string;
|
|
73
|
+
division: string;
|
|
74
|
+
order: string;
|
|
75
|
+
classes: (n: number) => string;
|
|
76
|
+
maximal: string;
|
|
77
|
+
fewest: string;
|
|
78
|
+
excluded: string;
|
|
79
|
+
yes: (r: string) => string;
|
|
80
|
+
no: (r: string) => string;
|
|
81
|
+
unequal: (f: string, a: number, g: string, b: number) => string;
|
|
82
|
+
missing: (x: string) => string;
|
|
83
|
+
multiple: (x: string, n: number) => string;
|
|
84
|
+
remove: (x: string, f: string, y: string, g: string) => string;
|
|
85
|
+
count: (n: number) => string;
|
|
86
|
+
box: (n: number, contents: string) => string;
|
|
87
|
+
occupancy: (n: number) => string;
|
|
88
|
+
empty: string;
|
|
89
|
+
rules: {
|
|
90
|
+
MB: string;
|
|
91
|
+
BE: string;
|
|
92
|
+
FD: string;
|
|
93
|
+
};
|
|
94
|
+
MB: string;
|
|
95
|
+
BE: string;
|
|
96
|
+
FD: string;
|
|
97
|
+
docInvalid: string;
|
|
98
|
+
problem: (p: FiniteProblem) => string;
|
|
99
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Locale } from '../../engine/types.js';
|
|
2
|
+
interface ConeMessages {
|
|
3
|
+
readonly event: (id: string) => string;
|
|
4
|
+
readonly pair: (a: string, b: string) => string;
|
|
5
|
+
readonly vertex: string;
|
|
6
|
+
readonly timelike: string;
|
|
7
|
+
readonly lightlike: string;
|
|
8
|
+
readonly spacelike: string;
|
|
9
|
+
readonly details: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const CONE_TEXT: Readonly<Record<Locale, ConeMessages>>;
|
|
12
|
+
export {};
|
|
@@ -14,6 +14,9 @@ export declare const GROUND_ZH: {
|
|
|
14
14
|
relationLegend: string;
|
|
15
15
|
nonQualitative: string;
|
|
16
16
|
pairHeading: (a: string, b: string) => string;
|
|
17
|
+
oneObject: string;
|
|
18
|
+
twoObjects: string;
|
|
19
|
+
noClause: string;
|
|
17
20
|
sameIndividual: string;
|
|
18
21
|
distinctIndividuals: string;
|
|
19
22
|
details: string;
|
|
@@ -88,7 +91,7 @@ export declare const GROUND_ZH: {
|
|
|
88
91
|
clauseHolds: string;
|
|
89
92
|
clauseFails: string;
|
|
90
93
|
proposalNames: Readonly<Record<string, string>>;
|
|
91
|
-
verdict: Readonly<Record<
|
|
94
|
+
verdict: Readonly<Record<"explained" | "necessitation-conflict" | "no-ground" | "offers-no-ground" | "same-ground" | "trivial", string>>;
|
|
92
95
|
verdictReason: (v: ProposalVerdict, same: boolean, necessitationOff: boolean) => string;
|
|
93
96
|
scopeNote: string;
|
|
94
97
|
premisesHeading: string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MatchingCase, CorrespondenceCase, FigureSource } from '../../data/finite-figures.js';
|
|
2
|
+
export declare const matchingCases: readonly MatchingCase[];
|
|
3
|
+
export declare const correspondenceCases: readonly CorrespondenceCase[];
|
|
4
|
+
export declare const particleCase: FigureSource;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { IdentityHypotheses, type IdentityHypothesesProps } from '../components/IdentityHypotheses.js';
|
|
2
|
+
export { CorrespondenceView, type CorrespondenceViewProps } from '../components/CorrespondenceView.js';
|
|
3
|
+
export { ParticleArrangements, type ParticleArrangementsProps } from '../components/ParticleArrangements.js';
|
|
4
|
+
export type { MatchingCase, CorrespondenceCase, FigureSource } from '../data/finite-figures.js';
|
|
5
|
+
export { classifications, type Classification, type MatchingGraph, type Partition } from '../engine/classifications.js';
|
|
6
|
+
export { MAX_MATCHING_ITEMS, correspondenceProblems, matchingProblems, type FiniteProblem } from '../engine/finite-problems.js';
|
|
7
|
+
export { checkCorrespondence, type Correspondence, type PartnerIssue } from '../../logic/relations.js';
|
|
8
|
+
export { removeCorrespondents } from '../engine/correspondence.js';
|
|
9
|
+
export { particleOrbits, type ParticleRule } from '../engine/particle-orbits.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GroundCommonProps } from '../components/parts.js';
|
|
2
|
+
import type { LightConeDoc } from './model.js';
|
|
3
|
+
export interface LightConeViewProps extends GroundCommonProps {
|
|
4
|
+
readonly doc: LightConeDoc;
|
|
5
|
+
}
|
|
6
|
+
/** Shumener, “The Distinctness of Objects Near and Far” (PPR, 2026), Figs 1–2. Distances on the page are schematic. */
|
|
7
|
+
export declare function LightConeView({ doc, locale, caption }: LightConeViewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { ConePoint } from '../model.js';
|
|
2
|
+
export declare const separations: {
|
|
3
|
+
readonly source: "Erica Shumener, “The Distinctness of Objects Near and Far”, Philosophy and Phenomenological Research 112 (2026), 406–420, Fig. 1.";
|
|
4
|
+
readonly panels: readonly [{
|
|
5
|
+
readonly title: {
|
|
6
|
+
"zh-TW": string;
|
|
7
|
+
en: string;
|
|
8
|
+
};
|
|
9
|
+
readonly events: readonly [{
|
|
10
|
+
id: string;
|
|
11
|
+
x: number;
|
|
12
|
+
t: number;
|
|
13
|
+
}, {
|
|
14
|
+
readonly id: '2';
|
|
15
|
+
readonly x: 0;
|
|
16
|
+
readonly t: 3;
|
|
17
|
+
}, {
|
|
18
|
+
readonly id: '3';
|
|
19
|
+
readonly x: 2;
|
|
20
|
+
readonly t: 2;
|
|
21
|
+
}, {
|
|
22
|
+
readonly id: '4';
|
|
23
|
+
readonly x: 4;
|
|
24
|
+
readonly t: 0;
|
|
25
|
+
}];
|
|
26
|
+
}];
|
|
27
|
+
};
|
|
28
|
+
export declare const journeys: {
|
|
29
|
+
readonly source: "Erica Shumener, “The Distinctness of Objects Near and Far”, Philosophy and Phenomenological Research 112 (2026), 406–420, Fig. 2.";
|
|
30
|
+
readonly panels: readonly [{
|
|
31
|
+
readonly title: {
|
|
32
|
+
"zh-TW": string;
|
|
33
|
+
en: string;
|
|
34
|
+
};
|
|
35
|
+
readonly events: readonly [{
|
|
36
|
+
id: string;
|
|
37
|
+
x: number;
|
|
38
|
+
t: number;
|
|
39
|
+
label: {
|
|
40
|
+
"zh-TW": string;
|
|
41
|
+
en: string;
|
|
42
|
+
};
|
|
43
|
+
}, {
|
|
44
|
+
id: string;
|
|
45
|
+
x: number;
|
|
46
|
+
t: number;
|
|
47
|
+
label: {
|
|
48
|
+
"zh-TW": string;
|
|
49
|
+
en: string;
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
id: string;
|
|
53
|
+
x: number;
|
|
54
|
+
t: number;
|
|
55
|
+
label: {
|
|
56
|
+
"zh-TW": string;
|
|
57
|
+
en: string;
|
|
58
|
+
};
|
|
59
|
+
}];
|
|
60
|
+
readonly worldlines: {
|
|
61
|
+
label: {
|
|
62
|
+
"zh-TW": string;
|
|
63
|
+
en: string;
|
|
64
|
+
};
|
|
65
|
+
points: ConePoint[];
|
|
66
|
+
}[];
|
|
67
|
+
readonly pairs: readonly [readonly ["2", "3"]];
|
|
68
|
+
}, {
|
|
69
|
+
readonly title: {
|
|
70
|
+
"zh-TW": string;
|
|
71
|
+
en: string;
|
|
72
|
+
};
|
|
73
|
+
readonly events: readonly [{
|
|
74
|
+
id: string;
|
|
75
|
+
x: number;
|
|
76
|
+
t: number;
|
|
77
|
+
label: {
|
|
78
|
+
"zh-TW": string;
|
|
79
|
+
en: string;
|
|
80
|
+
};
|
|
81
|
+
}, {
|
|
82
|
+
id: string;
|
|
83
|
+
x: number;
|
|
84
|
+
t: number;
|
|
85
|
+
label: {
|
|
86
|
+
"zh-TW": string;
|
|
87
|
+
en: string;
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
id: string;
|
|
91
|
+
x: number;
|
|
92
|
+
t: number;
|
|
93
|
+
label: {
|
|
94
|
+
"zh-TW": string;
|
|
95
|
+
en: string;
|
|
96
|
+
};
|
|
97
|
+
}];
|
|
98
|
+
readonly worldlines: {
|
|
99
|
+
label: {
|
|
100
|
+
"zh-TW": string;
|
|
101
|
+
en: string;
|
|
102
|
+
};
|
|
103
|
+
points: ConePoint[];
|
|
104
|
+
}[];
|
|
105
|
+
readonly pairs: readonly [readonly ["2", "3′"]];
|
|
106
|
+
}];
|
|
107
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { ConePoint, ConeEvent, ConePanel, ConeWorldline, LightConeDoc } from './model.js';
|
|
2
|
+
export type { SpacetimePoint } from './interval.js';
|
|
3
|
+
export { spacetimeInterval } from './interval.js';
|
|
4
|
+
export type { LightConeViewProps } from './LightConeView.js';
|
|
5
|
+
export { LightConeView } from './LightConeView.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Coordinates in one inertial frame. Space and c·time must use the same unit. */
|
|
2
|
+
export interface SpacetimePoint {
|
|
3
|
+
readonly t: number;
|
|
4
|
+
readonly x: number;
|
|
5
|
+
readonly y?: number;
|
|
6
|
+
readonly z?: number;
|
|
7
|
+
}
|
|
8
|
+
/** Shumener (2026), Fig. 1: S = (cΔt)² − Δx² − Δy² − Δz² (c = 1 in the figures). */
|
|
9
|
+
export declare function spacetimeInterval(a: SpacetimePoint, b: SpacetimePoint, c?: number): {
|
|
10
|
+
readonly value: number;
|
|
11
|
+
readonly kind: "lightlike" | "spacelike" | "timelike";
|
|
12
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { GroundText } from '../data/schema.js';
|
|
2
|
+
/** Schematic 1+1-dimensional slice, in light units. The first event is the cone vertex. */
|
|
3
|
+
export interface ConePoint {
|
|
4
|
+
readonly t: number;
|
|
5
|
+
readonly x: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ConeEvent extends ConePoint {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly label?: GroundText;
|
|
10
|
+
}
|
|
11
|
+
export interface ConeWorldline {
|
|
12
|
+
readonly label: GroundText;
|
|
13
|
+
readonly points: readonly ConePoint[];
|
|
14
|
+
}
|
|
15
|
+
export interface ConePanel {
|
|
16
|
+
readonly title: GroundText;
|
|
17
|
+
readonly events: readonly [ConeEvent, ...ConeEvent[]];
|
|
18
|
+
readonly worldlines?: readonly ConeWorldline[];
|
|
19
|
+
/** Intervals to state besides those from the vertex, as pairs of event ids (Fig. 2: from Event 2 to Event 3). */
|
|
20
|
+
readonly pairs?: readonly (readonly [string, string])[];
|
|
21
|
+
}
|
|
22
|
+
export interface LightConeDoc {
|
|
23
|
+
readonly source: string;
|
|
24
|
+
readonly panels: readonly ConePanel[];
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StructureCaseInput } from '../data/schema.js';
|
|
2
|
+
/** Every bundled case id, sorted. */
|
|
3
|
+
export declare const structureCaseIds: readonly string[];
|
|
4
|
+
/** The bundled case `id`, as written; throws on an unknown id. */
|
|
5
|
+
export declare function getStructureCase(id: string): StructureCaseInput;
|
|
6
|
+
/** Every bundled case. */
|
|
7
|
+
export declare function listStructureCases(): readonly StructureCaseInput[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StructureCommonProps, StructureDocInput } from './frame.js';
|
|
2
|
+
export interface GroundStructureViewProps extends StructureCommonProps {
|
|
3
|
+
/** A `grounding-structure` document (value or JSON text), e.g. `getStructureCase("dixon-s2")`. */
|
|
4
|
+
readonly doc: StructureDocInput;
|
|
5
|
+
/** The priority orders drawn at first, by id; default all of the document's. */
|
|
6
|
+
readonly priorities?: readonly string[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A grounding structure as its source draws it: Dixon's lines (Fig. 16.2 of Raven 2020: solid, dashed,
|
|
10
|
+
* dotted for full, partial, properly partial ground; a box for a joint full ground) or Bevan's arrows
|
|
11
|
+
* (2025, Figs 1–2) with priority orders as dashed or dotted ties. The infinite part is a finite front
|
|
12
|
+
* section ending in an ellipsis. The answer, computed by Full Cut, says whether every non-fundamental
|
|
13
|
+
* node is fully grounded by fundamental nodes (Full Foundations), and names the infinite descent.
|
|
14
|
+
*/
|
|
15
|
+
export declare function GroundStructureView(props: GroundStructureViewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StructureCommonProps, StructureDocInput } from './frame.js';
|
|
2
|
+
export interface ParthoodViewProps extends StructureCommonProps {
|
|
3
|
+
/** A `parthood-model` document (value or JSON text), e.g. `getStructureCase("parthood-mutual")`. */
|
|
4
|
+
readonly doc: StructureDocInput;
|
|
5
|
+
/** The pair shown first; default the first preset's, else the first two individuals. */
|
|
6
|
+
readonly pair?: readonly [string, string];
|
|
7
|
+
/** The presets shown: all (default), none, or these ids in this order. */
|
|
8
|
+
readonly presets?: boolean | readonly string[];
|
|
9
|
+
readonly initialPreset?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A finite parthood model as a Hasse diagram (Varzi, SEP "Mereology", Figs 2–3, 6) and, for a pair, the
|
|
13
|
+
* parthood proposal's verdict (Shumener, "Identity", 2020): [x = y] grounded in [Pxy], [Pyx]; [x ≠ y]
|
|
14
|
+
* in [¬Pxy] or [¬Pyx]. It also says whether P is antisymmetric (with the mutual pair when not) and
|
|
15
|
+
* which individuals are atoms. Click two individuals to pick a pair.
|
|
16
|
+
*/
|
|
17
|
+
export declare function ParthoodView(props: ParthoodViewProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Locale } from '../../../engine/types.js';
|
|
3
|
+
import type { StructureProblem } from '../data/problems.js';
|
|
4
|
+
import type { StructureCaseInput } from '../data/schema.js';
|
|
5
|
+
import { nodeSymbol } from './layered-layout.js';
|
|
6
|
+
/** Pieces both structure figures share: the root box, problems, the head, the answer, the drawer, loading. */
|
|
7
|
+
/** A document as a figure takes it: a value (as written, or `getStructureCase(id)`) or its JSON text. */
|
|
8
|
+
export type StructureDocInput = StructureCaseInput | string;
|
|
9
|
+
export interface StructureCommonProps {
|
|
10
|
+
/** Interface language; default the surrounding `LocaleProvider`'s, else zh-TW. */
|
|
11
|
+
readonly locale?: Locale;
|
|
12
|
+
/** A caption under the figure. */
|
|
13
|
+
readonly caption?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare function StructureRoot({ locale, name, caption, children }: {
|
|
16
|
+
readonly locale?: Locale;
|
|
17
|
+
readonly name: string;
|
|
18
|
+
readonly caption?: ReactNode;
|
|
19
|
+
readonly children: ReactNode;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
|
+
export declare function StructureProblems({ problems }: {
|
|
22
|
+
readonly problems: readonly StructureProblem[];
|
|
23
|
+
}): import("react").JSX.Element;
|
|
24
|
+
/** The figure's kind and title, and the button that exports the drawn diagram as SVG. */
|
|
25
|
+
export declare function StructureHead({ mode, title }: {
|
|
26
|
+
readonly mode: 'grounding' | 'parthood';
|
|
27
|
+
readonly title?: string;
|
|
28
|
+
}): import("react").JSX.Element;
|
|
29
|
+
export declare function Answer({ question, children, notes }: {
|
|
30
|
+
readonly question: string;
|
|
31
|
+
readonly children: ReactNode;
|
|
32
|
+
readonly notes: readonly ReactNode[];
|
|
33
|
+
}): import("react").JSX.Element;
|
|
34
|
+
export declare function Drawer({ children }: {
|
|
35
|
+
readonly children: ReactNode;
|
|
36
|
+
}): import("react").JSX.Element;
|
|
37
|
+
/** A node's symbol typeset (a₀, 0_b), its plain text in `aria-label`. */
|
|
38
|
+
export declare function NodeMath({ symbol }: {
|
|
39
|
+
readonly symbol: string;
|
|
40
|
+
}): import("react").JSX.Element;
|
|
41
|
+
/** Nodes joined by commas, each typeset. */
|
|
42
|
+
export declare function NodeList({ symbols }: {
|
|
43
|
+
readonly symbols: readonly string[];
|
|
44
|
+
}): import("react").JSX.Element;
|
|
45
|
+
/** A node's name in SVG: the base, its subscript lowered. */
|
|
46
|
+
export declare function SvgSymbol({ symbol }: {
|
|
47
|
+
readonly symbol: ReturnType<typeof nodeSymbol>;
|
|
48
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { GroundingStructureDoc } from '../data/schema.js';
|
|
2
|
+
import { nodeSymbol } from './layered-layout.js';
|
|
3
|
+
/**
|
|
4
|
+
* Where a grounding structure's pieces sit, in its source's notation. Grounded nodes are above their
|
|
5
|
+
* grounds. `lines` (Dixon, Fig. 16.2): dots with their names to the right, a line down from a node to
|
|
6
|
+
* each node that grounds it — solid (full), dashed (partial), dotted (properly partial) — and a solid
|
|
7
|
+
* line to a box around the members of a joint full ground. `arrows` (Bevan, Figs 1–2): the names are
|
|
8
|
+
* the nodes and an arrow runs up from a ground to what it grounds; priority orders are dashed or dotted
|
|
9
|
+
* ties. A tail is an ellipsis continuing the line into it; its self-reference is not drawn.
|
|
10
|
+
*/
|
|
11
|
+
export interface PlacedNode {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly row: number;
|
|
14
|
+
readonly x: number;
|
|
15
|
+
readonly y: number;
|
|
16
|
+
readonly tail: boolean;
|
|
17
|
+
readonly symbol: ReturnType<typeof nodeSymbol>;
|
|
18
|
+
/** In Dixon's notation the name sits left of a dot whose lines run up to the right (his b, b₀, b₁). */
|
|
19
|
+
readonly labelLeft: boolean;
|
|
20
|
+
/** In Dixon's notation, how far the name's near edge sits from the dot: past the box ends for a box member. */
|
|
21
|
+
readonly labelGap: number;
|
|
22
|
+
}
|
|
23
|
+
export interface PlacedLink {
|
|
24
|
+
readonly key: string;
|
|
25
|
+
readonly kind: 'full' | 'partial' | 'proper' | 'arrow';
|
|
26
|
+
/** The grounded node. */
|
|
27
|
+
readonly from: string;
|
|
28
|
+
/** The ground. */
|
|
29
|
+
readonly to: string;
|
|
30
|
+
readonly path: string;
|
|
31
|
+
readonly head?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface PlacedBox {
|
|
34
|
+
readonly key: string;
|
|
35
|
+
readonly grounded: string;
|
|
36
|
+
readonly members: readonly string[];
|
|
37
|
+
/** The box outline. */
|
|
38
|
+
readonly path: string;
|
|
39
|
+
/** The solid line from the grounded node to the box. */
|
|
40
|
+
readonly link: string;
|
|
41
|
+
}
|
|
42
|
+
export interface PlacedTie {
|
|
43
|
+
readonly key: string;
|
|
44
|
+
readonly order: string;
|
|
45
|
+
readonly style: 'dashed' | 'dotted';
|
|
46
|
+
readonly a: string;
|
|
47
|
+
readonly b: string;
|
|
48
|
+
readonly path: string;
|
|
49
|
+
}
|
|
50
|
+
export interface PlacedTail {
|
|
51
|
+
readonly id: string;
|
|
52
|
+
readonly dots: readonly {
|
|
53
|
+
readonly x: number;
|
|
54
|
+
readonly y: number;
|
|
55
|
+
}[];
|
|
56
|
+
}
|
|
57
|
+
export interface GroundingLayout {
|
|
58
|
+
readonly width: number;
|
|
59
|
+
readonly viewBox: string;
|
|
60
|
+
readonly nodes: readonly PlacedNode[];
|
|
61
|
+
readonly links: readonly PlacedLink[];
|
|
62
|
+
readonly boxes: readonly PlacedBox[];
|
|
63
|
+
readonly ties: readonly PlacedTie[];
|
|
64
|
+
readonly tails: readonly PlacedTail[];
|
|
65
|
+
}
|
|
66
|
+
export declare const DOT_R = 3.5;
|
|
67
|
+
export declare function groundingLayout(doc: GroundingStructureDoc): GroundingLayout;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ParthoodModelDoc } from '../data/schema.js';
|
|
2
|
+
import type { ParthoodReport } from '../engine/parthood.js';
|
|
3
|
+
import { nodeSymbol } from './layered-layout.js';
|
|
4
|
+
/**
|
|
5
|
+
* A parthood model as Varzi draws it (SEP "Mereology", Fig. 2 caption): dots, straight lines for the
|
|
6
|
+
* covers of transitive parthood with the part below the whole, a horizontal line for mutual parthood
|
|
7
|
+
* (Fig. 3 left), and an ellipsis under an individual whose branching repeats (Fig. 6). Reflexive and
|
|
8
|
+
* implied lines are left out (the transitive reduction).
|
|
9
|
+
*/
|
|
10
|
+
export interface HasseNode {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly x: number;
|
|
13
|
+
readonly y: number;
|
|
14
|
+
/** A symbol (italic, a₀) or a word label. */
|
|
15
|
+
readonly symbol?: ReturnType<typeof nodeSymbol>;
|
|
16
|
+
readonly word?: string;
|
|
17
|
+
readonly width: number;
|
|
18
|
+
/** The name sits left of a dot whose lines run up to the right (Varzi's atoms in Fig. 6). */
|
|
19
|
+
readonly labelLeft: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface HasseLine {
|
|
22
|
+
readonly key: string;
|
|
23
|
+
readonly kind: 'cover' | 'mutual';
|
|
24
|
+
/** The part (for a cover) and the whole. */
|
|
25
|
+
readonly lower: string;
|
|
26
|
+
readonly upper: string;
|
|
27
|
+
readonly path: string;
|
|
28
|
+
}
|
|
29
|
+
export interface HasseLayout {
|
|
30
|
+
readonly width: number;
|
|
31
|
+
readonly viewBox: string;
|
|
32
|
+
readonly nodes: readonly HasseNode[];
|
|
33
|
+
readonly lines: readonly HasseLine[];
|
|
34
|
+
readonly ellipses: readonly {
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly dots: readonly {
|
|
37
|
+
readonly x: number;
|
|
38
|
+
readonly y: number;
|
|
39
|
+
}[];
|
|
40
|
+
}[];
|
|
41
|
+
}
|
|
42
|
+
export declare const HASSE_DOT = 4;
|
|
43
|
+
export declare function hasseLayout(doc: ParthoodModelDoc, report: ParthoodReport, word: (id: string) => string | undefined): HasseLayout;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rows and columns for the top-down layered diagrams (grounding structures, parthood models): what is
|
|
3
|
+
* grounded or the whole sits above what grounds it or its part. A node's row is the longest path down
|
|
4
|
+
* to it from a node with nothing above; a node with nothing above but something below sits just
|
|
5
|
+
* above its highest lower neighbour (Bevan's b beside a). Nodes listed in `same` share a row (mutual
|
|
6
|
+
* parthood). Columns come from the case where given; the rest sit over the mean of what is below them,
|
|
7
|
+
* else at the next free column, and no two nodes of a row come closer than one column. A case may
|
|
8
|
+
* set a node's row or column itself.
|
|
9
|
+
*/
|
|
10
|
+
export interface LayeredInput {
|
|
11
|
+
readonly nodes: readonly string[];
|
|
12
|
+
/** Upper → lower links that set the rows. */
|
|
13
|
+
readonly links: readonly (readonly [string, string])[];
|
|
14
|
+
/** Pairs of nodes drawn on one row. */
|
|
15
|
+
readonly same?: readonly (readonly [string, string])[];
|
|
16
|
+
readonly columns?: Readonly<Record<string, number>>;
|
|
17
|
+
/** Rows given by the case, over the computed ones (an ellipsis set beside its sequence). */
|
|
18
|
+
readonly rows?: Readonly<Record<string, number>>;
|
|
19
|
+
}
|
|
20
|
+
export interface LayeredPlacement {
|
|
21
|
+
readonly row: ReadonlyMap<string, number>;
|
|
22
|
+
readonly col: ReadonlyMap<string, number>;
|
|
23
|
+
}
|
|
24
|
+
export declare function placeLayered(input: LayeredInput): LayeredPlacement;
|
|
25
|
+
/** A node's symbol split for display: `a0` and `a_0` are a with the subscript 0, `0_b` is 0 with the subscript b. */
|
|
26
|
+
export declare function nodeSymbol(symbol: string): {
|
|
27
|
+
readonly base: string;
|
|
28
|
+
readonly sub: string;
|
|
29
|
+
readonly text: string;
|
|
30
|
+
readonly latex: string;
|
|
31
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StructureKind } from '../data/load.js';
|
|
2
|
+
import type { StructureProblem } from '../data/problems.js';
|
|
3
|
+
import type { StructureCaseDoc } from '../data/schema.js';
|
|
4
|
+
import type { StructureDocInput } from './frame.js';
|
|
5
|
+
export type LoadedStructure<D> = {
|
|
6
|
+
readonly ok: true;
|
|
7
|
+
readonly doc: D;
|
|
8
|
+
} | {
|
|
9
|
+
readonly ok: false;
|
|
10
|
+
readonly errors: readonly StructureProblem[];
|
|
11
|
+
};
|
|
12
|
+
/** The document checked once per value, as the kind the figure draws. */
|
|
13
|
+
export declare function useStructureDoc<K extends StructureKind>(doc: StructureDocInput, kind: K): LoadedStructure<Extract<StructureCaseDoc, {
|
|
14
|
+
kind: K;
|
|
15
|
+
}>>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Locale } from '../../../engine/types.js';
|
|
2
|
+
import type { GroundingReport, GroundingSpec } from '../engine/grounding.js';
|
|
3
|
+
import type { ParthoodModel } from '../engine/parthood.js';
|
|
4
|
+
import type { StructureProblem } from './problems.js';
|
|
5
|
+
import type { GroundingStructureDoc, ParthoodModelDoc, StructureCaseDoc, StructureText } from './schema.js';
|
|
6
|
+
/** Reading, checking and analysing structure documents; what a figure draws comes from here. */
|
|
7
|
+
/** The longest JSON text `parseStructureJson` reads. */
|
|
8
|
+
export declare const MAX_STRUCTURE_DOC_CHARS = 100000;
|
|
9
|
+
export type StructureKind = StructureCaseDoc['kind'];
|
|
10
|
+
export type StructureImportResult<D extends StructureCaseDoc = StructureCaseDoc> = {
|
|
11
|
+
readonly ok: true;
|
|
12
|
+
readonly doc: D;
|
|
13
|
+
} | {
|
|
14
|
+
readonly ok: false;
|
|
15
|
+
readonly errors: readonly StructureProblem[];
|
|
16
|
+
};
|
|
17
|
+
export declare function groundingSpec(doc: GroundingStructureDoc): GroundingSpec;
|
|
18
|
+
export declare function parthoodModel(doc: ParthoodModelDoc): ParthoodModel;
|
|
19
|
+
/** Repeated and unknown ids; for a grounding structure also a ground cycle and ties against Direction. */
|
|
20
|
+
export declare function checkStructureDoc(doc: StructureCaseDoc): StructureProblem[];
|
|
21
|
+
/**
|
|
22
|
+
* Read a document from JSON text or a parsed value; with `kind`, only that kind. Never throws: what is
|
|
23
|
+
* wrong comes back as `errors`, each with the path where it sits.
|
|
24
|
+
*/
|
|
25
|
+
export declare function parseStructureJson<K extends StructureKind>(input: unknown, kind?: K): StructureImportResult<Extract<StructureCaseDoc, {
|
|
26
|
+
kind: K;
|
|
27
|
+
}>>;
|
|
28
|
+
export declare function analyzeStructureGrounding(doc: GroundingStructureDoc): GroundingReport;
|
|
29
|
+
export interface StructureMismatch {
|
|
30
|
+
/** The preset, or `expect` for the document's own expectation. */
|
|
31
|
+
readonly preset: string;
|
|
32
|
+
readonly key: string;
|
|
33
|
+
readonly expected: unknown;
|
|
34
|
+
readonly actual: unknown;
|
|
35
|
+
}
|
|
36
|
+
/** The document's expectations (its `expect` and each preset's) that the engine does not meet. */
|
|
37
|
+
export declare function checkStructureExpectations(doc: StructureCaseDoc): StructureMismatch[];
|
|
38
|
+
/** Document text in `locale`. */
|
|
39
|
+
export declare function structureText(text: StructureText | undefined, locale: Locale): string | undefined;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What can be wrong with a structure document: a stable code with its parameters and, when known, the
|
|
3
|
+
* path where it sits. The interface words each code per language (English here, Chinese in i18n/zh.ts).
|
|
4
|
+
*/
|
|
5
|
+
export interface StructureProblemParams {
|
|
6
|
+
readonly 'not-json': {
|
|
7
|
+
readonly detail: string;
|
|
8
|
+
};
|
|
9
|
+
readonly 'too-large': Record<string, never>;
|
|
10
|
+
/** Any schema complaint, already worded per locale. */
|
|
11
|
+
readonly schema: {
|
|
12
|
+
readonly message: {
|
|
13
|
+
readonly 'zh-TW': string;
|
|
14
|
+
readonly en: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
/** The figure takes another kind of document. */
|
|
18
|
+
readonly 'wrong-kind': {
|
|
19
|
+
readonly expected: string;
|
|
20
|
+
readonly got: string;
|
|
21
|
+
};
|
|
22
|
+
readonly 'duplicate-id': {
|
|
23
|
+
readonly id: string;
|
|
24
|
+
};
|
|
25
|
+
readonly 'unknown-node': {
|
|
26
|
+
readonly id: string;
|
|
27
|
+
};
|
|
28
|
+
readonly 'unknown-preset': {
|
|
29
|
+
readonly id: string;
|
|
30
|
+
};
|
|
31
|
+
/** A node partially grounds itself (only a tail may list itself among its grounds). */
|
|
32
|
+
readonly 'ground-cycle': {
|
|
33
|
+
readonly node: string;
|
|
34
|
+
};
|
|
35
|
+
/** A priority order ties a node with one it partially grounds or is grounded by (Bevan's Direction). */
|
|
36
|
+
readonly 'priority-direction': {
|
|
37
|
+
readonly order: string;
|
|
38
|
+
readonly a: string;
|
|
39
|
+
readonly b: string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export type StructureProblemCode = keyof StructureProblemParams;
|
|
43
|
+
export type StructureProblem = {
|
|
44
|
+
readonly [K in StructureProblemCode]: {
|
|
45
|
+
readonly code: K;
|
|
46
|
+
readonly params: StructureProblemParams[K];
|
|
47
|
+
readonly where?: string;
|
|
48
|
+
};
|
|
49
|
+
}[StructureProblemCode];
|
|
50
|
+
export declare function structureProblem<K extends StructureProblemCode>(code: K, params: StructureProblemParams[K], where?: string): StructureProblem;
|
|
51
|
+
export interface StructureProblemWording {
|
|
52
|
+
readonly messages: {
|
|
53
|
+
readonly [K in StructureProblemCode]: (params: StructureProblemParams[K]) => string;
|
|
54
|
+
};
|
|
55
|
+
readonly join: (where: string, message: string) => string;
|
|
56
|
+
}
|
|
57
|
+
export declare const STRUCTURE_PROBLEMS_EN: StructureProblemWording;
|
|
58
|
+
export declare function structureProblemText(p: StructureProblem, wording?: StructureProblemWording): string;
|