Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'ce.ask' does not give answers (where info. is available) #225

Open
samueltlg opened this issue Dec 19, 2024 · 0 comments
Open

'ce.ask' does not give answers (where info. is available) #225

samueltlg opened this issue Dec 19, 2024 · 0 comments

Comments

@samueltlg
Copy link

Description

ce.ask appears to return an empty result (array) at level of basic, well-formulated predicates/propositions.

Steps to Reproduce

Basic case:

const ce = new ComputeEngine();

ce.declare('x', 'finite_real');

ce.ask(['Element', 'x', 'finite_real']);
// → [ ]

ce.ask(['Element', 'x', 'any']);
// → [ ]

// Further assumption
ce.assume(['Greater', 'x', 0]);
// → 'ok'

ce.ask(['Greater', 'x', '_value']);
// → [ ]

Actual Result

Empty arrays/results, for queries which have answers with current knowledge.

Expected Result

Array of BoxedSubstitution's, e.g. {'_value': 0} for query ce.ask(['Greater', 'x', '_value'])

Compute Engine version

0.27.0 (a bit further on, truthfully: #a981709)

(not sure if this functioning in prior versions, even so little far-back as 0.26.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant