@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 log: <http://www.w3.org/2000/10/swap/log#>.
@prefix : <http://example.org/#>.
@prefix n3: <http://www.w3.org/2004/06/rei#>.
@prefix var: <http://www.w3.org/2000/10/swap/var#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.

skolem:proof a r:Proof, r:Conjunction;
    r:component skolem:lemma1;
    r:gives [ log:graph (
        [ log:triple (:beetle :is :nice)]
    )].

skolem:lemma1 a r:Inference;
    r:gives [ log:graph (
        [ log:triple (:beetle :is :nice)]
    )];
    r:evidence (
        skolem:lemma2
    );
    r:rule [ a r:Fact; r:gives [ log:graph ([ log:triple ([ log:graph (
        [ log:triple (:beetle :is :nice)]
    )] log:implies [ log:graph (
        [ log:triple (:beetle :is :nice)]
    )])])]].

skolem:lemma2 a r:Inference;
    r:gives [ log:graph (
        [ log:triple (:beetle :is :nice)]
    )];
    r:evidence (
        skolem:lemma3
        skolem:lemma4
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://example.org/#beetle"]];
    r:rule [ a r:Fact; r:gives [ log:graph ([ log:triple ([ log:graph (
        [ log:triple (var:x_0 :is :green)]
        [ log:triple (() log:onNegativeSurface [ log:graph (
            [ log:triple (var:x_0 :is :pretty)]
        )])]
    )] log:implies [ log:graph (
        [ log:triple (var:x_0 :is :nice)]
    )])])]].

skolem:lemma3 a r:Inference;
    r:gives [ log:graph (
        [ log:triple (:beetle :is :green)]
    )];
    r:evidence (
        skolem:lemma5
        skolem:lemma6
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://example.org/#beetle"]];
    r:rule [ a r:Fact; r:gives [ log:graph ([ log:triple ([ log:graph (
        [ log:triple (var:x_0 rdf:type :Car)]
        [ log:triple (() log:onNegativeSurface [ log:graph (
            [ log:triple (var:x_0 :is :blue)]
        )])]
    )] log:implies [ log:graph (
        [ log:triple (var:x_0 :is :green)]
    )])])]].

skolem:lemma4 a r:Inference;
    r:gives [ log:graph (
        [ log:triple (() log:onNegativeSurface [ log:graph (
            [ log:triple (:beetle :is :pretty)]
        )])]
    )];
    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/#beetle"]];
    r:rule [ a r:Fact; r:gives [ log:graph ([ log:triple ([ log:graph (
        [ log:triple (var:x_0 rdf:type :Car)]
    )] log:implies [ log:graph (
        [ log:triple (() log:onNegativeSurface [ log:graph (
            [ log:triple (var:x_0 :is :pretty)]
        )])]
    )])])]].

skolem:lemma5 a r:Extraction;
    r:gives [ log:graph (
        [ log:triple (:beetle rdf:type :Car)]
    )];
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/arcus/beetle6/beetle6.ttl>].

skolem:lemma6 a r:Inference;
    r:gives [ log:graph (
        [ log:triple (() log:onNegativeSurface [ log:graph (
            [ log:triple (:beetle :is :blue)]
        )])]
    )];
    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/#beetle"]];
    r:rule [ a r:Fact; r:gives [ log:graph ([ log:triple ([ log:graph (
        [ log:triple (var:x_0 rdf:type :Car)]
    )] log:implies [ log:graph (
        [ log:triple (() log:onNegativeSurface [ log:graph (
            [ log:triple (var:x_0 :is :blue)]
        )])]
    )])])]].

