Re: [isabelle-dev] code abbreviation for mapping over a fixed range

2015-11-15 Thread Florian Haftmann
See now 9a51e4dfc5d9. Florian Am 12.11.2015 um 10:58 schrieb Jose Divasón: > Hi Bertram, Christian and Bertram, > > I would like to put my two cents in this topic. I have done a simple > experiment about this using my AFP entry about the QR decomposition, > where a strong use of map_rang

Re: [isabelle-dev] code abbreviation for mapping over a fixed range

2015-11-12 Thread Jose Divasón
Hi Bertram, Christian and Bertram, I would like to put my two cents in this topic. I have done a simple experiment about this using my AFP entry about the QR decomposition, where a strong use of map_range is done. With the current map_range definition, the computation of the QR decomposition of a

Re: [isabelle-dev] code abbreviation for mapping over a fixed range

2015-11-12 Thread Florian Haftmann
> The new definition actually causes *more* allocation than the original > one, except for very short lists, because every call of @ copies its > first argument. Note that the code equation for [_..<_] is > > lemma upt_rec[code]: "[i.. > which has no calls to @ at all; a corresponding code equa

Re: [isabelle-dev] code abbreviation for mapping over a fixed range

2015-11-07 Thread Bertram Felgenhauer
Hi Florian, > > This email refers to the following commit: > > > > http://isabelle.in.tum.de/repos/isabelle/rev/7d1127ac2251 > > > > code abbreviation for mapping over a fixed range > > > > Is there a specific reason for this code equation: > > > > "map_range f (Suc n) = map_range f n @ [

Re: [isabelle-dev] code abbreviation for mapping over a fixed range

2015-10-29 Thread Florian Haftmann
Hi Christian, > This email refers to the following commit: > > http://isabelle.in.tum.de/repos/isabelle/rev/7d1127ac2251 > > code abbreviation for mapping over a fixed range > > Is there a specific reason for this code equation: > > "map_range f (Suc n) = map_range f n @ [f n]" > > It s

Re: [isabelle-dev] code abbreviation for mapping over a fixed range

2015-10-19 Thread Christian Sternagel
This email refers to the following commit: http://isabelle.in.tum.de/repos/isabelle/rev/7d1127ac2251 code abbreviation for mapping over a fixed range Is there a specific reason for this code equation: "map_range f (Suc n) = map_range f n @ [f n]" It seems rather inefficient. Anyway, what