Journal/JAR-response
changeset 382 29915abff9c2
parent 381 99161cd17c0f
child 384 60bcf13adb77
equal deleted inserted replaced
381:99161cd17c0f 382:29915abff9c2
   148 > formalize. I would rather improve on the underlying tools, or develop
   148 > formalize. I would rather improve on the underlying tools, or develop
   149 > new ways to formalize this notion.
   149 > new ways to formalize this notion.
   150 
   150 
   151 We disagree in that we should not take the opportunity of using 
   151 We disagree in that we should not take the opportunity of using 
   152 regular expressions when they lead to simpler formalisations
   152 regular expressions when they lead to simpler formalisations
   153 in regular language theory. We have already found that many structural 
   153 in regular language theory. We have already found as one "application"
   154 inductions that only regular expressions afford are good learning 
   154 that many structural inductions over regular expressions are good learning 
   155 tools for students in order to come to grips with formal reasoning. 
   155 tools for students in order to come to grips with formal reasoning. 
   156 
   156 
   157 
   157 
   158 > - Lemma 21 already appears in Brzozowski (1964) who attributes it to
   158 > - Lemma 21 already appears in Brzozowski (1964) who attributes it to
   159 >  Arden. I think there is little value in distinguishing the two
   159 >  Arden. I think there is little value in distinguishing the two
   161 
   161 
   162 We agree that Brzozowski (1964) gives the statement of Arden's lemma, but 
   162 We agree that Brzozowski (1964) gives the statement of Arden's lemma, but 
   163 no proof, for which he refers to Arden (1960). Unfortunately, we do not have 
   163 no proof, for which he refers to Arden (1960). Unfortunately, we do not have 
   164 access to this book and guess that this applies to many contemporary readers.
   164 access to this book and guess that this applies to many contemporary readers.
   165 Our reference to Sakarovitch is motivated by the fact that he gives 
   165 Our reference to Sakarovitch is motivated by the fact that he gives 
   166 explicitly a proof (XXX CHECK). 
   166 explicitly a proof. 
   167 
   167 
   168 > - I am puzzled by the one-character transition relation between
   168 > - I am puzzled by the one-character transition relation between
   169 >   equivalence classes (p. 6). The $X_i$ correspond to the states of
   169 >   equivalence classes (p. 6). The $X_i$ correspond to the states of
   170 >   the minimal automaton that recognizes $L$ (and you even agree with
   170 >   the minimal automaton that recognizes $L$ (and you even agree with
   171 >   that in the Related Work section!). Therefore, I disagree with your
   171 >   that in the Related Work section!). Therefore, I disagree with your
   325 shows (although they left out the details in their paper) that the 
   325 shows (although they left out the details in their paper) that the 
   326 set of derivatives is inductively finite. 
   326 set of derivatives is inductively finite. 
   327 
   327 
   328 In our opinion, Coquand and Siles' development strongly justifies our 
   328 In our opinion, Coquand and Siles' development strongly justifies our 
   329 comment about formalisation of Brzozowski's argument being painful.
   329 comment about formalisation of Brzozowski's argument being painful.
   330 If you like to add this as a reference in the paper, we are happy
   330 If you like to have this reference added in the paper, we are happy
   331 to do so. 
   331 to do so. 
   332 
   332 
   333 > - Section 6, p20, previous to last paragraph: you say that the
   333 > - Section 6, p20, previous to last paragraph: you say that the
   334 >   construction of the complement regular expression involves several
   334 >   construction of the complement regular expression involves several
   335 >   transformations: you could shave off the construction of the
   335 >   transformations: you could shave off the construction of the
   336 >   non-deterministic automaton, since it can be avoided using
   336 >   non-deterministic automaton, since it can be avoided using
   337 >   Antimirov's construction of a DFA (as you do).
   337 >   Antimirov's construction of a DFA (as you do).
   338 
   338 
   339 We feel that our sequence adequately represents procedure
   339 We feel that our sequence adequately represents the procedure
   340 that is used by informed outsiders and that is usually 
   340 that is used by informed outsiders and that is usually 
   341 taught to students. Antimirov's construction using partial
   341 taught to students. Antimirov's construction using partial
   342 derivatives is unfortunately not widely known, which we hope
   342 derivatives is unfortunately not widely known, which we hope
   343 we can help to change with this paper.
   343 we can help to change with this paper.
   344 
   344 
   351 >   operator. On the other hand, in Coq, it is often involved to prove
   351 >   operator. On the other hand, in Coq, it is often involved to prove
   352 >   decidability results, which may make it more difficult to formalize
   352 >   decidability results, which may make it more difficult to formalize
   353 >   some of the arguments you are using. Is it possible in Isabelle/HOL
   353 >   some of the arguments you are using. Is it possible in Isabelle/HOL
   354 >   to track what are the uses of classical logic that you use? 
   354 >   to track what are the uses of classical logic that you use? 
   355 
   355 
   356 In theory there is a way to track all classical uses in Isabelle,
   356 In theory there is a way to track all classical uses in Isabelle/HOL,
   357 but this can be practically unfeasible, since proof terms can be 
   357 but this can be practically unfeasible, since proof terms can be 
   358 gigantic (therefore the Isabelle/HOL follows the LCF approach 
   358 gigantic (therefore the Isabelle/HOL follows the LCF approach 
   359 where only theorems need to be recorded for correctness). Having 
   359 where only theorems need to be recorded for correctness). Having 
   360 said that there is one obvious place in our proof where we used 
   360 said that, there is one obvious place in our proof where we used 
   361 a "classical" shortcut by using + for generating a single regular 
   361 a "classical" shortcut by using + for generating a single regular 
   362 expression from a finite set of expressions. This would need better 
   362 expression from a finite set of expressions. This would need better 
   363 "explanation" in a constructive proof. There are no other inherent
   363 "explanation" in a constructive proof. There are no other inherent
   364 classical shortcuts in the proof. But as said before opening we
   364 classical shortcuts in the proof. But as said before, we think opening 
   365 think opening this can-of-worms is beside the focus of the paper.
   365 this can-of-worms is beside the focus of the paper.
   366 
   366 
   367 
   367 
   368 >  In particular, I am worried about the last sentence on page 24: how do
   368 >  In particular, I am worried about the last sentence on page 24: how do
   369 >  you make these sets computational? 
   369 >  you make these sets computational? 
   370 
   370 
   384 >   Myhill-Nerode theorem is an algorithm that minimize automata: could
   384 >   Myhill-Nerode theorem is an algorithm that minimize automata: could
   385 >   you provide, for instance, an algorithm that compute the number of
   385 >   you provide, for instance, an algorithm that compute the number of
   386 >   equivalences classes of your Myhill-Nerode relation?  
   386 >   equivalences classes of your Myhill-Nerode relation?  
   387 
   387 
   388 We have attempted to be very careful with our comments about the
   388 We have attempted to be very careful with our comments about the
   389 formalisation sizes from other works. Our intention is only to draw
   389 formalisation sizes from other works. Our point is to draw
   390 attention to the somewhat surprising point, namely that formalisation
   390 attention to the somewhat surprising fact, namely that formalisation
   391 using automata (either out of choice or being forced) led to 
   391 using automata (either out of choice or being forced) led to 
   392 formalisations where the people in question had to fight their
   392 formalisations where the people in question had to fight their
   393 theorem prover. On the other hand, our formalisation could rely
   393 theorem prover. On the other hand, our formalisation could rely
   394 on the fact that regular expressions are inductive datatypes which
   394 on the fact that regular expressions are inductive datatypes which
   395 are generally well-supported by theorem prover reasoning. We hope
   395 are generally well-supported by theorem prover reasoning. We hope
   405 >   context of the ssreflect dialect. For instance, you may have a look
   405 >   context of the ssreflect dialect. For instance, you may have a look
   406 >   at Dénès M, Mörtberg A, Siles V.  2012.  A refinement-based approach
   406 >   at Dénès M, Mörtberg A, Siles V.  2012.  A refinement-based approach
   407 >   to computational algebra in COQ. ITP 2012. It does not seem that
   407 >   to computational algebra in COQ. ITP 2012. It does not seem that
   408 >   there is a particular problem with the use of matrices. 
   408 >   there is a particular problem with the use of matrices. 
   409 
   409 
   410 We relied completely on the comment by (expert formaliser in Coq) Braibant 
   410 We relied completely on the comment by (we assume expert formaliser in Coq) 
   411 from his thesis which explicitly states 
   411 Braibant from his thesis which explicitly states: 
   412 
   412 
   413   | Note that while they [Wu, Zhang, Urban] justify their work by the fact  
   413   | Note that while they [Wu, Zhang, Urban] justify their work by the fact  
   414   | that formalising automata ``can be a real hassle in HOL-based provers'', 
   414   | that formalising automata ``can be a real hassle in HOL-based provers'', 
   415   | and that neither Isabelle/HOL nor HOL4 nor HOL-light support matrices and 
   415   | and that neither Isabelle/HOL nor HOL4 nor HOL-light support matrices and 
   416   | graphs with libraries, we did not encounter such difficulties in Coq 
   416   | graphs with libraries, we did not encounter such difficulties in Coq 
   442 > sometimes less than perfect; 2. a spell-checker should be used; 3. the
   442 > sometimes less than perfect; 2. a spell-checker should be used; 3. the
   443 > typography is occasionally dubious; and that 4. it all needs to be
   443 > typography is occasionally dubious; and that 4. it all needs to be
   444 > re-read with more care.
   444 > re-read with more care.
   445 
   445 
   446 We have improved the paper. Please let us know if we
   446 We have improved the paper. Please let us know if we
   447 overlooked any more errors.
   447 overlooked any other errors.
   448 
   448 
   449 > Finally, the conclusion and related work sections are reasonable.  I
   449 > Finally, the conclusion and related work sections are reasonable.  I
   450 > think the conclusion could usefully discuss the executability of the
   450 > think the conclusion could usefully discuss the executability of the
   451 > algorithm in the first half of the M-N proof.  
   451 > algorithm in the first half of the M-N proof.  
   452 
   452 
   453 Informally, the algorithm is clearly executable. But we have not 
   453 Informally, the algorithm is clearly executable. But we have not 
   454 attempted this with our formalisation. 
   454 attempted this with our formalisation or modified the formalisation
       
   455 so that it becomes executable by Isabelle/HOL.
   455 
   456 
   456 > Also, the conclusion discusses the Brzozowski's algebraic method in 
   457 > Also, the conclusion discusses the Brzozowski's algebraic method in 
   457 > this context, and argues that the equational constraints that appear 
   458 > this context, and argues that the equational constraints that appear 
   458 > in this paper are not quite the same as a minimal automaton. It's 
   459 > in this paper are not quite the same as a minimal automaton. It's 
   459 > clear that, yes, they are a little different, but it still seems to 
   460 > clear that, yes, they are a little different, but it still seems to