From cefcc9e0d1809f5d04d277803af60d20a1f99132 Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 18 Nov 2026 12:39:39 +0800 Subject: [PATCH] fix(proof): use core Lean elimination for modular composition counterexample --- doc/verification/skill-proof/MarqdoModularProof.lean | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/verification/skill-proof/MarqdoModularProof.lean b/doc/verification/skill-proof/MarqdoModularProof.lean index 249d3a3..042c68c 100644 --- a/doc/verification/skill-proof/MarqdoModularProof.lean +++ b/doc/verification/skill-proof/MarqdoModularProof.lean @@ -63,9 +63,10 @@ example : simpa [second, g] using hy have hcomp := h f g first second hf hg have target := hcomp 0 True.intro - rcases target with ⟨y, _, hy⟩ - have impossible : (0 : Nat) = 1 := by - simpa [second, g, f] using hy - exact Nat.zero_ne_one impossible + cases target with + | intro y hpair => + have impossible : (0 : Nat) = 1 := by + simpa [second, g, f] using hpair.right + exact Nat.zero_ne_one impossible end MarqdoModularProof