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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
416858e9ae0ddd7db73a6e38c3c703245c63c5e8 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/eisenstein_criterion.lean | 70d5945c8b51f6d64134c430788c18d6e440f5bb | [] | 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,480 | lean | /-
Copyright (c) 2020 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.ideal.operations
import Mathlib.data.polynomial.ring_division
import Mathlib.tactic... |
5ba3f7142f561d8c7ec1b70675ad02a76b03d643 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/structuralRec1.lean | b231217a5b31c269dc94f696ea90dea00300732f | [
"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 | 5,424 | lean | inductive PList (α : Type) : Prop
| nil
| cons : α → PList α → PList α
infixr:67 " ::: " => PList.cons
def map {α β} (f : α → β) : List α → List β
| [] => []
| a::as => f a :: map f as
def pmap {α β} (f : α → β) : PList α → PList β
| PList.nil => PList.nil
| a:::as => f a ::: pmap f as
theorem ex1 : map Nat.succ... |
03805f49433a81e37c073cf2325ee8816f8f8e92 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/bench/rbmap_checkpoint.lean | 7b2433d0a519a839d480b8b33b9f3a2e306043e4 | [
"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 | 3,442 | lean | #lang lean4
/-
Copyright (c) 2017 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.Option.Basic
import Init.Data.List.BasicAux
import Init.Data.String
import Init.System.IO
universes u v w w'
inductiv... |
0bad9014d2a4d190802c5df07ca63d19a78f3fb1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/polynomial/div.lean | d2e8ac6ce81b6989a7266bff38f66efc045d1497 | [] | 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 | 11,111 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.monic
import Mathlib.ring_theor... |
6fd9d9518aec8a20dd51287e9cb012b1d8ac4ac0 | e21db629d2e37a833531fdcb0b37ce4d71825408 | /src/syncablep.lean | e6faa8f1800a78f92c4e62c5c616c64252ac0274 | [] | no_license | fischerman/GPU-transformation-verifier | 614a28cb4606a05a0eb27e8d4eab999f4f5ea60c | 75a5016f05382738ff93ce5859c4cfa47ccb63c1 | refs/heads/master | 1,586,985,789,300 | 1,579,290,514,000 | 1,579,290,514,000 | 165,031,073 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 696 | lean | import parlang.defs
open parlang
section
variables {n : ℕ} {σ : Type} {ι : Type} {τ : ι → Type} [decidable_eq ι]
/-- syncable with the exception that no thread is allowed to store
or load in stores and loads respectively. Adding to stores or load makes this property stricter -/
def syncable' (shole : set ι) (lhole... |
c8c9e6fd0a268de11630172ac2ee3c7ebe32a94e | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Elab/DefView.lean | 09b804cc169bdb431b2a648a3852dc900aae8aae | [
"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 | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 7,148 | 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, Sebastian Ullrich
-/
import Std.ShareCommon
import Lean.Parser.Command
import Lean.Util.CollectLevelParams
import Lean.Util.FoldConsts
import Lean.Meta.Collec... |
e964f908968f819e20642d7db9b8c53a18967a6d | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/instances/discrete.lean | 1dabbe8d159fbd3def82d358a38bf5ead42afa14 | [
"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,245 | lean | /-
Copyright (c) 2022 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import order.succ_pred.basic
import topology.order.basic
import topology.metric_space.metrizable_uniformity
/-!
# Instances related to the discrete topology
We prove t... |
5ed73747ae9a36f01fe80639efa1ff94ef43cd91 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /library/init/meta/contradiction_tactic.lean | 9c8d828dc9ed64e1bf1c3a922ef83f13fcd4b3ff | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 2,629 | 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.meta.tactic init.function
namespace tactic
open expr tactic decidable environment
private meta def contra_p_not_p : list expr → list ... |
973e031cf8e38901c703c1cd49f7e8f1e73f6b63 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/computability/DFA.lean | 797a49356c984dd8b711a97f44938e60fc1ce3a9 | [] | 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 | 1,805 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fintype.basic
import Mathlib.computability.language
import Mathlib.PostPort
universes u v l... |
da5b099a6216cf37ee22a71a07695db811362ddb | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/nat/factorial.lean | f6869653a7ac84fe02f6c124c44536b62a4408e4 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,090 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes, Floris van Doorn
-/
import data.nat.basic
/-!
# The factorial function
-/
namespace nat
/-- `nat.factorial n` is the factorial of `n`. -/
@[simp] def f... |
20ffa4e4493bd74774252bf1f2fc810079c5a403 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/hott/beginend2.hlean | c02cbe02c0e8386e92d31af75a299edb34a0a064 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 291 | hlean | open eq tactic
open eq (rec_on)
definition concat_whisker2 {A} {x y z : A} (p p' : x = y) (q q' : y = z) (a : p = p') (b : q = q') :
(whiskerR a q) ⬝ (whiskerL p' b) = (whiskerL p b) ⬝ (whiskerR a q') :=
begin
apply (rec_on b),
apply (rec_on a),
apply ((concat_1p _)⁻¹),
end
|
6976b6b8a410ff92c28c59b5b3ad99301eae1521 | 74a42606b2a618112114eacdd674a7cc28b585c4 | /tpl-sec4.lean | fb81c3348af08992ec74158279dd234042355465 | [] | no_license | Hodapp87/leanprover_scratch | 8c53ce6d9e666f8f14cb6162c9e9429ebbecbc8c | de347c54ee56c2a05804f80d5f28e98070507236 | refs/heads/master | 1,610,428,204,434 | 1,484,350,758,000 | 1,484,350,758,000 | 77,873,828 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,535 | lean | -- https://leanprover.github.io/theorem_proving_in_lean/index.html
-- Section 4 (Quantifiers and Equality)
-- Section 4.1, The Universal Qualifier
section examples1
variables (α : Type) (p q : α → Prop)
-- ∀ has very wide scope, hence parenthesis:
--example : (∀ x : α, p x ∧ q x) → ∀ y : α, p y :=
-- assume... |
9855d1495dd6ada5cdcc2598eab6761a03e5188a | 193da933cf42f2f9188bb47e3c973205bc2abc5c | /In-class-pre-exam2-quiz-key.lean | 799cb26339b5befa57b52cffe5824d38c5a8a274 | [] | no_license | pandaman64/cs-dm | aa4e2621c7a19e2dae911bc237c33e02fcb0c7a3 | bfd2f5fd2612472e15bd970c7870b5d0dd73bd1c | refs/heads/master | 1,647,620,340,607 | 1,570,055,187,000 | 1,570,055,187,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,655 | lean | example :
∀ (x : Type),
∀ p : x → Prop,
∀ q : x → Prop,
(∀ x, p x) ∨ (∀ x, q x) →
∀ x, p x ∨ q x :=
/-
What does this proposition say, and
do you believe it at least might be
true? What it says is that if every
x has property p or every x has property
q, then every has the property of having
... |
ff2bf81c0d32ad6e00849426da79c2dbf5d22c41 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/transport.lean | 2e7ec3dc4a02d719c26c5e669b36841498f84435 | [
"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 | 5,585 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Simon Hudon, Scott Morrison
-/
import tactic.equiv_rw
/-!
## The `transport` tactic
`transport` attempts to move an `s : S α` expression across an equivalence `e : α ≃... |
88084cadbb2a2ce6ba1430650aac3f6fd55e8808 | ad3e8f15221a986da27c99f371922c0b3f5792b6 | /src/week07/e01_meta.lean | 330e6dfba6b02d2d79b5c4bc51a0c90366902dc8 | [] | no_license | VArtem/lean-itmo | a0e1424c8cc4c2de2ac85ab6fd4a12d80e9b85f1 | dc44cd06f9f5b984d051831b3aaa7364e64c2dc4 | refs/heads/main | 1,683,761,214,467 | 1,622,821,295,000 | 1,622,821,295,000 | 357,236,048 | 12 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,279 | lean | import tactic
import data.equiv.list
-- Упражнения на метапрограммирование адаптированы из видеокурса конференции lftcm2020
-- https://www.youtube.com/watch?v=o6oUjcE6Nz4&list=PLlF-CfQhukNlxexiNJErGJd2dte_J1t1N&index=19
-- Все вычисления, что мы раньше рассматривали в Lean, обязательно должны завершаться
def f : ℕ →... |
1c2ee764ef44b59b79a29ce1120205916e7933fb | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/probability_mass_function/constructions.lean | 2591ecc36ebf14af806ac6ca21b8161f7f59477b | [
"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 | 15,082 | 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, Devon Tuma
-/
import measure_theory.probability_mass_function.monad
/-!
# Specific Constructions of Probability Mass Functions
This file gives a number of different `... |
8301b3cef01a5b0236e76254aca22b66764cc1da | e514e8b939af519a1d5e9b30a850769d058df4e9 | /src/tactic/rewrite_search/tracer/unit.lean | 5d39755c55f9ad58c53b1ff3010eb826f6b47986 | [] | no_license | semorrison/lean-rewrite-search | dca317c5a52e170fb6ffc87c5ab767afb5e3e51a | e804b8f2753366b8957be839908230ee73f9e89f | refs/heads/master | 1,624,051,754,485 | 1,614,160,817,000 | 1,614,160,817,000 | 162,660,605 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,383 | lean | import tactic.iconfig
import tactic.rewrite_search.core
import tactic.rewrite_search.module
open tactic.rewrite_search
namespace tactic.rewrite_search.tracer.unit
open tactic
meta def init : tactic (init_result unit) := init_result.pure ()
meta def publish_vertex (_ : unit) (_ : vertex) : tactic unit := skip
meta d... |
b42ce9e734bb4c9e3916977dfdda85e4f8bd3228 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/group_theory/order_of_element.lean | e5773629524c3b9b632edda7cb7893324a96acaa | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,195 | 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
-/
import algebra.big_operators.order
import group_theory.coset
import data.nat.totient
import data.int.gcd
import data.set.finite
open function
open_locale big_operato... |
0d177c0c71673d5ce1a69fddae27e61ef2b01a9e | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/field_theory/finite.lean | 1e5e9ca4fd4574cc16230ebc0a943c65566e724d | [
"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 | 7,288 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.order_of_element data.polynomial data.equiv.ring data.zmod.basic
import algebra.char_p
universes u v
variables {α : Type u} {β : Type v}
open functi... |
81f7af164748f5dd2d6419feb51ff5372ac9f16e | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/algebra/category/basic.lean | 0fd993a6882c90654c2fb50cf01673927be001a2 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 2,042 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
-/
open eq eq.ops
structure category [class] (ob : Type) : Type :=
(hom : ob → ob → Type)
(comp : Π⦃a b c : ob⦄, hom b c → hom a b → hom a c)
(ID : Π (a : ob),... |
2b6d4b5547242b7b86d89eefa57f11119cb8f2e4 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/big_operators/enat.lean | c1d1e9c808f106cca90d618b51fd42944ad170ba | [
"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 | 514 | 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 algebra.big_operators.basic
import data.nat.enat
/-!
# Big operators in `enat`
A simple lemma about sums in `enat`.
-/
open_locale big_operators
variable... |
65763f50b36c3d7e20f48c9a069e79f66dd611cc | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/tactic/squeeze.lean | 9932d3655bbc5cbb6b71dab6a8244de41e21f7cf | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,588 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.traversable.basic
import tactic.simpa
setup_tactic_parser
private meta def loc.to_string_aux : option name → string
| none := "⊢"
| (some x) := to_string x... |
8e1127a21dccb4ac9c261023b7383f680cd9d5d9 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/algebra/ring.lean | a1fec765aeb27922c3a30ffb053c056ffd4bce2c | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,805 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Structures with multiplicative and additive components, including semirings, rings, and fields.
The development is modeled after Isabelle's library.
-/... |
a5157e5aafbec8326dd1fc233d01b180a3591d4d | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/analysis/calculus/fderiv.lean | 1c5ef331c9c38e35d3943d864719bece084c2e3e | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 97,525 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.tangent_cone
/-!
# The Fréchet derivative
Let `E` and `F` be normed spaces, `f : E → F`, and `f' : E →L[�... |
282c034e7e567dbac7ab165ff7a0b547bdb2a55d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/algebra/hott.hlean | 1df2fa6268d10f0f09704563c341839c1ca252a1 | [
"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 | 2,960 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about algebra specific to HoTT
-/
import .group arity types.pi prop_trunc types.unit .bundled
open equiv eq is_trunc unit
namespace algebra
definition... |
2984f1546ffd0598cbaf704ccff2d52ce7803a64 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/real/basic.lean | fcf7ec8c67604d3e24eed94ee3f83490f4c7f4b5 | [
"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 | 26,653 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
The (classical) real numbers ℝ. This is a direct construction
from Cauchy sequences.
-/
import order.conditionally_complete_lattice
import data.real.c... |
6b1c73c5df14524d5892b118874da2ac31febcbc | 32da3d0f92cab08875472ef6cacc1931c2b3eafa | /src/algebra/ordered_monoid.lean | cdfc0f27cae065f6b3d122d934e8e99468a64e83 | [
"Apache-2.0"
] | permissive | karthiknadig/mathlib | b6073c3748860bfc9a3e55da86afcddba62dc913 | 33a86cfff12d7f200d0010cd03b95e9b69a6c1a5 | refs/heads/master | 1,676,389,371,851 | 1,610,061,127,000 | 1,610,061,127,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 39,688 | 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, Johannes Hölzl
-/
import algebra.group.with_one
import algebra.group.type_tags
import algebra.group.prod
import algebra.order_functions... |
7e12ab469609a632d4ae0cece8fe816527bc80db | 69bc7d0780be17e452d542a93f9599488f1c0c8e | /quiz1_prep.lean | 41ad57eda82f32cd34ab2c775232a2cb5054fc85 | [] | no_license | joek13/cs2102-notes | b7352285b1d1184fae25594f89f5926d74e6d7b4 | 25bb18788641b20af9cf3c429afe1da9b2f5eafb | refs/heads/master | 1,673,461,162,867 | 1,575,561,090,000 | 1,575,561,090,000 | 207,573,549 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,108 | lean | /-
In lean we represent: (1) propositions as
types and (2) predicates as parameterized
propositions.
A parameterized type gives rise to a whole
family of proposition, once for each value
of each parameter.
We can think of one-parameter predicates
as specifying *properties* of objects. As
an example, as ... |
75a9e4f4e50917d098a22c62f3dc1709eae25245 | ebf7140a9ea507409ff4c994124fa36e79b4ae35 | /src/solutions/wednesday/topological_spaces.lean | 0404a37ada64cc11a5f772adee4469ab93b87262 | [] | no_license | fundou/lftcm2020 | 3e88d58a92755ea5dd49f19c36239c35286ecf5e | 99d11bf3bcd71ffeaef0250caa08ecc46e69b55b | refs/heads/master | 1,685,610,799,304 | 1,624,070,416,000 | 1,624,070,416,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,542 | lean | import tactic
import data.set.finite
import data.real.basic -- for metrics
/-
# (Re)-Building topological spaces in Lean
Mathlib has a large library of results on topological spaces, including various
constructions, separation axioms, Tychonoff's theorem, sheaves, Stone-Čech
compactification, Heine-Cantor, to name bu... |
edac249a1c87a4abbc78d517f80240faa0e72aee | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/topology/local_extr.lean | 8bc97956fb39a985e2049e2fed96becc9255a61c | [
"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 | 14,839 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import order.filter.extr
import topology.continuous_on
/-! # Local extrema of functions on topological spaces
## Main definitions
This file defines special versi... |
a21018d8a9b75eecb1ddb2d8d0c6b398e041020b | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/data/rat/basic.lean | 3a652b2c974f08c5ef930b18155a192d1e531987 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,950 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.rat.basic
Author: Jeremy Avigad
The rational numbers as a field generated by the integers, defined as the usual quotient.
-/
import data.int algebra.field
open int quot eq.ops
re... |
be3bab66e8705dc99399eca021bbe1f4236ac989 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/sheaves/local_predicate.lean | e7a848064e2e2b7518ddf52c8455d725f4554db6 | [
"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 | 16,371 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison, Adam Topaz
-/
import topology.sheaves.sheaf_of_functions
import topology.sheaves.stalks
/-!
# Functions satisfying a local predicate form a sheaf.
At ... |
b168c79aa9a1b1f93bb2a6d2424cc7c07b26a7c0 | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/data/finset_option.lean | 8b21c0a52455efc9689bc27b5264f3082ce5ce8b | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,668 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
Suppose we have a finite type `α`, and we consider the type
`α₊ = (option α)`, which is essentially `α` with an extra
element adjoined. The power set `P(α₊)` then ... |
bdff968461d9693c99025354ca70963cbf7f2bfe | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/number_theory/lucas_lehmer.lean | 788f96290d3639dcbcef1a9b8ee3fac5a05bd082 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 16,899 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Scott Morrison, Ainsley Pahljina
-/
import data.nat.parity
import data.pnat.interval
import data.zmod.basic
import group_theory.order_of_element
import ring_theory.fint... |
7719f64b4323cec2d58e66ac043a6bc2ad524c92 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/combinatorics/simple_graph/prod.lean | 33d59b673e90b978f80be48ceb4a18c79c8d636d | [
"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 | 6,655 | lean | /-
Copyright (c) 2022 George Peter Banyard, Yaël Dillies, Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: George Peter Banyard, Yaël Dillies, Kyle Miller
-/
import combinatorics.simple_graph.connectivity
/-!
# Graph products
This file defines the box prod... |
4342c2ecf8834812caf016ff2ed8a1ca237e392d | 7b9ff28673cd3dd7dd3dcfe2ab8449f9244fe05a | /src/floris/exercises-day-two-boolean-ring.lean | 6eb703e97710c8f9b74ddcbe8a0ab26c36d8dae0 | [] | no_license | jesse-michael-han/hanoi-lean-2019 | ea2f0e04f81093373c48447065765a964ee82262 | a5a9f368e394d563bfcc13e3773863924505b1ce | refs/heads/master | 1,591,320,223,247 | 1,561,022,886,000 | 1,561,022,886,000 | 192,264,820 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,886 | lean | import order.boolean_algebra
open lattice
/-
EXERCISE:
In mathematics, a Boolean ring R is a ring for which x² = x for all x in R.
Define a class of boolean rings. It should extend the typeclass of rings.
-/
class boolean_ring (α : Type*) := sorry
open boolean_ring
universe u
variables {α : Type u} [boolean_r... |
3604627e2ec38a610b99b9650f613abc47814a37 | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/IR/ValueKind.lean | daae6cdc6c463ff927dc73fe62ce270d54d82860 | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 816 | lean | import Papyrus.Internal.Enum
namespace Papyrus
open Internal
/-- Tags for all of LLVM (v12) IR value types. -/
sealed-enum ValueKind : UInt8
| function
| globalAlias
| globalIFunc
| globalVariable
| blockAddress
| constantExpr
| dsoLocalEquivalent
| constantArray
| constantStruct
| constantVector
| undef
| poison
| ... |
9f684198a98e2a58e55739c3e66152d49a80a82f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Util/FoldConsts.lean | 044b36f30d8a6703eb1b08660ab33e21e5237767 | [
"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 | 2,673 | 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.Expr
import Lean.Environment
namespace Lean
namespace Expr
namespace FoldConstsImpl
abbrev cacheSize : USize := 8192 - 1
structure State wher... |
1ec30542055a66aa66db38beca1481b40df127be | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/topology/separation.lean | 754772f7cdeab7e3b2c6d723b4c72f0964d5b6bc | [
"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 | 60,205 | 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
-/
import topology.subset_properties
import topology.connected
/-!
# Separation properties of topological spaces.
This file defines the predicate `sepa... |
697170497d998e2f91b63837350b6ce6c45a57d8 | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /src/game/world2/level5.lean | 060da15391208395a0d12d59804f9a346174d41c | [] | no_license | alreadydone/natural_number_game | 3135b9385a9f43e74cfbf79513fc37e69b99e0b3 | 1a39e693df4f4e871eb449890d3c7715a25c2ec9 | refs/heads/master | 1,599,387,390,105 | 1,573,200,587,000 | 1,573,200,691,000 | 220,397,084 | 0 | 0 | null | 1,573,192,734,000 | 1,573,192,733,000 | null | UTF-8 | Lean | false | false | 1,460 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world2.level4 -- hide
namespace mynat -- hide
/- Axiom : one_eq_succ_zero
1 = succ(0)
-/
/-
# World 2 -- Addition World
## Level 5 -- `succ_eq_add_one`
You have these:
* `add_zero (a : mynat) : a + 0 = a`
* `add_succ (a b : mynat) : a + succ... |
97bdec978d55da40128291a7c8aaedb3a7766a1a | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/tactic15.lean | 3521c1f692b2b58b416171d38ef7f00831365ad4 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 268 | lean | import standard
using tactic
variable A : Type.{1}
variable f : A → A → A
theorem tst {a b c : A} (H1 : a = b) (H2 : b = c) : f a (f b b) = f b (f c c)
:= by apply (subst H1);
trace "trying again... ";
state;
apply (subst H2);
apply refl
|
97e844fc5c33de985d98a1f82cbae30a9d3185ac | f57749ca63d6416f807b770f67559503fdb21001 | /hott/types/hprop_trunc.hlean | 4c5c4ec1550a68999e3282d0b2fcb7ffc2006aff | [
"Apache-2.0"
] | permissive | aliassaf/lean | bd54e85bed07b1ff6f01396551867b2677cbc6ac | f9b069b6a50756588b309b3d716c447004203152 | refs/heads/master | 1,610,982,152,948 | 1,438,916,029,000 | 1,438,916,029,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,769 | hlean | /-
Copyright (c) 2015 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
Proof of the theorem that (is_trunc n A) is a mere proposition
We prove this here to avoid circular dependency of files
We want to use this in .eq... |
1d7bb5a4a099da392796aef5ecd27bf51b6f5383 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/category/CompHaus/default.lean | 5acb6d30ca09d0b60b9d6e2300e3d5072af72f76 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 9,619 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Bhavik Mehta
-/
import category_theory.adjunction.reflective
import topology.category.Top
import topology.stone_cech
import category_theory.monad.limits
import topology.urysoh... |
db34c140027d8dbe26a728054ab322fffba75781 | fe84e287c662151bb313504482b218a503b972f3 | /src/combinatorics/partition/fin_map.lean | bcbb96cb1eaec4f2162246c16735a35cd4aea5e4 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 45,711 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
-/
import data.vector data.list.sort data.fintype.basic algebra.big_operators
import data.fin_extra order.sort_rank data.heq_extra data.enumeration
import combinato... |
3c8f94ca96112ab40c2f4be48eee0c6648606388 | fd3506535396cef3d1bdcf4ae5b87c8ed9ff2c2e | /migrated/list.lean | 0ca33b8ab23f7c7339b2983108dedb6729869225 | [] | no_license | williamdemeo/leanproved | 77933dbcb8bfbae61a753ae31fa669b3ed8cda9d | d8c2e2ca0002b252fce049c4ff9be0e9e83a6374 | refs/heads/master | 1,598,674,802,432 | 1,437,528,488,000 | 1,437,528,488,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,093 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Haitao Zhang
-/
import data
open list eq.ops
namespace migration
section basic
open function
lemma head_eq_of_cons_eq {A : Type} {h₁ h₂ : A} {t₁ t₂ : list A} :
(h₁::t₁) = (h₂:... |
b30eb4da1ddcf2dead15ed8ef314ab3df06f86cd | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/zzz_junk/has_one/has_one_bool.lean | e740920d727946ebde0b877e1ef7ba44c95ba7c3 | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 1,206 | lean | import .has_one
open hidden
/-
Use a typeclass instance to overload operator symbol
for a specific type. Each typeclass instance provides
values for "its" associated type.
-/
/-
Create a single typeclass instance (structure). It
gets registered into a database of such instsances.
-/
instance has_one_bool : hidden.... |
e6ce0e86fcb8b8d131c968c0500683f5d82f3977 | 6db8061629f55e774dd3d03be5bf005ffb485e48 | /Tests/Basic.lean | 8750b7dd119d32d7757e393ce31d0ff24ed69d45 | [] | no_license | tydeu/lean4-betterNumLits | 21fd5717d1b62ecb021c73e8cfaa0e3d19005690 | 45e3b79214b3e1f81f8e034dd12257e993ddc578 | refs/heads/master | 1,683,103,070,685 | 1,621,717,131,000 | 1,621,717,131,000 | 369,368,844 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,517 | lean | import BetterNumLits
-- Numerals
#check (0)
#check (1)
#check (2)
#check (3)
#check (4)
#check (5)
#check (6)
#check (7)
#check (8)
#check (9)
#check (9)
#check (10)
#check (11)
#check (12)
#check (13)
#check (14)
#check (15)
#check (16)
-- Digits
#check 0
#check 1
#check 2
#check 3
#check 4
#check 5
#check 6
#check ... |
2ce154dd45c1263bdbf35043816a05d00c8b892a | a7dd8b83f933e72c40845fd168dde330f050b1c9 | /src/analysis/normed_space/operator_norm.lean | 224cb3a42298fdb4449a777eb4782f9ae4fd46e7 | [
"Apache-2.0"
] | permissive | NeilStrickland/mathlib | 10420e92ee5cb7aba1163c9a01dea2f04652ed67 | 3efbd6f6dff0fb9b0946849b43b39948560a1ffe | refs/heads/master | 1,589,043,046,346 | 1,558,938,706,000 | 1,558,938,706,000 | 181,285,984 | 0 | 0 | Apache-2.0 | 1,568,941,848,000 | 1,555,233,833,000 | Lean | UTF-8 | Lean | false | false | 13,518 | lean | /-
Copyright (c) 2019 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
The space of bounded linear maps
Define the set of bounded linear maps between normed spaces and show basic facts about it. In
partic... |
db597b75f95291acd17c4b8a88404b1bb1fa6daf | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/notation.lean | d68eeb1db591eef6a18ac743edeae9cd4cb94b1f | [
"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 | 380 | lean | import logic data.num
open num
constant b : num
check b + b + b
check true ∧ false ∧ true
check (true ∧ false) ∧ true
check 2 + (2 + 2)
check (2 + 2) + 2
check 1 = (2 + 3)*2
check 2 + 3 * 2 = 3 * 2 + 2
check (true ∨ false) = (true ∨ false) ∧ true
check true ∧ (false ∨ true)
constant A : Type₁
constant a : A
notation 1 ... |
7d6d889526f195ee17b1724e5a4c70989221e456 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /stage0/src/Init/Lean/Elab/BuiltinNotation.lean | dd714a7c00fd57041116d82a8eaf08e2b1765102 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,682 | 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.Lean.Elab.Term
namespace Lean
namespace Elab
namespace Term
@[builtinTermElab dollar] def elabDollar : TermElab :=
adaptExpander $ fun... |
812e225f06d703a1d759e50f10a48cfacd1245c7 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Data/Lsp/Workspace.lean | 98eeaf403c6db3604b4751cad69cc44d2e1ea72d | [
"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 | 802 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Data.Lsp.Basic
import Lean.Data.Json
namespace Lean
namespace Lsp
open Json
structure WorkspaceFolder :=
(uri : DocumentUri)
(name : String)
in... |
bbde1216cab835379553b0283d4f9f17572f2fea | 485c57241aa5e06451e90d4521fb46f57829cc24 | /start.lean | 2f9e6d6770c2bb8e74a6165e7f6bdbe0581af83d | [] | no_license | ngamt/Lean | 8bde6955335078b475c9057c97b59d65f3312ca7 | 08eda4561ea483e04c7e977277f4e2f0cdc834b3 | refs/heads/master | 1,584,465,933,497 | 1,527,755,565,000 | 1,527,755,565,000 | 133,787,626 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,362 | lean | -- Live javascript version of Lean
#check (λ x:ℕ , x+1) 5
variables α β: Type
variables p:α × β
variables p1 p2 p3 :α
-- variables (a1 a2: α) (b:β)(n: N)
#eval 2^64
#eval 3-2*4+9
variable f: α-> β
def add23(x y: ℕ ): ℕ :=x+y+3
#check add23
--inductive nat: Type:=
--zero: nat
--succ: nat → nat
def fib:ℕ → ℕ... |
c0b2c7f90f1ef25bea6da724bf60c8aebec99326 | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1F/problem_bank/0102/S0102.lean | ae36ed8f3571a35e45a6a17b772bbc9df4c82f80 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,305 | lean | /-
M1F 2017-18 Sheet 1 Question 2 to 4 solutions.
Author : Kevin Buzzard
This file should work with any version of lean -- whether you installed it yourself
or are running the version on https://leanprover.github.io/live/latest/
-/
-- We probably need the "law of the excluded middle" for this question -- every
-- propo... |
64ff4a61bffeec7857aff6e4e4112d38a4ae467a | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebra/group/defs.lean | 090c13ad34f05c76c6d7f0e19a17223896bbe421 | [
"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 | 40,342 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Simon Hudon, Mario Carneiro
-/
import tactic.basic
import logic.function.basic
/-!
# Typeclasses for (semi)groups and monoids
> THIS FILE IS SYNCHRON... |
e65b3a0fa20e85696868eb5d95a6416036e1fdcd | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/data/finsupp.lean | 4dda168d464ef8738c012e64b2dcd1bb94c6e7a3 | [
"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 | 63,653 | 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 data.finset data.set.finite algebra.big_operators algebra.module
/-!
# Type of functions with finite support
For any type `α` and a type `β` with zero, we ... |
3f2d9bdc3d31a936cdd14bf22d06c0ce3c353d6f | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /order/galois_connection.lean | 65518f2c3ea2d73e8035a6e49d254765aff8e0b8 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 6,311 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Galois connections - order theoretic adjoints.
-/
import order.bounds
open function set lattice
universes u v w x
variables {α : Type u} {β : Type v} {γ : Type w} {ι : ... |
fd06a37a18a244270faf2ea7959a5eb09f25d3b5 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/convex/function.lean | bcc1464ef2596950abcdd964dde1c902631c919e | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 38,053 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, François Dupuis
-/
import analysis.convex.basic
import order.order_dual
import tactic.field_simp
import tactic.linarith
import tactic.ring
/-!
# Convex and con... |
d18281dd95e72064db31e66028b2514c56b0917a | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/measure_theory/integration.lean | 20fb4c88e0927b01a618806dd443c382a3d3a6bf | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 54,736 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
Lebesgue integral on `ennreal`.
We define simple functions and show that each Borel measurable function on `ennreal` can be
approximated by a sequence ... |
8dc58646b5720af1f2c9be326999f08504fef619 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/nat_bug7.lean | 888e056e4f02e259a7bd99b721660e424a79f9c4 | [
"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 | 433 | lean | namespace experiment
inductive nat : Type
| zero : nat
| succ : nat → nat
namespace nat
definition add (x y : nat) : nat := nat.rec x (λn r, succ r) y
infixl (name := add) `+` := add
axiom add_right_comm (n m k : nat) : n + m + k = n + k + m
open eq
#print "==========================="
theorem bug (a b c d : nat) : a... |
b5001a965560cb7d3003c2d9568066f92dcd0dcc | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/number_theory/pythagorean_triples_auto.lean | 8cde3173ce3e9b8fdd101b652ea1ac3f9e92b89e | [] | 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,960 | lean | /-
Copyright (c) 2020 Paul van Wamelen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Paul van Wamelen.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.field
import Mathlib.ring_theory.int.basic
import Mathlib.algebra.group_with_ze... |
26897730ecafacc7224b6df513605daba50b10d6 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/number_theory/padics/padic_numbers.lean | 43369b148fd5a62caa0a50ad8aa11c82e2abfa97 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,556 | 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 analysis.normed_space.basic
import number_theory.padics.padic_norm
/-!
# p-adic numbers
This file defines the p-adic numbers (rationals) `ℚ_p` as
the compl... |
0a525ff46daab5409acf9c7386ac979f43234a6e | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /tests/lean/run/casesUsing.lean | ee49770b8d5bd66bebb1b8bf477154f39f9e3783 | [
"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 | 4,183 | lean | import Lean
open Lean
open Lean.Meta
open Lean.Elab.Tactic
universes u
axiom elimEx (motive : Nat → Nat → Sort u) (x y : Nat)
(diag : (a : Nat) → motive a a)
(upper : (delta a : Nat) → motive a (a + delta.succ))
(lower : (delta a : Nat) → motive (a + delta.succ) a)
: motive y x
theorem ex1 (p q : Nat) : p ≤... |
ec528345f07f3bfc78dc129fc036ba2f4938d497 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/analysis/special_functions/exp_log.lean | d3ad45f54fa1002fbe4f49a6474de5544f1b0af9 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,125 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne
-/
import data.complex.exponential
import analysis.calculus.inverse
import measure_theory.borel_space
import analysis.complex... |
b0aec3087542064c6879e017438ba4d78cad9afa | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/sylow.lean | 6162d38e67c7110eafd74ec563796432e5fd5572 | [
"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 | 31,011 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Thomas Browning
-/
import data.nat.factorization
import data.set_like.fintype
import group_theory.group_action.conj_act
import group_theory.p_group
import group_theory.non... |
3ef1020eda3af28cf0cb471a0c6dbf547d1d95dd | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Data/Trie.lean | fd996d23e9a323e36c8b301040cb98d2cebb1ad9 | [
"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 | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 3,321 | 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
Trie for tokenizing the Lean language
-/
import Lean.Data.Format
namespace Lean
namespace Parser
open Std (RBNode RBNode.leaf RBNode.singl... |
584ee1bb16c4d1ee03ffca5023565a393a13b4a2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/covering/differentiation.lean | 80b14a129b52c3f4f1275caa062a6d2c98ae696c | [
"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 | 50,632 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import measure_theory.covering.vitali_family
import measure_theory.measure.regular
import measure_theory.function.ae_measurable_order
import measure_theory.inte... |
91cea63b59b9911cd50e4f6603da1de2f944371a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/subsemigroup/centralizer.lean | 2d979f0c20cfe013f4ffe1092a1074430a5f89cc | [
"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,757 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Jireh Loreaux
-/
import group_theory.subsemigroup.center
import algebra.group_with_zero.units.lemmas
/-!
# Centralizers of magmas and semigroups
> THIS FILE IS SYNC... |
a05f17e81b8439c6abc280d047d474f22c544d67 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/category/applicative.lean | df501a50ceb6d1d392849b5411e309d2401ff6e1 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 262 | lean | /- Provides simplification lemmas for applicative laws. -/
universe variables u
@[simp]
lemma fmap_pure {m : Type u → Type u} [hm : applicative m] {α β : Type u} (f : α → β) (v : α) :
f <$> (pure v : m α) = pure (f v) := applicative.map_pure m f v
|
bbf1855a7cba57855840a6fa01d100fc1ecc2483 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed_space/ray.lean | d6724816a61b4f6c73b56215239828d8317ca431 | [
"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,763 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Yaël Dillies
-/
import linear_algebra.ray
import analysis.normed_space.basic
/-!
# Rays in a real normed vector space
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> A... |
bf80b947e80c6331a5a00385e2a0321566fa3808 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/category/CommRing/adjunctions.lean | 2a7ffced20d51c7c81df9f67345a2504f286a036 | [
"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 | 1,616 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl
-/
import algebra.category.CommRing.basic
import data.mv_polynomial
/-!
Multivariable polynomials on a type is the left adjoint of the
forgetful functor... |
e279c626786d0433f1beac691156178498475c00 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/theories/group_theory/subgroup.lean | 2ff001b14b9d1a23d5a65ec1b6b0d9938139482d | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,002 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Haitao Zhang
-/
import data algebra.group data
open function eq.ops
open set
namespace algebra
namespace coset
-- semigroup coset definition
section
variable {A : Type}
variable [s :... |
ef28d992d935afa475ac23b1780b0cb8deaca1dd | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/sorry_itactic.lean | 7604204c58034b7b1be25162dbf340d8117c7b55 | [
"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 | 494 | lean | example (p : Prop) : p ↔ p :=
begin
split,
sorry { intro h, assumption, },
{ intro h, assumption, },
end
example (p : Prop) : p ↔ p :=
begin
split,
sorry,
{ intro h, assumption, },
end
-- Make sure other ways to comment out blocks still work:
example (p : Prop) : p ↔ p :=
begin
split,
sorry; { intro ... |
8d3a144fa363a9ec9b464d7735edd0a3d01a99b4 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/analysis/normed_space/operator_norm.lean | 7274b2f8a70fd6d3d0bcd295ad0e86e4fac09d3c | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 11,684 | lean | /-
Copyright (c) 2019 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow
The space of bounded linear maps
Define the set of bounded linear maps between normed spaces and show basic facts about it. In
particular
(*) define a set L(E,F... |
ad37ed92abf10abcd6ac1b3517067a08acbf3898 | 367134ba5a65885e863bdc4507601606690974c1 | /src/linear_algebra/multilinear.lean | e84584f08de207b12bed8fc1c4ba71864deacd2d | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 53,189 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import linear_algebra.basic
import algebra.algebra.basic
import data.fintype.sort
/-!
# Multilinear maps
We define multilinear maps as maps from `Π(i : ι), M₁... |
caf7eda6bd9e0aa68335591a4875065f3e160291 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/algebra/ordered_ring.lean | d478620cd249ee8016315a93e647af081c7edc0b | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,538 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.ordered_ring
Authors: Jeremy Avigad
Here an "ordered_ring" is partially ordered ring, which is ordered with respect to both a weak
order and an associated strict order. Our num... |
1829ebe2db871c59f5eb488c366b2f7c36d55416 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/rat/floor.lean | 28d4ce7a7e78b0b03b6c631b864bfe114638cf1e | [
"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 | 6,735 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kevin Kappelmann
-/
import algebra.order.floor
import algebra.euclidean_domain.instances
import tactic.field_simp
/-!
# Floor Function for Rational Num... |
3d71da13b564fddb49e9209d09b255c5623859d1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/number_theory/well_approximable.lean | dc65fb61b0c4e046c2d983e4c3441320ea1b68ac | [
"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 | 16,828 | lean | /-
Copyright (c) 2022 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import dynamics.ergodic.add_circle
import measure_theory.covering.liminf_limsup
/-!
# Well-approximable numbers and Gallagher's ergodic theorem
> THIS FILE IS SYNCHRONIZE... |
09cf560ad1638758f1c56bf804c4a5c793561b24 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/analysis/normed_space/basic.lean | 5e42ab1fb54ac1e3cbd725b5de6f1ca0be7ca7d3 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 37,981 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.pi_instances
import linear_algebra.basic
import topology.instances.nnreal topology.instances.complex
import topology.algebra.module
im... |
6191487da543f02d868e4cb9043e22ed6158b05c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/normed_space/inner_product_auto.lean | 6cc5fd5c5e3d1269e786370d89fff4af3abb3a23 | [] | 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 | 101,386 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Sébastien Gouëzel, Frédéric Dupuis, Heather Macbeth
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.linear_algebra.bilinear_form
import Math... |
f44fdaf49ff07a046ceb2e6088c7fd33837580d9 | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/continued_fractions/computation/default.lean | 2c511879c1fe39ca9eefe6d469ffa085fb03f9bd | [
"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 | 279 | lean | /-
Copyright (c) 2020 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.computation.basic
/-!
# Default Exports for the Computation of Continued Fractions
-/
|
8add8590eec64edcdbc7f48473e813aca306a172 | ce4db867008cc96ee6ea6a34d39c2fa7c6ccb536 | /src/Posons.lean | 4cb444395def01605f6627cecd403dea6c1ea34b | [] | no_license | PatrickMassot/lean-bavard | ab0ceedd6bab43dc0444903a80b911c5fbfb23c3 | 92a1a8c7ff322e4f575ec709b8c5348990d64f18 | refs/heads/master | 1,679,565,084,665 | 1,616,158,570,000 | 1,616,158,570,000 | 348,144,867 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 204 | lean | import tactic
import .tokens
namespace tactic
setup_tactic_parser
@[interactive]
meta def Posons := interactive.set
end tactic
example (a b : ℕ) : ℕ :=
begin
Posons n := max a b,
exact n,
end
|
34a37e21ce0ee6c0319524319beca257e9d6c36b | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/precDSL.lean | d933758a629434bfa29ac5e60b0236a08880630a | [
"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 | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 578 | lean | syntax:max "fn " ident "=>" term : term
syntax:(lead+1) "function " ident "=>" term : term
macro_rules
| `(fn $x:ident => $b) => `(fun $x:ident => $b)
| `(function $x:ident => $b) => `(fun $x:ident => $b)
#check id fn x => x + 1
#check id function x => x + 1
macro "addPrec" : prec => `(65)
macro "mulPrec" : prec... |
e3ec44cc8f7db2748d82d038a4a0f9ca90e714f8 | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/punit_instances.lean | 5d412991431c340eb3b39e837754df60e5e307ea | [
"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 | 3,449 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Instances on punit.
-/
import algebra.module
universes u
namespace punit
variables (x y : punit.{u+1}) (s : set punit.{u+1})
@[to_additive add_comm_group]
instance : comm_grou... |
8231559ab3292f6f94f68634b7eb9941350c29e6 | 137c667471a40116a7afd7261f030b30180468c2 | /src/group_theory/coset.lean | b98a1345e8cb2348927a3c7a6a0ed08f8c33e1ef | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,040 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import group_theory.subgroup
/-!
# Cosets
This file develops the basic theory of left and right cosets.
## Main definitions
* `left_coset a s`:... |
23271d612d0685acc2b9913a082c219f6acc6569 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/order/pfilter.lean | cf178e3a1d570eaafabe18e016fcbfad8aaf0865 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,129 | lean | /-
Copyright (c) 2020 Mathieu Guay-Paquet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mathieu Guay-Paquet
-/
import order.ideal
/-!
# Order filters
## Main definitions
Throughout this file, `P` is at least a preorder, but some sections
require more structure, su... |
2fa7ed5c6588b1925ba359eb767cbc56a223c657 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/unifhint1.lean | 9e0c05917e0e15bf8f3e775f4d6235497cabb045 | [
"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 | 837 | lean | structure Magma.{u} where
α : Type u
mul : α → α → α
def Nat.Magma : Magma where
α := Nat
mul a b := a * b
def Prod.Magma (m : Magma.{u}) (n : Magma.{v}) : Magma where
α := m.α × n.α
mul | (a₁, b₁), (a₂, b₂) => (m.mul a₁ a₂, n.mul b₁ b₂)
instance : CoeSort Magma.{u} (Type u) where
coe m := m.α... |
b9a3389d32a9e0a43d97fe315d1a5ab9e855a1c1 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/category/combinators.lean | 70ccd4717903bda9f5af7f0381a2f4e0261b25cf | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 616 | lean | universe variables u v w
namespace list
variable {m : Type u → Type v}
@[simp]
theorem mfoldl_nil [monad m]
{s : Type u}
{α : Type w}
(f : s → α → m s)
(x : s)
: mfoldl f x nil = pure x :=
by simp [mfoldl, return]
theorem mfoldl_cons [monad... |
5d485f206065d30e7177677cf79ff0f7c7d5a4f9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/char_poly/coeff.lean | b87a4a91b72b9e6b24f9b9a22663337fed5f5b29 | [] | 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,568 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson, Jalex Stark.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.matrix.char_p
import Mathlib.linear_algebra.char_poly.basic
... |
bba60847a9e8e4229348f3411649528e85b3c4b5 | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /universal/initial.lean | 22b6eb1ec01463b98391365a7522f8272f0a87a5 | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 1,826 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import ..isomorphism
import ..natural_transformation
import ..opposites
open tqft.categories
open tqft.categories.isomorphism
namespace tqft.cat... |
a324e72608df95267e7af4754e04235992355228 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Elab/Tactic/BuiltinTactic.lean | b0902e6f678d39e6a1bac8d6a01a393a617b32b5 | [
"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 | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 14,980 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tactic.Contradiction
import Lean.Meta.Tactic.Refl
import Lean.Elab.Binders
import Lean.Elab.Open
import ... |
58ae4b09dd689c548aaa37e3cd2796b1b702894c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/roots_of_unity/minpoly.lean | 4c5cf407e5a63945eb3b8a28f693cd02d230a846 | [
"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,326 | lean | /-
Copyright (c) 2020 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca, Johan Commelin
-/
import ring_theory.roots_of_unity.basic
import field_theory.minpoly.is_integrally_closed
/-!
# Minimal polynomial of roots of unity
> THIS FILE I... |
971cf4365bc25ef27080b5cd94122a3ea29f57f9 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/exp.lean | 3b139c83f47d7114ce05f9bd9cf7b1d653cb76fd | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,771 | lean | inductive Expr : Type
| const (n : Nat)
| plus (e₁ e₂ : Expr)
| mul (e₁ e₂ : Expr)
deriving BEq, Inhabited, Repr, DecidableEq
def Expr.eval : Expr → Nat
| const n => n
| plus e₁ e₂ => eval e₁ + eval e₂
| mul e₁ e₂ => eval e₁ * eval e₂
def Expr.times : Nat → Expr → Expr
| k, const n => const (k*... |
8a5c793e2b65d2b9321b45542c8bb855cb698071 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/geometry/manifold/times_cont_mdiff_map.lean | 3bcd59434a4d15624c3b4ae2e12a9bfd8ef17390 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,951 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.times_cont_mdiff
import topology.continuous_function.basic
/-!
# Smooth bundled map
In this file we define the type `times_cont_mdiff_ma... |
71553605481d81d4e53f781cbd09634b0cccccb9 | e94d3f31e48d06d252ee7307fe71efe1d500f274 | /library/data/fin.lean | bc856c9f8fedd7a79558b7a88c13f50cb4551fba | [
"Apache-2.0"
] | permissive | GallagherCommaJack/lean | e4471240a069d82f97cb361d2bf1a029de3f4256 | 226f8bafeb9baaa5a2ac58000c83d6beb29991e2 | refs/heads/master | 1,610,725,100,482 | 1,459,194,829,000 | 1,459,195,377,000 | 55,377,224 | 0 | 0 | null | 1,459,731,701,000 | 1,459,731,700,000 | null | UTF-8 | Lean | false | false | 17,980 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Haitao Zhang, Leonardo de Moura
Finite ordinal types.
-/
import data.list.basic data.finset.basic data.fintype.card algebra.group data.equiv
open eq.ops nat function list finset fintype... |
4a447a8b331842946b398d7d847d641fbb6f99bd | 2f8bf12144551bc7d8087a6320990c4621741f3d | /library/init/control/combinators.lean | 7619b3224a3755c984cafee4298d5e20d3671300 | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean4 | eb63a12960e69823749edceb4f23fd33fa2253ce | fa16920a6a7700cabc567aa629ce4ae2478a2f40 | refs/heads/master | 1,589,935,810,594 | 1,557,177,860,000 | 1,557,177,860,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,137 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Monad Combinators, as in Haskell's Control.Monad.
-/
prelude
import init.control.monad init.control.alternative
import init.data.list.basic
un... |
930f03302abf0291bc6a1b9ec9c9cf6791298e46 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/types/list.hlean | 5380b4bf976476e1e2e9d6ba2015eb328a262c6a | [
"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 | 36,104 | hlean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn
Basic properties of lists.
Ported from the standard library (list.basic and list.comb)
Some lemmas are commented... |
6a3b447f904de290c2ccf2994f61ea0e74979090 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/polynomial/erase_lead.lean | 0b6b93a170f372ca4552f99298ce3a63a798b987 | [
"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 | 15,132 | 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 algebra.big_operators.fin
import data.polynomial.degree.definitions
/-!
# Erase the leading term of a univariate polynomial
> THIS FILE IS SYNCHRONIZED WITH MA... |
ce906f661100ac59eed6385e5cde822853ab9d7e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/show_tac.lean | 291e8aa2eed4fa6de8838bf1ceebbbfa51109e2b | [
"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 | 185 | lean | example (a b : Prop) : a ∧ b → b ∧ a :=
begin
intro Hab,
have Ha : a, from and.elim_left Hab,
have Hb : b, from and.elim_right Hab,
show b ∧ a, from and.intro _ Ha
end
|
e72b2a4ce76f3b383ea966aba9b9268c7728ecc3 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/bad_end.lean | afdac78d100e9ffae473099f73923255c5ee393a | [
"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 | 8 | lean | end foo
|
5d8d2b3c797c28927db805b4630bb7926dd1ef3f | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_1012.lean | cec2df1ea2ac60c347f520ca1f3e5465be521042 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 298 | lean | import data.real.basic
-- BEGIN
variables a b c : ℝ
variables (h : a ≤ b) (h' : b ≤ c)
#check (le_refl : ∀ a : real, a ≤ a)
#check (le_refl a : a ≤ a)
#check (le_trans : a ≤ b → b ≤ c → a ≤ c)
#check (le_trans h : b ≤ c → a ≤ c)
#check (le_trans h h' : a ≤ c)
-- END |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.