@prefix skolem: <https://eyereasoner.github.io/.well-known/genid/8b98b360-9a70-4845-b52c-c675af60ad01#>.
@prefix r: <http://www.w3.org/2000/10/swap/reason#>.
@prefix : <http://example.org/>.
@prefix n3: <http://www.w3.org/2004/06/rei#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix math: <http://www.w3.org/2000/10/swap/math#>.
@prefix var: <http://www.w3.org/2000/10/swap/var#>.

skolem:proof a r:Proof, r:Conjunction;
    r:component skolem:lemma1;
    r:component skolem:lemma2;
    r:component skolem:lemma3;
    r:component skolem:lemma4;
    r:gives {
        :turbine1 :hasAnomaly :highVibration.
        :turbine1 :hasAnomaly :highTemperature.
        :turbine1 :requires :urgentInspection.
        :turbine1 :requires :gearboxMaintenance.
    }.

skolem:lemma1 a r:Inference;
    r:gives {
        :turbine1 :hasAnomaly :highVibration.
    };
    r:evidence (
        skolem:lemma5
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://example.org/turbine1"]];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_1"]; r:boundTo [ n3:uri "http://example.org/highVibration"]];
    r:rule skolem:lemma6.

skolem:lemma2 a r:Inference;
    r:gives {
        :turbine1 :hasAnomaly :highTemperature.
    };
    r:evidence (
        skolem:lemma7
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://example.org/turbine1"]];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_1"]; r:boundTo [ n3:uri "http://example.org/highTemperature"]];
    r:rule skolem:lemma6.

skolem:lemma3 a r:Inference;
    r:gives {
        :turbine1 :requires :urgentInspection.
    };
    r:evidence (
        skolem:lemma8
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://example.org/turbine1"]];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_1"]; r:boundTo [ n3:uri "http://example.org/urgentInspection"]];
    r:rule skolem:lemma9.

skolem:lemma4 a r:Inference;
    r:gives {
        :turbine1 :requires :gearboxMaintenance.
    };
    r:evidence (
        skolem:lemma10
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://example.org/turbine1"]];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_1"]; r:boundTo [ n3:uri "http://example.org/gearboxMaintenance"]];
    r:rule skolem:lemma9.

skolem:lemma5 a r:Inference;
    r:gives {
        :turbine1 :hasAnomaly :highVibration.
    };
    r:evidence (
        skolem:lemma11
        skolem:lemma12
        [ a r:Fact; r:gives {"0.42"^^xsd:decimal math:greaterThan "0.35"^^xsd:decimal}]
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://example.org/turbine1"]];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_1"]; r:boundTo "0.42"^^xsd:decimal];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_2"]; r:boundTo "0.35"^^xsd:decimal];
    r:rule skolem:lemma13.

skolem:lemma6 a r:Extraction;
    r:gives {
        @forAll var:x_0, var:x_1. {
            var:x_0 :hasAnomaly var:x_1.
        } => {
            var:x_0 :hasAnomaly var:x_1.
        }.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/wind-turbine/wind-turbine.n3>].

skolem:lemma7 a r:Inference;
    r:gives {
        :turbine1 :hasAnomaly :highTemperature.
    };
    r:evidence (
        skolem:lemma14
        skolem:lemma15
        [ a r:Fact; r:gives {"78"^^xsd:decimal math:greaterThan "75"^^xsd:decimal}]
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://example.org/turbine1"]];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_1"]; r:boundTo "78"^^xsd:decimal];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_2"]; r:boundTo "75"^^xsd:decimal];
    r:rule skolem:lemma16.

skolem:lemma8 a r:Inference;
    r:gives {
        :turbine1 :requires :urgentInspection.
    };
    r:evidence (
        skolem:lemma5
        skolem:lemma7
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://example.org/turbine1"]];
    r:rule skolem:lemma17.

skolem:lemma9 a r:Extraction;
    r:gives {
        @forAll var:x_0, var:x_1. {
            var:x_0 :requires var:x_1.
        } => {
            var:x_0 :requires var:x_1.
        }.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/wind-turbine/wind-turbine.n3>].

skolem:lemma10 a r:Inference;
    r:gives {
        :turbine1 :requires :gearboxMaintenance.
    };
    r:evidence (
        skolem:lemma18
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://example.org/turbine1"]];
    r:rule skolem:lemma19.

skolem:lemma11 a r:Extraction;
    r:gives {
        :turbine1 :vibration "0.42"^^xsd:decimal.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/wind-turbine/wind-turbine.n3>].

skolem:lemma12 a r:Extraction;
    r:gives {
        :highVibrationThreshold :value "0.35"^^xsd:decimal.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/wind-turbine/wind-turbine.n3>].

skolem:lemma13 a r:Extraction;
    r:gives {
        @forAll var:x_0, var:x_1, var:x_2. {
            var:x_0 :vibration var:x_1.
            :highVibrationThreshold :value var:x_2.
            var:x_1 math:greaterThan var:x_2.
        } => {
            var:x_0 :hasAnomaly :highVibration.
        }.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/wind-turbine/wind-turbine.n3>].

skolem:lemma14 a r:Extraction;
    r:gives {
        :turbine1 :temperature "78"^^xsd:decimal.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/wind-turbine/wind-turbine.n3>].

skolem:lemma15 a r:Extraction;
    r:gives {
        :highTemperatureThreshold :value "75"^^xsd:decimal.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/wind-turbine/wind-turbine.n3>].

skolem:lemma16 a r:Extraction;
    r:gives {
        @forAll var:x_0, var:x_1, var:x_2. {
            var:x_0 :temperature var:x_1.
            :highTemperatureThreshold :value var:x_2.
            var:x_1 math:greaterThan var:x_2.
        } => {
            var:x_0 :hasAnomaly :highTemperature.
        }.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/wind-turbine/wind-turbine.n3>].

skolem:lemma17 a r:Extraction;
    r:gives {
        @forAll var:x_0. {
            var:x_0 :hasAnomaly :highVibration.
            var:x_0 :hasAnomaly :highTemperature.
        } => {
            var:x_0 :requires :urgentInspection.
        }.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/wind-turbine/wind-turbine.n3>].

skolem:lemma18 a r:Extraction;
    r:gives {
        :turbine1 :gearboxStatus :degraded.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/wind-turbine/wind-turbine.n3>].

skolem:lemma19 a r:Extraction;
    r:gives {
        @forAll var:x_0. {
            var:x_0 :gearboxStatus :degraded.
        } => {
            var:x_0 :requires :gearboxMaintenance.
        }.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/wind-turbine/wind-turbine.n3>].

