<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>1699</bug_id>
          
          <creation_ts>2005-07-17 23:09:28 +0000</creation_ts>
          <short_desc>[FS] algebra of sequence concatenation is not complete</short_desc>
          <delta_ts>2005-09-06 13:06:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Formal Semantics 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 2000</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fred Zemke">fred.zemke</reporter>
          <assigned_to name="Jerome Simeon">simeon</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4785</commentid>
    <comment_count>0</comment_count>
    <who name="Fred Zemke">fred.zemke</who>
    <bug_when>2005-07-17 23:09:28 +0000</bug_when>
    <thetext>4.3.1 Constructing sequences
The rule under dynamic evaluation presumes that the algebra of
sequences under concatenation is known, but the purpose of the
Formal Semantics is to explain semantics, not presume semantics.
I think you need the following rule in addition to the stated one:

dynEnv |- Value = (A1, ... An), (B1, ... Bm)
---------------------------------------------
dynEnv |- Value = (A1, ..., An, B1, ... Bm)

Or perhaps it can be done by rewording your existing rule as
follows:

dynEnv |- Expr1 =&gt; (A1, ... An)
dynEnv |- Expr2 =&gt; (B1, ... Bm)
-------------------------------
dynEnv |- Expr1, Expr2 =&gt; (A1, ..., An, B1, ..., Bm)

This includes as a special case the following:

dynEnv |- Value1 = ()
dynEnv |- Value2 = (B1, ... Bm)
-------------------------------
dynEnv |- Value1, Value2 = Value2

dynEnv |- Value1 = (A1, ... An)
dynEnv |- value2 = ()
-------------------------------
dynEnv |- Value1, Value2 = Value2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5083</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-21 19:05:20 +0000</bug_when>
    <thetext>I think having a binary rule for the sequence construction is probably better.

The way sequences of values behave is described in [XQuery 3.3 Sequence
Expressions] and [Data Model 2.5 Sequences].

Those rules are recalled in [Formal Semantics 2.3.1 Formal values] (second
paragraph from the end of the section). We may want to add a pointer to the data
model there for clarification.

We may want to formalize those rules on sequences by adding something along the
lines that you propose. I believe the following would be a bit cleaner, and more
complete as well. But I am not completely convinced this is necessary.


  ---------------
  (Value) = Value


  -------------------
  (), Value2 = Value2


  -------------------
  Value1, () = Value1

- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5220</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2005-07-26 15:41:06 +0000</bug_when>
    <thetext>The working groups have decided to add the additional pointer in 2.3.1, 
however we are not going to add additional rules since these rules are 
considered part of the data model sequence behaviour.

Please close the issue if you agree with the resolution or reopen the issue if 
you disagree.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>