liquidhaskell
1,341
Stars
168
Forks
21
Watchers
461
Open Issues
BSD-3-Clause
许可证
Haskell
语言
2012-09-22
创建时间
2026-11-01
最近更新
项目能做什么
LiquidHaskell 是面向 Haskell 的形式化验证工具。它通过引入细化类型(Refinement Types)并结合 Z3 等 SMT 求解器,帮助开发者对代码逻辑进行严格的形式化验证。它可以作为 GHC 插件直接运行,从而在编译期检查程序性质并发现潜在错误。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
 [](https://hackage.haskell.org/package/liquidhaskell) []([https://circleci.com/gh/ucsd-progsys/liquidhaskell](https://app.circleci.com/pipelines/github/ucsd-progsys/liquidhaskell?branch=develop)) This is the **development** site of the LiquidHaskell formal verification tool. If you're a LiquidHaskell **user** (or just curious), you probably want to go to [the documentation website](https://ucsd-progsys.github.io/liquidhaskell/) instead. ## Trying it from Hackage Assuming the [Z3](https://github.com/Z3Prover/z3) SMT solver version `4.15.1` or newer is installed and available in your `PATH`, you can run ``` cabal install --lib liquidhaskell liquid-prelude liquid-vector --package-env . --force-reinstalls ghc -fplugin=LiquidHaskell FILE.hs ``` `--package-env .` creates a `.ghc.environment*` file in the current folder that makes `ghc` find the `LiquidHaskell` plugin only when invoking it from there. Otherwise, global user configuration would be affected. Note that the installation step is influenced by the dependencies that are already installed in your system, so different results may be obtained by different users. ## Trying it from GitHub The github repo builds with GHC `9.14.1`, cabal-install `3.16.1.0`, and `z3` `4.15.1` or newer, all of which must be in your `PATH`. ``` git clone https://github.com/ucsd-progsys/liquidhaskell.git cd liquidhaskell git submodule update --init cabal build liquidhaskell liquid-prelude liquid-vector cabal exec -- ghc -fplugin=LiquidHaskell FILE.hs ``` ## Asking for Help If you have questions or you just need help, you can always reach out on our [zulip space](https://liquidhaskell.zulipchat.com/), [google groups mailing list](https://groups.google.com/forum/#!forum/liquidhaskell), [GitHub issue tracker](https://github.com/ucsd-progsys/liquidhaskell/issues), or by emailing [Ranjit Jhala](https://github.com/ranjitjhala), [Niki Vazou](https://github.com/nikivazou). # Contributing This is an open-source project, and we love getting feedback (and patches)! ## Reporting a Bug If something doesn't work as it should, please consider opening a [github issue](https://github.com/ucsd-progsys/liquidhaskell/issues) to let us know. If possible, try to: * Try to use a descriptive title; * State as clearly as possible what is the problem you are facing; * Provide a small Haskell file producing the issue; * Write down the expected behaviour vs the actual behaviour; * Please, let us know which liquidhaskell version you are using. ## Your first Pull Request We are thrilled to get PRs! Please follow these guidelines, as doing so will increase the chances of having your PR accepted: * The main LH repo [lives here](https://github.com/ucsd-progsys/liquidhaskell) * Please create pull requests against the `develop` branch. * Ple阅读完整原文
项目深度分析 AI 生成
区块链与高频交易关键协议形式化验证咨询与审计服务
| 产品构想 | 针对使用 Haskell 编写的核心业务(如 Cardano/IOG 生态合约或金融交易撮合引擎),基于 LiquidHaskell 提供从规格定义到自动化验证证明的全流程审计服务。 |
| 核心功能 | 定制细化类型规范编写、SMT 自动化求解调优、数学完备性验证报告输出、漏洞定位与修复建议。 |
| 目标用户 | 基于 Haskell 开发的 Web3/区块链底层团队、金融高频交易与清结算系统开发商。 |
| 难度/周期 | 高 · 2 - 4 个月 · 成本:低(主要为高阶智力时间成本) |
| 收费模式 | 按项目收取高额安全审计费或咨询服务费(推测每项目 2万-10万美元)。 |
| 竞争风险 | 目标客户群体极其狭窄,且形式化验证交付周期长、极其依赖顶级专家的专业背景。 |
| 依据 | 已验证事实 |
企业级 LiquidHaskell CI/CD 持续验证 SaaS / Runner
| 产品构想 | 提供开箱即用且高度优化的云端验证环境,集成缓存、并行 Z3 SMT 求解加速,解决本地配置依赖繁琐(GHC 插件、Z3 依赖匹配)与验证耗时极长的问题。 |
| 核心功能 | 预置多版本 GHC+Z3 的容器化验证流水线、SMT 证明缓存加速、PR 自动化细化类型合规检测报告看板。 |
| 目标用户 | 在日常开发中尝试引入形式化验证的中小型 Haskell 企业团队与开源项目维护者。 |
| 难度/周期 | 中等 · 1 - 3 个月 · 成本:中等(需要持续提供具备一定算力的 CI Runner) |
| 收费模式 | 按月席位订阅(如 $49-$299/月)或按计算时长计费(推测)。 |
| 竞争风险 | Haskell 商业化团队基数本来就小,其中愿意常态化引入形式化验证流程的团队更是少之又少,TAM(潜在市场规模)极低。 |
| 依据 | 尚需验证的假设 |
硬核高可靠软件工程培训与类型驱动开发实战课程
| 产品构想 | 围绕类型驱动开发(Type-Driven Development)与形式化验证,推出针对高端函数式程序员的系统性进阶培训与企业内训课。 |
| 核心功能 | 细化类型理论推导与实践实战、SMT 底层原理、常见数据结构安全规范实训、企业真实项目规约案例分析。 |
| 目标用户 | 寻求技能进阶的资深 Haskell 开发者、追求零缺陷系统架构的企业工程团队主管。 |
| 难度/周期 | 中等 · 1 - 2 个月 · 成本:极低(主要是课件研发与录制) |
| 收费模式 | 课程付费购买(个人)或企业定制内训采购(推测)。 |
| 竞争风险 | 用户学习曲线陡峭,技术门槛极高,受众基数无法支撑规模化自发销售,需深度依赖个人 IP 获客。 |
| 依据 | AI推测 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建于 2012-09-22,近 30 天仍在推送,发布过 17 个 Release |
| 社区活跃 | Star 1,341 / Fork 168 / Issue 461(数据支持,可自行核实) |
| 许可证 | BSD-3-Clause |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。