StepFun-Formalizer

StepFun-Formalizer-7B

by StepFun · Active open-weight model

An open-weight StepFun model specialized in converting informal mathematics into Lean 4 formal statements. It offers a 16,384-token context, Apache 2.0 licensing, local deployment, and published autoformalization benchmark results, but no official hosted pricing or guaranteed theorem verification.

Text Reasoning Coding
StepFun-Formalizer-7B is a specialized open-weight model from StepFun that translates informal mathematical problems into Lean 4 code and theorem statements. It is designed to help researchers and developers move from human-readable mathematics to expressions that can be compiled and checked with Lean and Mathlib. The model is available as a downloadable checkpoint rather than a provider-hosted service with published token pricing.
Outputs

What StepFun-Formalizer-7B can produce

Text
Inputs

What it can understand

Text
Capabilities

Support features

Fine-tuning
Model profile

Performance characteristics

8/10 Reasoning
8/10 Coding
6/10 Speed
9/10 Cost efficiency
Specifications

Technical details

Family StepFun-Formalizer
Type Reasoning
Context window 16K tokens
Max output tokens tokens
Release date 2025-08-06
Status Active open-weight model
Knowledge cutoff notes

No authoritative knowledge-cutoff date was specified in the model card or cited paper. The model is specialized for mathematical autoformalization rather than current-information retrieval.

Model notes

StepFun-Formalizer-7B is an open-weight BF16 checkpoint distributed under the Apache 2.0 license. The model card describes it as a text-generation model and provides Transformers, vLLM, and SGLang deployment examples. The research paper reports a 16,384-token context length. Hugging Face lists the checkpoint at approximately 8B parameters, while the canonical model name uses 7B. The model is based on DeepSeek-R1-Distill-Qwen-7B and specialized for translating natural-language mathematical problems into Lean 4 formal statements. Published BEq@1 results are 38.3% on FormalMATH-Lite, 25.1% on ProverBench, and 5.2% on CombiBench; BEq@16 results are 61.2%, 37.9%, and 11.0%. Reasoning, coding, speed, and cost scores are editorial estimates based on the model's specialized benchmark performance, 7B scale, and open-weight deployment characteristics, not vendor-provided ratings. No official hosted API pricing, exact maximum output-token limit, knowledge cutoff, web-search integration, JSON mode, caching service, or batch API was identified.

Model guide

StepFun-Formalizer-7B: Open-Weight Lean 4 Autoformalization at 7B Scale

StepFun-Formalizer-7B is an open-weight language model specialized in converting natural-language mathematics into formally verifiable Lean 4 statements. Its 7B-class size, Apache 2.0 license, 16,384-token context, and local deployment options make it suited to mathematical formalization pipelines rather than general chat, web research, or managed API use.

What StepFun-Formalizer-7B does

StepFun-Formalizer-7B is a language model for mathematical autoformalization. In practical terms, it takes a problem written in ordinary mathematical language and produces a formal statement in Lean 4, a proof-assistant language used to express definitions, propositions, and proofs in a machine-checkable form.

The model is aimed primarily at the formalization step, not at replacing Lean's verifier. It can identify mathematical objects and relationships in an informal prompt and propose a corresponding theorem statement, including relevant definitions, imports, and Mathlib terminology. The generated result remains a candidate until it is compiled and checked in a compatible Lean environment.

This distinction is important for new users. A fluent-looking Lean response is not automatically a correct formalization. Lean checking can reveal syntax errors, missing imports, incorrect theorem statements, or a mismatch between the intended informal problem and the generated proposition.

Position in the StepFun lineup

The model belongs to the StepFun-Formalizer family and is the smaller named variant described in the supplied research. A 32B sibling is also identified in the research, but StepFun-Formalizer-7B is the subject of this page. Its smaller scale makes it a more practical candidate for local or resource-constrained deployment than a much larger specialized checkpoint, while the larger sibling may be relevant when maximum formalization quality is more important than hardware efficiency.

The canonical name uses 7B, while the Hugging Face listing describes the checkpoint as approximately 8B parameters. The model is based on DeepSeek-R1-Distill-Qwen-7B and has been fine-tuned for formalization rather than general-purpose conversational assistance. It is distributed through Hugging Face under the Apache 2.0 license.

How the model is intended to be used

StepFun describes the training approach as combining formal-knowledge distillation, informal-to-formal reasoning synthesis, supervised fine-tuning, and reinforcement learning with verification-oriented feedback. These methods are intended to connect mathematical reasoning in ordinary language with the vocabulary and structure expected by a formal theorem prover.

The model card provides prompting examples that ask the model to generate Lean 4 statements from a supplied Mathlib header. A practical workflow is therefore to provide the mathematical problem, specify the expected Lean and Mathlib environment, request a formal statement, and then test the output in Lean. If the statement does not compile or does not express the intended problem, the prompt can be revised and another candidate generated.

This workflow makes StepFun-Formalizer-7B useful as a formalization assistant. It does not establish that the model independently proves every theorem it describes, and the supplied research does not identify it as a complete autonomous theorem-proving system.

Benchmark results and main strengths

In the authors' evaluation, StepFun-Formalizer-7B achieved BEq@1 scores of 38.3% on FormalMATH-Lite, 25.1% on ProverBench, and 5.2% on CombiBench. With up to 16 generated candidates, the reported BEq@16 scores were 61.2%, 37.9%, and 11.0% on the same benchmarks, respectively.

BEq measures whether at least one generated formal statement is definitionally or semantically equivalent to the reference under the evaluation procedure. The difference between the one-sample and 16-sample results indicates the practical value of generating multiple candidates when the deployment workflow can rank or verify them. It also shows why evaluation results should not be read as a guarantee that the first output will be correct.

The benchmarks cover mathematical areas including algebra, number theory, calculus, and combinatorial problems. Within its intended niche, the model's key strengths are its specialization in Lean 4, its ability to map informal mathematical language to formal statements, and its relatively modest open-weight size. The Apache 2.0 license and downloadable checkpoint also allow deployers to build local workflows without depending on a provider-managed inference endpoint.

Technical specifications and supported modalities

SpecificationVerified information
Model familyStepFun-Formalizer
ProviderStepFun
Parameter scale7B in the canonical name; approximately 8B on the Hugging Face listing
Context length16,384 tokens, according to the research paper
Input and outputText input and text output
Primary outputLean 4 formal statements and related text-generation responses
LicenseApache 2.0
DeploymentLocal or self-managed inference through open-weight tooling

The model is text-only in its native interface. It does not natively generate images, audio, or video, and there is no supplied evidence of image, audio, or video input. Its 16,384-token context is relevant when prompts include long mathematical descriptions, definitions, or Mathlib headers, although the usable length also depends on the selected inference system and prompt format.

No exact maximum output-token limit is specified in the supplied research. Users should therefore avoid treating the context length as a published maximum completion length. The 16,384-token figure describes the reported context capacity, not a separately verified output allowance.

Pricing and deployment costs

There is no official hosted token price supplied for StepFun-Formalizer-7B. The model is an open-weight checkpoint, so access is based on downloading and running the model rather than purchasing a documented recurring API plan. The model card includes deployment examples for Transformers and vLLM, and the repository is also associated with SGLang tooling.

That does not mean inference is free. Operators must provide suitable hardware, storage, electricity, and an inference stack. The actual cost and speed depend on the deployment configuration, including hardware and generation settings. Compared with a managed API, local deployment can offer greater control and predictable ownership of prompts and outputs, but it requires setup and operational responsibility.

The smaller model size is its main cost advantage relative to substantially larger formalization models. However, a smaller checkpoint may require more candidate generations, prompt iteration, or external checking to achieve a desired success rate. In a verification workflow, the cost of generating several candidates should be considered alongside the cost of running Lean checks.

Reasoning, coding, and tool support

StepFun-Formalizer-7B is best understood as a reasoning-oriented code-generation model for a narrow technical domain. Its reasoning capability is expressed through interpreting mathematical relationships and producing formal statements, while its coding output is specifically centered on Lean 4 rather than broad software development.

The model itself generates text and Lean code, but the supplied research does not verify native function calling, tool use, web search, or a provider-managed agent interface. Lean and Mathlib can be used as external verification tools in a surrounding pipeline, but that is different from the model having a built-in tool-use API. Similarly, no official JSON mode, hosted batch API, or managed caching service is identified.

For reliable use, an application can place the model beside a Lean compiler or checker: generate one or more statements, submit them for validation, inspect errors, and retain only outputs that compile and match the intended theorem. That surrounding process is an engineering pattern rather than a claimed built-in capability of the checkpoint.

Limitations and when to choose this model

StepFun-Formalizer-7B is a good choice when the main task is converting mathematical prose into Lean 4, especially when an organization wants an open-weight model that can run locally. It is particularly suitable for formal mathematics research, theorem-statement generation, educational experiments, and proof-assistance pipelines in which every output will be checked externally.

It may be a better fit than a general-purpose hosted language model when Lean-specific vocabulary and formalization are more important than broad conversational ability. Its open licensing and self-managed deployment can also be attractive when data must remain on local infrastructure or when a project does not want to depend on per-token API pricing.

Another option may be more appropriate for general web research, current-information retrieval, multimodal work, or applications that require a documented hosted API with tool calling, structured outputs, batch processing, or published latency and pricing guarantees. A larger sibling such as the StepFun-Formalizer 32B may be worth evaluating when the project can support greater resource use and prioritizes model scale, although the supplied research does not provide a direct head-to-head result that proves it is better for every task.

The model should also be avoided as the sole authority for mathematical correctness. Its benchmark results are meaningful evidence of specialized capability, but they do not guarantee that an individual generated statement is correct. Lean compilation and semantic review remain necessary, particularly when a formalization will be used in research, education, or production software.

Bottom line

StepFun-Formalizer-7B is a focused, open-weight model for turning natural-language mathematics into Lean 4 formal statements. Its strongest practical combination is specialization, local deployability, Apache 2.0 licensing, and a 16,384-token context. Its trade-offs are equally clear: there is no published hosted price or managed API, no verified native multimodal or tool-use interface, no specified maximum output length, and no substitute for Lean-based verification. For users building a formalization pipeline rather than a general chatbot, those characteristics make it a targeted model to evaluate.


Answers to Frequently Asked Questions

What are the benchmark results for StepFun-Formalizer-7B?
The reported BEq@1 scores are 38.3% on FormalMATH-Lite, 25.1% on ProverBench, and 5.2% on CombiBench. With up to 16 generated candidates, the BEq@16 scores increase to 61.2%, 37.9%, and 11.0%, respectively.
How can StepFun-Formalizer-7B be deployed, and what does it cost?
StepFun-Formalizer-7B is an open-weight model distributed under the Apache 2.0 license and can be run locally or through self-managed tooling such as Transformers, vLLM, or associated SGLang tooling. No official hosted token price is provided, but deployment still requires suitable hardware, storage, electricity, and inference infrastructure.
What is StepFun-Formalizer-7B used for?
StepFun-Formalizer-7B converts mathematical problems written in natural language into candidate formal statements in Lean 4. It is intended as a formalization assistant, and its outputs should be compiled and checked in a compatible Lean and Mathlib environment.
Is StepFun-Formalizer-7B a complete automated theorem prover?
No. The model generates Lean 4 statements and related text, but it is not presented as a complete autonomous theorem-proving system. Lean verification and semantic review are still required to confirm that an output is correct and expresses the intended theorem.


Sources 3
AI Provider

About StepFun