mathport icon indicating copy to clipboard operation
mathport copied to clipboard

`tt` is sometimes not translated

Open gebner opened this issue 3 years ago • 1 comments
trafficstars

Mathlib (data/nat/basic):

@[simp] lemma bodd_bit1 (n) : bodd (bit1 n) = tt := bodd_bit tt n

Synport:

@[simp]
theorem bodd_bit1 (n) : bodd (bit1 n) = tt :=
  bodd_bit true n

This instance shows both tt being translated to true, as well as tt not being translated.

gebner avatar Aug 24 '22 08:08 gebner

This happens because only the second tt has a resolved constant in the AST. Not sure why there is a difference between theorem statement and proof here.

gebner avatar Aug 25 '22 08:08 gebner