proof.rb revision 7e7aa9363e147c29d295375e360d1f745269aa06
# The Proof class is not supposed to be stored in the database. Its purpose is
# to allow for an easy way to create proving commands in the RESTful manner.
# It is called Proof to comply with the ProofsController which in turn gets
# called on */proofs routes.
# This class prepares the proving procedure and creates the models which are
# presented in the UI (ProofAttempt).
if not_provers.any?
record.errors.add attribute, "#{not_provers} are not provers"
end
end
end
validates :prover_ids, provers: true
if: :timeout_present?
opts[:proof][:prover_ids] ||= []
@ontology = Ontology.find(opts[:ontology_id])
# HACK: remove the empty string from params
# Rails 4.2 introduces the html form option :include_hidden
end
end
end
end
end
@proof_obligation ||=
if opts[:theorem_id]
else
end
end
@provers = [nil] if @provers.blank?
end
@prove_options_list = @provers.map do |prover|
options[:timeout] = timeout if timeout.present?
end
end
@options_to_attempts_hash = {}
@proof_attempts = []
end
end
end
if theorem?
else
end
end
end
end
result = {}
end
end
end
end