@prefix t: <http://josd.github.io/eye/reasoning/tfcontext#>.
@prefix h: <http://josd.github.io/eye/reasoning/h2o#>.
@prefix list: <http://www.w3.org/2000/10/swap/list#>.
@prefix r: <http://www.w3.org/2000/10/swap/reason#>.
@prefix var: <http://josd.github.io/var#>.
@prefix skolem: <http://josd.github.io/.well-known/genid/3917894951695475063#>.
@prefix n3: <http://www.w3.org/2004/06/rei#>.

skolem:proof a r:Proof, r:Conjunction;
  r:component skolem:lemma1;
  r:gives {
    h:traveler1 h:location (51.0535 3.7304).
  }.

skolem:lemma1 a r:Inference;
  r:gives {
    h:traveler1 h:location (51.0535 3.7304).
  };
  r:evidence (
    skolem:lemma2
  );
  r:rule skolem:lemma3.

skolem:lemma2 a r:Inference;
  r:gives {
    h:traveler1 h:location (51.0535 3.7304).
  };
  r:evidence (
    skolem:lemma4
    [ a r:Fact; r:gives {t:Ghent-Belgium list:in (t:Antwerp-Belgium t:Boston-USA t:Cambridge-USA t:Ghent-Belgium t:Ostend-Belgium)}]
    skolem:lemma5
  );
  r:binding [ r:variable [ n3:uri "http://josd.github.io/var#x_0"]; r:boundTo [ n3:uri "http://josd.github.io/eye/reasoning/h2o#traveler1"]];
  r:binding [ r:variable [ n3:uri "http://josd.github.io/var#x_1"]; r:boundTo (t:Antwerp-Belgium t:Boston-USA t:Cambridge-USA t:Ghent-Belgium t:Ostend-Belgium)];
  r:binding [ r:variable [ n3:uri "http://josd.github.io/var#x_2"]; r:boundTo [ n3:uri "http://josd.github.io/eye/reasoning/tfcontext#Ghent-Belgium"]];
  r:binding [ r:variable [ n3:uri "http://josd.github.io/var#x_3"]; r:boundTo 51.0535];
  r:binding [ r:variable [ n3:uri "http://josd.github.io/var#x_4"]; r:boundTo 3.7304];
  r:rule skolem:lemma6.

skolem:lemma3 a r:Extraction;
  r:gives {
    {h:traveler1 h:location (51.0535 3.7304)} => {h:traveler1 h:location (51.0535 3.7304)}.
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/h2o/query-001.n3>].

skolem:lemma4 a r:Extraction;
  r:gives {
    h:traveler1 h:inOneOf (t:Antwerp-Belgium t:Boston-USA t:Cambridge-USA t:Ghent-Belgium t:Ostend-Belgium).
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/h2o/hypothesis-001.n3>].

skolem:lemma5 a r:Extraction;
  r:gives {
    t:Ghent-Belgium t:position-tensor (51.0535 3.7304).
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/h2o/data-001.n3>].

skolem:lemma6 a r:Extraction;
  r:gives {
    @forAll var:x_0, var:x_1, var:x_2, var:x_3, var:x_4. {var:x_0 h:inOneOf var:x_1.
     var:x_2 list:in var:x_1.
     var:x_2 t:position-tensor (var:x_3 var:x_4)} => {var:x_0 h:location (var:x_3 var:x_4)}.
  };
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/h2o/rules-001.n3>].

