The following examples show the action of GEN_BETA_CONV on tupled redexes. In
the following, it acts in the same way as PAIRED_BETA_CONV:
- pairLib.GEN_BETA_CONV (Term `(\(x,y). x + y) (1,2)`);
val it = |- (\(x,y). x + y)(1,2) = 1 + 2 : thm
whereas in the following, the operand of the beta-redex is not a
pair, so FST and SND are introduced:
- pairLib.GEN_BETA_CONV (Term `(\(x,y). x + y) numpair`);
> val it = |- (\(x,y). x + y) numpair = FST numpair + SND numpair : thm
The introduction of FST and SND will be done more than once as
necessary:
- pairLib.GEN_BETA_CONV (Term `(\(w,x,y,z). w + x + y + z) (1,triple)`);
> val it =
|- (\(w,x,y,z). w + x + y + z) (1,triple) =
1 + FST triple + FST (SND triple) + SND (SND triple) : thm