proof_attempt.rb revision 826cc3b7365c94d05c44118c603d7a36c1974eee
numbering_parent_column 'sentence_id'
class_name: 'Axiom',
association_foreign_key: 'sentence_id',
join_table: 'used_axioms_proof_attempts'
class_name: 'Theorem',
association_foreign_key: 'sentence_id',
join_table: 'used_axioms_proof_attempts'
:number,
:state,
end
end
end
"#{theorem.locid}//#{self.class.to_s.underscore.dasherize}-#{number}"
end
end
ontology_version.provers << prover
ontology_version.save!
end
end
def retry_failed
ProofExecutionWorker.perform_async(id)
end
def proper_subset_of_axioms_selected?
selected = proof_attempt_configuration.axiom_selection.axioms
available = theorem.ontology.axioms
selected.any? && selected.count < available.count
end
protected
def prove_options_from_configuration
pac = proof_attempt_configuration
Hets::ProveOptions.new({prover: pac.prover,
timeout: pac.timeout})
end
end