Repository navigation
Conversation
|
Thanks for the careful work here, and for being upfront about the scope. We're going to close this one, though. The new branch in model_at recognizes one shape: an equation hypothesis between the same constructor, with the goal's two sides in the same field position, and that field's type not depending on other fields. It doesn't cover the symmetric goal ({b == a} from S{a} == S{b}), nested constructors, dependent fields, or the other #1182 repros (k, pick). Each of those would need another special case like this one, and we'd rather not grow model search one shape at a time. It also costs about 635 ttok in safe.ts, which is at 23,993/24,000 on main, so merged onto main it no longer fits under the cap. For a single pattern that's too much budget. |
|
Fair point — this only handles one projection shape, and the cap makes the tradeoff worse. I won’t add more cases to this branch. Thanks for reviewing it. |
Refs #1182.
This handles the constructor-equality case without needing an
injhelper. Model search can use an available equation directly, or build a total field projection and use ordinary rewrite/reflexivity. Fields must have non-dependent types; the kernel is unchanged.This is not a general model-search fix:
kandpickfrom the thread are not addressed. Erased evidence, unrelated fields and impossible result models stay out of scope. No root-constant backtracking.Requalified on main
4982c105, after #1930 actually merged. Seven consumer inputs and ten existing model/proof inputs keep the expected kernel verdicts;bun gates/repo.tspasses 54/54 with the existing caps. These were real local--verdictruns on Linux with Lean 4.34.0, not the cluster gate.This no-helper input now prints
ALL PROOFS CHECKwithbend case.bend --verdict: