Documentation

Linglib.Discourse.QUD.Basic

Questions under discussion: stack and strategy #

[Rob12]

The inquiry coordinate of the conversational scoreboard: the stack of accepted-but-unanswered questions (head is the immediate QUD; subquestions push, answers pop) and the rose-tree strategy of inquiry decomposing a question into subquestions whose joint resolution answers the parent.

structure Discourse.QUDStack (W : Type u_1) :
Type u_1

A QUD stack: ordered list of accepted, unanswered questions (Roberts 2012 Def 10g).

Instances For

    Empty QUD stack (discourse initial state).

    Equations
    Instances For
      def Discourse.QUDStack.immediateQUD {W : Type u_1} (s : QUDStack W) :
      Option (Question W)

      The immediate QUD: the most recently accepted, unanswered question.

      Equations
      Instances For
        def Discourse.QUDStack.push {W : Type u_1} (s : QUDStack W) (q : Question W) :

        Accept a new question: push onto the stack.

        Equations
        Instances For
          def Discourse.QUDStack.pop {W : Type u_1} (s : QUDStack W) :

          Answer the immediate QUD: pop from the stack.

          Equations
          Instances For
            def Discourse.QUDStack.depth {W : Type u_1} (s : QUDStack W) :

            Current depth of the QUD stack.

            Equations
            Instances For
              inductive Discourse.Strategy (W : Type u_1) :
              Type u_1

              A strategy of inquiry as a rose tree: each node a question, children subquestions whose joint resolution answers the parent (Roberts Def 12).

              Instances For

                The question at the root of this (sub)strategy.

                Equations
                Instances For

                  Immediate substrategies (empty for leaves).

                  Equations
                  Instances For
                    @[irreducible]

                    All questions in the strategy (root + all descendants).

                    Equations
                    Instances For
                      @[irreducible]
                      def Discourse.Strategy.leaves {W : Type u_1} :
                      Strategy WList (Question W)

                      Leaf questions only (terminal nodes of the strategy).

                      Equations
                      Instances For

                        A strategy is complete at a single level: the meet of children's questions entails the parent. Recurse on substrategies for full-tree verification.

                        Equations
                        Instances For
                          def Discourse.moveRelevantToStrategy {W : Type u_1} (den : Question W) (strat : Strategy W) :

                          A discourse move is relevant to a strategy if some alternative of den partially answers some question in the strategy.

                          Equations
                          Instances For