lean4-htt/src/Init/Data/Int/DivMod
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
..
Basic.lean feat: do not export def bodies by default (#8221) 2025-05-15 12:16:54 +00:00
Bootstrap.lean chore: cleanup simp lemmas, following the simpNF linter (#8481) 2025-05-26 04:13:17 +00:00
Lemmas.lean feat: simplify T-division into E-division when numerator is positive (#8205) 2025-06-05 06:20:49 +00:00