Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199014 - Stabilize dev-lang/qu-prolog-8.2
Summary: Stabilize dev-lang/qu-prolog-8.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Prolog project
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2007-11-13 06:44 UTC by Keri Harris
Modified: 2007-11-21 11:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keri Harris gentoo-dev 2007-11-13 06:44:43 UTC
dev-lang/qu-prolog-8.2 has been in the tree for over 30 days without bugs. Please stabilize.
Comment 1 Dawid Węgliński (RETIRED) gentoo-dev 2007-11-13 16:44:59 UTC
Sure, when you only tell us where can we find 'qu-prolog-8.2-xqp-qt4.tar.gz'...

http://dev.gentoo.org/~zmedico/infra/distfiles/failure.xml says it fails to fetch.
Comment 2 Keri Harris gentoo-dev 2007-11-14 05:03:46 UTC
Sorry about that. I buggered up moving the xqp tarball around. :-(
I've uploaded it to distfiles. When it hits the mirrors please retry.

Thanks.
Comment 3 Markus Ullmann (RETIRED) gentoo-dev 2007-11-14 20:20:18 UTC
is there some simple test to see if it really works?
Comment 4 Keri Harris gentoo-dev 2007-11-15 02:55:02 UTC
I guess the simplest test is to run 'qp' and see if you have a Prolog interpreter:

$ qp
Qu-Prolog Version 8.2

| ?- 

If you've programmed in Prolog you can test out some generic system predicates. e.g.:

| ?- append(Prefix, [c,d|RestOfList], [a,b,c,d,e,f]).

Prefix = [a, b]
RestOfList = [e, f]<enter>

| ?-


If you want to test something more substantive then perhaps the easiest way to see a few features of Qu-Prolog is to follow some of the examples in the userguide main.ps (installed with USE="doc"). However a number of examples provided in main.ps assume you've set up appropriate quantifiers and predicates. With all this in mind, a quick way to test that Qu-Prolog at least runs and "does something":

1. emerge qu-prolog with USE="doc examples"

2. from the examples directory run 'qp' to give you a Prolog interpreter.

3. load up some of the example Prolog example files to set up Qu-Prolog use as a theorem prover:

| ?- [incomplete_unify].
Warning: force_deref_rev / 2 Singleton Variables: [X]
Warning: force_deref_rev / 2 Singleton Variables: [R]
Warning: force_identical_subs / 4 Singleton Variables: [S1, S2, Snfi]
Warning: force_empty_sub / 3 Singleton Variables: [S]

yes

| ?- [natural_deduction].
Warning: rule / 3 Singleton Variables: [B]
Warning: rule / 3 Singleton Variables: [A]
Warning: rule / 3 Singleton Variables: [T]
Warning: rule / 3 Singleton Variables: [A]
Warning: rule / 3 Singleton Variables: [T]

yes

| ?-

4. select an example from section 4 ("A simple theorem prover") of main.ps and follow the steps outlined. e.g.:

| ?- prove( th3, all x1 ex x2 P(x1,x2) => ex x2 all x1 P(x1,x2)).
auto : imp_i

1:  all x1 (ex x2 P(x1, x2))
---------------------------------------------------
ex x2 (all x1 P(x1, x2))

:: x1 not_free_in P, x2 not_free_in P, x1 not_free_in x2.

1:  all x1 (ex x2 P(x1, x2))
---------------------------------------------------
ex x2 (all x1 P(x1, x2))

:: ex_i.
auto : all_i

1:  all x1 (ex x2 P(x1, x2))
---------------------------------------------------
P(x0, A)

:: all_e(_).
auto : ex_e(1)

1:  P(B, x3)
2:  all x1 (ex x2 P(x1, x2))
---------------------------------------------------
P(x0, A)

:: show_constraints.


x1 not_free_in [x2]
x2 not_free_in [x1]
x3 not_free_in [x0]
x0 not_free_in [x3]
x3 not_free_in B
x3 not_free_in A
x0 not_free_in A
x3 not_free_in P
x0 not_free_in P
x2 not_free_in P
x1 not_free_in P

1:  P(B, x3)
2:  all x1 (ex x2 P(x1, x2))
---------------------------------------------------
P(x0, A)

::
Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2007-11-15 08:00:01 UTC
x86 stable
Comment 6 nixnut (RETIRED) gentoo-dev 2007-11-16 17:49:23 UTC
ppc stable
Comment 7 Raúl Porcel (RETIRED) gentoo-dev 2007-11-21 11:07:27 UTC
sparc stable, closing.