lean4-htt/src/Init/Data/Int
Siddharth 9b9dd8546a
feat: simplify T-division into E-division when numerator is positive (#8205)
This PR adds a simp lemma that simplifies T-division where the numerator
is a `Nat` into an E-division:


```lean
@[simp] theorem ofNat_tdiv_eq_ediv {a : Nat} {b : Int} : (a : Int).tdiv b = a / b :=
   tdiv_eq_ediv_of_nonneg (by simp)
```

---------

Co-authored-by: Tobias Grosser <tobias@grosser.es>
2025-06-05 06:20:49 +00:00
..
Bitwise refactor: Init: expose lots of functions (#8501) 2025-05-28 07:37:54 +00:00
DivMod feat: simplify T-division into E-division when numerator is positive (#8205) 2025-06-05 06:20:49 +00:00
Basic.lean feat: do not export private declarations (#8337) 2025-06-02 08:01:08 +00:00
Bitwise.lean feat: enable experimental module system in Init (#8047) 2025-04-23 17:21:33 +00:00
Compare.lean feat: do not export def bodies by default (#8221) 2025-05-15 12:16:54 +00:00
Cooper.lean feat: add instance Grind.CommRing (Fin n) (#8276) 2025-05-13 12:09:02 +00:00
DivMod.lean feat: enable experimental module system in Init (#8047) 2025-04-23 17:21:33 +00:00
Gcd.lean refactor: Init: expose lots of functions (#8501) 2025-05-28 07:37:54 +00:00
Lemmas.lean feat: do not export def bodies by default (#8221) 2025-05-15 12:16:54 +00:00
LemmasAux.lean chore: remove duplicate instances (#8397) 2025-05-19 04:36:06 +00:00
Linear.lean feat: do not export def bodies by default (#8221) 2025-05-15 12:16:54 +00:00
OfNat.lean chore: deprecate some Int.ofNat_* lemmas (#8000) 2025-04-25 16:16:58 +00:00
Order.lean refactor: Init: expose lots of functions (#8501) 2025-05-28 07:37:54 +00:00
Pow.lean feat: add instance Grind.CommRing (Fin n) (#8276) 2025-05-13 12:09:02 +00:00