Karim Belabas on Sun, 10 Mar 2024 10:56:33 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Question on completeness of the qfminin() command on finding all vectors for a given positive definite symmetric matrix
|
- To: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Subject: Re: Question on completeness of the qfminin() command on finding all vectors for a given positive definite symmetric matrix
- From: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
- Date: Sun, 10 Mar 2024 10:56:27 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1710064590; c=relaxed/relaxed; bh=tbbgDMgxthYeMmlyTCTrH6TIaYyhRjDZda65O5pqg8Q=; h=DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; b=0fYTD0KVQjslYI5JDbaT/IREF4rKnx1Junal39LuSzKcBnmHFprnh6PYFyCMviZ3qL+j5eEphSbE6da9ox+KroEsNdSiiCqzVcwsgHUTwH3AZhvBb9tn7R7UciTtGgZoJpOeUanG3u8++sOxhdfIHmgJ5ahKy0fys4J/lMBln5kGGbD3S3tJ14Frg6sRKo0sR1g0C0oj1ZuBdQT7mdCjFj63dabutgS7AeaBHEzy1EV+Druzn8VSVD8vtMVQog41ND4cr+Ew9k8uV0PMdh4idY7a9R27bK89gs8DsXN8r0lwHXsz7d63TbJTKSdDmaiew5f13ep+UivulvP+7tT/3NO2U580ZMuLCuKSdO4oguKWeyNLd/bRqSmZIFwHZu3a9/VQFbp43OPx1o+Bo0KHA3Jt/wW89Q99s8TbWnAlQLdWjlzRkB5gkdsFBTOVD2qKEBJguFle2UQO9C3S62U9km4Z5vR/zCqAlIUW22jiD3SNavErj4bQ08Aunm4yGLE4EVB0ZOZaFJr/ye4DhJX5ORp0wkMyAcntIzreLFUNSgdhLBEahaXHqCdqseu8pDUFgvZZSG770k7KtqnHs0IS7p5+SEfCboowLiP9fkTp4bZoJa5YvzV47KhO/g8qxfDR+fLFfU1KKxO85gb11Jw4K7mEc/v+e5ZY5+6PLiiZKto=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1710064590; cv=none; b=k47/YRYn6oXf0uSAbFGlCvR87nyT02OcJmP7i2uBNYvSOp6PqP/aneRrh908gFOHIoqj3khnwDhVUHKuNN8F2GcLNOhQYiOpDDhbsoU/CacebJ1S1Uz3MpwHyJyXDDgQzikhTtEP70V9jT5OlSi8UZX4S00zfzdvmcSTlwc2D0rGeoLJiFP3i/IIwjyldy/3ain6YXTCw0ag4jBL34Rpk1JL9hGWXiyONtuHSU43uDoKNRMFjlLGKCyMXl25HA7KBMPkGJwP+ZFg0ki2+eSJneHkO+/r8Xq1FHzl80SzYk/Scyrgv+7Syo16t5dlATnayZfv+M1gtXE/vS2P9kyQBkwJKNMajxtYZk91mXP42RkeTZGWYxX6JbYDoUewNf++KDJcwPSKVxmdJlCf3+V2N4HRO81mZryCdbqxKsNeev+eeSxgGe8jdNf6zLAr8RtROCaMwIZXhQR1Bw0JIyTdQyB2r72sIhv3+mS2GIaxuzpna4wB6U4xnsxUN6nr1NCGJVMPde1wPA0HEqK8dWKbYLmG2HFpjDzGe6JPCtCsi0Y7R+/9FR7oODrhtmbAqRbu35p/M7oHoPRX1J8z5I+gfBANZNh6gkrxC26Sw0pXCrUGInnZczsTq+AyvRd7d+iY4l83rFQJPUoeWZ5XDRmC/d6Gb0qiHcLg+Gog04aSepQ=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Cc: pari-users@pari.math.u-bordeaux.fr
- Delivery-date: Sun, 10 Mar 2024 10:56:34 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1710064590; bh=tbbgDMgxthYeMmlyTCTrH6TIaYyhRjDZda65O5pqg8Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BrkLdiNKxQZ5o7Dhvibbx69lmsyl++LNTwihJJNzPYmg/dej6z65i6419LRJeCc0V VYohoatTs391om5+45fYnwcx9r8ni/v5xG69Bk/HWfY1Aa2w0yzF7IjpvNarK5J2Kb PBJgNVuM2DIvsCpDLEKX9PPtupH+uhjelh2mpsHCyACy/bzwzHPvmkaRxiR08fee07 4/iISEE5r3eD23DrgEoUVK/gHD/u3H63PAY5codmJKyk3b+jr3kYtQH4QN0DO63XUe lMAxe8C1M4ddn54WN+huBoZ+LExzSRd7m3wr4MkOhFUq11nSU5Jd6YZKboHqUOCLv3 4tjxkER1Q9HSjA+TrhzRQvXPSjlPUM3SATTnKPbg/rKUdCI0FgIwsds+g3/Hc4n2y6 4yJ7DuOzn2XEqSAFiDmdhUKV+AfjVV+z+FA1DMhQvMxDUz/eXOzPrwewtgOieK4thW LpOq3MCuSZNBF2POWFNQ+fP3tL4WFQHuYy3ADuHUG9Ax1qGteZf9Scukmb2stxv3Yw AF/mRACfTa/b87L+Uk3SKbeOF3itjJ3e84Kgw6T2cmWCGWP0g2j7SpF3B/a5sKOXEN ta+pNQKTauq7NnnAnuuiM2pRuH1cRljCps+Jhv2jRvklf7yN2Io4JtFBIrNP6VbqeN SjLZHe/zlu9D3isbRFJpcbcA=
- In-reply-to: <Zey5QRWS2GgLDT1X@seventeen>
- Mail-followup-to: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>, pari-users@pari.math.u-bordeaux.fr
- References: <56b1c452-f822-4cc2-b7f9-25d39ee3866e@gmail.com> <45ba3a8653020105d882edce9bf271bc@stamm-wilbrandt.de> <97ad550b-3e3f-4a62-8699-73b019b8c1f4@gmail.com> <Zey5QRWS2GgLDT1X@seventeen>
* Bill Allombert [2024-03-09 20:32]:
> On Mon, Mar 04, 2024 at 05:57:06PM -0800, American Citizen wrote:
> > Hermann:
> >
> > You are exactly correct!. I have to add the negative points, since qfminim
> > only supplies the "positive" vectors. Note that I said "positive" vectors,
> > because the entries might < 0.
> >
> > I know now that Bill wrote this algorithm to give the most efficient answer,
> > and we have to remember to add the "negative" vectors.
>
> Thanks but qfminim is older than my involvement with PARI/GP!
Christian Batut wrote a first version (the original minim() function,
using the Fincke-Pohst algorithm), I wrote the current one in 1997.
> When qfminim was written, memory was a serious limitation of computers.
> Storing only half the vectors saved a lot of memory for lattices with lots of
> minimal vectors like the Leech lattice.
Funny, it turns out I am currently thinking about the internal
(re)implementation of qfminim used in bnfinit. That function
Fincke_Pohst_ideal() looks for friable elements of small Euclidean (not
algebraic!) norm in various ideals to find relations in the class group
and ultimately determine it. Given an isometry of finite order n
(attached to x -> ζ x in the number field for some n-th root of unity,
generalizing the obvious x -> -x), then it is enough to enumerate a
single vector in each orbit.
Memory is not the concern here: all such vectors, whether friable or
not, provide the same information so there's no need to consider them all.
We have internal cutoffs so we do not gain a straight factor n; but in the
wost case we do, and it also complicates late stage linear algebra for no
reason (introducing useless relations that will need to be filtered out).
Finally, it makes "compact units" (represented in factored form) more
complicated than they should, since we can end up with various ζ^k x in
the factorization, instead of grouping them together.
I don't know how to gain a factor n in the enumeration in this case,
where gaining a factor 2 from x -> -x was straightforward (make the
first non-zero coordinate positive). I'm not even sure of how to
efficiently choose a representative in each orbit. What I'm currently
doing is enumerating n/2 vectors in the orbit (up to x->-x)
of each FRIABLE element we discover - there are few of them - and
choosing an arbitrary (lexicographic) minimum. I'd very much like to
perform efficiently the same task at the level of the initial
enumeration of vectors, before the expensive friability test.
Can't really afford to enumerate n/2 as many vectors just to choose
"reduced" representatives.
Cheers,
K.B.
--
Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/