From 4495021b70028e8a971a052bdb5a498d96b17783 Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 18 Nov 2026 12:41:21 +0800 Subject: [PATCH] feat(prove): lower modular assumption declarations into explicit proof IR --- src/prove/lower.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/prove/lower.rs b/src/prove/lower.rs index 05a1ccc..2fa5296 100755 --- a/src/prove/lower.rs +++ b/src/prove/lower.rs @@ -13,7 +13,7 @@ use anyhow::Result; use crate::ast::{self, Arg, BinaryOp, CallExpr, Expr, Function, Module, Stmt}; use crate::diagnostics::{Diagnostic, Severity, Span}; use crate::prove::ir::{ - BinOp, ClaimPlan, Expr as IrExpr, FnPlan, InterpPart, OpDecl, ParamPlan, Plan, PlanTy, + AssumptionPlan, BinOp, ClaimPlan, Expr as IrExpr, FnPlan, InterpPart, OpDecl, ParamPlan, Plan, PlanTy, PureExpr, Step, UnOp, SCHEMA, }; use crate::sema::bind::{call_display, resolve_for_exec}; @@ -148,7 +148,10 @@ impl<'m> Lowerer<'m> { line: c.line, }) .collect(), - assumptions: Vec::new(), + assumptions: fun.assumptions.iter().map(|a|AssumptionPlan{ + op:a.op.clone(), premise:a.premise.clone(), + postcondition:a.postcondition.clone() + }).collect(), }; Lowered { display: display.to_string(),