@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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix n3: <http://www.w3.org/2004/06/rei#>.
@prefix var: <http://www.w3.org/2000/10/swap/var#>.

skolem:proof a r:Proof, r:Conjunction;
    r:component skolem:lemma1;
    r:gives {
        :pat a rdfs:Resource.
        :bob :loves skolem:t_0.
        skolem:t_0 :is :lonely.
    }.

skolem:lemma1 a r:Inference;
    r:gives {
        :pat a rdfs:Resource.
        :bob :loves skolem:t_0.
        skolem:t_0 :is :lonely.
    };
    r:evidence (
        [ a r:Fact; r:gives {:pat a rdfs:Resource}]
        [ a r:Fact; r:gives {:bob :loves skolem:t_0}]
        [ a r:Fact; r:gives {skolem:t_0 :is :lonely}]
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ a r:Existential; n3:nodeId "https://eyereasoner.github.io/.well-known/genid/8b98b360-9a70-4845-b52c-c675af60ad01#t_0"]];
    r:rule skolem:lemma2.

skolem:lemma2 a r:Extraction;
    r:gives {
        @forAll var:x_0. {
            :pat a rdfs:Resource.
            :bob :loves var:x_0.
            var:x_0 :is :lonely.
        } => {
            :pat a rdfs:Resource.
            :bob :loves var:x_0.
            var:x_0 :is :lonely.
        }.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/universal/universal-query.n3>].

