Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8734375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:49:46+00:00 2026-06-13T09:49:46+00:00

I am new to Mathematica(v8) and am using it to program propositional logic. I’m

  • 0

I am new to Mathematica(v8) and am using it to program propositional logic.

I’m wondering what the difference is between the If and the Implies operators. For example,
both If[p,q] and Implies[p,q] return q for p=True (as expected).

But when I try to obtain SatisfiabilityInstances, I get the following:

SatisfiabilityInstances[If[p, q], {p, q}]
(*
  {{True, True}}
*)  

unless I ask it for more instances:

SatisfiabilityInstances[If[p, q], {p, q}, All]

SatisfiabilityInstances::boolv: “If[p,q] is not Boolean valued at {False,True}.

However:

SatisfiabilityInstances[Implies[p, q], {p, q}, All]   

returns the expected out of:

(* {{True, True}, {False, True}, {False, False}} *)

What is causing this difference in the outputs?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:49:47+00:00Added an answer on June 13, 2026 at 9:49 am

    It is what it said — If is not Boolean, i.e. it returns not only true or false. Try If[False,True] and you’ll see no result. If[a,b,c,d] can return any b, c and d, not only Boolean, for example If[True,2] returns 2. So, If is for branching (even being functional) while Implies is a normal Boolean function.

    P.S. Ah, Implies also can return 2. So the difference is that If[False,True] returns nothing, so SatisfiabilityInstances function can’t find true area.

    P.P.S. More precisely, if the first argument of If[] is False then it returns it’s third argument. When it is absent, it returns nothing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a new user of Mathematica and I can't figure out how to
In C++, I've written a mathematical program (for diffusion limited aggregation) where each new
new on ruby and using windows xp and rails 3, i want to send
New developer here,Im using the Custom Image Picker by ray wenderlich. But what I
I have a very complicated mathematica expression that I'd like to simplify by using
I am currently using a buffered streams to read write some files. In between
I was wondering how I would go about using Python to create a Graph
Good day, I thought earlier that Mathematica creates new symbols in the current $Context
I'm writing a program that randomly assembles mathematical expressions using the values stored in
I am very new to Java, and trying to use Mathematica's Java interface to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.