@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 skos: <http://www.w3.org/2004/02/skos/core#>.
@prefix validation: <http://eulersharp.sourceforge.net/2003/03swap/skos-mapping-validation-rules#>.
@prefix n3: <http://www.w3.org/2004/06/rei#>.
@prefix e: <http://eulersharp.sourceforge.net/2003/03swap/log-rules#>.
@prefix var: <http://www.w3.org/2000/10/swap/var#>.

skolem:proof a r:Proof, r:Conjunction;
    r:component skolem:lemma1;
    r:gives {
        {
            <http://purl.bioontology.org/ontology/ICD10/Q00.0> skos:broaderTransitive <http://purl.bioontology.org/ontology/ICD10/Q00>.
            <http://purl.bioontology.org/ontology/SNOMEDCT/203922009> skos:broaderTransitive <http://purl.bioontology.org/ontology/SNOMEDCT/89369001>.
            <http://purl.bioontology.org/ontology/ICD10/Q00> skos:exactMatch <http://purl.bioontology.org/ontology/SNOMEDCT/203922009>.
            <http://purl.bioontology.org/ontology/SNOMEDCT/89369001> skos:exactMatch <http://purl.bioontology.org/ontology/ICD10/Q00.0>.
        } a validation:Pattern7CounterIntuitive.
    }.

skolem:lemma1 a r:Inference;
    r:gives {
        {
            <http://purl.bioontology.org/ontology/ICD10/Q00.0> skos:broaderTransitive <http://purl.bioontology.org/ontology/ICD10/Q00>.
            <http://purl.bioontology.org/ontology/SNOMEDCT/203922009> skos:broaderTransitive <http://purl.bioontology.org/ontology/SNOMEDCT/89369001>.
            <http://purl.bioontology.org/ontology/ICD10/Q00> skos:exactMatch <http://purl.bioontology.org/ontology/SNOMEDCT/203922009>.
            <http://purl.bioontology.org/ontology/SNOMEDCT/89369001> skos:exactMatch <http://purl.bioontology.org/ontology/ICD10/Q00.0>.
        } a validation:Pattern7CounterIntuitive.
    };
    r:evidence (
        skolem:lemma2
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo {
        <http://purl.bioontology.org/ontology/ICD10/Q00.0> skos:broaderTransitive <http://purl.bioontology.org/ontology/ICD10/Q00>.
        <http://purl.bioontology.org/ontology/SNOMEDCT/203922009> skos:broaderTransitive <http://purl.bioontology.org/ontology/SNOMEDCT/89369001>.
        <http://purl.bioontology.org/ontology/ICD10/Q00> skos:exactMatch <http://purl.bioontology.org/ontology/SNOMEDCT/203922009>.
        <http://purl.bioontology.org/ontology/SNOMEDCT/89369001> skos:exactMatch <http://purl.bioontology.org/ontology/ICD10/Q00.0>.
    }];
    r:rule skolem:lemma3.

skolem:lemma2 a r:Inference;
    r:gives {
        {
            <http://purl.bioontology.org/ontology/ICD10/Q00.0> skos:broaderTransitive <http://purl.bioontology.org/ontology/ICD10/Q00>.
            <http://purl.bioontology.org/ontology/SNOMEDCT/203922009> skos:broaderTransitive <http://purl.bioontology.org/ontology/SNOMEDCT/89369001>.
            <http://purl.bioontology.org/ontology/ICD10/Q00> skos:exactMatch <http://purl.bioontology.org/ontology/SNOMEDCT/203922009>.
            <http://purl.bioontology.org/ontology/SNOMEDCT/89369001> skos:exactMatch <http://purl.bioontology.org/ontology/ICD10/Q00.0>.
        } a validation:Pattern7CounterIntuitive.
    };
    r:evidence (
        skolem:lemma4
        skolem:lemma5
        skolem:lemma6
        skolem:lemma7
        [ a r:Fact; r:gives {{
            <http://purl.bioontology.org/ontology/SNOMEDCT/203922009> skos:broaderTransitive <http://purl.bioontology.org/ontology/SNOMEDCT/89369001>.
            <http://purl.bioontology.org/ontology/SNOMEDCT/89369001> skos:exactMatch <http://purl.bioontology.org/ontology/ICD10/Q00.0>.
            <http://purl.bioontology.org/ontology/ICD10/Q00.0> skos:broaderTransitive <http://purl.bioontology.org/ontology/ICD10/Q00>.
            <http://purl.bioontology.org/ontology/ICD10/Q00> skos:exactMatch <http://purl.bioontology.org/ontology/SNOMEDCT/203922009>.
        } e:graphCopy {
            <http://purl.bioontology.org/ontology/ICD10/Q00.0> skos:broaderTransitive <http://purl.bioontology.org/ontology/ICD10/Q00>.
            <http://purl.bioontology.org/ontology/SNOMEDCT/203922009> skos:broaderTransitive <http://purl.bioontology.org/ontology/SNOMEDCT/89369001>.
            <http://purl.bioontology.org/ontology/ICD10/Q00> skos:exactMatch <http://purl.bioontology.org/ontology/SNOMEDCT/203922009>.
            <http://purl.bioontology.org/ontology/SNOMEDCT/89369001> skos:exactMatch <http://purl.bioontology.org/ontology/ICD10/Q00.0>.
        }}]
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://purl.bioontology.org/ontology/SNOMEDCT/203922009"]];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_1"]; r:boundTo [ n3:uri "http://purl.bioontology.org/ontology/SNOMEDCT/89369001"]];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_2"]; r:boundTo [ n3:uri "http://purl.bioontology.org/ontology/ICD10/Q00.0"]];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_3"]; r:boundTo [ n3:uri "http://purl.bioontology.org/ontology/ICD10/Q00"]];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_4"]; r:boundTo {
        <http://purl.bioontology.org/ontology/ICD10/Q00.0> skos:broaderTransitive <http://purl.bioontology.org/ontology/ICD10/Q00>.
        <http://purl.bioontology.org/ontology/SNOMEDCT/203922009> skos:broaderTransitive <http://purl.bioontology.org/ontology/SNOMEDCT/89369001>.
        <http://purl.bioontology.org/ontology/ICD10/Q00> skos:exactMatch <http://purl.bioontology.org/ontology/SNOMEDCT/203922009>.
        <http://purl.bioontology.org/ontology/SNOMEDCT/89369001> skos:exactMatch <http://purl.bioontology.org/ontology/ICD10/Q00.0>.
    }];
    r:rule skolem:lemma8.

skolem:lemma3 a r:Extraction;
    r:gives {
        @forAll var:x_0. {
            var:x_0 a validation:Pattern7CounterIntuitive.
        } => {
            var:x_0 a validation:Pattern7CounterIntuitive.
        }.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/skos/skos-mapping-validation-query.n3>].

skolem:lemma4 a r:Inference;
    r:gives {
        <http://purl.bioontology.org/ontology/SNOMEDCT/203922009> skos:broaderTransitive <http://purl.bioontology.org/ontology/SNOMEDCT/89369001>.
    };
    r:evidence (
        skolem:lemma9
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://purl.bioontology.org/ontology/SNOMEDCT/203922009"]];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_1"]; r:boundTo [ n3:uri "http://purl.bioontology.org/ontology/SNOMEDCT/89369001"]];
    r:rule skolem:lemma10.

skolem:lemma5 a r:Extraction;
    r:gives {
        <http://purl.bioontology.org/ontology/SNOMEDCT/89369001> skos:exactMatch <http://purl.bioontology.org/ontology/ICD10/Q00.0>.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/skos/skos-mapping-sample-snomed-icd10.n3>].

skolem:lemma6 a r:Inference;
    r:gives {
        <http://purl.bioontology.org/ontology/ICD10/Q00.0> skos:broaderTransitive <http://purl.bioontology.org/ontology/ICD10/Q00>.
    };
    r:evidence (
        skolem:lemma11
    );
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "http://purl.bioontology.org/ontology/ICD10/Q00.0"]];
    r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_1"]; r:boundTo [ n3:uri "http://purl.bioontology.org/ontology/ICD10/Q00"]];
    r:rule skolem:lemma10.

skolem:lemma7 a r:Extraction;
    r:gives {
        <http://purl.bioontology.org/ontology/ICD10/Q00> skos:exactMatch <http://purl.bioontology.org/ontology/SNOMEDCT/203922009>.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/skos/skos-mapping-sample-snomed-icd10.n3>].

skolem:lemma8 a r:Extraction;
    r:gives {
        @forAll var:x_0, var:x_1, var:x_2, var:x_3, var:x_4. {
            var:x_0 skos:broaderTransitive var:x_1.
            var:x_1 skos:exactMatch var:x_2.
            var:x_2 skos:broaderTransitive var:x_3.
            var:x_3 skos:exactMatch var:x_0.
            {
                var:x_0 skos:broaderTransitive var:x_1.
                var:x_1 skos:exactMatch var:x_2.
                var:x_2 skos:broaderTransitive var:x_3.
                var:x_3 skos:exactMatch var:x_0.
            } e:graphCopy var:x_4.
        } => {
            var:x_4 a validation:Pattern7CounterIntuitive.
        }.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/skos/skos-mapping-validation-rules.n3>].

skolem:lemma9 a r:Extraction;
    r:gives {
        <http://purl.bioontology.org/ontology/SNOMEDCT/203922009> skos:broader <http://purl.bioontology.org/ontology/SNOMEDCT/89369001>.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/skos/skos-mapping-sample-snomed-icd10.n3>].

skolem:lemma10 a r:Extraction;
    r:gives {
        @forAll var:x_0, var:x_1. {
            var:x_0 skos:broader var:x_1.
        } => {
            var:x_0 skos:broaderTransitive var:x_1.
        }.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/skos/skos-mapping-validation-rules.n3>].

skolem:lemma11 a r:Extraction;
    r:gives {
        <http://purl.bioontology.org/ontology/ICD10/Q00.0> skos:broader <http://purl.bioontology.org/ontology/ICD10/Q00>.
    };
    r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/skos/skos-mapping-sample-snomed-icd10.n3>].

