This model is an experiment in the realm of formal theorem proving,
specifically tailored for generating and interpreting Coq code. By
leveraging a comprehensive dataset derived from over 10,000 Coq source
files, CoqLLM-FineTuned-Experiment-Gen0 exhibits an enhanced
proficiency in understanding the syntax and semantics unique to Coq,
thereby facilitating significant strides in automated theorem proving.
Model Details
Model Description
Developed by: Andreas Florath
Model type: Fine-tuned Large Language Model
Finetuned from model: Mistral-7b (mistralai/Mistral-7B-v0.1)
No special prompt format needed. The model was fine-tuned with Coq
source code. Just providing the proposal let's the model generate a
proof, like:
Lemma plus_n_O : forall n:nat, n = n + 0.
No special characters or delimiters are needed.
Direct Use
CoqLLM-FineTuned-Experiment-Gen0 is an experiment to show the
usefulness of the dataset used for fine-tuning the model. The model
might be used to check if short proofs can be automatically generated.
Another possible use-case is to curate the existing Coq source code
and curate and generate new Coq source code.
Out-of-Scope Use
The model is not intended for general-purpose language tasks outside
the domain of theorem proving and formal verification. Misuse includes
but is not limited to non-Coq programming tasks, natural language
processing outside technical documentation, or any form of deployment
in critical systems without adequate supervision and validation.
Bias, Risks, and Limitations
The model inherits biases from its base mode, training data, potentially
reflecting the diversity or lack thereof in the collected Coq
files. Users should be wary of these limitations, particularly when
applying the model in new or underserved areas of theorem proving.
Recommendations
To mitigate risks and biases, it's recommended to supplement model use
with human oversight or an environment where the generated Coq source
code can be automatically verified. Continuous monitoring for
unexpected behaviors or outputs is advised, alongside efforts to
diversify and expand the training dataset to cover a broader spectrum
of Coq use cases.
How to Get Started with the Model
Here is a code snippet using the fine-tuned model. The shown setup
should work using GPUs with <= 24GByte RAM. You might want to adapt
and experiment with different settings, like different temperatures.
The model was fine-tuned with the florath/coq-facts-props-proofs-gen0-v1
dataset. Only entries with permissive licenses were used during the
fine-tuning process.
Cite
@misc{florath2024enhancing,
title={Enhancing Formal Theorem Proving: A Comprehensive Dataset for Training AI Models on Coq Code},
author={Andreas Florath},
year={2024},
eprint={2403.12627},
archivePrefix={arXiv},
primaryClass={cs.AI}
}