-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add #align statements for Core and Std (#1966)
- Loading branch information
Showing
19 changed files
with
419 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/- | ||
Copyright (c) 2023 Johan Commelin. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Johan Commelin | ||
-/ | ||
|
||
import Std.Classes.Order | ||
import Mathlib.Mathport.Rename | ||
|
||
/-! | ||
# Align statements for declarations from Std | ||
-/ | ||
|
||
#align ordering.swap_inj Ordering.swap_inj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/- | ||
Copyright (c) 2023 Johan Commelin. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Johan Commelin | ||
-/ | ||
|
||
import Std.Data.Int.DivMod | ||
import Mathlib.Mathport.Rename | ||
|
||
/-! | ||
# Align statements for declarations from Std | ||
-/ | ||
|
||
#align int.zero_div Int.zero_div | ||
#align int.div_zero Int.div_zero | ||
#align int.mul_sign Int.mul_sign |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/- | ||
Copyright (c) 2023 Johan Commelin. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Johan Commelin | ||
-/ | ||
|
||
import Std.Data.Int.Lemmas | ||
import Mathlib.Mathport.Rename | ||
|
||
/-! | ||
# Align statements for declarations from Std | ||
-/ | ||
|
||
#align int.default_eq_zero Int.default_eq_zero | ||
#align int.add_def Int.add_def | ||
#align int.mul_def Int.mul_def | ||
#align int.add_neg_one Int.add_neg_one | ||
#align int.sign_neg Int.sign_neg | ||
#align int.sign_mul Int.sign_mul | ||
#align int.add_one_le_iff Int.add_one_le_iff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,4 @@ protected theorem bit1_ne_zero (n : ℕ) : bit1 n ≠ 0 := | |
#align nat.bit1_ne_zero Nat.bit1_ne_zero | ||
|
||
end Nat | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/- | ||
Copyright (c) 2023 Johan Commelin. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Johan Commelin | ||
-/ | ||
|
||
import Init.Data.Nat.Div | ||
import Mathlib.Mathport.Rename | ||
|
||
/-! | ||
# Align statements for declarations from Core | ||
-/ | ||
|
||
#align nat.div_add_mod Nat.div_add_mod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/- | ||
Copyright (c) 2023 Johan Commelin. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Johan Commelin | ||
-/ | ||
|
||
import Std.Data.Option.Basic | ||
import Mathlib.Mathport.Rename | ||
|
||
/-! | ||
# Align statements for declarations from Std | ||
-/ | ||
|
||
#align option.mem_def Option.mem_def | ||
#align option.is_none_iff_eq_none Option.isNone_iff_eq_none | ||
#align option.some_inj Option.some_inj | ||
#align option.decidable_eq_none Option.decidable_eq_none | ||
#align option.guard Option.guard | ||
#align option.to_list Option.toList | ||
#align option.rel Option.Rel | ||
#align option.pbind Option.pbind | ||
#align option.pmap Option.pmap | ||
#align option.join Option.join | ||
|
||
#align option.filter Option.filter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/- | ||
Copyright (c) 2023 Johan Commelin. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Johan Commelin | ||
-/ | ||
|
||
import Std.Data.Option.Init.Lemmas | ||
import Mathlib.Mathport.Rename | ||
|
||
/-! | ||
# Align statements for declarations from Std | ||
-/ | ||
|
||
#align option.map_none' Option.map_none' | ||
#align option.map_some' Option.map_some' | ||
#align option.none_bind Option.none_bind | ||
#align option.some_bind Option.some_bind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/- | ||
Copyright (c) 2023 Johan Commelin. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Johan Commelin | ||
-/ | ||
|
||
import Std.Data.Option.Lemmas | ||
import Mathlib.Mathport.Rename | ||
|
||
/-! | ||
# Align statements for declarations from Std | ||
-/ | ||
|
||
#align option.mem_iff Option.mem_iff | ||
#align option.some_ne_none Option.some_ne_none | ||
#align option.forall Option.forall | ||
#align option.exists Option.exists | ||
#align option.get_mem Option.get_mem | ||
#align option.get_of_mem Option.get_of_mem | ||
#align option.not_mem_none Option.not_mem_none | ||
#align option.some_get Option.some_get | ||
#align option.get_some Option.get_some | ||
#align option.mem_unique Option.mem_unique | ||
#align option.ext Option.ext | ||
#align option.eq_none_iff_forall_not_mem Option.eq_none_iff_forall_not_mem | ||
#align option.eq_some_iff_get_eq Option.eq_some_iff_get_eq | ||
#align option.ne_none_iff_exists Option.ne_none_iff_exists | ||
#align option.ne_none_iff_exists' Option.ne_none_iff_exists' | ||
#align option.bex_ne_none Option.bex_ne_none | ||
#align option.ball_ne_none Option.ball_ne_none | ||
#align option.bind_some Option.bind_some | ||
#align option.bind_eq_some Option.bind_eq_some | ||
#align option.bind_eq_none Option.bind_eq_none | ||
#align option.bind_comm Option.bind_comm | ||
#align option.bind_assoc Option.bind_assoc | ||
#align option.join_eq_some Option.join_eq_some | ||
#align option.join_ne_none Option.join_ne_none | ||
#align option.join_ne_none' Option.join_ne_none' | ||
#align option.join_eq_none Option.join_eq_none | ||
#align option.bind_id_eq_join Option.bind_id_eq_join | ||
#align option.map_eq_map Option.map_eq_map | ||
#align option.map_none Option.map_none | ||
#align option.map_some Option.map_some | ||
#align option.map_eq_some' Option.map_eq_some' | ||
#align option.map_eq_some Option.map_eq_some | ||
#align option.map_eq_none' Option.map_eq_none' | ||
#align option.map_eq_none Option.map_eq_none | ||
#align option.map_congr Option.map_congr | ||
#align option.map_map Option.map_map | ||
#align option.comp_map Option.comp_map | ||
#align option.map_comp_map Option.map_comp_map | ||
#align option.mem_map_of_mem Option.mem_map_of_mem | ||
#align option.bind_map_comm Option.bind_map_comm | ||
#align option.join_map_eq_map_join Option.join_map_eq_map_join | ||
#align option.join_join Option.join_join | ||
#align option.mem_of_mem_join Option.mem_of_mem_join | ||
#align option.guard_eq_some Option.guard_eq_some | ||
#align option.choice Option.choice | ||
#align option.choice_eq Option.choice_eq | ||
#align option.to_list_some Option.to_list_some | ||
#align option.to_list_none Option.to_list_none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/- | ||
Copyright (c) 2023 Johan Commelin. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Johan Commelin | ||
-/ | ||
|
||
import Std.Data.Rat.Basic | ||
import Mathlib.Mathport.Rename | ||
|
||
/-! | ||
# Align statements for declarations from Std | ||
-/ | ||
|
||
#align rat.ext Rat.ext | ||
#align rat Rat | ||
#align rat.ext_iff Rat.ext_iff | ||
#align rat.floor Rat.floor |
Oops, something went wrong.