#Processed by EYE v20.0218.2044 josd
#eye --no-genid http://josd.github.io/brain/n3c/components.n3 --turtle http://josd.github.io/brain/n3c/tasks.n3 --query http://josd.github.io/brain/n3c/notIn_query.n3

@prefix n3: <https://www.w3.org/ns/n3#>.
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix e: <http://eulersharp.sourceforge.net/2003/03swap/log-rules#>.
@prefix : <http://example.org/test#>.
@prefix r: <http://www.w3.org/2000/10/swap/reason#>.
@prefix var: <http://josd.github.io/var#>.

[] a r:Proof, r:Conjunction;
  r:component <#lemma1>;
  r:component <#lemma2>;
  r:gives {
    :task1 a :NotDiscardedTask.
    :task2 a :NotDiscardedTask.
  }.

<#lemma1> a r:Inference;
  r:gives {
    :task1 a :NotDiscardedTask.
  };
  r:evidence (
    <#lemma3>
    <#lemma4>
  );
  r:binding [ r:variable [ <http://www.w3.org/2004/06/rei#uri> "http://josd.github.io/var#x_0"]; r:boundTo [ <http://www.w3.org/2004/06/rei#uri> "http://example.org/test#task1"]];
  r:rule <#lemma5>.

<#lemma2> a r:Inference;
  r:gives {
    :task2 a :NotDiscardedTask.
  };
  r:evidence (
    <#lemma6>
    <#lemma7>
  );
  r:binding [ r:variable [ <http://www.w3.org/2004/06/rei#uri> "http://josd.github.io/var#x_0"]; r:boundTo [ <http://www.w3.org/2004/06/rei#uri> "http://example.org/test#task2"]];
  r:rule <#lemma5>.

<#lemma3> a r:Extraction;
  r:gives {
    :task1 a :CompositeTask.
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/brain/n3c/tasks.n3>].

<#lemma4> a r:Inference;
  r:gives {
    {:task1 a :DiscardedTask} n3:notIn <http://josd.github.io/brain/n3c/tasks.n3>.
  };
  r:evidence (
    [ a r:Fact; r:gives {<http://josd.github.io/brain/n3c/tasks.n3> log:semantics {:task1 a :CompositeTask.
     :task2 a :CompositeTask}}]
    [ a r:Fact; r:gives {{:task1 a :CompositeTask.
     :task2 a :CompositeTask} log:notIncludes {:task1 a :DiscardedTask}}]
  );
  r:binding [ r:variable [ <http://www.w3.org/2004/06/rei#uri> "http://josd.github.io/var#x_0"]; r:boundTo [ <http://www.w3.org/2004/06/rei#uri> "http://josd.github.io/brain/n3c/tasks.n3"]];
  r:binding [ r:variable [ <http://www.w3.org/2004/06/rei#uri> "http://josd.github.io/var#x_1"]; r:boundTo {:task1 a :CompositeTask.
   :task2 a :CompositeTask}];
  r:binding [ r:variable [ <http://www.w3.org/2004/06/rei#uri> "http://josd.github.io/var#x_2"]; r:boundTo {:task1 a :DiscardedTask}];
  r:rule <#lemma8>.

<#lemma5> a r:Extraction;
  r:gives {
    @forAll var:x_0. {var:x_0 a :CompositeTask.
     {var:x_0 a :DiscardedTask} n3:notIn <http://josd.github.io/brain/n3c/tasks.n3>} => {var:x_0 a :NotDiscardedTask}.
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/brain/n3c/notIn_query.n3>].

<#lemma6> a r:Extraction;
  r:gives {
    :task2 a :CompositeTask.
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/brain/n3c/tasks.n3>].

<#lemma7> a r:Inference;
  r:gives {
    {:task2 a :DiscardedTask} n3:notIn <http://josd.github.io/brain/n3c/tasks.n3>.
  };
  r:evidence (
    [ a r:Fact; r:gives {<http://josd.github.io/brain/n3c/tasks.n3> log:semantics {:task1 a :CompositeTask.
     :task2 a :CompositeTask}}]
    [ a r:Fact; r:gives {{:task1 a :CompositeTask.
     :task2 a :CompositeTask} log:notIncludes {:task2 a :DiscardedTask}}]
  );
  r:binding [ r:variable [ <http://www.w3.org/2004/06/rei#uri> "http://josd.github.io/var#x_0"]; r:boundTo [ <http://www.w3.org/2004/06/rei#uri> "http://josd.github.io/brain/n3c/tasks.n3"]];
  r:binding [ r:variable [ <http://www.w3.org/2004/06/rei#uri> "http://josd.github.io/var#x_1"]; r:boundTo {:task1 a :CompositeTask.
   :task2 a :CompositeTask}];
  r:binding [ r:variable [ <http://www.w3.org/2004/06/rei#uri> "http://josd.github.io/var#x_2"]; r:boundTo {:task2 a :DiscardedTask}];
  r:rule <#lemma8>.

<#lemma8> a r:Extraction;
  r:gives {
    @forAll var:x_0, var:x_1, var:x_2. {var:x_2 n3:notIn var:x_0} <= {var:x_0 log:semantics var:x_1.
     var:x_1 log:notIncludes var:x_2}.
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/brain/n3c/components.n3>].

#2020-02-22T21:52:14.846Z in=7 out=2 ent=2 step=2 brake=1 inf=30669 sec=0.099 inf/sec=309788
#ENDS

