Spaces:
Sleeping
Sleeping
Download lean_backend/interface.py from Hrushi/lean-migrate: direct link, hf CLI and curl.
- Browser
- Download file 680 Bytes
-
https://huggingface.co/spaces/Hrushi/lean-migrate/resolve/main/lean_backend/interface.py
- Command line
-
hf download hf://spaces/Hrushi/lean-migrate/lean_backend/interface.py
-
curl -L -o interface.py https://huggingface.co/spaces/Hrushi/lean-migrate/resolve/main/lean_backend/interface.py
680 Bytes
| from __future__ import annotations | |
| from abc import ABC, abstractmethod | |
| from dataclasses import dataclass | |
| class LeanResult: | |
| passed: bool | |
| error: str | |
| latency_ms: int | |
| raw_stderr: str | |
| class LeanBackend(ABC): | |
| def verify( | |
| self, | |
| spec_module: str, | |
| function_name: str, | |
| code: str, | |
| symbol_name: str | None = None, | |
| extra_imports: list[str] | None = None, | |
| sample_checks: list[str] | None = None, | |
| ) -> LeanResult: | |
| raise NotImplementedError | |
| def verify_proof(self, spec_module: str, proof_code: str) -> LeanResult: | |
| raise NotImplementedError |