# Re: [isabelle] Strange eta-expansion on induction

On Fri, 2 Mar 2012, Peter Lammich wrote:


As Tobias points out, the Pure Isabelle system conceptually works modulo
eta (and beta and alpha) conversion -- although there are well known
traps.  So to continue the thread, I would also like to see the other part
-- the proof tool by Peter that fails here.


It's no custom "proof tool" involved here. My setting is roughly like
this:

I have assertions of type "heap => addr set => bool", and hoare-tripels
of type "assertion => program => assertion => bool" (syntax: {P} S {Q})

I defined the assertion
definition [simp]: "false h as == False"

Moreover, I have a rule
lemma [simp]: "{false} S {Q}"

The proof that fails has the form:
lemma "{is_list xs p} S Q" proof (induct xs arbitrary: p)
case Nil show ?case by (cases p, simp_all)
...


Here, depending on the case for p, "is_list [] p" simplifies to false, which is then simplified to \lambda _ _. False, before the rule for {false} S {Q} is applied.


This is the normal order of things. Combinations of simplification with rule applications of the resolution family (intro/elim/dest) can lead to eta-expansion and thus more reductions than first anticipated.


The above simpset is a bit fragile in that sense, as you have observed already. If you do not want to add more rules, but want to retain control of lambda equivalences, you can try to wrap up some App or Abs nodes in auxiliary operators; similar to Collect/member for 'a set in HOL.


Makarius



This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.885704755783081, "perplexity": 5785.687222544159}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 5, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-16/segments/1585370528224.61/warc/CC-MAIN-20200405022138-20200405052138-00284.warc.gz"}