PREFIX : <http://josd.github.io/eye/reasoning/cs#>
PREFIX math: <http://www.w3.org/2000/10/swap/math#>
PREFIX r: <http://www.w3.org/2000/10/swap/reason#>

[] a r:Proof, r:Conjunction;
  r:component <#lemma1>;
  r:component <#lemma2>;
  r:gives {
    :actuator1 :control1 39.27346198678276 .
    :actuator2 :control1 26.08 .
  }.

<#lemma1> a r:Inference;
  r:gives {
    :actuator1 :control1 39.27346198678276 .
  };
  r:evidence (
    <#lemma3>
  );
  r:rule <#lemma4>.

<#lemma2> a r:Inference;
  r:gives {
    :actuator2 :control1 26.08 .
  };
  r:evidence (
    <#lemma5>
  );
  r:rule <#lemma4>.

<#lemma3> a r:Inference;
  r:gives {
    :actuator1 :control1 39.27346198678276 .
  };
  r:evidence (
    <#lemma6>
    <#lemma7>
    <#lemma8>
    [ a r:Fact; r:gives {(2.23606797749979 19.6) math:product 43.82693235899588}]
    [ a r:Fact; r:gives {(10 4.553470372213121) math:exponentiation 35766}]
    [ a r:Fact; r:gives {(43.82693235899588 4.553470372213121) math:difference 39.27346198678276}]
  );
  r:rule <#lemma9>.

<#lemma4> a r:Extraction;
  r:gives {
    {?x_0_1 :control1 ?x_1_1} => {?x_0_1 :control1 ?x_1_1}.
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/cs/query-001.n3>].

<#lemma5> a r:Inference;
  r:gives {
    :actuator2 :control1 26.08 .
  };
  r:evidence (
    <#lemma10>
    <#lemma11>
    <#lemma12>
    <#lemma13>
    [ a r:Fact; r:gives {(29 24) math:difference 5}]
    [ a r:Fact; r:gives {(22 24) math:difference -2}]
    [ a r:Fact; r:gives {(5.8 5) math:product 29.0}]
    [ a r:Fact; r:gives {(7.3 5) math:quotient 1.46}]
    [ a r:Fact; r:gives {(1.46 -2) math:product -2.92}]
    [ a r:Fact; r:gives {(29.0 -2.92) math:sum 26.08}]
  );
  r:rule <#lemma14>.

<#lemma6> a r:Inference;
  r:gives {
    :input1 :measurement10 2.23606797749979 .
  };
  r:evidence (
    <#lemma15>
    [ a r:Fact; r:gives {6 math:lessThan 11}]
    [ a r:Fact; r:gives {(11 6) math:difference 5}]
    [ a r:Fact; r:gives {(5 0.5) math:exponentiation 2.23606797749979}]
  );
  r:rule <#lemma16>.

<#lemma7> a r:Extraction;
  r:gives {
    :input2 :measurement2 true.
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/cs/data-001.n3>].

<#lemma8> a r:Extraction;
  r:gives {
    :disturbance1 :measurement3 35766 .
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/cs/data-001.n3>].

<#lemma9> a r:Extraction;
  r:gives {
    {:input1 :measurement10 ?x_0_2.
     :input2 :measurement2 true.
     :disturbance1 :measurement3 ?x_1_2.
     (?x_0_2 19.6) math:product ?x_2_2.
     (10 ?x_3_2) math:exponentiation ?x_1_2.
     (?x_2_2 ?x_3_2) math:difference ?x_4_2} => {:actuator1 :control1 ?x_4_2}.
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/cs/rules-001.n3>].

<#lemma10> a r:Extraction;
  r:gives {
    :input3 :measurement3 56967 .
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/cs/data-001.n3>].

<#lemma11> a r:Extraction;
  r:gives {
    :state3 :observation3 22 .
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/cs/data-001.n3>].

<#lemma12> a r:Extraction;
  r:gives {
    :output2 :measurement4 24 .
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/cs/data-001.n3>].

<#lemma13> a r:Extraction;
  r:gives {
    :output2 :target2 29 .
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/cs/data-001.n3>].

<#lemma14> a r:Extraction;
  r:gives {
    {:input3 :measurement3 ?x_0_3.
     :state3 :observation3 ?x_1_3.
     :output2 :measurement4 ?x_2_3.
     :output2 :target2 ?x_3_3.
     (?x_3_3 ?x_2_3) math:difference ?x_4_3.
     (?x_1_3 ?x_2_3) math:difference ?x_5_3.
     (5.8 ?x_4_3) math:product ?x_6_3.
     (7.3 ?x_4_3) math:quotient ?x_7_3.
     (?x_7_3 ?x_5_3) math:product ?x_8_3.
     (?x_6_3 ?x_8_3) math:sum ?x_9_3} => {:actuator2 :control1 ?x_9_3}.
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/cs/rules-001.n3>].

<#lemma15> a r:Extraction;
  r:gives {
    :input1 :measurement1 (6 11).
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/cs/data-001.n3>].

<#lemma16> a r:Extraction;
  r:gives {
    {?x_0_4 :measurement10 ?x_4_4} <= {?x_0_4 :measurement1 (?x_1_4 ?x_2_4).
     ?x_1_4 math:lessThan ?x_2_4.
     (?x_2_4 ?x_1_4) math:difference ?x_3_4.
     (?x_3_4 0.5) math:exponentiation ?x_4_4}.
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/cs/rules-001.n3>].

