Documentation

Linglib.Tactics.RSAPredict.GoalParsing

RSAPredict Goal Parsing #

Recognize comparison goal forms and extract RSA config/utterance/world arguments from L1, L1_latent, and S1 policy expressions.

Try to unfold an expression to RationalAction.policy ra s a.

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

    Extract RSA config and arguments from a policy expression. Returns (cfg, u, w) where the expression is cfg.L1 u w.

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

      Extract RSA config and arguments from a policy expression. Returns (cfg, l, u, w) where the expression is cfg.L0 l u w.

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

        Extract RSA config and arguments from a policy expression. Returns (cfg, l, w, u) where the expression is cfg.S1 l w u.

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

          Try to parse an expression as d.S2Utility w u. Returns (d, w, u) where the expression is RSAConfigData.S2Utility d w u.

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

            Extract RSA config and arguments from an S2 policy expression. Returns (cfg, w, u) where the expression is cfg.S2 w u.

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

              Parsed goal forms that rsa_predict can handle.

              Instances For

                Try to parse an expression as cfg.L1_marginal u P. If successful, evaluates P w for each w : W at meta level, returning (cfg, u, #[w₁, w₂,...]) for matching worlds.

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

                  Try to parse an expression as cfg.L0_marginal l u P. If successful, evaluates P w for each w : W at meta level, returning (cfg, l, u, #[w₁, w₂,...]) for matching worlds.

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

                    Try to unfold an expression to cfg.L1_latent u l.

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

                      Collect L1 policy summands from an expression. Returns (cfg, u, ws) where ws are the world arguments, or none. Handles Finset.sum, List.sum of map, and nested HAdd of L1 terms.

                      Collect L1 summands allowing different utterances on each side. Returns (cfg, u, ws) pairs. For cross-utterance goals, the two sides may have different u values.

                      Collect L0 policy summands from an expression. Returns (cfg, l, u, ws) where ws are the world arguments, or none. Handles L0_marginal, single L0 terms, nested HAdd, and Finset.sum.

                      Parse the goal into a GoalForm.

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