Repository navigation
Conversation
PR summary 750a719b08Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
This pull request has conflicts, please merge |
|
This pull request has conflicts, please merge |
| inv_val := rfl | ||
|
|
||
| -- `@[simps]` for `Units` is broken, see https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/.60.40.5Bsimps.5D.60.20for.20.60Units.60.20is.20broken/near/618107577 | ||
| @[simp] theorem val_inv_half : ↑(half⁻¹) = (2 : Dyadic) := rfl |
There was a problem hiding this comment.
What's the statement?
There was a problem hiding this comment.
@[simp] theorem val_half : ↑half = 1 >>> 1 := rfl| -- `@[simps]` for `Units` is broken, see https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/.60.40.5Bsimps.5D.60.20for.20.60Units.60.20is.20broken/near/618107577 | ||
| @[simp] theorem val_inv_half : ↑(half⁻¹) = (2 : Dyadic) := rfl | ||
|
|
||
| instance : Invertible (2 : Dyadic) where |
There was a problem hiding this comment.
Is there not some theorem Invertible x.inv for x : Rˣ?
| invOf_mul_self := rfl | ||
| mul_invOf_self := rfl | ||
|
|
||
| theorem invOf_two_eq_half : (⅟2 : Dyadic) = half := rfl |
There was a problem hiding this comment.
| theorem invOf_two_eq_half : (⅟2 : Dyadic) = half := rfl | |
| @[simp] theorem invOf_two_eq_half : (⅟2 : Dyadic) = half := rfl |
There was a problem hiding this comment.
I'm thinking maybe we might want to make ⅟2 the simp normal form? Since there are 40 some theorems about ⅟2 already but none about half.
|
|
||
| theorem val_half_zpow_eq_ofOdd (n : ℤ) : ↑(half ^ n) = ofOdd 1 n rfl := by | ||
| rw [← neg_neg n] | ||
| induction -n using Int.negInduction with |
There was a problem hiding this comment.
Surely there's an easier proof by passing to the rationals?
| simp | ||
|
|
||
| instance : IsLocalization (Submonoid.powers (2 : ℤ)) Dyadic where | ||
| map_units := by |
There was a problem hiding this comment.
I think IsUnit (1 <<< n) would be a nice lemma to have.
|
This PR/issue depends on:
|
Prove that
Dyadicis a localization of the integers generated by inverting2.Dyadicis an ordered ring #43038