Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Splitting a variable of product/tuple/pair type into its members in apply style

Tags:

isabelle

let's assume we are working with a pair of type ('a × 'a) and define a fun with pattern matching for it.

fun test :: "('a × 'a) ⇒ 'a ⇒ bool" where "test (a,b) c = True"

If I now have a variable a_b of type ('a × 'a), how can I replace it into its pair representation (a,b) in an apply style proof. For example, what is the best way to show the following lemma? How can I replace test a_b c with test (a,b) c?

lemma "test a_b c = True"

Does this also apply to pairs in the assumptions?

lemma "¬ test a_b c ⟹ flying_pigs"
like image 467
corny Avatar asked Feb 02 '26 11:02

corny


1 Answers

How about using cases/case_tac on a_b?

like image 152
chris Avatar answered Feb 05 '26 02:02

chris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!