Skip to content

Commit 552fa10

Browse files
kim-emclaude
andauthored
feat: @[suggest_for ℤ] and @[suggest_for ℚ] annotations (#11596)
This PR adds `@[suggest_for ℤ]` on `Int` and `@[suggest_for ℚ]` on `Rat`, following the pattern established by `@[suggest_for ℕ]` on `Nat` in #11554. 🤖 Prepared with Claude Code Co-authored-by: Claude Opus 4.5 <[email protected]>
1 parent 7d2dbe8 commit 552fa10

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Init/Data/Int/Basic.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ larger numbers use a fast arbitrary-precision arithmetic library (usually
4242
than the platform's pointer size (i.e. 63 bits on 64-bit architectures and 31 bits on 32-bit
4343
architectures).
4444
-/
45+
@[suggest_for ℤ]
4546
inductive Int : Type where
4647
/--
4748
A natural number is an integer.

src/Init/Data/Rat/Basic.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Rational numbers, implemented as a pair of integers `num / den` such that the
2020
denominator is positive and the numerator and denominator are coprime.
2121
-/
2222
-- `Rat` is not tagged with the `ext` attribute, since this is more often than not undesirable
23+
@[suggest_for ℚ]
2324
structure Rat where
2425
/-- Constructs a rational number from components.
2526
We rename the constructor to `mk'` to avoid a clash with the smart constructor. -/

0 commit comments

Comments
 (0)