Documentation

Linglib.Core.Logic.Modal.BSML.Scenarios

Typed atoms and small world models for free-choice scenarios #

Shared scenario substrate for BSML- and QBSML-based free-choice studies ([Alo22], [AvO23], [Yan23]). Replaces ad-hoc string atoms ("coffee", "tea", ...) in scenario constructions, where a typo silently compiles to false under the match p with | "coffee" => ... | _ => false fallthrough pattern.

Main declarations #

Studies instantiate BSMLModel's String-keyed val field by pattern-matching on the canonical names via FCAtom.toName. Eliminating the String layer entirely (making BSMLModel.val : FCAtom → α → Bool) would require parameterizing BSMLFormula and BSMLModel over the atom type — a substrate-wide refactor deferred to a separate effort.

Typed atom enum for free-choice scenarios.

  • a : FCAtom

    First disjunct (e.g. coffee, Paris, boat).

  • b : FCAtom

    Second disjunct (e.g. tea, Rome, bus).

  • c : FCAtom

    Third atom for embedded scenarios (negative free choice).

Instances For
    @[implicit_reducible]
    Equations
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[implicit_reducible]
      Equations
      • One or more equations did not get rendered due to their size.

      Canonical String name of an atom. Used at BSMLModel.val boundaries where the substrate's val : String → α → Bool field forces String.

      Equations
      Instances For

        Single variable x — the shared toy variable type for quantified FC scenarios (QBSML studies); the first-order counterpart of FCAtom.

        Instances For
          @[implicit_reducible]
          Equations
          def Core.Logic.Modal.BSML.instReprQVar.repr :
          QVarStd.Format
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            @[implicit_reducible]
            Equations
            • One or more equations did not get rendered due to their size.

            Power-set-of-{a,b}: the 4 truth assignments to two propositional atoms.

            Names follow [Alo22] Figure 1 (w_∅, w_a, w_b, w_ab):

            Instances For
              @[implicit_reducible]
              Equations
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                @[implicit_reducible]
                Equations
                • One or more equations did not get rendered due to their size.
                @[reducible, inline]

                Synonym used by Studies that prefer the predicate spelling.

                Equations
                Instances For