Skip to content

Commit 2e7ada7

Browse files
Merge PR #21653: [refman] Renaming Stdlib -> Corelib
Reviewed-by: SkySkimmer Co-authored-by: SkySkimmer <SkySkimmer@users.noreply.github.com>
2 parents 572b3eb + d6b2a8e commit 2e7ada7

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

doc/sphinx/addendum/universe-polymorphism.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ Printing universes
612612
names (adjusting constraints to preserve the implied transitive
613613
constraints between kept universes). :n:`@debug_univ_name` is
614614
:n:`@qualid` for named universes (e.g. `eq.u0`), and :n:`@string`
615-
for raw universe expressions (e.g. `"Stdlib.Init.Logic.1"`).
615+
for raw universe expressions (e.g. `"Corelib.Init.Logic.1"`).
616616

617617
By default when printing a subgraph `Print Universes` attempts to
618618
find and print the source of the constraints. This can be

doc/sphinx/language/core/assumptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ variable can be introduced at the same time. It is also possible to give
3838
the type of the variable as follows:
3939
:n:`(@ident : @type := @term)`.
4040

41-
`(x : T | P)` is syntactic sugar for `(x : @Stdlib.Init.Specif.sig _ (fun x : T => P))`,
41+
`(x : T | P)` is syntactic sugar for `(x : @Corelib.Init.Specif.sig _ (fun x : T => P))`,
4242
which would more typically be written `(x : {x : T | P})`.
4343
Since `(x : T | P)` uses `sig` directly,
4444
changing the notation `{x : T | P}`

doc/sphinx/language/core/modules.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,11 @@ are now available through the dot notation.
360360
.. cmd:: Print Namespace @dirpath
361361

362362
Prints the names and types of all loaded constants whose fully qualified
363-
names start with :n:`@dirpath`. For example, the command ``Print Namespace Stdlib.``
364-
displays the names and types of all loaded constants in the standard library.
365-
The command ``Print Namespace Stdlib.Init`` only shows constants defined in one
363+
names start with :n:`@dirpath`. For example, the command ``Print Namespace Corelib.``
364+
displays the names and types of all loaded constants in the core library.
365+
The command ``Print Namespace Corelib.Init`` only shows constants defined in one
366366
of the files in the ``Init`` directory. The command ``Print Namespace
367-
Stdlib.Init.Nat`` shows what is in the ``Nat`` library file inside the ``Init``
367+
Corelib.Init.Nat`` shows what is in the ``Nat`` library file inside the ``Init``
368368
directory. Module names may appear in :n:`@dirpath`.
369369

370370
.. example::
@@ -562,7 +562,7 @@ While qualified names always consist of a series of dot-separated :n:`@ident`\s,
562562

563563
**File part.** Files are identified by :gdef:`logical paths <logical path>`,
564564
which are prefixes in the form :n:`{* @ident__logical } {+ @ident__file }`, such
565-
as :n:`Stdlib.Init.Logic`, in which:
565+
as :n:`Corelib.Init.Logic`, in which:
566566

567567
- :n:`{* @ident__logical }`, the :gdef:`logical name`, maps to one or more
568568
directories (or :gdef:`physical paths <physical path>`) in the user's file system.
@@ -587,14 +587,14 @@ with the logical name :n:`Top` and there is no associated file system path.
587587

588588
- :n:`@ident__base` is the base name used in the command defining
589589
the item. For example, :n:`eq` in the :cmd:`Inductive` command defining it
590-
in `Stdlib.Init.Logic` is the base name for `Stdlib.Init.Logic.eq`, the standard library
590+
in `Corelib.Init.Logic` is the base name for `Corelib.Init.Logic.eq`, the core library
591591
definition of :term:`Leibniz equality`.
592592

593593
If :n:`@qualid` is the fully qualified name of an item, Rocq
594594
always interprets :n:`@qualid` as a reference to that item. If :n:`@qualid` is also a
595595
partially qualified name for another item, then you must provide a more-qualified
596596
name to uniquely identify that other item. For example, if there are two
597-
fully qualified items named `Foo.Bar` and `Stdlib.X.Foo.Bar`, then `Foo.Bar` refers
597+
fully qualified items named `Foo.Bar` and `Corelib.X.Foo.Bar`, then `Foo.Bar` refers
598598
to the first item and `X.Foo.Bar` is the shortest name for referring to the second item.
599599

600600
Definitions with the :attr:`local` attribute are only accessible with

doc/sphinx/proof-engine/vernacular-commands.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ Requests to the environment
519519
Locate nat.
520520
Locate Datatypes.O.
521521
Locate Init.Datatypes.O.
522-
Locate Stdlib.Init.Datatypes.O.
522+
Locate Corelib.Init.Datatypes.O.
523523
Locate I.Dont.Exist.
524524

525525
.. _printing-flags:
@@ -605,7 +605,7 @@ file is a particular case of a module called a *library file*.
605605
(if :n:`From @dirpath` is given) or :n:`{* @ident__implicit. }@qualid` (if
606606
the optional `From` clause is absent). :n:`{* @ident__implicit. }` represents
607607
the parts of the fully qualified name that are implicit. For example,
608-
`From Stdlib Require Nat` loads `Stdlib.Init.Nat` and `Init` is implicit.
608+
`From Corelib Require Nat` loads `Corelib.Init.Nat` and `Init` is implicit.
609609
:n:`@ident` is the final component of the :n:`@qualid`.
610610

611611
If a file is found, its logical name must be the same as the one

0 commit comments

Comments
 (0)