<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="m10514">
  
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">homework A solutions</name>
<metadata xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
  <md:version xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">2.6</md:version>
  <md:created xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">2003/02/03</md:created>
  <md:revised xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">2004/05/14 13:46:48.445 GMT-5</md:revised>
  <md:authorlist xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <md:author xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="ian">
      <md:firstname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Ian</md:firstname>
      
      <md:surname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Barland</md:surname>
      <md:email xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">ian@cs.rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <md:maintainer xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="justin">
      <md:firstname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Justin</md:firstname>
      
      <md:surname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Garcia</md:surname>
      <md:email xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">bih@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="ian">
      <md:firstname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Ian</md:firstname>
      
      <md:surname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Barland</md:surname>
      <md:email xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">ian@cs.rice.edu</md:email>
    </md:maintainer>
    <md:maintainer xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="cohen">
      <md:firstname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Brian</md:firstname>
      <md:othername xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">E</md:othername>
      <md:surname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Cohen</md:surname>
      <md:email xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">cohen@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="set">
      <md:firstname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Sarah</md:firstname>
      <md:othername xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Elizabeth</md:othername>
      <md:surname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Trowbridge</md:surname>
      <md:email xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">set@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="seleniat">
      <md:firstname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Bryan</md:firstname>
      
      <md:surname xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Cash</md:surname>
      <md:email xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">seleniat@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <md:keyword xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">propositional logic homework solutions</md:keyword>
  </md:keywordlist>

  <md:abstract xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/>
</metadata>


<content xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">

<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para1"> 
Do problems 1-19 (inclusive),
less the practice-problems (which already have a solution).
Due 2004.Jan.27 (Tue),
either at the start of class or
under the instructor's door (DH3117) by 17:00,
to avoid the
<link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://www.owlnet.rice.edu/~comp280/04spring/index.shtml#late-policy">late penalty</link>.
</para>


<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para2">
<note xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="aside">
  Rice Students: If you like, you can play WaterWorld
  on OwlNet, in <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">/home/scheme/bin/waterworld</code>.
  To run Waterworld on your home computer,
  download (from owlnet) the directory
  <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">/home/scheme/plt/203/collects/waterworld/</code>,
  and (from <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">drscheme</code>) add it as a teachpack.
</note>
</para>





<section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="section1">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Propositional Logic</name>

<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise1">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para3">[practice] 0pts</para>
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para4">
    Your friend Tracy argues:
    "It is bad to be depressed.
    Watching the news makes me feel depressed. 
    Thus it's good to avoid watching the news."
    </para>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para5">
    Regardless of whether the premises and conclusion are true,
    show that the <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">argument</emphasis> is not,
    by showing it doesn't hold for all domains.
    Replace "depressed" and "watching news" with
    expressions which leave the premises true,
    but the conclusion false
    (or at least, what most reasonable people would consider false).
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
   <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para6">
    Lots of possible counterexamples.
    "It is bad to be depressed.
    Doing homework makes me depressed;
    so it's good to not do my homework."
    Or,
    "It is bad for people to be in physical pain.
    Childbirth causes pain.
    Therefore childbirth needs be avoided by all people."
    If the original conclusion is really correct,
    Tracy needs to elucidate some of his unspoken assumptions.
    </para>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para7">
    The flaw seems to be along the lines of,
    "avoiding bad in the short run
    may not always be good in the long run"
    (or equivalently, sometimes you have to
    choose the lesser of two evils).
    No, you weren't asked to name a specific flaw,
    and reasonable people can differ on precisely what the flaw is.
    (And, formal logic is not particularly helpful here.)
    Nonetheless, uncovering hidden assumptions
    in arguments often helps understand the real issues involved.
    </para>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para8">
    <note xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="aside">
      For fun,
      pick up the front page of the daily newspaper,
      and see how many arguments use faulty rules of inference and/or
      rely on unspoken premises (which not all might agree with).
      In particular, political issues as spun to the mainstream press
      are often riddled with error,
      even though there are usually reasonable arguments on
      both sides which policy-makers and courts debate.
      
    </note>
    </para>
  </solution>
</exercise>

<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise2">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para9">[practice] 0pts</para>
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para10">
    An acquaintance says the following to you:
    "Chris claims knowledge is more important than grades.
    But she spent yesterday doing an extra-credit assignment
    which she already knew how to do.
    Therefore, she's a hypocrite and deserves no respect."
    </para>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para11">
    Regardless of whether the premises and conclusion are true,
    show that the <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">argument</emphasis> is not,
    by showing it doesn't hold for all domains.
    Replace "knowledge" and "grades" with expressions which 
    give you true premises, but a false conclusion
    (or at least, what most reasonable people would consider false).
    
    <note xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="hint">
      Exaggerate "knowledge" to something more important,
      and "grades" to something less important.
    </note>
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para12">
    "Terry claims that encouraging human-rights 
     is more important than playing Tetris.
    But Terry played Tetris yesterday 
    (rather than volunteering with
    <link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://www.amnesty.org/">Amnesty International</link>)."
    Most people wouldn't condemn Terry as a hypocrite just
    because of this; even the most dedicated of people are
    entitled to <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">some</emphasis> free time.
    If your friend wants to prove Terry hypocritical,
    they'll have to provide further evidence or arguments.
    </para>

    

    
  </solution>
</exercise>

<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise3">
<problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">

<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para13">
(1pt)
Choose <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">just one</emphasis> of the following informal arguments.
For your choice,
give a different conclusion -- a counterexample -- which is equally well
justified by the provided argument, yet is false
(or at least, clearly more false than the original).

For this exercise,
strive for realistic counterexample, 
rather than exagguratedly trivial as on the previous exercises.

</para>

<list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="list1">
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Since 18-to-20 year olds aren't particularly mature,
      the minimum 
      <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">drinking age</emphasis> needs be (at least) 21.
</item>

<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
Talking on a cell phone while driving 
increases the likelihood of an accident.
Interestingly, 
<link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://www.sciencedaily.com/releases/2003/01/030129080944.htm">
hands-free phones does not significantly help</link>.
It's just the distraction of a phone conversation
that causes the problem.

</item>





<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
If two companies offer two entirely equivalent products,
then most everybody will buy the cheaper one.
</item>

<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
In the free market, 
if a company doesn't offer good service,
individual customers will become fed up and take their business
elsewhere.
</item>

<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
If there are two versions of a free web browser,
and they run equally quickly,
users will use the one with better features/interface.
</item>


<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
Anybody who really wants to break into your house while you're gone
will be able to.
(For instance, using a towel to muffle sound,
break the corner of a back window, reach in and
unlatch the window, and climb through.)
So there's no point in locking your front door.
</item>




</list>
</problem>

<solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">

<list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="list2">
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> One the age of maturity:
Voting, being drafted to combat, smoking -- all are
activities (arguably) at least as much maturity,
yet they don't have a minimum age of 21.
There may be other reasons why drinking has a higher threshold,
but they aren't acknowledged by the original argument.
</item>
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">

Cell phones:
The argument doesn't acknowledge the "phone" part
of the conversation at all,
so it leads equally well to:
"A conversation between driver and passenger is just as dangerous."

¶


In reality, 
phone conversations are presumably more dangerous than those
with a passenger; a good argument leads to trying to
identify/hypothesize the difference.

¶


I suspect it would be the that a passenger is aware of
the road conditions, and routinely pauses the conversation when
the driver needs to pay extra attention (while passing, etc.)
This hypothesis is certainly testable, though psychologists
have their work cut out for them actually trying to
measure this effect formally.

¶


(Experiments <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">have</emphasis> controlled for the personality-type which
tends to have a cell phone in the first place.)

</item>

<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">

People by cheapest of two equivalent products:
Counterexample: generics.
Aspirin, Mouthwash, etc.
Some are essentially identical to the name-brand product,
yet people will prefer the name-brand.  
Partly, out of confidence -- while some generics
are the same as their counterpart,
you don't always know that;
it's more efficient to buy a brand-name
than to be constantly questioning your selections.

¶


Other interesting 
counterexamples are artificial diamonds
(atom-for-atom equivalent to a real diamond),
and indistinguishable copies of famous artwork.

¶

<note xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="Personal advice">
In my personal experience: 
While many generics are as effective as their counterparts, 
don't dally with bargain dental floss --
it's not worth it! --ian
</note>
</item>

<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
On businesses' having their customers' best interest in mind:
Car or house sales --
where an individual doesn't do routine business.
Car dealers routinely use deceptive tactics,
and closing on a house often includes "junk fees" -- perhaps
part of a realtor's deserved profit, but certainly not labeled
as such.
</item>

<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
As a counterexample,
there are browsers available which block pop-ups
as a simple preference.  
However, several leading browsers don't include this feature
(or didn't until recently).
Despite not having additional features of significance,
many people tend to stick with the browser they have;
perhaps
it's not worth their time to always be hunting for a better one.
Thus inferior products can still enjoy market use.
</item>

<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
By this same "it won't stop a determined burglar" reasoning,
you should leave your front door unlocked
(over even wide open).
Clearly, while a determined burglar admittedly can be hard to foil,
there may well be many less-determined burglars (or neighborhood hooligans)
who <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">would</emphasis> be stopped by a lock,
since they're not willing to break a window.
</item>
</list>

</solution>
</exercise>



<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise4">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para14">[practice] 0pts</para>
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para15">
    Let <m:math><m:ci>p</m:ci></m:math>, <m:math><m:ci>q</m:ci></m:math>, and <m:math><m:ci>r</m:ci></m:math> be the following propositions:
    <list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="list3">
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> <m:math><m:ci>p</m:ci></m:math>: You get an A on the final exam
      </item>
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> <m:math><m:ci>q</m:ci></m:math>: You do every exercise in the book.
      </item>
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> <m:math><m:ci>r</m:ci></m:math>: You get an A in this class.
      </item>
    </list>
    Write the following formulas using <m:math><m:ci>p</m:ci></m:math>, <m:math><m:ci>q</m:ci></m:math>, and <m:math><m:ci>r</m:ci></m:math>
    and logical connectives.
    <list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="enumerated" id="list4">
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> You get an A in this class, but you do not do every exercise
             in the book.
      </item>
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> To get an A in this class, it is necessary for you
             to get an A on the final.
      </item>
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> Getting an A on the final and doing every exercise in
             the book is sufficient for getting an A in this class.
      </item>
    </list>
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="enumerated" id="list5">
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> <m:math><m:mfenced open="(" close=")" separators=""><m:ci>r</m:ci> <m:mo>∧</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>q</m:ci></m:mfenced></m:mfenced></m:math>
      </item>
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> <m:math><m:mfenced open="(" close=")" separators=""><m:ci>r</m:ci> <m:mo>→</m:mo> <m:ci>p</m:ci></m:mfenced></m:math>
      </item>
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>p</m:ci> <m:mo>∧</m:mo> <m:ci>q</m:ci></m:mfenced> <m:mo>→</m:mo> <m:ci>r</m:ci></m:mfenced></m:math>
      </item>
    </list>
  </solution>
</exercise>


<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise5">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para16">
(1pt)
    Translate the following English sentences into propositional logic.
    Your answers should be <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m10715" target="wff-defn" strength="5">WFF</cnxn>s.
    <list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="enumerated" id="list6">
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> If the Astros win the series ("<m:math><m:ci>AW</m:ci></m:math>"),
             then pigs will fly ("<m:math><m:ci>PF</m:ci></m:math>").
      </item>

      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> Pigs will not fly, and/or 
             bacon will be free ("<m:math><m:ci>BF</m:ci></m:math>").
      </item>

      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> The Astros will win the series, or bacon will be
             free (but not both).
      </item>
    </list>
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="enumerated" id="list7">
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> <m:math><m:mfenced open="(" close=")" separators=""><m:ci>AW</m:ci> <m:mo>→</m:mo> <m:ci>PF</m:ci></m:mfenced></m:math>.
      </item>

      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>PF</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:ci>BF</m:ci></m:mfenced></m:math>.
             Note that this is equivalent to 
             <m:math><m:mfenced open="(" close=")" separators=""><m:ci>PF</m:ci> <m:mo>→</m:mo> <m:ci>BF</m:ci></m:mfenced></m:math>;
             here, we happen choose the phrasing
             which more closely mirrors the original problem statement.
      </item>

      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>AW</m:ci> <m:mo>∨</m:mo> <m:ci>BF</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>AW</m:ci> <m:mo>∧</m:mo> <m:ci>BF</m:ci></m:mfenced> </m:mfenced></m:mfenced></m:math>.
             Alternatively,
             <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>AW</m:ci> <m:mo>∧</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>BF</m:ci></m:mfenced></m:mfenced> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>AW</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>BF</m:ci></m:mfenced></m:mfenced></m:math>
             This is the "exclusive or" (sometimes called "xor").
      </item>
     </list>
   </solution>
</exercise>

<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise6">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para17">[practice] 0pts</para>
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para18">
    It just so happens that all the web pages in Logiconia 
    which contain the word
    "Poppins" also contain the word "Mary".
    Write a formula (a query) expressing this.
    Use the proposition <m:math><m:ci>Poppins</m:ci></m:math> to represent the concept
    "the web page contains 'Poppins'" (and similar for <m:math><m:ci>Mary</m:ci></m:math>).
    </para>

    
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para19">
    <m:math><m:mfenced open="(" close=")" separators=""><m:ci>Poppins</m:ci> <m:mo>→</m:mo> <m:ci>Mary</m:ci></m:mfenced></m:math>
    </para>
  </solution>
</exercise>


<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise7">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para20">
(1pt)
    It further happens to be the case that:
    If a Logicanian page contains the word "weasel",
    then it also contains either "words" or "eyed"; 
    and
    whenever a Logiconian page contains the word "mongoose",
    it does <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">not</emphasis> also contain the word "weasel"; 
    and
    finally, all Logiconian pages contain the word "Logiconia",
    rather patriotically.
  
    Write a formula expressing all this.
    (Your formula will involve six propositions --
    <m:math><m:ci>weasel</m:ci></m:math>, etc..
    Try to find a formula which
    mirrors the wording of the English above.)
    </para>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para21">
    If a web page in Logiconia does not contain "weasel",
    does it contain "mongoose"?
    </para>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para22">
    Let's go meta for a moment:
    What can you conclude about <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">this</emphasis> web page?
    (Yes, this one you're looking at now --
     the one with the homework problems.)  Why?
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para23">
    <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>weasel</m:ci> <m:mo>→</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>words</m:ci> <m:mo>∨</m:mo> <m:ci>eyed</m:ci></m:mfenced></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>mongoose</m:ci> <m:mo>→</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>weasel</m:ci></m:mfenced></m:mfenced> <m:mo>∧</m:mo> <m:ci>Logiconia</m:ci></m:mfenced></m:math>
    </para>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para24">
    No, a Logiconian web page may contain neither of those words.
    </para>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para25">
    This web page contains both words;
    you may conclude that this web page isn't Logiconian!
    (If you are buying into the truth of what this page
    says about Logiconian pages.)
    </para>
  </solution>
</exercise>


<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise8">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para26">
(3pts)
    Different search engines on the web have their own syntax for
    specifying searches.
      <note xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="aside">
      Note that a formula may be true for some web pages,
      and false for others.
      The search engine is concerned with finding all web pages which
      satisfy the formula.
      This is called a <term xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">query</term>, in database lingo.
      </note>
    <link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://help.altavista.com/search/adv_help">
    Some</link> allow full Boolean queries.
      
    Some interpret a list of several words in a row 
    as an implicit conjunction,
    others as an implicit disjunctions.
    </para>


    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para27">
    Read over the search syntax for
    <link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://pages.ebay.com/help/buyerguide/search.html#commands">
    the search language of eBay®</link>.
    <list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="enumerated" id="list8">
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> Write a query for auctions which contain "border", 
             do not contain "common", and contain at least one of 
             "foreign" or "foriegn" [sic -- misspellings are a great
             way to find underexposed auctions].
      </item>

      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">An hard-of-hearing friend was told about the superbowl playoff,
            but instead heard something about a superb bowl for pilaf.
            Excited at such a concept, 
            what would you guess the natural query is for
            auctions which either contain 
            "pilaf", or contain both "superb" and "bowl" (in either order)?
      </item>
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> Test your previous answer on
             <link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://www.ebay.com/">eBay</link>.
             How many matches do you get?
             How many do you get if you
             swap the order of "superb" and "bowl"?
             How about for each of "pilaf" and "superb bowl"
             as separate queries?
      </item>
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
            Re-write <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>superb</m:ci> <m:mo>∧</m:mo> <m:ci>bowl</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:ci>pilaf</m:ci></m:mfenced></m:math>
            in conjunctive normal form (CNF).
            Confirm that this query transliterates to a more reliable
            ebay query.
             <note xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="aside">
                Apparently, eBay expects their users to:
                (a) realize their query isn't working,
                (b) realize that some equivalent query can work,
                and
                (c) be adept at Boolean algebra to find
                    the working equivalent query.
                More likely, they didn't have a comp280/409/412 graduate on their
                programming staff, and thus didn't think deeply about their syntax.
            
                
                </note>
         </item>
       </list>
       </para>
       </problem>



  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para28">
    eBay uses sequencing for conjunction,
    parentheses for disjunction, and a preceding minus sign for
    negation.
    <list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="enumerated" id="list9">
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">border -common (foreign,foreign)</code>
      </item>

      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> The expected ebay query for
              <m:math><m:mfenced open="(" close=")" separators=""><m:ci>pilaf</m:ci> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>superb</m:ci> <m:mo>∧</m:mo> <m:ci>bowl</m:ci></m:mfenced></m:mfenced></m:math>
would (just transliterating)
              <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">(pilaf,superb bowl)</code>.
      </item>
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
       The numbers depend on the moment you made the query, but I got:
        <list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="list10">
          <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
           5 matches for <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">(pilaf,superb bowl)</code>
          </item>
          <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
          11 matches for <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">(pilaf,bowl superb)</code>
          </item>
          <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
           5 matches for <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">pilaf</code>
          </item>
          <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
          84 matches for <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">superb bowl</code>
          </item>
        </list>
      </item>

      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
            By distributing the <m:math><m:mo>∨</m:mo></m:math> over <m:math><m:mo>∧</m:mo></m:math>,
          <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>superb</m:ci> <m:mo>∧</m:mo> <m:ci>bowl</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:ci>pilaf</m:ci></m:mfenced> <m:mo>≡</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>superb</m:ci> <m:mo>∨</m:mo> <m:ci>pilaf</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>bowl  </m:ci> <m:mo>∨</m:mo> <m:ci>pilaf</m:ci></m:mfenced></m:mfenced></m:math>,
          which can be expressed as
            <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">(superb,pilaf) (bowl,pilaf)</code>,
          we get a search returning 88 results.
          Hmm, we should get 5+84, from above.
          An inspection shows that ebay's results are a bit weird;
          in fact <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">Pilaf</code> and 
          <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">pilaf</code> both return 
          different results, even though both sets of matches
          have the word "pilaf" in varying cases.
          Their search-code is perhaps as confused as their query syntax?
      </item>
    </list>
    </para>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para29">
    Note that there are other problematic queries:
    It's not entirely clear how to directly encode the query
       <m:math><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∧</m:mo> <m:ci>b</m:ci></m:mfenced></m:mfenced></m:math>,
    since our first guess would be to take <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">a b</code>
     and put a <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">-</code> in front,
    but that gives us
             <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">-a b</code>,
    which is the query for
             <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>a</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>b</m:ci></m:mfenced></m:math>.
    Here, DeMorgan's law is needed to get an equivalent formula
    that can be expressed in ebay's syntax.
    </para>
  </solution>
</exercise>


<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise9">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para30">[practice] 0pts</para>
    <figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="sample-board1">
      <media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="hwA-1.png" type="image/png"/>

      <caption xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">A sample WaterWorld board</caption>
    </figure>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para31">
    Consider the particular board shown in the
    <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m10514" target="sample-board1" strength="4">
    above figure</cnxn>.
    <list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="enumerated" id="list11">
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> <m:math><m:ci>Y-safe</m:ci></m:math>, <m:math><m:ci>Y-has-0</m:ci></m:math>, and <m:math><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>Y-has-2</m:ci></m:mfenced></m:math>
             are among the formulas which are true for this board
             but not for all boards.
             (That is, they are not domain axioms or tautologies.)
             Give two other such formulas.
      </item>
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> <m:math><m:ci>V-safe</m:ci></m:math> might or might not
             be true for this board.
             Give two other such formulas.
      </item>
    </list>
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para32">
    <list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="enumerated" id="list12">
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> There are many simple answers, such as
             <m:math><m:ci>Y-has-1</m:ci></m:math>, <m:math><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>W-has-1</m:ci></m:mfenced></m:math>, …
      </item>
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> There are many simple answers, such as
             <m:math><m:ci>A</m:ci></m:math>, <m:math><m:ci>N-has-1</m:ci></m:math>, <m:math><m:ci>J-has-3</m:ci></m:math>, …
      </item>
    </list>
    For each, there are also many such formulas composed
    with connectives such as <m:math><m:mo>∧</m:mo></m:math> and <m:math><m:mo>∨</m:mo></m:math>.
    </para>
  </solution>
</exercise>

<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise10">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para33">
(4pts)
    In that
    <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m10514" target="sample-board1" strength="4">
    same board</cnxn>, is location W safe?
    What is your informal reasoning?  (List all your small steps.)
    Similarly for location P.
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para34">
    X has exactly one neighboring pirate,
    so exactly one of W and Y must have a pirate.
    Y does not have a pirate.  Therefore W does.
    </para>
    
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para35">
    We use this fact to continue:
    Q has exactly one neighboring pirate,
    so exactly one of P, R, and W must have a pirate.
    W contains a pirate (by the previous step).
    Therefore, P and R do not, so P is safe.
    </para>
  </solution>
</exercise>

<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise11">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para36">
(1pt)
    Give a domain axiom of WaterWorld which is not explicitly shown
    in the
    <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m10528" strength="5">
    WaterWorld domain axioms</cnxn>.
    (Just show one that's omitted in the ellipses.)
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para37">
    <m:math><m:mfenced open="(" close=")" separators=""><m:ci>Z-has-0</m:ci> <m:mo>→</m:mo> <m:ci>Y-safe</m:ci></m:mfenced></m:math>
    is one domain axiom; another is
    <m:math><m:mfenced open="(" close=")" separators=""><m:ci>Q-has-2</m:ci> <m:mo>→</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>P-unsafe</m:ci> <m:mo>∧</m:mo> <m:ci>R-unsafe</m:ci> <m:mo>∧</m:mo> <m:ci>W-safe</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>P-unsafe</m:ci> <m:mo>∧</m:mo> <m:ci>R-safe</m:ci> <m:mo>∧</m:mo> <m:ci>W-unsafe</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>P-safe</m:ci> <m:mo>∧</m:mo> <m:ci>R-unsafe</m:ci> <m:mo>∧</m:mo> <m:ci>W-unsafe</m:ci></m:mfenced></m:mfenced></m:mfenced></m:math>
    or even
    <m:math><m:mfenced open="(" close=")" separators=""><m:ci>Q-has-0</m:ci> <m:mo>∨</m:mo> <m:ci>Q-has-1</m:ci> <m:mo>∨</m:mo> <m:ci>Q-has-2</m:ci> <m:mo>∨</m:mo> <m:ci>Q-has-3</m:ci> <m:mo>∨</m:mo> </m:mfenced></m:math>
    </para>
  </solution>
</exercise>

<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise12">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para38">
(3pts)
    Give one WFF which meets all three conditions:
    <list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="list13">
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> 
             true in all WaterWorld boards
             ("A <term xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">theorem</term> of WaterWorld")
      </item>
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> not already listed as one of the 
             <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m10528" strength="5">
             WaterWorld domain axioms</cnxn>, and
      </item>
      <item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"> not a tautology of propositional logic
             (can be made false in some truth assignment,
              though it may not be a truth assignment
              which satisfies the waterworld axioms).
      </item>
    </list>
    This can either be a wimpy obvious formula,
    or can be some pattern you've noticed when playing,
    that requires several steps of inference.
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para39">
    One way to do this is to include weaker formulas.
    For example, instead of <m:math><m:ci>Q-has-2</m:ci></m:math> implying that
    exactly two neighbors are unsafe,
    you can imply (just) at least two neighbors are unsafe:
    <m:math><m:mfenced open="(" close=")" separators=""><m:ci>Q-has-2</m:ci> <m:mo>→</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>P-unsafe</m:ci> <m:mo>∧</m:mo> <m:ci>R-unsafe</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>P-unsafe</m:ci> <m:mo>∧</m:mo> <m:ci>W-unsafe</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>R-unsafe</m:ci> <m:mo>∧</m:mo> <m:ci>W-unsafe</m:ci></m:mfenced></m:mfenced></m:mfenced></m:math>
    The reason we added the last requirement is so that
    you don't weaken the formula so much as to be a tautology:
    <m:math><m:mfenced open="(" close=")" separators=""><m:ci>Q-has-2</m:ci> <m:mo>→</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>P-unsafe</m:ci> <m:mo>∨</m:mo> <m:ci>P-safe</m:ci></m:mfenced></m:mfenced></m:math>,
    or more trivially
    <m:math><m:mfenced open="(" close=")" separators=""><m:ci>P-unsafe</m:ci> <m:mo>∨</m:mo> <m:ci>P-safe</m:ci></m:mfenced></m:math>,
    or even just <m:math><m:true/></m:math>!
    </para>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para40">
    A more interesting theorem to deduce is
    <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>B-has-1</m:ci> <m:mo>∧</m:mo> <m:ci>G-has-1</m:ci> <m:mo>∧</m:mo> <m:ci>H-has-1</m:ci></m:mfenced> <m:mo>→</m:mo> <m:ci>J-unsafe</m:ci></m:mfenced></m:math>.
    </para>
  </solution>
</exercise>

</section> 


<section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="section2">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Reasoning with Truth Tables</name>

<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise13">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para41">
(1pt)
    Write the truth-table for "xnor", the negation of exclusive-or,
    What is a more common name for this Boolean function?
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <table xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" rowsep="true" colsep="true" frame="all" pgwide="no" id="table1">
      <name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Truth table for xnor</name>

      
<tgroup xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" cols="3" align="center" colsep="1" rowsep="1">
<thead xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:ci>a</m:ci></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:ci>b</m:ci></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">xnor</entry></row></thead>

<tbody xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry></row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry></row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry></row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry></row></tbody>
</tgroup>
    </table>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para42">
    This the "equals" (for Booleans).
    (If you said something like "logical equivalence" or 
     "the both-or-neither function", that is a point off,
     as it's a roundabout way of expressing the simple idea "equals".
     Granted, it takes some practice to internalize Booleans as values,
     and that equality is as valid for them as for any other value.)
    This function is also represented by the connective "↔",
    and can also called "if-and-only-if".
    
    </para>
  </solution>
</exercise>


<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="tt-show-equiv">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para43">
(4pts) 
    Using truth-tables, show that
    <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>c</m:ci> <m:mo>→</m:mo> <m:ci>a</m:ci></m:mfenced></m:mfenced></m:math>
    is equivalent to
    <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>a</m:ci></m:mfenced></m:math>,
    but that these are not equivalent to
    <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math>.
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para44">
    We'll name the three formulas of interest.
    Let <m:math><m:ci>χ</m:ci></m:math> = <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>c</m:ci> <m:mo>→</m:mo> <m:ci>a</m:ci></m:mfenced></m:mfenced></m:math>,
        <m:math><m:ci>υ</m:ci></m:math> = <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>a</m:ci></m:mfenced></m:math>, and
        <m:math><m:ci>ω</m:ci></m:math> = <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math>.
    </para>

    <table xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" rowsep="true" colsep="true" frame="all" pgwide="no" id="table2">
      <name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">A truth table for three functions.</name>

      
<tgroup xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" cols="7" align="center" colsep="1" rowsep="1">
<thead xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:ci>a</m:ci></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:ci>b</m:ci></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:ci>c</m:ci></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:ci>χ</m:ci></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:ci>υ</m:ci></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:ci>ω</m:ci></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">note</entry></row></thead>

<tbody xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/></row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">wffy, wffz differ</entry></row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/></row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">wffy, wffz differ</entry></row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/></row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/></row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:false/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/></row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><m:math><m:true/></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/></row></tbody>
</tgroup>

      
    </table>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para45">
    Sure enough, the first two functions <m:math><m:ci>χ</m:ci></m:math> and <m:math><m:ci>υ</m:ci></m:math> are the same
    on each line of the truth table, and hence equivalent to each other.
    But they differ from the third function <m:math><m:ci>ω</m:ci></m:math> for a couple
    couple of truth settings.
    </para>
  </solution>
</exercise>

<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise14">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para46">
(4pts)
    Consider the following conditional code, which returns a boolean value.
    </para>
    <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="block">
int  i;
bool a,b;

…

if (a &amp;&amp; (i &gt; 0))
   return b;
else if (a &amp;&amp; i &lt;= 0)
   return false;
else if (a || b)
   return a;
else
   return (i &gt; 0);
    </code>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para47">
    Simplify it by filling in the following blank with a single
    Boolean formula (not using a conditional <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">if</code>).

    For the graders' sake, please use either Java or scheme syntax,
    and in the former case please parenthesize to make your formula unambiguous
    (rather than rely having me having memorized
    <link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://www.csc.calpoly.edu/~csturner/courses/101/Hints/operator_precedence.html">Java's 13 levels (with <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">?:</code>) </link> of operator precedence).
    </para>

    <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="block">
int  i;
bool a,b;

…

return ________________;
    </code>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para48">
    When simplifying, you should treat <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">i &gt; 0</code> as
    proposition, with <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">i &lt;= 0</code> as its negation.
    One possible answer is
    <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">(    ( a &amp;&amp;  b) 
                          || (!a &amp;&amp; !b)) &amp;&amp; (i &gt; 0)</code> 
    in Java,
    or in scheme, <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">(and (or (and a b) (and (not a) (not b))) (&gt; i 0))</code>.
    While our particular syntax for logic formulas doesn't contain an 
    if-and-only-if connective, programming languages do: <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">boolean=?</code> or <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">==</code>.
    Using this could shorten our answer:
    <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">((a == b) &amp;&amp; (i &gt; 0))</code> in Java,
    or in Scheme <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="inline">(and (boolean=? a b) (&gt; i 0))</code>.
    </para>
  </solution>
</exercise>



<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise15">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para49">[practice] 0pts</para>
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para50">
    When writing a complicated conditional that involves multiple
    pieces of data, it is easy to incorrectly oversimplify.
    One strategy for avoid mistakes is to write such code in
    a two-step process.
    First, write a conditional with a case for <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">every</emphasis>
    possible combination, as in a truth table.
    Second, simplify the conditional.
    </para>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para51">
    Using this approach, we might obtain the following code after
    the first step.  Simplify this code.
    </para>

    <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="block">
list merge_sorted_lists(list list1, list list2)
{
   if (is_empty(list1) &amp;&amp; is_empty(list2))
      return empty_list;
   else if (is_empty(list1) &amp;&amp; !is_empty(list2))
      return list2;
   else if (!is_empty(list1) &amp;&amp; is_empty(list2))
      return list1;
   else if (!is_empty(list1) &amp;&amp; !is_empty(list2)) {
      if (first_element(list1) &lt; first_element(list2))
         return make_list(first_element(list1),
                          merge_sorted_lists(rest_elements(list1),list2));
      else if (first_element(list1) &gt;= first_element(list2))
         return make_list(first_element(list2),
                          merge_sorted_lists(list1,rest_elements(list2)));
   }
}
    </code>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <code xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" type="block">
list merge_sorted_lists(list list1, list list2)
{
   if (is_empty(list1))
      return list2;
   else if (is_empty(list2))
      return list1;
   else {
      if (first_element(list1) &lt; first_element(list2))
         return make_list(first_element(list1),
                          merge_sorted_lists(rest_elements(list1),list2));
      else
         return make_list(first_element(list2),
                          merge_sorted_lists(list1,rest_elements(list2)));
   }
}
    </code>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para52">
    Alternatively, we could test the emptiness of the lists in the
    other order.
    </para>
  </solution>
</exercise>

</section> 





<section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="section3">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Reasoning with Equivalences</name>

<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise16">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para53">
(6pts)
    Using 
    <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m10540" strength="5">algebraic identities</cnxn> <link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://www.teachLogic.org/Base/Printables/algebra-laws.ps">(.ps)</link>,
    show that 


    <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>c</m:ci> <m:mo>→</m:mo> <m:ci>a</m:ci></m:mfenced></m:mfenced></m:math>
    is equivalent to
    <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>a</m:ci></m:mfenced></m:math>.
    </para>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para54">
    This is an algebraic hand-evaluation:
    a series of formulas joined by <m:math><m:mo>≡</m:mo></m:math>.
    Don't write just portions of previous formulas
    and mysteriously re-introduce the dropped parts later.
    For each step, mention which identity you used.
    It is also helpful if you underline the formula
    you are rewriting in the next step.  
    You can use commutativity and associativity without using 
    a separate line, but mention when you use it.
    </para>
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para55">
    Some issues to think about (w/o turning in): in a 
    <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m10514" target="tt-show-equiv" strength="5">previous 
    exercise</cnxn> we showed this same fact by using truth tables.
    Which approach appeals more to you?  If trying to show equivalent
    to formulas with 10 propositions (instead of just 3) equivalent, 
    which approach might you try?
    What about the rest of the previous problem -- showing two 
    formulas <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">non</emphasis>-equivalent -- 
    it is possible to approach this with boolean algebra rather
    than truth tables.  How?
    Is there some hybrid approach, that would convince you of
    the non/equivalence of formulas?
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <table xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" rowsep="true" colsep="true" frame="all" pgwide="no" id="table3">

<tgroup xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" cols="3" align="center" colsep="1" rowsep="1">
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c1"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c2"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"/>

<tbody xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">1</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>c</m:ci> <m:mo>→</m:mo> <m:ci>a</m:ci></m:mfenced></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"/>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">2</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>c</m:ci> <m:mo>→</m:mo> <m:ci>a</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:mfenced></m:math>.</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Commutativity of <m:math><m:mo>∧</m:mo></m:math>
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">3</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>c</m:ci> <m:mo>→</m:mo> <m:ci>a</m:ci></m:mfenced></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math>.</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Associativity of <m:math><m:mo>∧</m:mo></m:math>
                             (It's okay to combine this with the
                              previous step.)
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">4</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>c</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:ci>a</m:ci></m:mfenced></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> <m:math><m:mo>→</m:mo></m:math>-to-or
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">5</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>c</m:ci></m:mfenced></m:mfenced></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Commutativity of <m:math><m:mo>∨</m:mo></m:math>
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">6</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>a</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>c</m:ci></m:mfenced></m:mfenced></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Distributivity of <m:math><m:mo>∧</m:mo></m:math> over <m:math><m:mo>∨</m:mo></m:math>
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">7</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>c</m:ci></m:mfenced></m:mfenced></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Commutativity of <m:math><m:mo>∧</m:mo></m:math>,
                             Absorption
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">8</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>c</m:ci></m:mfenced></m:mfenced> <m:mo>∨</m:mo> <m:ci>a</m:ci></m:mfenced></m:mfenced></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Commutativity of <m:math><m:mo>∧</m:mo></m:math>,
                             Commutativity of <m:math><m:mo>∨</m:mo></m:math>,
                             Double complementation
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">9</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>a</m:ci></m:mfenced></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Absorption with <m:math><m:ci>φ</m:ci></m:math> being <m:math><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>c</m:ci></m:mfenced></m:math>
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">10</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Commutativity of <m:math><m:mo>∨</m:mo></m:math>,
                             Absorption
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">11</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>a</m:ci></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Commutativity of <m:math><m:mo>∧</m:mo></m:math>
             </entry>
</row></tbody>
</tgroup>
</table>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para56">
    Ta-dum!
    We could have saved some repeated-writing by
    showing as a lemma that
    <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>c</m:ci> <m:mo>→</m:mo> <m:ci>a</m:ci></m:mfenced></m:mfenced></m:math>
    is equivalent to
    <m:math><m:ci>a</m:ci></m:math>,
    and then applying a few commutes rules and the lemma
    to get the result.
    (This is allowed, since in Boolean algebra
    we can replace formulas with equivalent formulas.
    This is not allowed in all formal systems.)
    </para>
  </solution>
</exercise>

<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise17">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para57">
(6pts)
    Using 
    <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m10540" strength="5">algebraic identities</cnxn> <link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://www.teachLogic.org/Base/Printables/algebra-laws.ps">(.ps)</link>,
    rewrite the formula
    <m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>→</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>b</m:ci></m:mfenced></m:mfenced></m:math>
    to one with fewer connectives.
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <table xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" rowsep="true" colsep="true" frame="all" pgwide="no" id="table4">

<tgroup xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" cols="3" align="center" colsep="1" rowsep="1">
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c1"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c2"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"/>

<tbody xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">1</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>→</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>b</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>b</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"/>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">2</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>a</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:ci>b</m:ci> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>b</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Definition of <m:math><m:mo>→</m:mo></m:math>,
                             Eliminating nested <m:math><m:mo>∨</m:mo></m:math>.
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">3</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>b</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>a</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>b</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>b</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>b</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Distributivity of <m:math><m:mo>∧</m:mo></m:math> over <m:math><m:mo>∨</m:mo></m:math>
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">4</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>b</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>a</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:false/> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>b</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Complement of <m:math><m:mo>∧</m:mo></m:math>
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">5</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>b</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>a</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>b</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Dominance of <m:math><m:mo>∨</m:mo></m:math>
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">6</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>b</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>a</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Distributivity of <m:math><m:mo>∧</m:mo></m:math> over <m:math><m:mo>∨</m:mo></m:math>
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">7</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>a</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>b</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Commutativity of <m:math><m:mo>∧</m:mo></m:math>
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">8</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="(" close=")" separators=""><m:ci>a</m:ci> <m:mo>→</m:mo> <m:ci>c</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>b</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Definition of <m:math><m:mo>→</m:mo></m:math>
             </entry>
</row></tbody>
</tgroup>
</table>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para58">
    Ugh, that sure was tedious,
    and also (when done by hand) error-prone.
    </para>
  </solution>
</exercise>

<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise18">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para59">[practice] 0pts</para>
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para60">
    Using 
    <cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m10540" strength="5">algebraic identities</cnxn> <link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://www.teachLogic.org/Base/Printables/algebra-laws.ps">(.ps)</link>,
    and the definition 
    NOR<m:math><m:mfenced open="(" close=")" separators=", "><m:ci>φ</m:ci><m:ci>ψ</m:ci></m:mfenced> <m:mo>≡</m:mo>
        <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:mfenced open="(" close=")" separators=""><m:ci>φ</m:ci> <m:mo>∨</m:mo> <m:ci>ψ</m:ci></m:mfenced></m:mfenced></m:math>,
    express the function <m:math><m:mo>∧</m:mo></m:math> in terms of NOR only.
    (That is, give a formula only using the connective NOR -- 
    no <m:math><m:mo>∧</m:mo></m:math>, <m:math><m:mo>∨</m:mo></m:math>, <m:math><m:mo>¬</m:mo></m:math> -- which has the same truth-table as <m:math><m:mfenced open="(" close=")" separators=""><m:ci>φ</m:ci> <m:mo>∧</m:mo> <m:ci>ψ</m:ci></m:mfenced></m:math>.)
    </para>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para61">
    First we show that we can write negation in terms of NOR, or
    more specifically, <m:math><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>θ</m:ci></m:mfenced> <m:mo>≡</m:mo> <m:mo>NOR</m:mo><m:mfenced open="(" close=")" separators=", "><m:ci>θ</m:ci><m:ci>θ</m:ci></m:mfenced></m:math>.
    Checking this on a truth table is pretty easy
    (there are only two rows to check).
    But for this question we need to use algebraic manipulation.
    This can be derived in a couple of simple steps:
    </para>

    <table xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" rowsep="true" colsep="true" frame="all" pgwide="no" id="table5">

<tgroup xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" cols="3" align="center" colsep="1" rowsep="1">
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c1"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c2"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"/>

<tbody xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">1</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>θ</m:ci></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"/>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">2</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>θ</m:ci></m:mfenced> <m:mo>∧</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>θ</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Idempotency of <m:math><m:mo>∧</m:mo></m:math>
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">3</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:mfenced open="(" close=")" separators=""><m:ci>θ</m:ci> <m:mo>∨</m:mo> <m:ci>θ</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> DeMorgan's law
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">4</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo></m:math>NOR<m:math><m:mfenced open="(" close=")" separators=", "><m:ci>θ</m:ci><m:ci>θ</m:ci></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> definition of NOR
             </entry>
</row></tbody>
</tgroup>
</table>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para62">
    We use this lemma to show our ultimate goal:
    </para>

      

    <table xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" rowsep="true" colsep="true" frame="all" pgwide="no" id="table6">

<tgroup xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" cols="3" align="center" colsep="1" rowsep="1">
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c1"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c2"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"/>

<tbody xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">1</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mfenced open="(" close=")" separators=""><m:ci>δ</m:ci> <m:mo>∧</m:mo> <m:ci>κ</m:ci></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"/>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">2</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:mfenced open="(" close=")" separators=""><m:ci>δ</m:ci> <m:mo>∧</m:mo> <m:ci>κ</m:ci></m:mfenced></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Double Complementation
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">3</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:mfenced open="(" close=")" separators=""><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>δ</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>κ</m:ci></m:mfenced></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> DeMorgan's law
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">4</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:mfenced open="(" close=")" separators=""><m:mo>NOR</m:mo><m:mfenced open="(" close=")" separators=", "><m:ci>δ</m:ci><m:ci>δ</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:ci>κ</m:ci></m:mfenced></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Lemma,
                             with <m:math><m:mfenced open="[" close="]" separators="/"><m:ci>θ</m:ci><m:ci>δ</m:ci></m:mfenced></m:math>
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">5</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mfenced open="" close="" separators=""><m:mo>¬</m:mo><m:mfenced open="(" close=")" separators=""><m:mo>NOR</m:mo><m:mfenced open="(" close=")" separators=", "><m:ci>δ</m:ci><m:ci>δ</m:ci></m:mfenced> <m:mo>∨</m:mo> <m:mo>NOR</m:mo><m:mfenced open="(" close=")" separators=", "><m:ci>κ</m:ci><m:ci>κ</m:ci></m:mfenced></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> Lemma,
                             <m:math><m:mfenced open="[" close="]" separators="/"><m:ci>θ</m:ci><m:ci>κ</m:ci></m:mfenced></m:math>
where <m:math><m:ci>θ</m:ci></m:math>=<m:math><m:ci>κ</m:ci></m:math>
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">6</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c2"><m:math><m:mo>≡</m:mo><m:mo>NOR</m:mo><m:mfenced open="(" close=")" separators=", "><m:mo>NOR</m:mo><m:ci>δ</m:ci><m:ci>δ</m:ci><m:mo>NOR</m:mo><m:mfenced open="(" close=")" separators=", "><m:ci>κ</m:ci><m:ci>κ</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"> definition of <m:math><m:mo>NOR</m:mo></m:math>,
                             where <m:math><m:ci>φ</m:ci></m:math>=<m:math><m:mo>NOR</m:mo><m:mfenced open="(" close=")" separators=", "><m:ci>δ</m:ci><m:ci>δ</m:ci></m:mfenced></m:math>,
                             and   <m:math><m:ci>ψ</m:ci></m:math>=<m:math><m:mo>NOR</m:mo><m:mfenced open="(" close=")" separators=", "><m:ci>κ</m:ci><m:ci>κ</m:ci></m:mfenced></m:math>
             </entry>
</row></tbody>
</tgroup>
</table>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para63">
    Note that we judiciously used new meta-variables <m:math><m:ci>δ</m:ci></m:math> and <m:math><m:ci>κ</m:ci></m:math>
    rather than re-using <m:math><m:ci>φ</m:ci></m:math> and <m:math><m:ci>ψ</m:ci></m:math>
    (which would still be correct, but would make the graders need
    to pay much closer attention to the scope of those variables).
    </para>
  </solution>
</exercise>




</section> 













<section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="section4">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Reasoning with Inference Rules</name>

<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para64">
For proofs on this homework, 
Remember that each step must be justified by 
one of:
"premise",
a listed
<cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m10529" strength="5">inference rule</cnxn> <link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" src="http://www.teachLogic.org/Base/Printables/inference-rules.ps">(.ps)</link>
(a previous line number and, if ambiguous, 
substitutions for the inference rule's metavariables),
or a
<cnxn xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" document="m10528" target="waterworld-rules" strength="5">
WaterWorld domain axiom</cnxn>.
</para>

<exercise xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="exercise19">
  <problem xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
  <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para65">
    <emphasis xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"><term xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">Postponed</term></emphasis> -- this problem postponed until
     the next homework; it uses one of the less obvious inference rules
     which we haven't discussed yet, but will touch upon in lecture 
     Tuesday, 2004.jan.27.
  </para>

    <para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="para66">
    Fill in the blank reasons in the following proof that <m:math><m:mo>∨</m:mo></m:math> commutes,
    that is, <m:math><m:mfenced open="" close="" separators=""><m:mfenced open="" close="" separators=","><m:mfenced open="(" close=")" separators=""><m:ci>χ</m:ci> <m:mo>∨</m:mo> <m:ci>υ</m:ci></m:mfenced></m:mfenced> <m:mo>⊢</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>υ</m:ci> <m:mo>∨</m:mo> <m:ci>χ</m:ci></m:mfenced></m:mfenced></m:math>.
    </para>
    <table xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" rowsep="true" colsep="true" frame="all" pgwide="no" id="table7">

<tgroup xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" cols="4" align="center" colsep="1" rowsep="1">
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c1"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c2"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"/>

<tbody xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">1</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c3"><m:math><m:mfenced open="(" close=")" separators=""><m:ci>χ</m:ci> <m:mo>∨</m:mo> <m:ci>υ</m:ci></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"> premise
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">2</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c3">subproof:<m:math><m:mfenced open="" close="" separators=""><m:mfenced open="" close="" separators=","><m:ci>χ</m:ci></m:mfenced> <m:mo>⊢</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>υ</m:ci> <m:mo>∨</m:mo> <m:ci>χ</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"/>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">2.a</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/> <entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c3" nameend="c3"><m:math><m:ci>χ</m:ci></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"> premise for subproof
                 </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">2.b</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/> <entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c3" nameend="c3"><m:math><m:mfenced open="(" close=")" separators=""><m:ci>υ</m:ci> <m:mo>∨</m:mo> <m:ci>χ</m:ci></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"> <m:math><m:mo>∨</m:mo></m:math>Intro
                 </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">3</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c3">subproof:<m:math><m:mfenced open="" close="" separators=""><m:mfenced open="" close="" separators=","><m:ci>υ</m:ci></m:mfenced> <m:mo>⊢</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>υ</m:ci> <m:mo>∨</m:mo> <m:ci>χ</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"/>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">3.a</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/> <entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c3" nameend="c3"><m:math><m:ci>υ</m:ci></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"> premise for subproof
                 </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">3.b</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/> <entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c3" nameend="c3"><m:math><m:mfenced open="(" close=")" separators=""><m:ci>υ</m:ci> <m:mo>∨</m:mo> <m:ci>χ</m:ci></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"> ____________
                 </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">4</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c3"><m:math><m:mfenced open="(" close=")" separators=""><m:ci>υ</m:ci> <m:mo>∨</m:mo> <m:ci>χ</m:ci></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"> ____________
             </entry>
</row></tbody>
</tgroup>
</table>
  </problem>

  <solution xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
    <table xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" rowsep="true" colsep="true" frame="all" pgwide="no" id="table8">

<tgroup xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" cols="4" align="center" colsep="1" rowsep="1">
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c1"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c2"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c3"/>
<colspec xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"/>

<tbody xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">1</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c3"><m:math><m:mfenced open="(" close=")" separators=""><m:ci>χ</m:ci> <m:mo>∨</m:mo> <m:ci>υ</m:ci></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"> premise
             </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">2</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c3">subproof:<m:math><m:mfenced open="" close="" separators=""><m:mfenced open="" close="" separators=","><m:ci>χ</m:ci></m:mfenced> <m:mo>⊢</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>υ</m:ci> <m:mo>∨</m:mo> <m:ci>χ</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"/>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">2.a</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/> <entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c3" nameend="c3"><m:math><m:ci>χ</m:ci></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"> premise
                 </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">2.b</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/> <entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c3" nameend="c3"><m:math><m:mfenced open="(" close=")" separators=""><m:ci>υ</m:ci> <m:mo>∨</m:mo> <m:ci>χ</m:ci></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"> <m:math><m:mo>∨</m:mo></m:math>Intro
                 </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">3</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c3">subproof:<m:math><m:mfenced open="" close="" separators=""><m:mfenced open="" close="" separators=","><m:ci>υ</m:ci></m:mfenced> <m:mo>⊢</m:mo> <m:mfenced open="(" close=")" separators=""><m:ci>υ</m:ci> <m:mo>∨</m:mo> <m:ci>χ</m:ci></m:mfenced></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"/>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">3.a</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/> <entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c3" nameend="c3"><m:math><m:ci>υ</m:ci></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"> premise
                 </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">3.b</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/> <entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c3" nameend="c3"><m:math><m:mfenced open="(" close=")" separators=""><m:ci>υ</m:ci> <m:mo>∨</m:mo> <m:ci>χ</m:ci></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"> <m:math><m:mo>∨</m:mo></m:math>Intro
                 </entry>
</row>
<row xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/">
<entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" align="left">4</entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" namest="c2" nameend="c3"><m:math><m:mfenced open="(" close=")" separators=""><m:ci>υ</m:ci> <m:mo>∨</m:mo> <m:ci>χ</m:ci></m:mfenced></m:math></entry><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/"/><entry xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" colname="c4"> <m:math><m:mo>∨</m:mo></m:math>Elim,
                             by lines 1,2,3,
                             where <m:math><m:ci>φ</m:ci></m:math>=<m:math><m:ci>χ</m:ci></m:math>
                             and   <m:math><m:ci>ψ</m:ci></m:math>=<m:math><m:ci>υ</m:ci></m:math>
                             and   <m:math><m:ci>θ</m:ci></m:math>=<m:math><m:mfenced open="(" close=")" separators=""><m:ci>υ</m:ci> <m:mo>∨</m:mo> <m:ci>χ</m:ci></m:mfenced></m:math>
             </entry>
</row></tbody>
</tgroup>
</table>
  </solution>
</exercise>













</section> 

</content>
</document>

