Re: [isabelle-dev] sets and code generation

2012-04-10 Thread Makarius
On Tue, 27 Mar 2012, Jesus Aransay wrote: trying to import simultaneously the theory file HOL/Matrix/Matrix.thy and the afp entry http://afp.sourceforge.net/entries/Matrix.shtml into a file theory Matrix_ex imports ~~/src/HOL/Matrix/Matrix Matrix/Matrix begin Is there an easy way out of

Re: [isabelle-dev] sets and code generation

2012-03-28 Thread Florian Haftmann
Hi Jesus, trying to import simultaneously the theory file HOL/Matrix/Matrix.thy and the afp entry http://afp.sourceforge.net/entries/Matrix.shtml into a file, it seems that the second theory file unloads the first one (as Makarius suggested in his mail): theory Matrix_ex imports

Re: [isabelle-dev] sets and code generation

2012-03-27 Thread Jesus Aransay
Dear all, trying to import simultaneously the theory file HOL/Matrix/Matrix.thy and the afp entry http://afp.sourceforge.net/entries/Matrix.shtml into a file, it seems that the second theory file unloads the first one (as Makarius suggested in his mail): theory Matrix_ex imports

Re: [isabelle-dev] sets and code generation

2012-03-23 Thread Lukas Bulwahn
On 03/23/2012 11:45 AM, Jesus Aransay wrote: I know there is an alternative way to get that, by means of sparse matrices (SparseMatrix.thy), but it demands translating every operation over the matrix type to its equivalent version for sparse matrices, which may be sometimes hard work. Code

Re: [isabelle-dev] sets and code generation

2012-03-23 Thread Makarius
On Fri, 23 Mar 2012, Christian Sternagel wrote: Maybe the AFP entry for executable matrix operations is useful for you. http://afp.sourceforge.net/entries/Matrix.shtml (HOL/Matrix/Matrix.thy). Note that in current Isabelle/08c22e8ffe70 HOL/Matrix is actually called HOL/Matrix_LP, in order

[isabelle-dev] sets and code generation

2012-03-21 Thread Christian Sternagel
Hi there, since set is a proper type some code equations that used to work, no longer do, e.g., op | = {(x, y). supt_impl x y} as a code equation leads to an error stating that terms (x and y are first-order terms) do not support the enum class. Since the possible terms (using strings as

Re: [isabelle-dev] sets and code generation

2012-03-21 Thread Lukas Bulwahn
On 03/21/2012 08:36 AM, Christian Sternagel wrote: Hi there, since set is a proper type some code equations that used to work, no longer do, e.g., op | = {(x, y). supt_impl x y} as a code equation leads to an error stating that terms (x and y are first-order terms) do not support the enum

Re: [isabelle-dev] sets and code generation

2012-03-21 Thread Christian Sternagel
On 03/21/2012 05:05 PM, Lukas Bulwahn wrote: On 03/21/2012 08:36 AM, Christian Sternagel wrote: Hi there, since set is a proper type some code equations that used to work, no longer do, e.g., op | = {(x, y). supt_impl x y} as a code equation leads to an error stating that terms (x and y are

Re: [isabelle-dev] sets and code generation

2012-03-21 Thread Lukas Bulwahn
On 03/21/2012 09:08 AM, Christian Sternagel wrote: On 03/21/2012 05:05 PM, Lukas Bulwahn wrote: On 03/21/2012 08:36 AM, Christian Sternagel wrote: Hi there, since set is a proper type some code equations that used to work, no longer do, e.g., op | = {(x, y). supt_impl x y} as a code

Re: [isabelle-dev] sets and code generation

2012-03-21 Thread Florian Haftmann
Hi Christian, since set is a proper type some code equations that used to work, no longer do, e.g., op | = {(x, y). supt_impl x y} there is a couple of issues you are hitting at here. A. The (re-)introduction of the set type constructor See