blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0931e6ca67041fd9d1aae44d02b6542cbdd02a73 | f10d66a159ce037d07005bd6021cee6bbd6d5ff0 | /associated_quotient.lean | cf5ee58a8652b57bf19246af0f7d46183d2bf135 | [] | no_license | johoelzl/mason-stother | 0c78bca183eb729d7f0f93e87ce073bc8cd8808d | 573ecfaada288176462c03c87b80ad05bdab4644 | refs/heads/master | 1,631,751,973,492 | 1,528,923,934,000 | 1,528,923,934,000 | 109,133,224 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 19,144 | lean | import data.finsupp
import algebra.ring
import .to_finset
import .to_multiset
import to_semiring
import to_comm_semiring
import to_integral_domain
noncomputable theory
local infix ^ := monoid.pow
open classical
local attribute [instance] prop_decidable
universe u
variable {α : Type u}
--can the priority be set be... |
3bd3aa87d1840bfda7ec9b0cb0376f343cecbdb8 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/normed/group/hom.lean | bc4e4aaf7d305e18546806eca54b9b49fe03a173 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 37,528 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import analysis.specific_limits.normed
/-!
# Normed groups homomorphisms
This file gathers definitions and elementary constructions about bounded group homomorphis... |
24218e4a73130b9ecd5e4a2ea64553eed5f726d5 | 02fbe05a45fda5abde7583464416db4366eedfbf | /library/init/wf.lean | 0581e5f5753649c4433fee8ab265d01cc61e6418 | [
"Apache-2.0"
] | permissive | jasonrute/lean | cc12807e11f9ac6b01b8951a8bfb9c2eb35a0154 | 4be962c167ca442a0ec5e84472d7ff9f5302788f | refs/heads/master | 1,672,036,664,637 | 1,601,642,826,000 | 1,601,642,826,000 | 260,777,966 | 0 | 0 | Apache-2.0 | 1,588,454,819,000 | 1,588,454,818,000 | null | UTF-8 | Lean | false | false | 7,205 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.nat.basic init.data.prod
universes u v
inductive acc {α : Sort u} (r : α → α → Prop) : α → Prop
| intro (x : α) (h : ∀ y, r y x → ... |
bcf46592042192d859875e413692682b705e6761 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/bicategory/coherence_tactic.lean | b71ac18eb42645ea02c76c3510d5c8d2c1ac4700 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 10,147 | lean | /-
Copyright (c) 2022 Yuma Mizuno. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yuma Mizuno
-/
import category_theory.bicategory.coherence
/-!
# A `coherence` tactic for bicategories, and `⊗≫` (composition up to associators)
> THIS FILE IS SYNCHRONIZED WITH MATHLIB... |
1957547dbb69b5e8e7355ad4535f7e6e1276aa16 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/field_theory/separable_degree.lean | e6f895ae4a5e298d5349a771738d3385415cd465 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 6,294 | lean | /-
Copyright (c) 2021 Jakob Scholbach. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob Scholbach
-/
import algebra.algebra.basic
import algebra.char_p.exp_char
import field_theory.separable
/-!
# Separable degree
This file contains basics about the separable de... |
8d55bbf047fc5bc7a872bc9d77c19df362d2c10e | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Message.lean | a17c8a2c865361d4cf56430a56daf6a23cbb0787 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,713 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
Message Type used by the Lean frontend
-/
import Lean.Data.Position
import Lean.Data.OpenDecl
import Lean.Syntax
import Lean.MetavarContext
... |
3ae52eae62284fd72872fd6a39c247bece075a44 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/project_1_a_decrire/lean-scheme-submission/src/spectrum_of_a_ring/induced_continuous_map.lean | 076d43d3cb1408aebd7e84b0402101a1daf8136e | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,503 | lean | /-
Induced map from Spec(B) to Spec(A).
https://stacks.math.columbia.edu/tag/00E2
-/
import topology.basic
import ring_theory.ideal_operations
import spectrum_of_a_ring.zariski_topology
open lattice
universes u v
variables {α : Type u} {β : Type v} [comm_ring α] [comm_ring β]
variables (f : α → β) [is_ring_hom... |
716040360f69d88a8b555567773632110c85b38d | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/polynomial/iterated_deriv.lean | ab598b5778aac85f526455515ea716fb9530c4fa | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 8,104 | lean | /-
Copyright (c) 2020 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang
-/
import data.polynomial.derivative
import logic.function.iterate
import data.finset.intervals
import tactic.ring
import tactic.linarith
/-!
# Theory of iterated derivati... |
db54bb4be6fa484173b35006d86bfe550354d584 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/equiv/ring.lean | d0525404d59594c1f5e253419cee1a1e4a798170 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 9,531 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Callum Sutton, Yury Kudryashov
-/
import data.equiv.mul_add
import algebra.field
import deprecated.ring
/-!
# (Semi)ring equivs
In this file we define extension of `e... |
f239ccf56ac04889a7545fb7c38644fe9710de94 | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /src/Lean/Elab/InfoTree.lean | 5932334a097bc85be51139ac56ba941cd1b753fc | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,650 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Leonardo de Moura
-/
import Lean.Data.Position
import Lean.Expr
import Lean.Message
import Lean.Data.Json
import Lean.Meta.Basic
import Lean.Meta.PPGoal
namespa... |
003d66902a5f521251c60beb70cdd770903ee24c | d450724ba99f5b50b57d244eb41fef9f6789db81 | /src/mywork/lectures/lecture_5.lean | a73aa5941470e0551b276a813a273cbcfda10d45 | [] | no_license | jakekauff/CS2120F21 | 4f009adeb4ce4a148442b562196d66cc6c04530c | e69529ec6f5d47a554291c4241a3d8ec4fe8f5ad | refs/heads/main | 1,693,841,880,030 | 1,637,604,848,000 | 1,637,604,848,000 | 399,946,698 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,473 | lean | /-
INTRODUCTION and ELIMINATION RULES
-/
/-
For ∀ x, P x (every x has property P)
- introduction rule: assume arbitrary x, then show P x
- elimination rule: *apply* a proof of ∀ x, P x, as a
kind of function to a specific value of x, say k, to
produce a proof of P k.
-/
/-
Now we need a short detour, so as ... |
474ec444d8237093cb425ae630759946c5ac073f | bb31430994044506fa42fd667e2d556327e18dfe | /src/analysis/locally_convex/weak_dual.lean | 39669e43846728dda332b68ecf78acee7c1c4e67 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 5,449 | lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
import topology.algebra.module.weak_dual
import analysis.normed.field.basic
import analysis.locally_convex.with_seminorms
/-!
# Weak Dual in Topological Vector Spaces
We ... |
6c2e20fc2d0346e5550a3220d64f03f1e2420902 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/category_theory/equivalence.lean | 379969a533cf3b954404032b6e1acbe118077af4 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,332 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.fully_faithful
import category_theory.whiskering
import category_theory.essential_image
import t... |
c92efc2d0ba9519d053400b9f3ba459cebea6c00 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/1814.lean | 686f82937c219655a616658067bf8c9791b9cb07 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 184 | lean | example : ∀ (p q : Prop), p → q → p :=
begin
intros p p h1 h2,
exact h2,
end
example : ∀ (p q : Prop), p → q → p :=
begin
intros p p h1 h2,
dedup,
exact h2,
end
|
3c8599d982967955e3d42c2a5cf347b0eb40046a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/polynomial/reverse_auto.lean | e68b49b73121f91e7cb01eb7f061880688275850 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,590 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.erase_lead
import Mathlib.data.polynomial.degree.default
import Mathlib.PostP... |
f906d25182083b06b72349efab7f782628641ee2 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/limits/shapes/equalizers.lean | 4694ca37687198ebcacf7344f4aa4cdd523be70e | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 23,993 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel
-/
import data.fintype.basic
import category_theory.epi_mono
import category_theory.limits.limits
import category_theory.limits.shapes.finite_limits
/-!
... |
69b2e250c87240640149c459216c44c46fde06ab | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /tests/lean/run/instances.lean | 0c95b63c057e2fefc73f86085a7beb2869c2f4f2 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 206 | lean | import Lean
open Lean
open Lean.Meta
unsafe def tst1 : IO Unit :=
withImportModules [{module := `Lean}] {} 0 fun env => do
let insts := env.getGlobalInstances;
IO.println (format insts)
#eval tst1
|
6eecf701e98e8cb862d320bd517259f7ccf01c04 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/qify.lean | 2f7b8be0dbd17e3df62c91979f481d73a990ca30 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,984 | lean | /-
Copyright (c) 2022 Jiale Miao. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jiale Miao
-/
import tactic.norm_cast
import data.rat.cast
/-!
# A tactic to shift `ℕ` or `ℤ` goals to `ℚ`
Note that this file is following from `zify`.
Division in `ℕ` and `ℤ` is not ... |
b9ba27924adcb2ba0bbe1a396061d6605fa190d1 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/returnOptIssue.lean | ed9b6df1ff85fa8b45220901857758fdce53d058 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 113 | lean | #lang lean4
def f (x : Nat) : IO Unit := do
if x > 10 then
return
throw $ IO.userError "x ≤ 10"
#eval f 11
|
6df69cef76539edf38aad2034bb217226fdbc283 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/is_prime_pow.lean | 790f67bedab9beb0a45d39e881b4275b820c6001 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,246 | lean | /-
Copyright (c) 2022 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import algebra.associated
import number_theory.divisors
/-!
# Prime powers
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding... |
b334d76e17007e7ecee083ea539008cc9fd105ed | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/category_theory/abelian/pseudoelements.lean | f474d66e05f9a135ae032fdcf06ace5ff1257e45 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,841 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.abelian.exact
import category_theory.over
/-!
# Pseudoelements in abelian categories
A *pseudoelement* of an object `X` in an abelian category ... |
fe83e66dadf3a7b81e976465ba75e5e08eef1a2a | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/algebraic_geometry/is_open_comap_C.lean | 514a3c2d74af69b72e7b9db791c1ead0d2db56e9 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,820 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebraic_geometry.prime_spectrum
import ring_theory.polynomial.basic
/-!
The morphism `Spec R[x] --> Spec R` induced by the natural inclusion `R --> R[x]` is an... |
10d19a8d0b175df138b05987da399ecff643cdab | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /order/complete_boolean_algebra.lean | bedb4cba460654584f3e54d86881225686aaa454 | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,155 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Theory of complete Boolean algebras.
-/
import order.complete_lattice order.boolean_algebra data.set.basic
set_option old_structure_cmd true
universes u v w
variables... |
df074a99391702c844e0fe22c13b3c0af40aba4f | c09f5945267fd905e23a77be83d9a78580e04a4a | /src/topology/bases.lean | d9e616c16e231861edbf55eaebbd31cd3b5cdc9c | [
"Apache-2.0"
] | permissive | OHIHIYA20/mathlib | 023a6df35355b5b6eb931c404f7dd7535dccfa89 | 1ec0a1f49db97d45e8666a3bf33217ff79ca1d87 | refs/heads/master | 1,587,964,529,965 | 1,551,819,319,000 | 1,551,819,319,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,426 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Bases of topologies. Countability axioms.
-/
import topology.order
open set filter lattice classical
namespace topological_space
/- countability axio... |
f83dc7ed2f3036a8d1caebb8880902ed9da16797 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/matrix/block.lean | 911895a9709382ebb6baa40af97775acd17d0db5 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 27,590 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
-/
import data.matrix.basic
/-!
# Block Matrices
## Main definitions
* `matrix.from_blocks`: build a block matrix out... |
819e58b0c71da8ccba3454af69137a8d1626bcb6 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/LocalContext.lean | 07010d268708ce7701b29df0e33341acde422313 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 11,582 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.PersistentArray.Basic
import Init.Data.PersistentHashMap.Basic
import Init.Lean.Expr
import Init.Lean.Hygiene
namespace Lean
indu... |
697801d642bdb4e25577ac0fe006bbd555f9a5b7 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/import_order_timeout.lean | ba68e6c53c593840438d84d2044eae8b70c51d5a | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 789 | lean | import linear_algebra.tensor_product
import deprecated.subring
-- Swap these ↑ two imports, and then `foo` will always be happy.
-- This was not the cases on commit `df4500242eb6aa6ee20b315b185b0f97a9b359c5`.
-- You would get a timeout.
import algebra.module.submodule
variables {R M N P Q : Type*} [comm_ring R]
vari... |
a47bac5624daff31deefae0486a35d73cf2f59e4 | 8930e38ac0fae2e5e55c28d0577a8e44e2639a6d | /analysis/topology/topological_structures.lean | 6520b51aecd8973dab60d67e389e24327edfb33c | [
"Apache-2.0"
] | permissive | SG4316/mathlib | 3d64035d02a97f8556ad9ff249a81a0a51a3321a | a7846022507b531a8ab53b8af8a91953fceafd3a | refs/heads/master | 1,584,869,960,527 | 1,530,718,645,000 | 1,530,724,110,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 46,750 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Theory of topological monoids, groups and rings.
TODO: generalize `topological_monoid` and `topological_add_monoid` to semigroups, or add a type class
... |
87b7ad9c1cffa5ef965ad1b78a2195b0e8c22e8e | 42c01158c2730cc6ac3e058c1339c18cb90366e2 | /group_projects/naturals_addition_etc.lean | c014ce18bc2ca097ef6d75b9f63ba899831750b1 | [] | no_license | ChrisHughes24/xena | c80d94355d0c2ae8deddda9d01e6d31bc21c30ae | 337a0d7c9f0e255e08d6d0a383e303c080c6ec0c | refs/heads/master | 1,631,059,898,392 | 1,511,200,551,000 | 1,511,200,551,000 | 111,468,589 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,336 | lean | namespace xena
inductive xnat
| zero : xnat
| succ : xnat → xnat
open xnat
definition add : xnat → xnat → xnat
| n zero := n
| n (succ p) := succ (add n p)
notation a + b := add a b
definition one := succ zero
definition two := succ one
example : one + one = two :=
begin
refl
end
theorem add_assoc (a b c : xna... |
358fcf44a7449eb46ab0cc8c753afdf2a0fc7cdd | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/data/polynomial/monomial.lean | 045429e62c303e3b48f652fe992ea94b92185729 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 2,042 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.basic
/-!
# Univariate monomials
Preparatory lemmas for degree_basic.
-/
noncomputable theory
o... |
8ca09014b0fe6d48ddb5c77fa3114d17a66cdc95 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/equiv/list.lean | d83991a5ecd37e19a37b8f84b6eb371ec5bcd277 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 10,320 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Additional equiv and encodable instances for lists, finsets, and fintypes.
-/
import data.equiv.denumerable
import data.finset.sort
open nat list
namespace encodable
v... |
cce85a52c32495a9b158c661613fcc5106f98940 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/category_theory/comma.lean | 0670b0159dcaa94106f5e5e8cdaa45389360e235 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 7,385 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin, Bhavik Mehta
-/
import category_theory.natural_isomorphism
/-!
# Comma categories
A comma category is a construction in category theory, which builds ... |
91c16219ae9c47ba418e25d5558c3d6f418ca454 | 205f0fc16279a69ea36e9fd158e3a97b06834ce2 | /src/00_Introduction/01_propositions_and_truth.lean | 7ea4edfde9e8b004b436c73cdc1ae4752c8d4b8b | [] | no_license | kevinsullivan/cs-dm-lean | b21d3ca1a9b2a0751ba13fcb4e7b258010a5d124 | a06a94e98be77170ca1df486c8189338b16cf6c6 | refs/heads/master | 1,585,948,743,595 | 1,544,339,346,000 | 1,544,339,346,000 | 155,570,767 | 1 | 3 | null | 1,541,540,372,000 | 1,540,995,993,000 | Lean | UTF-8 | Lean | false | false | 5,175 | lean | /- ** Propositions and truth judgments ** -/
/-
A proposition is a mathematically precise assertion that
some state of affairs is true in some domain of interest.
For example, in the domain of basic arithmetic, the claim
that 0 = 0 is a proposition. So is the claim that 0 = 1.
As another example, in the domain of s... |
083e63909d55be893a14e7ddcc737c13c57f594e | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/coercion_bug.lean | 5281732c90c954734ce66833e801dd14e97d9650 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 92 | lean | import data.nat
using nat
definition tst1 : Prop := zero = 0
definition tst2 : nat := 0
|
8f79ac4803ed4d8386c7056ebfc1cb234e3abc75 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/computability/primrec.lean | 0ab8b75fcfa6790d607bde35dcf6b3db1bb825f9 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 51,902 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.equiv.list
import logic.function.iterate
/-!
# The primitive recursive functions
The primitive recursive functions are the least collection of functions... |
0fcd8c8822263188f2486dcf7b0d190028839a8e | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/topology/algebra/ordered/basic.lean | 03a3d866b3026b3cff38be7fd0dd7ca9a86364c1 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 188,030 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
-/
import algebra.group_with_zero.power
import data.set.intervals.pi
import order.filter.interval
import topology.algebra.group
import t... |
9806a20658ce9ab2530382774da7758896edc14c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/gcd_monoid/nat.lean | 7517a52cfa6148a09ad94956ad6c9bc6bd4f7664 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 1,298 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import algebra.gcd_monoid.finset
import number_theory.padics.padic_val
/-!
# Basic results about setwise gcds on ℕ
This file proves some basic results about `finset... |
2e844d000498a9a677c764f556edc8c261cd7b0e | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/topology/homotopy/basic.lean | 50d972c01b120ef47086ac3c7c666ac493892f96 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,895 | lean | /-
Copyright (c) 2021 Shing Tak Lam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shing Tak Lam
-/
import topology.unit_interval
import topology.algebra.ordered.proj_Icc
import topology.continuous_function.basic
import topology.compact_open
/-!
# Homotopy between f... |
e6100de44bd57bdeb526b449b556f5345d85d495 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/hom/group.lean | 17cd97042d8a50504bff6a7a735a344ec0824410 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 53,961 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes Hölzl, Yury Kudryashov
-/
import algebra.ne_zero
import algebra.group.basic
import algebra.group... |
4e32b992fd19d3a97457b55990b20e85df3e8008 | b815abf92ce063fe0d1fabf5b42da483552aa3e8 | /library/debugger/util.lean | 6b5f0c5642da6b9894fc572a947ee3568ff4bcf8 | [
"Apache-2.0"
] | permissive | yodalee/lean | a368d842df12c63e9f79414ed7bbee805b9001ef | 317989bf9ef6ae1dec7488c2363dbfcdc16e0756 | refs/heads/master | 1,610,551,176,860 | 1,481,430,138,000 | 1,481,646,441,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,944 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
namespace debugger
def is_space (c : char) : bool :=
if c = #" " ∨ c = char.of_nat 11 ∨ c = #"\n" then tt else ff
def split_core : string → string → list s... |
a3ca17bb340cfc0130bbbe1004f3986311f33760 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/metric_space/cau_seq_filter.lean | be5d1d52fb5ecff50449aa12a99c35537c97fde8 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,392 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Sébastien Gouëzel
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.normed_space.basic
import Mathlib.PostPort
universes v u
n... |
bfd2cf564f53e53f429c774837f7ac0c2da317d8 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/simp_lemmas_with_mvars.lean | 57476d750a4b44f6cebf98679d18a9eee6d3a9ee | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 808 | lean | lemma {u} if_pos' {c : Prop} [h : decidable c] (hc : c) {α : Sort u} (t e : α) : (ite c t e) = t :=
if_pos hc
example (a b : nat) (h : a = b) : (if a = b then 0 else 1) = cond (if a = b then tt else ff) 0 1 :=
begin
simp only [if_pos' h, cond],
end
example (a b : nat) (h : a = b) : (if a = b then 0 else 1) = cond (... |
18fde43ad9e03899f32281f4ec33993d6ac52d61 | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Lean/Parser/Module.lean | 653301a6bed1d15f31ff1371401e15c5075415e7 | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,771 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Lean.Message
import Init.Lean.Parser.Command
namespace Lean
namespace Parser
namespace Module
def «prelude» := par... |
def1da0b3d0079ee28c7e264e73ff49a1897038e | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/logic/function/basic.lean | 25ded047983ca97564473de6ac5fe5ac700dfd7b | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,609 | lean | /-
Copyright (c) 2016 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import logic.basic
import data.option.defs
/-!
# Miscellaneous function constructions and lemmas
-/
universes u v w
namespace function
section
var... |
ea8da7b204debbbc870b814ce026489c7b1b8b71 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/basic_monitor3.lean | 53962421b5440aeed084c5fccc70737002a4feaf | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,623 | lean | meta def get_file (fn : name) : vm format :=
do {
d ← vm.get_decl fn,
some n ← return (vm_decl.olean d) | failure,
return (to_fmt n)
}
<|>
return (to_fmt "<curr file>")
meta def pos_info (fn : name) : vm format :=
do {
d ← vm.get_decl fn,
some pos ← return (vm_decl.pos d) | failure,
file ... |
d67d3f2f58ca5cbcd24f9df54e3985da41c7056c | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast12.lean | 56405ebfea189a86f835c8fb5d75b18e96b4fca0 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 85 | lean | import data.nat
open nat
example (a b : nat) : 0 + a + b + 1 = 1 + a + b :=
by simp
|
172c5b509b3e09f4c6d83ff23f5ca280c1839210 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/limits/preserves/shapes.lean | 1901c89606f711c6a694f624861ae74820f8a58c | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 2,691 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.preserves.basic
import category_theory.limits.shapes.products
universes v u₁ u₂
open category_theory
open category_theory.limits
vari... |
360bd9987955d0a53b752321ac1f71f7c5de5ac3 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/num/basic.lean | 884bc8eb4b8aa8c443a9a835bdea71b090dd8a03 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 16,745 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
/-!
# Binary representation of integers using inductive types
Note: Unlike in Coq, where this representation is preferred because of
the r... |
7c3a99e77022c2725bea9677e21531bae1c1a57f | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/algebra/default.lean | 6473cbe1a5a0a0f45dc87484b42f4ce0dbfbfad7 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 367 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.algebra.group init.algebra.ordered_group init.algebra.ring init.algebra.ordered_ring
import init.algebra.field init.algebra.ordered_fiel... |
a0e2f1b82bc7a5533cf375bd4bc3121ffb055447 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/linear_algebra/matrix/nonsingular_inverse.lean | d0ca561c80cc563b10da7d13bd4c4e880ee7e6f9 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 20,673 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baanen, Lu-Ming Zhang
-/
import algebra.associated
import linear_algebra.matrix.determinant
import tactic.linarith
import tactic.ring_exp
/-!
# Nonsingular inverses
In this file, we ... |
f57944678cf6cd7864d7992e6adf944b1d20633c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/nat/prime.lean | ff09a91d35dd7ba09e59afe21089f1d8b6397456 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 27,091 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import algebra.associated
import algebra.parity
import data.int.dvd.basic
import data.int.units
import data.nat.factorial.ba... |
5e381d11a8c1a4a81bbf4eddc0747685a5413568 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/multiset/dedup.lean | 961582de444935043f53d8accf960d4eda8cde25 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 3,385 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.multiset.nodup
/-!
# Erasing duplicates in a multiset.
-/
namespace multiset
open list
variables {α β : Type*} [decidable_eq α]
/-! ### dedup -/
/-- ... |
cb64757dce6dc1da20364ccb85bd358b2713478a | 618003631150032a5676f229d13a079ac875ff77 | /src/analysis/convex/specific_functions.lean | 53f82e39564efc98212c646f90727fa537f83b81 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 4,202 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.mean_value
import data.nat.parity
import analysis.special_functions.exp_log
/-!
# Collection of convex functions
In this file we prove th... |
15e205c0dd95a28374eadf53bea444c40cec83b3 | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/types/pointed.hlean | 9a6d881648ed9c74d1cc1587944b1de564afd255 | [
"Apache-2.0"
] | permissive | ia0/lean2 | c20d8da69657f94b1d161f9590a4c635f8dc87f3 | d86284da630acb78fa5dc3b0b106153c50ffccd0 | refs/heads/master | 1,611,399,322,751 | 1,495,751,007,000 | 1,495,751,007,000 | 93,104,167 | 0 | 0 | null | 1,496,355,488,000 | 1,496,355,487,000 | null | UTF-8 | Lean | false | false | 43,923 | hlean | /-
Copyright (c) 2014-2016 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Floris van Doorn
Ported from Coq HoTT
The basic definitions are in init.pointed
-/
import .nat.basic ..arity ..prop_trunc
open is_trunc eq prod sigma nat equ... |
3b5c90a0864d3cedf79dc8485b1284dda19a4020 | 42610cc2e5db9c90269470365e6056df0122eaa0 | /hott/types/pi.hlean | 557c25e4363ba81bfef4d35c82d7029beed13dbe | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 12,924 | hlean | /-
Copyright (c) 2014-15 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about pi-types (dependent function spaces)
-/
import types.sigma arity
open eq equiv is_equiv funext sigma unit bool is_... |
8c29ca34644993c11108ed51c4a2c7533fcfc0b0 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/tactic/omega/nat/dnf.lean | bdb5a6715543fd0efbaf113d63b0928dddf43128 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 4,894 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
DNF transformation.
-/
import tactic.omega.clause
import tactic.omega.nat.form
namespace omega
namespace nat
local notation x ` =* ` y := form.eq x y
local notation x ` ≤* ` y ... |
76ff6fcceb7f6dae339f3c65d13b779acdf4bd53 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/representation_theory/group_cohomology/resolution.lean | c31a3397b8fc29b2623dcf8c01e7f62bc5c5b20f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 27,681 | lean | /-
Copyright (c) 2022 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston
-/
import algebra.category.Module.projective
import algebraic_topology.extra_degeneracy
import category_theory.abelian.ext
import representation_theory.Rep
/-!
#... |
a515cdaf5e39c620d81e51bc1cc292dec4b959be | c777c32c8e484e195053731103c5e52af26a25d1 | /src/linear_algebra/tensor_product/matrix.lean | a4490a52c0edcd8aec3521447e2687f94eace17e | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 3,600 | lean | /-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import data.matrix.kronecker
import linear_algebra.matrix.to_lin
import linear_algebra.tensor_product_basis
/-!
# Connections between `tensor_product` and `matrix`
This ... |
630064d6869efdf3ddbc0212011b89bc8014cc6a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/normed/group/add_torsor.lean | 59e792dca15230fae02365c9056d52056bcd560f | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 10,021 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Yury Kudryashov
-/
import analysis.normed.group.basic
import linear_algebra.affine_space.midpoint
/-!
# Torsors of additive normed group actions.
This file defines torsor... |
a7de11c79ed37b23cca36e80de59c372a45e5c53 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/finset.lean | 81a5175537ec1c53503ce9aaf877c622bbc8a0cf | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,487 | lean | import data.list
open list setoid quot decidable nat
namespace finset
definition eqv {A : Type} (l₁ l₂ : list A) :=
∀ a, a ∈ l₁ ↔ a ∈ l₂
infix `~` := eqv
theorem eqv.refl {A : Type} (l : list A) : l ~ l :=
λ a, !iff.refl
theorem eqv.symm {A : Type} {l₁ l₂ : list A} : l₁ ~ l₂ → l₂ ~ l₁ :=
λ H a, iff.s... |
c59eda67d0e59c6467f397795e311de3c833bc10 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/interactive/complete_field.lean | 899c364ecfbdeba81e5cb7ff2b2dc4ace6bdd062 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 530 | lean | variables (α : Type) (p q : α → Prop)
example (h : ∀ x : α, p x ∧ q x) : ∀ y : α, p y :=
λ y : α, (h y)^.l
--^ "command": "complete"
example (h : ∀ x : α, p x ∧ q x) : ∀ y : α, p y :=
λ y : α, (h y)^.le
--^ "command": "complete"
example (h : ∀ x : α, p x ∧ q x) : ∀ y : α, q y :=
λ y... |
68817aad5f4980e809728f96e50ae3f07e404e0b | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/rewriter15.lean | d175ba0ad733f2c94f8b9fcf8e02f399390c52ff | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 164 | lean | import data.nat
open nat algebra
set_option rewriter.syntactic true
example (x : nat) (H1 : x = 0) : x + 0 + 0 = 0 :=
begin
rewrite *add_zero,
rewrite H1
end
|
470b5a373bfe73f2948701801f582864131dc63b | 0d2e44896897eda703992595d71a0b19ed30b8a1 | /uexp/src/uexp/tactics.lean | 800d0985c256c5da056afad760776c3b44d8a92a | [
"BSD-2-Clause"
] | permissive | wwombat/Cosette | a87312aabefdb53ea8b67c37731bd58c7485afb6 | 4c5dc6172e24d3546c9818ac1fad06f72fe1c991 | refs/heads/master | 1,619,479,568,051 | 1,520,292,502,000 | 1,520,292,502,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,782 | lean | open tactic
meta def pre {α : Type} (st : α) (lemmas : simp_lemmas) (rel : name) (parent : option expr) (subterm : expr) : tactic (α × expr × option expr × bool) :=
do if rel = `uexp.eq
then do trace subterm,
trace "before rewrite",
(subterm', prf) ← lemmas.rewrite subterm (do trace "here", tr... |
7212359fcb0639a3fb6fd1257279b3869fb292ab | 76df16d6c3760cb415f1294caee997cc4736e09b | /lean/src/cs/svm.lean | 852388ea5b3c0f533ef29d2ed2458b30c6776616 | [
"MIT"
] | permissive | uw-unsat/leanette-popl22-artifact | 70409d9cbd8921d794d27b7992bf1d9a4087e9fe | 80fea2519e61b45a283fbf7903acdf6d5528dbe7 | refs/heads/master | 1,681,592,449,670 | 1,637,037,431,000 | 1,637,037,431,000 | 414,331,908 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,807 | lean | import .lang
import .sym
namespace sym
open lang
open sym.result
section svm
variables
{Model SymB SymV D O : Type}
[inhabited Model] [inhabited SymV]
(f : factory Model SymB SymV D O)
def factory.assume (σ : state SymB) (g : SymB) : state SymB :=
⟨f.and σ.assumes (f.imp σ.asserts g), σ.asse... |
5b78b685e385c145503ca87a732025a8dbafb8e5 | 90bd8c2a52dbaaba588bdab57b155a7ec1532de0 | /src/instances/real.lean | 7c0dd73790bab92426919029d44410c6f1f4ae24 | [
"Apache-2.0"
] | permissive | shingtaklam1324/alg-top | fd434f1478925a232af45f18f370ee3a22811c54 | 4c88e28df6f0a329f26eab32bae023789193990e | refs/heads/master | 1,689,447,024,947 | 1,630,073,400,000 | 1,630,073,400,000 | 381,528,689 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 579 | lean | import instances.real_vector_space
/-!
# Instances `ℝ`
In this file, we prove that for a `fintype` `ι`, `ι → ℝ` is contractible.
-/
noncomputable theory
def real_homeo_fin1 : homeomorph (fin 1 → ℝ) ℝ :=
{ to_fun := λ f, f 0,
inv_fun := λ t _, t,
left_inv := λ t, by { ext, fin_cases x },
right_inv := λ t, by s... |
358f1826ad00538faf6ba1b44c7d46ba10a0d60c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/compiler/array.lean | d0bfc5e0a8ca9c46f9211e67210e7a42e4b4bc8c | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 344 | lean | @[noinline] def f (a : Array Nat) : Nat :=
Array.casesOn (motive := fun _ => Nat) a (fun data => data.length)
@[noinline] def g (a : Array Nat) : List Nat :=
a.data
@[noinline] def h (a : List Nat) : List Nat :=
g (Array.mk a)
def main : IO Unit := do
IO.println (f #[2, 3, 4])
IO.println (g #[2, 3, 4])
I... |
c195a7f8751dd501c28921c0bced3d232fb5fc53 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/rel_classes.lean | d2f5c9a52f45c0ef09fe55a496b692ea4ed9115e | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 22,829 | lean | /-
Copyright (c) 2020 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro, Yury G. Kudryashov
-/
import order.basic
/-!
# Unbundled relation classes
In this file we prove some properties of `is_*` classes defined in `init.algeb... |
dbb012454ebaa99ceccddfe2b5912123fd5f0fad | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/algebra/group_with_zero/defs.lean | 9971bd85df6c8857ffbfca9d9e267806a387fea3 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,461 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.group.defs
import logic.nontrivial
/-!
# Typeclasses for groups with an adjoined zero element
This file provides just the typeclass definitions, and ... |
11fe8ffd2937de0426b754b91c346b3e9ff485cc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/disjoint.lean | 85f97b552ba4475aa1cb6f491a0b606686409d52 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 21,661 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import order.bounded_order
/-!
# Disjointness and complements
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to ma... |
93a37de1dc9ca2ccda30199be960487d501ab218 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/logic/encodable/lattice.lean | bbb57d9f9a085ed1ddbb2d4db4b85175dac40444 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,589 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import logic.encodable.basic
import logic.pairwise
/-!
# Lattice operations on encodable types
Lemmas about lattice and set operations on encodable types
## Im... |
ae756da61cc272f15f9275f01af73b9cba3faa6e | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/order/order_iso_nat.lean | 55c64bf03b0708ba354d2fc400dc5322e549a578 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,951 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.equiv.denumerable
import order.preorder_hom
import data.nat.lattice
/-!
# Relation embeddings from the naturals
This file allows translation from monoto... |
0919a042c27b1245a95944fbf61155f23da5cdf3 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/private_structure.lean | 8dad57fe8cbba447bd5e7bd9e56d1a6bc1216bdc | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 563 | lean | namespace foo
private structure point :=
(x : nat) (y : nat)
definition bla := point
definition mk : bla := point.mk 10 10
check bla
check point
check point.mk
check point.rec
check point.rec_on
check point.cases_on
check point.induction_on
check point.x
check point.y
end foo
open foo
-- point is not visible anymor... |
30a2069c4b9e302d555dc01f52a4989f745f6ada | 28be2ab6091504b6ba250b367205fb94d50ab284 | /src/game/world8/level8.lean | cf2d7fa10da98c29bde3dfcb54444902d16d4cfa | [
"Apache-2.0"
] | permissive | postmasters/natural_number_game | 87304ac22e5e1c5ac2382d6e523d6914dd67a92d | 38a7adcdfdb18c49c87b37831736c8f15300d821 | refs/heads/master | 1,649,856,819,031 | 1,586,444,676,000 | 1,586,444,676,000 | 255,006,061 | 0 | 0 | Apache-2.0 | 1,586,664,599,000 | 1,586,664,598,000 | null | UTF-8 | Lean | false | false | 578 | lean | import game.world8.level7 -- hide
namespace mynat -- hide
/-
# Advanced Addition World
## Level 8: `eq_zero_of_add_right_eq_self`
The lemma you're about to prove will be useful when we want to prove that $\leq$ is antisymmetric.
There are some wrong paths that you can take with this one.
-/
/- Lemma
If $a$ and $b$... |
5a385be921fc88c11fbf99f22c2986e8e5edd718 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/polynomial/monic.lean | 75efa462eb0465f1c7e0f00addc46ab69be44034 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 9,373 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.reverse
import algebra.associated
/-!
# Theory of monic polynomials
We give several tools for pro... |
3e2def4eed706db1e0501f6876e6a1b209437649 | 80d0f8071ea62262937ab36f5887a61735adea09 | /src/certigrad/det.lean | 2d4f21e2d213a458d5be34a6b3d070357c5e3625 | [
"Apache-2.0"
] | permissive | wudcscheme/certigrad | 94805fa6a61f993c69a824429a103c9613a65a48 | c9a06e93f1ec58196d6d3b8563b29868d916727f | refs/heads/master | 1,679,386,475,077 | 1,551,651,022,000 | 1,551,651,022,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,225 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
Interface for deterministic operators.
-/
import .tgrads .util .tcont
namespace certigrad
open T list
namespace det
def function (ishapes : list S) (oshape : S) : Type ... |
2fc40c7fb752f0ed6187569bfff1cd808f07fc84 | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /library/init/meta/mk_has_sizeof_instance.lean | 1bd0aa113ac544f1edbbbeeb392f6c2486924a4b | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,199 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
Helper tactic for constructing has_sizeof instance.
-/
prelude
import init.meta.rec_util init.meta.constructor_tactic
namespace tactic
open expr environment ... |
4a75c36e60a32e4c3cdd11f015b6d71159043876 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/padics/hensel.lean | 6190edd43a020d4c01cd6b278bb6f03d9fc9e6fc | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 21,546 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.padics.padic_integers data.polynomial topology.metric_space.cau_seq_filter
import analysis.specific_limits topology.instances.polynomial
/-!
# Hensel'... |
aaf07ba5f10f9b38dcf471cf3f4c9fd57ca8d78e | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/file_not_found.lean | 561e933071eb130ed27611ba0eea5b9a70f5b0fa | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 568 | lean | prelude
import Init.System.IO
open IO.FS
def usingIO {α} (x : IO α) : IO α := x
#eval (discard $ IO.FS.Handle.mk "non-existent-file.txt" Mode.read : IO Unit)
#eval usingIO do
if (← IO.fileExists "readonly.txt") then pure ()
else
IO.FS.withFile "readonly.txt" Mode.write $ fun _ => pure ()
IO.setAccessRights "... |
5fc64d2705c1160a0548af2211f4e9695e764b18 | 827124860511172deb7ee955917c49b2bccd1b3c | /data/containers/rbtree/insert_orig.lean | 286efed91b310da4e18a3b38ce04d1aabacf4944 | [] | no_license | joehendrix/lean-containers | afec24c7de19c935774738ff3a0415362894956c | ef6ff0533eada75f18922039f8312badf12e6124 | refs/heads/master | 1,624,853,911,199 | 1,505,890,599,000 | 1,505,890,599,000 | 103,489,962 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 10,227 | lean | import .basic
namespace data.containers
namespace rbtree
section insert
parameters {E:Type _}
open color
-----------------------------------------------------------------------
-- defs.
section insert
def balanceL : color → rbtree E → E → rbtree E → rbtree E
| black (bin red (bin red lll llx llr) lx lr) x r := bin... |
29ecb2f70cf34cc487d9663d1b30f20612b28339 | 17d3c61bf162bf88be633867ed4cb201378a8769 | /library/tools/super/prover.lean | 1042adf9069b8f0dfb412c40b66f2a54e547c442 | [
"Apache-2.0"
] | permissive | u20024804/lean | 11def01468fb4796fb0da76015855adceac7e311 | d315e424ff17faf6fe096a0a1407b70193009726 | refs/heads/master | 1,611,388,567,561 | 1,485,836,506,000 | 1,485,836,625,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,635 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause .prover_state
import .misc_preprocessing
import .selection
import .trim
-- default inferences
-- 0
import .clausifier
-- 10
import .demod
import .inhabi... |
6f7dfd3c35677e137fd8978f7f97d95fd501673a | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/algebra/free_monoid.lean | 704804558323fff2d1ac5287dcb9ad9c68238463 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 3,700 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Yury Kudryashov
-/
import algebra.group.hom data.equiv.basic data.list.basic
/-!
# Free monoid over a given alphabet
## Main definitions
* `free_monoid α`: free monoid ove... |
454ed504de8c5e68a4025bc278320871174c895c | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/tactic/abel.lean | 8c300d686fe1f7fdb4eed52fbe198a210cf50b8d | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 13,148 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.norm_num
/-!
# The `abel` tactic
Evaluate expressions in the language of additive, commutative monoids and groups.
-/
namespace tactic
namespace ab... |
1d5e3a99f95486f5be501341ab950a55e828c467 | 59a4b050600ed7b3d5826a8478db0a9bdc190252 | /src/category_theory/limits/binary_products.lean | ea5c578ae611a84fe864d8a35a1f41ed71aee9c3 | [] | no_license | rwbarton/lean-category-theory | f720268d800b62a25d69842ca7b5d27822f00652 | 00df814d463406b7a13a56f5dcda67758ba1b419 | refs/heads/master | 1,585,366,296,767 | 1,536,151,349,000 | 1,536,151,349,000 | 147,652,096 | 0 | 0 | null | 1,536,226,960,000 | 1,536,226,960,000 | null | UTF-8 | Lean | false | false | 11,719 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison, Reid Barton, Mario Carneiro
import category_theory.limits.shape
open category_theory
namespace category_theory.limits
universes u v w
variables {C : Type u} ... |
e07deb7bae4ef3f4a9dda88ff887371b49dae8a2 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/compact_open.lean | f0772a1ea58f41eec8dbcdc838e9c9ce0ec2d1eb | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 9,062 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
Type of continuous maps and the compact-open topology on them.
-/
import topology.subset_properties
import topology.continuous_function.basic
import topology.homeomorph
impor... |
2796bc014c4da9884d9f2b4c0132421783ffea68 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Meta/RecursorInfo.lean | 1f8c26f866b33f98162a80787839daf34276c4cb | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,033 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.AuxRecursor
import Lean.Util.FindExpr
import Lean.Meta.ExprDefEq
namespace Lean.Meta
def casesOnSuffix := "casesOn"
def recOnSuffix ... |
02db4d0ee908e89c4d658eeabec4452674fc883b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/polynomial_algebra_auto.lean | 625b92d95ffe279c90f006743fd2a73b319645e1 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,893 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.matrix_algebra
import Mathlib.data.polynomial.algebra_map
import Mathlib.PostPo... |
b2fa0a698d1b02b124098fc1173e8065385a6bd8 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/topology/uniform_space/basic.lean | cd9eea0fc057cbec9750d90d5f60a98bb801b9dc | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 43,513 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Theory of uniform spaces.
Uniform spaces are a generalization of metric spaces and topological groups. Many concepts directly
generaliz... |
d378ec665f02f02b8923d731e0e0cc12cf31a911 | 618003631150032a5676f229d13a079ac875ff77 | /src/measure_theory/bochner_integration.lean | 09c60c950ca1c67d07e73d618c204b1ce40b4022 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 54,885 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.simple_func_dense
import analysis.normed_space.bounded_linear_maps
/-!
# Bochner integral
The Bochner integral extends the definition of the Leb... |
8105e4356215e375a29cf8353516db8dc83eaafd | f7c63613a4933f66368ef2802a50c417a46cddfc | /tests/lean/keyword_tactics.lean | 3c7ec11af816db06dfb311d3aa10575e76bb7ad8 | [
"Apache-2.0"
] | permissive | avigad/lean | 28cef71cd8c4eae53f342c87f81ca78d7cc75874 | 5410178203ab5ae854b5804586ace074ffd63aae | refs/heads/master | 1,608,801,379,340 | 1,504,894,459,000 | 1,505,174,163,000 | 22,361,408 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 827 | lean | example : ℕ → ℕ → ℕ :=
begin
assume n m,
apply n
end
example : ℕ → ℕ → ℕ :=
begin
assume (n m : ℕ),
apply n
end
example : ℕ → ℕ → ℕ :=
begin
assume n : ℕ × ℕ <|> assume n m : ℕ,
apply n
end
example : ¬false :=
begin
assume contr,
apply contr
end
example : Π α : Type, α → α :=
begin
assume α,
ass... |
37ee95a73c2c357ba4b6f15ba9669c7b2613304a | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/sum2.lean | 91c162bf2d8bea27b896107adbe54df6d5500494 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,595 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura
import macros
import subtype
import optional
using subtype
using optional
-- We are encoding the (sum A B) as a subtype of (optional A) # (optional B), w... |
ea35f23963286d1adbea74edb982f87c6750d993 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1080.lean | e4132a9d8621cb729a25e3229521300adef1a6ca | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 454 | lean | inductive Foo
| foo (f : Foo)
inductive Box
| box (f: Foo)
def Box.foo: Box → Box
| box f => box f.foo
inductive Bar: Box → Type
| bar₁: Bar f → Bar f.foo
| bar₂: Bar f → Bar f.foo
def Bar.check: Bar f → Prop
| bar₁ f => f.check
| bar₂ f => f.check
attribute [simp] Bar.check
#check Bar.check._eq_1
#... |
dd00be08eb0cfa23f12ffcd9bba2a5f825053c13 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/AdditiveMonoid.lean | 5052651075aa4c09686e3087f93bac388b7c0d27 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,597 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section AdditiveMonoid
structure AdditiveMonoid (A : Type) : Type :=
(zero : A)
(plus : (A → (A → A)))
(lunit_zero : (∀ {x : A} , (plus zero x) = x))
(run... |
6214c6a337c7d5e73b092ea7beddbf13b4bcf67e | c777c32c8e484e195053731103c5e52af26a25d1 | /archive/imo/imo1969_q1.lean | 3eee264d353cae2ad72c2b7ea3a2d010f544abca | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 3,036 | lean | /-
Copyright (c) 2020 Kevin Lacker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Lacker
-/
import algebra.group_power.identities
import data.int.nat_prime
import tactic.linarith
import tactic.norm_cast
import data.set.finite
/-!
# IMO 1969 Q1
Prove that there ... |
ab6eda3501a603c92f0d94a90bdb3a9e41f29142 | ec62863c729b7eedee77b86d974f2c529fa79d25 | /19/a.lean | 1ba2cf7a1d0c346a7cf4ff278818753dfca5e357 | [] | no_license | rwbarton/advent-of-lean-4 | 2ac9b17ba708f66051e3d8cd694b0249bc433b65 | 417c7e2718253ba7148c0279fcb251b6fc291477 | refs/heads/main | 1,675,917,092,057 | 1,609,864,581,000 | 1,609,864,581,000 | 317,700,289 | 24 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,031 | lean | import Std.Data.HashMap
open Std
inductive Production
| terminal : Char → Production
| nonterminal : List (List Nat) → Production
open Production
instance : Inhabited Production := ⟨terminal '@'⟩
instance : ToString Production where
toString
| (terminal c) => s!"\"{c}\""
| (nonterminal opts) => s!"{opts}"
d... |
a1b32d244a5e0967207395a009d70ce24f36aaee | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/order/ring.lean | 5e964988d52e934ea3f309ec57784f150c48aced | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 70,517 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro
-/
import algebra.order.group
import algebra.order.sub
import data.set.intervals.basic
/-!
# Ordered rings and semirings
This file dev... |
ff35409e56144e2883b7fb8ed9596f2b9aa05df5 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Lean/Elab/PreDefinition/WF.lean | 8d15ee678c16d0d4bea46bb01780774f1f434b94 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 347 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.PreDefinition.Basic
namespace Lean
namespace Elab
open Meta
def WFRecursion (preDefs : Array PreDefinition) : TermElabM Unit :=
throwErro... |
979c8e5163c24392eada1e2201cd23f657dff0a7 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/complex/is_R_or_C.lean | b9a613eb44f78db05a32d0f72540f4d6eb439b01 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 36,767 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import data.real.sqrt
import field_theory.tower
import analysis.normed_space.finite_dimension
import analysis.normed_space.star.basic
/-!
# `is_R_or_C`: a typeclas... |
79fb3d9b5532d2706d32f3b76f5ef63314dc1c96 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/group/units.lean | 19f8f61181ad4fb60fdfc9ac778d487e127d250e | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 11,798 | lean | /-
Copyright (c) 2017 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johannes Hölzl, Chris Hughes, Jens Wagemaker
-/
import algebra.group.basic
/-!
# Units (i.e., invertible elements) of a multiplicative monoid
-/
universe u
vari... |
152083c8c8d14b0e1bf3fd8a027c52452be67e14 | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_20_induction.lean | 74da4dce1f17de2701bfef21679681d89c49ddfc | [] | no_license | gihanmarasingha/mth1001_tutorial | 8e0817feeb96e7c1bb3bac49b63e3c9a3a329061 | bb277eebd5013766e1418365b91416b406275130 | refs/heads/master | 1,675,008,746,310 | 1,607,993,443,000 | 1,607,993,443,000 | 321,511,270 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,783 | lean | import data.finset
import algebra.big_operators
import tactic.ring
import tactic.linarith
namespace mth1001
open_locale big_operators
open finset nat
section induction
/-
Here, the symbol `ℕ`, written `\N` represents the non-negative integers.
Take care: some mathematicans use `ℕ` to represent the postive integer... |
0ad738a21e853814bffb01b3006d59c08b2fcb5d | 4fa161becb8ce7378a709f5992a594764699e268 | /src/linear_algebra/determinant.lean | a39c75b09026a962f57ddb9c762fab86c8d0cabe | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 8,392 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Tim Baanen
-/
import data.matrix.pequiv
import data.fintype.card
import group_theory.perm.sign
universes u v
open equiv equiv.perm finset function
namespace matri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.