proof_attempt.rb revision 905b6df701bc9f0b8a921c1758fd18052306fd09
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