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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8133ac07dacf8d4c2b2159b1d663430fa59e4685 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/linear_algebra/determinant.lean | 2b3f432d475ea860529cf5a15759ee6cea0ba209 | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 5,500 | 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
-/
import data.matrix.basic
import group_theory.perm.sign
universes u v
open equiv equiv.perm finset function
namespace matrix
variables {n : Type u} [fintype n] ... |
899db5434c9f21876db43f7943baa84fdb8164f7 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/rcases.lean | 6ebcbb11ef1c49cf50b9009c4c34329b2823eee1 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 19,438 | 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.dlist tactic.core
open lean lean.parser
namespace tactic
/-
These synonyms for `list` are used to clarify the meanings of the many
usages of lists in t... |
82446c2b73f1c1c0f22262c679e66e0f0c07d8c3 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/limits/shapes/biproducts.lean | 70c836bd537072c9c81beeb352d3e3f1d65bf776 | [
"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 | 37,799 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.finite_products
import category_theory.limits.shapes.binary_products
import category_theory.preadditive
/-!
# Biproducts and bin... |
a49c24bbb0d617afade2d9dc9f7a35f6337807f8 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /stage0/src/Lean/Meta/TransparencyMode.lean | 44ebf8acaa1d256fb9df09d1401e57b9662e655e | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 810 | 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
-/
namespace Lean.Meta
inductive TransparencyMode where
| all | default | reducible | instances
deriving Inhabited, BEq
namespace TransparencyMode
def h... |
dafb8f0d3d6ade48ec30b986b5c8fd303633dd39 | 3bdd27ffdff3ffa22d4bb010eba695afcc96bc4a | /src/combinatorics/simplicial_complex/stone_separation.lean | 016748b8b6545073ab0c1f02b7a68c1df404d3a4 | [] | no_license | mmasdeu/brouwerfixedpoint | 684d712c982c6a8b258b4e2c6b2eab923f2f1289 | 548270f79ecf12d7e20a256806ccb9fcf57b87e2 | refs/heads/main | 1,690,539,793,996 | 1,631,801,831,000 | 1,631,801,831,000 | 368,139,809 | 4 | 3 | null | 1,624,453,250,000 | 1,621,246,034,000 | Lean | UTF-8 | Lean | false | false | 1,709 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import combinatorics.simplicial_complex.convex_join
open set
variables {E : Type*} [add_comm_group E] [module ℝ E] {x y : E} {A B : set E} {... |
1e9b08dd4889f74d633e77640ffb692f1091616b | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/order/conditionally_complete_lattice.lean | a895422a829412e5f83a300cfe531119f6feee50 | [
"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 | 27,955 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
Adapted from the corresponding theory for complete lattices.
-/
import data.nat.enat
/-!
# Theory of conditionally complete lattices.
A conditionally complete la... |
1f79ce9ae8f7b8bbfa852a705b1b9907321bde6f | 99b5e6372af1f404777312358869f95be7de84a3 | /src/hott/types/fiber.lean | e766675b6ab0d86c943248a220f83ae11310c3d1 | [
"Apache-2.0"
] | permissive | forked-from-1kasper/hott3 | 8fa064ab5e8c9d6752a783d74ab226ddc5b5232a | 2db24de7a361a7793b0eae4ca5c3fd4d4a0fc691 | refs/heads/master | 1,584,867,131,028 | 1,530,766,841,000 | 1,530,766,841,000 | 139,797,034 | 0 | 0 | Apache-2.0 | 1,530,766,961,000 | 1,530,766,961,000 | null | UTF-8 | Lean | false | false | 18,785 | lean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Mike Shulman
Ported from Coq HoTT
Theorems about fibers
-/
import .sigma .eq .pi ..cubical.squareover .pointed .eq
universes u v w
hott_theory
namespace hott
o... |
1556a149ed3321cd22d1847e9b3b0b2b32715578 | 00de0c30dd1b090ed139f65c82ea6deb48c3f4c2 | /src/linear_algebra/basis.lean | ce277f0c489ac8059ac198fdfabdcad98493b615 | [
"Apache-2.0"
] | permissive | paulvanwamelen/mathlib | 4b9c5c19eec71b475f3dd515cd8785f1c8515f26 | 79e296bdc9f83b9447dc1b81730d36f63a99f72d | refs/heads/master | 1,667,766,172,625 | 1,590,239,595,000 | 1,590,239,595,000 | 266,392,625 | 0 | 0 | Apache-2.0 | 1,590,257,277,000 | 1,590,257,277,000 | null | UTF-8 | Lean | false | false | 53,139 | 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, Alexander Bentkamp
-/
import linear_algebra.finsupp
import linear_algebra.projection
import order.zorn
import data.fintype.card
/-!
# Linear independe... |
e06f849a9e4498f1d2e6197dc0a7ede334572ef2 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/analysis/asymptotics.lean | d1b1bd9ab127824c341cda2a6955d0a7e879bcf6 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 46,729 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Yury Kudryashov
-/
import analysis.normed_space.basic
import topology.local_homeomorph
/-!
# Asymptotics
We introduce these relations:
* `is_O_with c f g l` : "f is bi... |
fe19a7a9fd8720fb0b68bb5152d90d0b964846e6 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/typevec.lean | 6902ed53f84bbb396d9aac2d242ee8cc389dfe85 | [] | 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 | 24,216 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Mario Carneiro, Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fin2
import Mathlib.logic.function.basic
import Mathlib.tact... |
0bc4992b0fbc4d37532080ed105dfd267308e42d | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /src/Lean/Server/Utils.lean | 1b6b5392eb4b51eb6184b84251fc3bed2b75d5fd | [
"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 | 5,512 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.Data.Position
import Lean.Data.Lsp
import Init.System.FilePath
namespace IO
def throwServerError (err : String) : IO α :=
throw ... |
1c2c4586cc4707e6a6ae72bf841137baf9436635 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/list/perm.lean | 8cb4f5691f06939a0e2358fd58768518397cffcf | [
"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 | 40,971 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
List permutations.
-/
import data.list.basic data.list.set
open list setoid nat binary
variables {A B : Type}
inductive perm : list A → list A → Prop :=
| ni... |
af1c5f54a1c31f323f3f3a8ae7b1145b31ebd550 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/punit.lean | 35689c5febe359a9c4dbf537014bd758d1c8eea0 | [] | 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,631 | 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.category_theory.punit
import Mathlib.category_theory.limits.limits
import Mathlib.PostPort
... |
78862c0d122e6c551fc67e65dfe96d4d9bbb7261 | 38ee9024fb5974f555fb578fcf5a5a7b71e669b5 | /Mathlib/Tactic/NormNum.lean | f9e91b6006ff16ef808dd004e1e7f65bdbbb5577 | [
"Apache-2.0"
] | permissive | denayd/mathlib4 | 750e0dcd106554640a1ac701e51517501a574715 | 7f40a5c514066801ab3c6d431e9f405baa9b9c58 | refs/heads/master | 1,693,743,991,894 | 1,636,618,048,000 | 1,636,618,048,000 | 373,926,241 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,456 | lean | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Lean.Elab.Tactic.Basic
import Mathlib.Algebra.Ring.Basic
import Mathlib.Tactic.Core
namespace Lean
/--
Return true if `e` is one of the following
- A nat... |
8b2109023f0872e19bda100f282be90decc7abb3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/mk_dec_eq_instance_auto.lean | 1923bc78d53d9238a84f3fe561b8d00b22975212 | [] | 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 | 684 | 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 showing that a type has decidable equality.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.contradiction_tactic
import Mathlib.... |
e3f9a099ae24f3b8cd64480eb064c809e65c3fcd | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_lean_summary/unnamed_269.lean | c40e69afc069514888f92c4d61a7a8f2fe8a5ab8 | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 197 | lean | variables p q : Prop
-- BEGIN
example (k : q) : p → q :=
begin
intro h, -- This is equivalent to 'Assume h : p' in mathematics.
exact k, -- We close the goal using our proof of q.
end
-- END |
eeb43e7e6d361c24886c042a914c754f517b314f | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/function/ae_measurable_order.lean | 11bec09202c340716e673b581107bf9fbd435949 | [
"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,235 | 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.constructions.borel_space
/-!
# Measurability criterion for ennreal-valued functions
Consider a function `f : α → ℝ≥0∞`. If the level se... |
b67d5f19a0bac4d6c15905e69219637707cd4a0b | 367134ba5a65885e863bdc4507601606690974c1 | /src/order/complete_boolean_algebra.lean | bc430d040f0bd13648b1b2aff3c8e3aae2bb70be | [
"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 | 4,673 | 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
set_option old_structure_cmd true
universes u v w
variables {α : Type u} {β : Type v} {ι : Sort ... |
ec4d4e98ed75425e19748fe5904090e8c4644a64 | 6de8ea38e7f58ace8fbf74ba3ad0bf3b3d1d7ab5 | /lab5/code/intro.lean | f80c957c2d0827172296faa9a749ef38bda9b437 | [] | no_license | KinanBab/CS591K1-Labs | 72f4e2c7d230d4e4f548a343a47bf815272b1f58 | d4569bf99d20c22cd56721024688cda247d1447f | refs/heads/master | 1,587,016,758,873 | 1,558,148,366,000 | 1,558,148,366,000 | 165,329,114 | 5 | 2 | null | 1,550,689,848,000 | 1,547,252,664,000 | TeX | UTF-8 | Lean | false | false | 836 | lean | #check "hello world!"
/-
C-c C-k shows how to type the symbol!
C-c C-x executes the entire script
C-c ! l shows the interactive panel below
-/
theorem t1 (p q : Prop) : p ∧ q → p ∧ q ∧ p :=
begin
intros,
apply and.intro,
apply and.left a,
apply and.intro,
apply and.right a,
apply and.left a,
end
theorem... |
44f1de293e579706106ee0e11d6cbef03847d592 | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/category/Module/monoidal.lean | 319c47a83d6044cf4429c1f8d2bbb1236d2c5bdd | [
"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 | 5,571 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Scott Morrison
-/
import category_theory.monoidal.category
import algebra.category.Module.basic
import linear_algebra.tensor_product
/-!
# The monoidal category structu... |
f35a5099721e99b58f31bc0e9eb384f483141795 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/nat/periodic.lean | 501e32e15a15946681c78bd0ed7176b948c5b478 | [
"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 | 2,169 | lean | /-
Copyright (c) 2021 Bolton Bailey. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bolton Bailey
-/
import algebra.periodic
import data.nat.count
import data.nat.interval
/-!
# Periodic Functions on ℕ
This file identifies a few functions on `ℕ` which are periodic, a... |
104645520da11df3aa50b970e9a01c56eb91919d | 315b4184091c669ce8e5e07f9b24473c4bcfbaaf | /library/system/io_interface.lean | f0b8055302ef8771df1663b17816b38ab2a20a61 | [
"Apache-2.0"
] | permissive | haraldschilly/lean | 78404910ad4c258cdf84e0509e4348c1525e57a9 | d01e2d7ae8250e8f69139d8cb37950079e76ca9d | refs/heads/master | 1,619,977,395,095 | 1,517,501,044,000 | 1,517,940,670,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,163 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import data.buffer
inductive io.error
| other : string → io.error
| sys : nat → io.error
inductive io.mode
| read | write | read_write | append
... |
80022627a6b0e742f0739ee2329d4d136630b381 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1780.lean | d3345288469d4315971d42d06c885632861857db | [
"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 | 101 | lean | import Lean
section
open Lean
open Meta -- ok
end
section
open Lean hiding Rat
open Meta -- ok
end
|
df1b27f043897a7dd7ee5285c4d088f89b9ca237 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/def_brec1.lean | 470e1550c998feb3f90ce1c2f273fb76b705adc8 | [
"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 | 410 | lean |
inductive foo : bool → Type
| Z : foo ff
| O : foo ff → foo tt
| E : foo tt → foo ff
open foo
definition to_nat : ∀ {b}, foo b → nat
| .ff Z := 0
| .tt (O n) := to_nat n + 1
| .ff (E n) := to_nat n + 1
example : to_nat (E (O Z)) = 2 :=
rfl
example : to_nat Z = 0 :=
rfl
example (a : foo ff) : to_nat (O a) =... |
8ce83be82cc4505ad289a15522a1c3fa9b08c627 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/pfunctor/univariate/M.lean | cdcedad8b350e89e26938531521c67c6d08e9c7c | [
"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 | 21,958 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.pfunctor.univariate.basic
/-!
# M-types
M types are potentially infinite tree-like structures. They are defined
as the greatest fixpoint of a polynomial functo... |
d8e508de8832eeade1b6f1884edfe556faf860d5 | 7c4610454cf55b49f0c3cdaeb6b856eb3249cb2d | /src/mathlib_lemmas.lean | 09be408d2db26de6792401e5af0fede0ea6ad1d1 | [] | no_license | 101damnations/fg_over_pid | 097be43e11c3680a3fd4b6de2265de393cf4d4ef | a1a587c455a54a802f6ff61b07bb033701e451a7 | refs/heads/master | 1,669,708,904,636 | 1,597,259,770,000 | 1,597,259,770,000 | 287,097,363 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 871 | lean | import linear_algebra.finsupp
open linear_map
variables {R : Type*} {M : Type*} {M₂ : Type*} {M₃ : Type*}
variables [ring R] [add_comm_group M] [add_comm_group M₂] [add_comm_group M₃]
variables [module R M] [module R M₂] [module R M₃]
variables {α : Type*} (v : α → M)
/-- Given 2 surjective R-module homs `f : M →ₗ[R... |
0d1ff2657867a428841614d1274a629c2693b3e3 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/ring_theory/localization.lean | c7439b0c5e39ab324f13da8a598c2ff544f31dce | [
"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 | 26,875 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin
-/
import ring_theory.ideal_operations
universes u v
local attribute [instance, priority 10] is_ring_hom.comp
namespace localization
variables (... |
8aad83c4d88d6a240bc2cc00d191131f2d281dfc | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/char_p/two.lean | f2a0f581812fecb9950827bd1e6f934948d214c5 | [
"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 | 3,056 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.char_p.basic
/-!
# Lemmas about rings of characteristic two
This file contains results about `char_p R 2`, in the `char_two` namespace.
The lemmas in this... |
b994f5543bd61fa13d04c8620ce817de2be9ae38 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/preadditive/projective.lean | bcb2d2dd16182aaaa5369cafe366a28b532af117 | [
"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,540 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import algebra.homology.exact
import category_theory.types
import category_theory.limits.shapes.biproducts
/-!
# Projective objects and categories with... |
737e7728f6c0d5e0f8de5ccbd917df5e078e870c | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/basic.lean | 399c92ae73de50de64c2d4f4af9ffd496ec277f6 | [
"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 | 74,093 | 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, Jeremy Avigad
-/
import order.filter.ultrafilter
import order.filter.partial
import order.filter.small_sets
import algebra.support
/-!
# Basic theory o... |
a090bb2a16e4878f8c2598f08123a5405102224c | c777c32c8e484e195053731103c5e52af26a25d1 | /src/linear_algebra/pi_tensor_product.lean | 9e0ef6666844bbd98dbbc95348574f86314344b2 | [
"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 | 24,927 | 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, Eric Wieser
-/
import group_theory.congruence
import linear_algebra.multilinear.tensor_product
/-!
# Tensor product of an indexed family of modules over commutative... |
80260aa3dba8ea635231e00fa8f34d729bda5f8c | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/playground/task_test.lean | 06b85d2457c4a9581f23b378922af492120be6fe | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 494 | lean | def g (x : Nat) : Nat :=
dbgTrace ("g: " ++ toString x) $ λ _,
x + 1
def f1 (x : Nat) : Nat :=
dbgSleep 1000 $ λ _,
dbgTrace ("f1: " ++ toString x) $ λ _,
g (x + 1)
def f2 (x : Nat) : Nat :=
dbgSleep 100 $ λ _,
dbgTrace ("f2: " ++ toString x) $ λ _,
g x
def main (xs : List String) : IO UInt32 :=
let t1 := Task... |
ef5067da2087aa25270acd3f827f135ce2270c87 | 7b9ff28673cd3dd7dd3dcfe2ab8449f9244fe05a | /src/seul/tab.lean | c025782233d33c1ef9c01b695166f6660a0f6f3d | [] | 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 | 4,088 | lean | /- Propositional tableaux prover from Jeremy Avigad's lecture notes. -/
open expr tactic classical
variables {p q r s : Prop}
variables {a b c d e : Prop}
section
local attribute [instance] classical.prop_decidable
theorem not_or_of_imp (h : a → b) : ¬ a ∨ b :=
if ha : a then or.inr (h ha) else or.inl ha
th... |
029bfde0ba26b9af7af4f5821dbaa66ac8c4f09e | 50b3917f95cf9fe84639812ea0461b38f8f0dbe1 | /M1F/room_342_group_projects/rational_powers/rational_powers.lean | 0c2100a83c130797f8812798fadf96669e0ed62f | [] | no_license | roro47/xena | 6389bcd7dcf395656a2c85cfc90a4366e9b825bb | 237910190de38d6ff43694ffe3a9b68f79363e6c | refs/heads/master | 1,598,570,061,948 | 1,570,052,567,000 | 1,570,052,567,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,923 | lean | -- let's define the real numbers to be a number system which satisfies
-- the basic properties of the real numbers which we will need.
noncomputable theory
constant real : Type
@[instance] constant real_field : linear_ordered_field real
-- This piece of magic means that "real" now behaves a lot like
-- the real numb... |
3a44212fbf001ee2ec94187ae7016bd08ca3efc6 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/dedekind_domain/integral_closure.lean | 8116312cb9f077844a0124537804294ff721c3dc | [
"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 | 13,403 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import linear_algebra.free_module.pid
import ring_theory.dedekind_domain.basic
import ring_theory.localization.module
import ring_t... |
61df6da578e6690bf18db6d7fe32f0407d6d762f | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/logic/lemmas.lean | 88a0046c820692b9e7a80e0557d7c888eb962308 | [
"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 | 2,044 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import tactic.split_ifs
/-!
# More basic logic properties
A few more logic lemmas. These are in their own file, rather than `logic.basic`, because it is
convenient to b... |
6dca794c7606fe044f7b214df753ff63f14f6174 | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Init/WFTactics.lean | 8bb641818f7da1674948bad1c0aa6afdd3a39051 | [
"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",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 2,616 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.SizeOf
import Init.WF
/-- Unfold definitions commonly used in well founded relation definitions.
This is primarily intended for internal... |
68684aee07b87018a342a508749521c89fe9f0bd | 6950a6e5cebf75da9b91f42789baf52514655111 | /hol/boolean_free_HOL.lean | 0cba829c3d4904f24af8ef2f34a11ac3a4540e52 | [] | no_license | phlippe/Lean_hammer | a6d0a1af09fbce0c58b801032099b9b91d49ecf0 | 2116279b9c6b334f5b661e4abf4561368cca2391 | refs/heads/master | 1,587,486,769,513 | 1,561,466,931,000 | 1,561,466,931,000 | 169,705,506 | 0 | 1 | null | 1,550,228,564,000 | 1,549,614,939,000 | Lean | UTF-8 | Lean | false | false | 2,453 | lean | import .datastructures_hol
meta mutual def hol_type_wo_bool, hol_term_wo_bool, hol_formula_wo_bool
with hol_type_wo_bool : holtype → holtype
| e@(holtype.o) := holtype.ltype "boolean"
| e@(holtype.functor ts t) := holtype.functor (list.map (λ (tp : holtype), hol_type_wo_bool tp) ts) (hol_type_wo_bool t)
| e@(holtype.... |
b70a44571c5d81d78eb931f3883f7bd9b10331b9 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Elab/StructInst.lean | 6683395437daefcd6265a7bd51aa42222961f061 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,964 | 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.Util.FindExpr
import Lean.Elab.App
import Lean.Elab.Binders
import Lean.Elab.Quotation
namespace Lean.Elab.Term.StructInst
open Std (HashMap)
... |
aa06606f53439a4d61ec6c31384e079ade717da6 | ea6a4a10943d0b1966364cc23dbea151403b12cb | /src/examples.lean | 2c4bab85f957c38063d3ea91204b1302529b870f | [] | no_license | cipher1024/transport | 4ec290275f540261dd6ae86247eecc99abe0218a | 147a1ba17c1e4c0b19b7625a1a70f87458a7f705 | refs/heads/master | 1,584,163,354,251 | 1,530,778,876,000 | 1,530,778,876,000 | 131,463,521 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 985 | lean | import transport
open tactic tactic.interactive
meta def isolate {α} (tac : tactic α) : tactic unit :=
do e ← get_env,
tac,
set_env e
-- set_option profiler true
-- run_cmd do
-- mk_transportable_instance `group
-- run_cmd do
-- mk_transportable_instance `monoid
-- run_cmd do
-- mk_transportable_instance `... |
c81eecf017f76366a6b964b286d74c2628632799 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/simpZetaFalse.lean | e4a92a94bfdbdc83f47c4e81c6f5e288a0b44944 | [
"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 | 918 | lean | opaque f : Nat → Nat
axiom f_eq (x : Nat) : f (f x) = x
theorem ex1 (x : Nat) (h : f (f x) = x) : (let y := x*x; if f (f x) = x then 1 else y + 1) = 1 := by
simp (config := { zeta := false }) only [h]
trace_state
simp
#print ex1 -- uses let_congr
theorem ex2 (x z : Nat) (h : f (f x) = x) (h' : z = x) : (let y ... |
a6c0ba70deb8d1f5f6f05fde5b773b0afc74214c | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /primes.lean | 30838c747b8164ddf30afdd8a92bfb5c70de0c22 | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,167 | lean | import data.nat.prime
import tactic.norm_num
import data.nat.gcd
open nat
definition is_prime : nat → Prop
| zero := false
| (succ zero) := false
| (succ(succ x)) := ¬∃b c:nat,2≤b ∧ 2≤c ∧ b*c=succ(succ x)
definition product : list nat → nat
| list.nil := 1
| (n::L) := n * product L
theorem product_append: ∀L M:li... |
8408043f3b81b655fac2c3a3dd4ef15d9edc992f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Match/MatchEqsExt.lean | 68be6001ed566d587de8c2bbd8ed2450afda3fd6 | [
"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 | 1,206 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
namespace Lean.Meta.Match
structure MatchEqns where
eqnNames : Array Name
splitterName : Name
splitterAlt... |
2534f4ec65f2213ab1a1e8eec742711449bf814f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/dynamics/minimal.lean | 0f2dbe871cb8d27300c72fc18a698c8f8d0b2d8d | [
"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,047 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import group_theory.group_action.basic
import topology.algebra.const_mul_action
/-!
# Minimal action of a group
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
>... |
9b5b26cae5a40c870b9633f280998f0bcf7e7d43 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/logic/decidable.lean | 3c19f0bcadaa790902a93eb6b8eaa8287a86bd90 | [
"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 | 4,036 | 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 logic.connectives data.empty
inductive decidable [class] (p : Prop) : Type :=
inl : p → decidable p,
inr : ¬p → decidable p
namespace decidable... |
cee79d553feca7c9f896f2ee5680d9775e736a5f | 4c630d016e43ace8c5f476a5070a471130c8a411 | /set_theory/ordinal.lean | efa4751eaddc703dfe78538ea8f09f7df338af03 | [
"Apache-2.0"
] | permissive | ngamt/mathlib | 9a510c391694dc43eec969914e2a0e20b272d172 | 58909bd424209739a2214961eefaa012fb8a18d2 | refs/heads/master | 1,585,942,993,674 | 1,540,739,585,000 | 1,540,916,815,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 125,226 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Ordinal arithmetic.
Ordinals are defined as equivalences of well-ordered sets by order isomorphism.
-/
import order.order_iso set_theory.cardinal data.sum
noncomputable... |
d3614f50b1a44c978aeadecd60dabc3589c00b7e | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/tactic/norm_num.lean | b1fc7ea943a495eecfe314fcbb5fa46b528310ba | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 63,644 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
-/
import data.rat.cast
import data.rat.meta_defs
/-!
# `norm_num`
Evaluating arithmetic expressions including `*`, `+`, `-`, `^`, `≤`.
-/
universes u v w
n... |
dbb5602ef5247bce5741d87e702f743fb5445826 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/jacobson_ideal_auto.lean | dd62361e6fb3d8010607e336237cf8a8f21f35b4 | [] | 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 | 7,959 | lean | /-
Copyright (c) 2020 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Devon Tuma
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.ideal.operations
import Mathlib.ring_theory.polynomial.basic
import Mathlib.... |
2962419e0f9c868ab6163fb5fd68f7adf0be5b8e | 6df8d5ae3acf20ad0d7f0247d2cee1957ef96df1 | /ExamPractice/officeHoursExam2.lean | b27b8fa48af9af6bd48799b0ab434aeb17f163ec | [] | no_license | derekjohnsonva/CS2102 | 8ed45daa6658e6121bac0f6691eac6147d08246d | b3f507d4be824a2511838a1054d04fc9aef3304c | refs/heads/master | 1,648,529,162,527 | 1,578,851,859,000 | 1,578,851,859,000 | 233,433,207 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 481 | lean | def my_reverse {α : Type} : list α → list α
| list.nil := list.nil
| (list.cons h t) := list.append (my_reverse t) (list.cons h list.nil)
#eval my_reverse [1,2,3]
-- Look over translating from logic to english
-- looking at pEval
/-
def pEval : pExp → (var → bool) → bool
| (litExp b) i := b
| (varExp v) i := i v
| ... |
9c63afad8a93e71170d18e977d92b252d9fab199 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/topology/metric_space/baire.lean | 7a400cf2d405d2fdb3b152db6080577311494e70 | [
"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 | 13,819 | lean | /-
Copyright (c) 2019 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 analysis.specific_limits
import order.filter.countable_Inter
import topology.G_delta
/-!
# Baire theorem
In a complete metric space, a countable inters... |
51b30e6c8569aa4a86ecce967af6414f3487dc49 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/category/Top/open_nhds_auto.lean | 5ace4ab3a969f58a9cd01c63a2e46e0239a25b35 | [] | 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 | 4,737 | lean | /-
Copyright (c) 2019 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.topology.category.Top.opens
import Mathlib.category_theory.filtered
import Mathlib.PostPort... |
56dcec045698bf8ef234eacc2163f4f0bb8a0445 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/determinant.lean | a236e674c7bf3f597426ad75e6f35f1986fa2a91 | [] | 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,892 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.matrix.pequiv
import Mathlib.data.fintype.card
import Mathlib.group_th... |
e2279b0deb6365482c07ce121aecdca0f586589f | 0bd6c950c82dcba3e46dc8d8acb5ecc60b917520 | /inclusion_exclusion.lean | 4867418ccd61eeca7a03625fcd39644f5e0a239a | [] | no_license | truonghoangle/formalabstracts | 976dbbdede5c71346a3c534a8f319456248d4610 | b889ec60143315053a51b1829a5dc4d82ba503b3 | refs/heads/master | 1,584,899,948,798 | 1,537,184,894,000 | 1,537,184,894,000 | 140,428,980 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,526 | lean | import data.real.basic data.finset data.set.lattice data.nat.choose analysis.measure_theory.measurable_space analysis.measure_theory.measure_space
open real
namespace inclusion_exclusion_finset
variables α β : Type
instance :lattice.semilattice_inf_top (finset β)
:=
sorry
theorem inclusion_exclusion_usua... |
3d5f10f7b8e7db79a3276898caa9840274228603 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/unique_factorization_domain.lean | 29f8b4dd4830b51dffac8e725c7bc2197fb1b5b2 | [
"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 | 60,784 | 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, Jens Wagemaker, Aaron Anderson
-/
import algebra.big_operators.associated
import algebra.gcd_monoid.basic
import data.finsupp.multiset
import ring_theory.noetherian
im... |
22c8c0622fb694590e451ff52c86041e58eb75c4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/exceptional.lean | 23a12dc203d60ae263b4fc9170014f34798521bd | [] | 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 | 554 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.control.monad
import Mathlib.Lean3Lib.init.meta.format
import Mathlib.Lean3Lib.init.util
namespace Ma... |
811b0f62afe28aa45c274834e527562b9b4c2443 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/analysis/specific_limits.lean | b00b7efc62a61f17f977ff8f0165531dc098d544 | [
"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 | 8,024 | 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
A collection of specific limit computations.
-/
import analysis.normed_space.basic algebra.geom_sum
import topology.instances.ennreal
noncomputable theory
open_locale ... |
a2745859e616f389faea6c469b83ab6001327304 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/lazy_list2.lean | 5a56ba6ca5cef9d30c8a2c1bbfd316553a8d21d3 | [
"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 | 2,435 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Traversable instance for lazy_lists.
-/
import category.traversable.equiv category.traversable.instances data.lazy_list
universes u
namespace thunk
/-- Creates a thunk wi... |
c4a7797b7f894c4c19ef51cd7783216a964ff0f5 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/metric_space/basic.lean | 6e7507e211b4f18342ad90426bc81aae23b5310d | [
"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 | 102,428 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
-/
import data.int.interval
import topology.algebra.ordered.compact
import topology.metric_space... |
03d353e2381e22032aa855ab96959aba410ad830 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/metric_space/premetric_space.lean | e8051bc291d2bdfb913991c42fe5d966328d2390 | [
"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 | 3,517 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Premetric spaces.
Author: Sébastien Gouëzel
-/
import topology.metric_space.basic
/-!
# Premetric spaces
Metric spaces are often defined as quotients of spaces endowed with a "distance"
f... |
9ec2753e09d394c724617c00f6bec0f23c8d4a55 | 618003631150032a5676f229d13a079ac875ff77 | /src/group_theory/free_group.lean | 349cee0460f99faba954d358ec4fd35f1a5cad55 | [
"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 | 30,912 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Free groups as a quotient over the reduction relation `a * x * x⁻¹ * b = a * b`.
First we introduce the one step reduction relation
`free_group.red.step`: w * x * x⁻¹ * v ~... |
1b5af755b0a4cd6f14eebbe7da14a2b96aa7dc7c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/sheaves/presheaf_of_functions.lean | 8af745cef2109e38bb1d9ef0d0a4f8a68c6f7870 | [] | 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 | 6,821 | lean | /-
Copyright (c) 2019 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.category_theory.yoneda
import Mathlib.topology.sheaves.presheaf
import Mathlib.topology.cat... |
1818aebf13769c9d26bc42b5973de347b3f793d1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/witt_vector/witt_polynomial_auto.lean | 7b612002268ae95fefcc0a3bb34054498456f092 | [] | 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 | 7,757 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.invertible
import Mathlib.data.mv_polynomial.variables
import Math... |
c5984a90aa311be184a76b73baab5c169b852a9d | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/sym.lean | 4ec063baf4fbb80967f70c552691755b3a64aca4 | [
"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 | 4,623 | lean | /-
Copyright (c) 2020 Kyle Miller All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kyle Miller.
-/
import data.multiset.basic
import data.vector2
import tactic.tidy
/-!
# Symmetric powers
This file defines symmetric powers of a type. The nth symmetric power
consists o... |
34ba6599ff439f259f4f2a2a344062750a42496e | 47181b4ef986292573c77e09fcb116584d37ea8a | /src/for_mathlib/specific_limits.lean | 193fe7dc4e6d8f1a50a90c7d50384d30b2ceda3a | [
"MIT"
] | permissive | RaitoBezarius/berkovich-spaces | 87662a2bdb0ac0beed26e3338b221e3f12107b78 | 0a49f75a599bcb20333ec86b301f84411f04f7cf | refs/heads/main | 1,690,520,666,912 | 1,629,328,012,000 | 1,629,328,012,000 | 332,238,095 | 4 | 0 | MIT | 1,629,312,085,000 | 1,611,414,506,000 | Lean | UTF-8 | Lean | false | false | 5,816 | lean | import analysis.special_functions.pow
import data.set.function
import analysis.calculus.lhopital
import analysis.calculus.mean_value
import analysis.asymptotics.asymptotics
import analysis.asymptotics.asymptotic_equivalent
import analysis.asymptotics.specific_asymptotics
open filter asymptotics
open_locale filter topo... |
9f7f6eb46b66cee9741e647de2501075cedf550b | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/meta/widget/tactic_component.lean | 781fdd8dd7d2083b8eb5b5b402800d9121b14b52 | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 2,456 | lean | /-
Copyright (c) E.W.Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: E.W.Ayers
-/
prelude
import init.meta.widget.basic
namespace widget
/-- A component that implicitly depends on tactic_state. For efficiency we always assume that the tactic_state is unchanged ... |
260eb1ba4b65ea888d012d52574e844eacb77be3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/field_theory/minpoly.lean | 7e557e7356c60b55d54a6987ed08b3b2f222c784 | [
"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 | 19,196 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johan Commelin
-/
import data.polynomial.field_division
import ring_theory.integral_closure
import ring_theory.polynomial.gauss_lemma
/-!
# Minimal polynomials
This file ... |
b7026490bedf292687dbb9caa8f95b9dd3a75268 | e30ff3aabdac29f8ea40ad76887544d0f9be9018 | /ircbot/unicode.lean | ab0033e8f926a605187bb0c955e12ed6a5d0c347 | [] | no_license | forked-from-1kasper/leanbot | bdef0efa3e4d0eb75b06c1707fb4e35086bb57fa | c61c8c7fdad7b05877e0d232719ce23d2999557f | refs/heads/master | 1,651,846,081,986 | 1,646,404,009,000 | 1,646,404,009,000 | 127,132,795 | 12 | 1 | null | 1,605,183,650,000 | 1,522,237,998,000 | Lean | UTF-8 | Lean | false | false | 2,723 | lean | import data.buffer system.io
import ircbot.bitvec
namespace unicode
private def utf_8_convert_bitvec : list (bitvec 8) → option (list char)
-- 0xxxxxxx -- symbols from 0 to 7Fh
| (⟨ff :: tl₁, _⟩ :: chars) :=
list.cons (char.of_nat (bitvec.bits_to_nat tl₁)) <$> utf_8_convert_bitvec chars
-- 110xxxxx 10xxxxxx -- symb... |
29983be59fa40692872ae745934e923d3c403a8a | 431385f9e6a07bcb49fbcb5d7d1dc527cd33580a | /src/zfc.lean | 14639e171c51fd280b5572a51d82b5b7492a4627 | [] | no_license | maxkaske/zfolean | c853044cbff465b92269fafe1bd8e078e192b2f0 | b74bb7accf01b25a6efb3af6b06538f98e7e5a6c | refs/heads/master | 1,677,841,414,729 | 1,613,649,566,000 | 1,613,649,566,000 | 336,965,499 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 45,477 | lean |
import fol
import data.set
import tls_tactic
/-!
# ZFC set theory
In this file we define the signature and axioms of Zermelo–Fraenkel with axiom of choice
and give a natural deduction proof of the induction principle in its set theoretical form.
## Main results
- `omega_smallest_inductive_provable`:
we show ... |
72dbea1539f44b3815db797ba0e27c0e43ead2b9 | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/rules/aggregateProjectMerge.lean | bca36dd1c54a5d9e58742c4560ce297313c7acb0 | [
"BSD-2-Clause"
] | permissive | Shamrock-Frost/Cosette | b477c442c07e45082348a145f19ebb35a7f29392 | 24cbc4adebf627f13f5eac878f04ffa20d1209af | refs/heads/master | 1,619,721,304,969 | 1,526,082,841,000 | 1,526,082,841,000 | 121,695,605 | 1 | 0 | null | 1,518,737,210,000 | 1,518,737,210,000 | null | UTF-8 | Lean | false | false | 1,712 | lean | import ..extra_constants
import ..sql
import ..u_semiring
import ..tactics
import ..cosette_tactics
open SQL
open Proj
open Pred
open Expr
theorem rule :
forall (Γ scm_emp : Schema)
(rel_emp : relation scm_emp)
(emp_empno : Column datatypes.int scm_emp)
(emp_ename : Column datatyp... |
d5a04ced9b62f1905d90ebd9e1893023b8cf7075 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/group/prod.lean | c2ad58d818513a1d45feea9cf5a01b4d7f90f462 | [
"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 | 22,194 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.constructions.prod
import measure_theory.group.measure
/-!
# Measure theory in the product of groups
In this file we show properties about ... |
8f87ec54bbe94b6e15aab2edc4676415c2af717c | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/data/nat/sqrt.lean | e31b4db2452006997fcbe9fef4d4f5d44aed6883 | [
"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 | 7,869 | 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, Johannes Hölzl, Mario Carneiro
-/
import data.int.basic
/-!
# Square root of natural numbers
An efficient binary implementation of a (`sqrt n`) function that... |
81dc655baa293e391fe02dde4cbf63b2e3924f08 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Test/importMathbin/lakefile.lean | 003ffbc3c09646ca8f00b8f8956ad71044d6786c | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 246 | lean | import Lake
open Lake DSL System
package importMathbin where
defaultFacet := PackageFacet.oleans
dependencies := #[{
name := "mathlib3port",
src := Source.git "https://github.com/leanprover-community/mathlib3port.git" "master"
}]
|
153f474bf371f2739a6482aa771fa787425f7ab3 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/nat/bigops.lean | 5dd70a54e05da7ba284b7f54f17c419b64f042e2 | [
"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 | 7,907 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Finite products and sums on the natural numbers.
-/
import data.nat.basic data.nat.order algebra.group_bigops algebra.group_set_bigops
open list
namespace nat
ope... |
42ca3ccbd34b90a7ca628ba722f15cf92aeefc21 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/init/prod.lean | 275505d16bcfab0271873fb9cd61c32f861f0c5a | [
"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 | 3,693 | 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, Jeremy Avigad
-/
prelude
import init.num init.wf
definition pair [constructor] := @prod.mk
notation A × B := prod A B
-- notation for n-ary tuples
notation `(... |
01cc0f427b7829e71bfc9d44f3c8110704302ef3 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/axiom_code.lean | 740d9618373d02ed035fa36d7d4ec3ed0e72437a | [
"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 | 87 | lean | constant ax : nat
noncomputable def test : nat → nat
| 0 := ax
| (n+1) := test n
|
adf04c872fc9455b600efec29069a651c2203b43 | 69bc7d0780be17e452d542a93f9599488f1c0c8e | /prop_logic.lean | 625768ad68e617059cab7c03943857bd74477aa5 | [] | 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 | 1,662 | lean | namespace prop_logic
-- syntax
inductive var : Type
| mkVar : ℕ → var
inductive unOp : Type
| notOp
inductive binOp
| andOp
| orOp
inductive pExp
| litExp : bool → pExp
| varExp : var → pExp -- "variable expression"—like a "box with a variable in it"
| unOpExp : unOp → pExp → pExp
| binOpExp : binOp → pExp → pExp... |
13c482e61c42c14cb59675d5beda61565e5a6682 | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /library/init/algebra/ordered_ring.lean | 1e3c36c5be266955247ac378b0c99aa10511b6c3 | [
"Apache-2.0"
] | permissive | pcmoritz/lean | 6a8575115a724af933678d829b4f791a0cb55beb | 35eba0107e4cc8a52778259bb5392300267bfc29 | refs/heads/master | 1,607,896,326,092 | 1,490,752,175,000 | 1,490,752,175,000 | 86,612,290 | 0 | 0 | null | 1,490,809,641,000 | 1,490,809,641,000 | null | UTF-8 | Lean | false | false | 16,013 | 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
-/
prelude
import init.algebra.ordered_group init.algebra.ring
/- Make sure instances defined in this file have lower priority than the ones
... |
55128de5c2402286b141ab0ea53874268311ac5b | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/linear_algebra/sesquilinear_form.lean | 0ba2721ebfe3a9d6435ece1b5afef456827b5c10 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 8,614 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Andreas Swerdlow
-/
import algebra.module ring_theory.maps
/-!
# Sesquilinear form
This file defines a bilinear form over a module. The definition requires a ring antiautomorphism
... |
0839d06b6738d39df0c9fcc1dd7179ef5323a6d5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/polynomial/mirror.lean | e73d047aa1a969d34de419a809b8665c78cc0b8f | [
"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 | 8,534 | lean | /-
Copyright (c) 2020 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import algebra.big_operators.nat_antidiagonal
import data.polynomial.ring_division
/-!
# "Mirror" of a univariate polynomial
In this file we define `polynomial.m... |
a47e6ac5112fc41f060560a0283fef97f874804d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/proofIrrelFVar.lean | 53199e57679255a9787fe5ab664e16cc0f03422c | [
"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 | 169 | lean |
universe u
variable {α : Type u} {p : α → Prop}
theorem ex (a : α) (h1 h2 : p a) (h : Subtype.mk a h1 = Subtype.mk a h1) : Subtype.mk a h1 = Subtype.mk a h2 :=
h
|
e54e8e6ea7673aa20dc8d549fd96a23e2fa077cc | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/computability/partrec.lean | b48d7df3547fabe8aa355cb21946c0d5aacde79b | [
"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 | 28,900 | 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 computability.primrec
import data.nat.psub
import data.pfun
/-!
# The partial recursive functions
The partial recursive functions are defined similarly to th... |
2ce7f3bc07d096c7a6c83963a36027f729037d2f | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/order/filter/cofinite.lean | 7c92a035b2a53a9f1ad895c7d1bc5ff439256480 | [
"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 | 7,085 | 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, Jeremy Avigad, Yury Kudryashov
-/
import order.filter.at_top_bot
/-!
# The cofinite filter
In this file we define
`cofinite`: the filter of sets with finite compleme... |
d4dfd30740b46b3f068548b78f3c5a550c8397ba | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/abelian/transfer.lean | 1ce54b6ef630ba86f5481e8a6893ac56193d5560 | [
"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 | 8,540 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.abelian.basic
import category_theory.limits.preserves.shapes.kernels
import category_theory.adjunction.limits
/-!
# Transferring "abelian-ness... |
51e4f3bc0efd749fc4e3f74f402fcec690242348 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/project_1_a_decrire/lean-scheme-submission/src/to_mathlib/localization/localization_of.lean | 74f3ef85082f9f6c0db8e5fddf2807969c0fbbbb | [] | 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 | 969 | lean | /-
is_localization from is_localization_data.
-/
import ring_theory.localization
import to_mathlib.localization.localization_alt
universe u
open localization_alt
variables {α : Type u} [comm_ring α]
variables (S : set α) [is_submonoid S]
open localization
noncomputable lemma localization.of.is_localization_da... |
a22fcc2e68df6b05061abe2006ec2d2926634138 | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Lean/Compiler/IR/Borrow.lean | baa8c9e602c24e1fdc3833ccec17918f99720950 | [
"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 | 11,049 | 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.Nat
import Init.Lean.Compiler.ExportAttr
import Init.Lean.Compiler.IR.CompilerM
import Init.Lean.Compiler.IR.NormIds
namespace Lea... |
3821b881add810ad9d96da425f0c4964bf20b4c0 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/data/rat/cast.lean | 7c6d2bce183c1a92c22cca6a75c705c4b8625109 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 14,648 | 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
-/
import data.rat.order
import data.int.char_zero
import algebra.field.opposite
/-!
# Casts for Rational Numbers
## Summary
We define the canonical i... |
ac4f24dba17e0fe5f87ab892a9ac88ab28e3704d | 6e9cd8d58e550c481a3b45806bd34a3514c6b3e0 | /src/algebra/group_with_zero.lean | 4a82570d3f47c9e88c944bf54e3104550aae5263 | [
"Apache-2.0"
] | permissive | sflicht/mathlib | 220fd16e463928110e7b0a50bbed7b731979407f | 1b2048d7195314a7e34e06770948ee00f0ac3545 | refs/heads/master | 1,665,934,056,043 | 1,591,373,803,000 | 1,591,373,803,000 | 269,815,267 | 0 | 0 | Apache-2.0 | 1,591,402,068,000 | 1,591,402,067,000 | null | UTF-8 | Lean | false | false | 20,775 | 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.units
import algebra.ring
import tactic.push_neg
/-!
# Groups with an adjoined zero element
This file describes structures that are not usually... |
add0836cf563fe6785540bdb0befb9757fb8594b | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/field_theory/galois.lean | f1460cb6a20461a59ab38a7b411a8b1b2e39cd65 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,783 | lean | /-
Copyright (c) 2020 Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Patrick Lutz
-/
import field_theory.normal
import field_theory.primitive_element
import field_theory.fixed
import ring_theory.power_basis
/-!
# Galois... |
555751bd9ac09b64b90197519d18113e224ba3be | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1F/problem_bank/0105/S0105.lean | e6d68d4929d1942392837b278f6be12927da45c2 | [
"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 | 2,108 | lean | inductive zfc : Type
| empty : zfc
| insert : zfc → zfc → zfc
instance : has_emptyc zfc := ⟨zfc.empty⟩
instance : has_insert zfc zfc := ⟨zfc.insert⟩
instance : has_zero zfc := ⟨{}⟩
instance : has_one zfc := ⟨{0}⟩
def succ (a : zfc) : zfc := has_insert.insert a a
def zfc_add : zfc → zfc → zfc
| m 0 := m
| m (zfc.in... |
f7a02e8a5ae798a6666970a539cbeb926affb224 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/algebraic_geometry/presheafed_space/gluing.lean | 94ef63d65c7281454dab1ffe224a854a0517b0c7 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 26,258 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import topology.gluing
import algebraic_geometry.open_immersion
import algebraic_geometry.locally_ringed_space.has_colimits
/-!
# Gluing Structured spaces
Given a family ... |
6eb9f3b1b071dedb2292635dafecca43b293f239 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/well_founded_set.lean | 5ae940977844e4c6d77123a73404059ac36e3ebd | [
"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 | 29,096 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import order.antichain
import order.order_iso_nat
import order.well_founded
/-!
# Well-founded sets
A well-founded subset of an ordered type is one on which the rel... |
2315f5f5312e78dffe7cc4cf8ebee75ba9cde63f | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/continued_fractions/computation/basic.lean | de055bf3deaaec4d8c0d294adc31ac414406943f | [
"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 | 7,892 | 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.basic
import algebra.ordered_field
import algebra.archimedean
/-!
# Computable Continued Fractions
## Summary
We formalise th... |
3991a3a30b142a709c756a9423df63b27d987b08 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/fintype/intervals.lean | e546306acdca29a48c25e96707ae4e543eab27aa | [] | 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,501 | lean | /-
Copyright (c) 2019 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.data.set.intervals.default
import Mathlib.data.set.finite
import Mathlib.data.pnat.interval... |
0182ffcbb6a75c9194d60ed7636c3514ea1c94d5 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/Do.lean | 35da6b130c1e31891be04df667f42f76da825e6a | [
"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 | 69,541 | 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.Term
import Lean.Elab.BindersUtil
import Lean.Elab.PatternVar
import Lean.Elab.Quotation.Util
import Lean.Parser.Do
-- HACK: avoid code ex... |
c5d076f71d6bdbbc13434e2854da94787df9fd4d | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /hott/algebra/groupoid.hlean | ab7e0ef0eeb76f2ddd509995b84e4c22e602b92d | [
"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 | 2,829 | hlean | -- Copyright (c) 2014 Jakob von Raumer. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Jakob von Raumer
-- Ported from Coq HoTT
import .precategory.basic .precategory.morphism .group
open eq function prod sigma truncation morphism nat path_algebra unit
structure... |
d02cfb692f968668c32a31f22bb351dd49145661 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/match4.lean | 6768547a429821ea5217f8e938bb2786fad04e65 | [
"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 | 527 | lean | open nat bool inhabited prod
definition diag (a b c : bool) : nat :=
match (a, b, c) with
| (b, tt, ff) := 1
| (ff, b, tt) := 2
| (tt, ff, b) := 3
| (b1, b2, b3) := arbitrary nat
end
theorem diag1 (a : bool) : diag a tt ff = 1 :=
bool.cases_on a rfl rfl
theorem diag2 (a : bool) : diag ff a tt = 2 :=
b... |
a71c25b615df2085179171ad7c4150b660724ba9 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Meta/Tactic/Rewrite.lean | 83bfe3fb1c6f0a68864e9b4b037e6f21eebaa252 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,732 | 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.Meta.AppBuilder
import Lean.Meta.MatchUtil
import Lean.Meta.KAbstract
import Lean.Meta.Check
import Lean.Meta.Tactic.Apply
namespace Lean.Meta
... |
dd8a50a01b6e1f68ada7730c82edcf14f5041f8c | a7602958ab456501ff85db8cf5553f7bcab201d7 | /Notes/Logic_and_Proof/Chapter9/9.10.lean | 3cbc043184621e0376acb27a05da42145deecdf4 | [] | no_license | enlauren/math-logic | 081e2e737c8afb28dbb337968df95ead47321ba0 | 086b6935543d1841f1db92d0e49add1124054c37 | refs/heads/master | 1,594,506,621,950 | 1,558,634,976,000 | 1,558,634,976,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,006 | lean | -- 9.1 Functions, Predicates, and Relations
-- In these specific examples, |constant| can be replaced with |variable|.
-- This interchangeability is not always the case though, as |constant|s are a
-- little more powerful than |variable|s, since they add a new object to Lean
-- essentially, they can be referenced else... |
a0372ffc66aa33330d5be74c21c0370d4be223e1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/continued_fractions/continuants_recurrence_auto.lean | 631c027a84232e42d25ace8a3a1ababa3ac60fdc | [] | 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 | 3,530 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.continued_fractions.translations
import Mathlib.PostPort
universes u_1
names... |
038be899cfb3a399168ee0167176792ba1905be3 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/thm95/constants/spectral_constants.lean | 90a23d74dca46f9c27a56c02022d2a97b9e2f8f0 | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,106 | lean | import polyhedral_lattice.cosimplicial
/-!
# Explicit formulas for the constants in theorem 9.5
-/
noncomputable theory
open_locale nnreal
namespace system_of_double_complexes
namespace normed_spectral
noncomputable
def ε : Π (m : ℕ) (K : ℝ≥0), ℝ≥0
| 0 K := (2 * K)⁻¹
| (m+1) K := ε m (K * (K * K + 1))
lemma ε_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.