Lean 4 内核未检查不透明声明(opaque declaration)的主体是否已闭合(closed)。 跳过了 和 路径中所执行的 检查,因此,若一个值包含自由变量(free variable)但该变量不在局部上下文(local context)中,内核不会直接拒绝它。 元程序(metaprogram)可以首先导致内核创建一个类型为 的临时局部变量,并将其类型记录在类型检查器的推理缓存(inference cache)中;随后,在该缓存条目仍驻留在同一类型检查器实例上期间,恢复局部上下文;最后提交一个不透明声
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| leanprover | lean4 | < 4.32.2 |
affected |
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| leanprover | lean4 | 0 ~ 4.32.2 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet