Cross Reference: proof_execution.rb
xref
: /
ontohub
/
lib
/
proof_execution.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
class
ProofExecution
attr_accessor
:
proof_attempt
, :
prove_options
delegate
:
theorem
, :
proof_attempt_configuration
,
to
: :
proof_attempt
delegate
:
ontology
,
to
: :
theorem
def
initialize
(
proof_attempt
)
self.proof
_attempt
=
proof_attempt
end
def
call
prepare_axiom_selection
prepare_prove_options
prove
end
protected
def
prepare_axiom_selection
proof_attempt_configuration.axiom_selection.specific.call
end
def
prepare_prove_options
self.prove
_options
=
proof_attempt.proof_attempt_configuration.prove
_options
prove_options.merge
!
(
theorem.prove
_options
)
end
def
prove
ProofEvaluationStateUpdater.new
(
proof_attempt
, :
processing
)
.
call
cmd
,
input_io
=
execute_proof
(
prove_options
)
return
if
cmd
== :
abort
ontology.import
_proof
(
ontology_version
,
ontology_version.pusher
,
proof_attempt
,
input_io
)
end
def
execute_proof
(
prove_options
)
input_io
=
Hets.prove
_via_api
(
ontology
,
prove_options
)
[:
all_is_well
,
input_io
]
end
def
ontology_version
ontology.current
_version
end
end