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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d03ffb9df3f3ec948308bee36f652d706c5dbaf8 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/algebra/ring/pi.lean | 1198dc4287617c47f2aed76514f003b3e38157f3 | [
"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 | 3,064 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import tactic.pi_instances
import algebra.group.pi
import algebra.ring.basic
/-!
# Pi instances for ring
This file defines instances for ring, semiring an... |
a36a22d34caa5aa9405f4d25108a19adc9cdac78 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/all_auto.lean | 55db652dfe9861e6db215f9c0aaccdf444821151 | [] | 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 | 8,378 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.Lean3Lib.data.buffer
import Mathlib.Lean3Lib.data.buffer.parser
import Mathlib.Lean3Lib.data.dlist
import Mathlib.Lean3Lib.data.lazy_list
import Mathlib.Lean3Lib.data.rbmap.default
import Mathlib.Lean3Lib.data.rbtree.basic
import Mathlib.Lean3Li... |
87a1d4524e89db53b4b6c7293b05441b07b894ea | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/products/associator.lean | f1b340d0b875022028297c23e547ec1cd328ad94 | [
"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 | 1,825 | 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 category_theory.products.basic
/-!
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib... |
2b35077c72859c39b909fbf2d2723e6ce7d34021 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch6/ex0204.lean | eea7befd86a4cdbe2e663881c5dfc9915d570588 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 344 | lean | section
variables (x y z : ℕ)
variables (h₁ : x = y) (h₂ : y = z)
section
variables {x y z}
include h₁ h₂
theorem foo : x = z :=
begin
rw [h₁, h₂]
end
end
theorem bar : x = z :=
eq.trans h₁ h₂
variable {x}
theorem baz : x = x := rfl
#check @foo
#check @bar
#check ba... |
2b3c44536c1361e7aab18412abb792f7cf245f31 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /tests/lean/run/matchDiscrType.lean | f3db24705bc37a2d06a51e93f9a745a712bf790c | [
"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 | 259 | lean |
def g (x : Nat) : List (Nat × List Nat) :=
[(x, [x, x]), (x, [])]
def h (x : Nat) : List Nat :=
let xs := g x $.filter (fun ⟨_, xs⟩ => xs.isEmpty)
xs.map (·.1)
theorem ex1 : g 10 = [(10, [10, 10]), (10, [])] :=
rfl
theorem ex2 : h 10 = [10] :=
rfl
|
e80c077eade5af927af7691d0efe74ada8fa695f | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/algebra/category/constructions/discrete.hlean | 553f1fce08b14693b5d1ee53d9331e5a555d8daf | [
"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,834 | hlean | /-
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
Discrete category
-/
import ..groupoid types.bool ..nat_trans
open eq is_trunc iso bool functor nat_trans
namespace category
definition precategory_of_1_type... |
e3c84d53f9892b80065388dc06d169c63fbc97c1 | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /src/util/category.lean | 598dae5cc41a3f02cfd37589defa62f72b8ee840 | [] | no_license | unitb/lean-lib | 560eea0acf02b1fd4bcaac9986d3d7f1a4290e7e | 439b80e606b4ebe4909a08b1d77f4f5c0ee3dee9 | refs/heads/master | 1,610,706,025,400 | 1,570,144,245,000 | 1,570,144,245,000 | 99,579,229 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,519 | lean |
universes u v w
variables {k : Sort u}
class has_comp (cat : k → k → Sort v) :=
(comp : ∀ {α β γ}, cat β γ → cat α β → cat α γ)
infixl ` <<< `:2 := has_comp.comp _
class semigroupoid (cat : k → k → Sort v) extends has_comp cat :=
(assoc : ∀ {α β γ φ} (x : cat γ φ) (y : cat β γ) (z : cat α β),
( x ... |
eee09c1f9888f671e65ad07f6b2c8eeba0b142f1 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /hott/algebra/category/functor/adjoint.hlean | 7121c9af77579345b062cf975faf2ef5b596d9a8 | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,119 | hlean | /-
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
Adjoint functors
-/
import .attributes .examples
open functor nat_trans is_trunc eq iso prod
namespace category
structure adjoint {C D : Precategory} (F : C ⇒... |
6564a21267d3da08e178992610a637b0d082007f | 892c0ca8b8ddfe17a2c64fb7b721f9e2d9287539 | /typing.lean | 787f1ff02968eee7b84ebc937055d3111670ec90 | [] | no_license | ssomayyajula/stlc | f7ef96de541f9519b00912337332366317282dce | cf92bf387b4418f9a6261c7ea4876db4e4280dd2 | refs/heads/master | 1,630,729,373,254 | 1,516,045,347,000 | 1,516,045,347,000 | 115,835,353 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 670 | lean | import .syntax .partial_fun
def ctx := partial_fun var type
inductive has_type_under : ctx → term → type → Prop
| unit {Γ : ctx} :
has_type_under Γ term.unit type.unit
| var {Γ : ctx} {x : var} {τ : type} :
Γ x = τ → has_type_under Γ (term.var x) τ
| abs {Γ : ctx} {x : var} {e : term} {τ τ' : type} :
ha... |
a398ed893929cd2b3cad6475fe6f62d41010ba58 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/analysis/complex/polynomial.lean | 8624aa6e4e4def4f2329dd8049c880e6a96cccc8 | [
"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 | 6,120 | lean | /-
Copyright (c) 2019 Chris Hughes All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import topology.algebra.polynomial
import analysis.special_functions.pow
/-!
# The fundamental theorem of algebra
This file proves that every nonconstant complex polynom... |
73ec5d4bcf504dc0ca028e74138b11c9638d2728 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/polynomial/ring_division.lean | 2a734268ffeddb62dba0a1d0c8d1f10f7c831b46 | [
"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 | 22,781 | 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, Johan Commelin
-/
import data.polynomial.basic
import data.polynomial.div
import data.polynomial.algebra_map
import data.se... |
39ec0c694e6c790a3bb0b20a1f45c1c56531c952 | 96e8eaa491186a6ce9be9623f5e3f16221c3bd46 | /orthogonal.lean | 8bbd7bb46489fdd16b6d47eed2272e2ef9c539a8 | [] | no_license | drocta/orthogonal-free-surjective | fb2b37b7ab86e67306d7206380b5a62ec2d9f413 | 6523bdbc7479a62155aae3405c6b00b5673b4b75 | refs/heads/master | 1,588,319,668,013 | 1,554,352,615,000 | 1,554,352,615,000 | 177,363,555 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 466 | lean |
import category_theory.category
open category_theory
universes u_1 v_1
section
variables (C : Type u_1) [CC : category.{v_1 u_1} C]
include CC
def orthogonal {A B X Y : C} (i : has_hom.hom A B) (p : has_hom.hom X Y) :=
forall (f : has_hom.hom A X) (g : has_hom.hom B Y) ,
(category_struct.comp f p = category_st... |
d5ffb8a486eedb2af9880f01db53de88357edea9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/Fintype.lean | 88859580d7d56c6ab0a8fbbe6ef68ca6ca89e4ab | [
"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 | 4,304 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Adam Topaz
-/
import category_theory.concrete_category.basic
import category_theory.full_subcategory
import category_theory.skeletal
import data.fin.basic
import data.fintyp... |
a71582a5fffcacb0862e2f54ea4b35e19996e30d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/pfunctor/multivariate/basic_auto.lean | 63633109410e06d286d5da3374c414eec05e32be | [] | 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 | 8,339 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.control.functor.multivariate
import Mathlib.data.pfunctor.univariate.default
impo... |
3c22abb1cfd75acba812bf5a039b1120242fc9c6 | 67190c9aacc0cac64fb4463d93e84c696a5be896 | /Lists of exercises/List 3/PHP-LucasDomingues.lean | 31f3e36a0f283194d268726685f8f575d86dca0b | [] | no_license | lucasresck/Discrete-Mathematics | ffbaf55943e7ce2c7bc50cef7e3ef66a0212f738 | 0a08081c5f393e5765259d3f1253c3a6dd043dac | refs/heads/master | 1,596,627,857,734 | 1,573,411,500,000 | 1,573,411,500,000 | 212,489,764 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,227 | lean | -- Pij means pigeon i is in pigeonhole j
variables P11 P12 P21 P22 P31 P32 : Prop
/- I have to prove that: if there are three pigeons and two pigeonholes
(and each pigeon are in a pigeonhole), there will be at least two pigeons
in the same pigeonhole:
(P11 ∨ P12) ∧ (P21 ∨ P22) ∧ (P31 ∨ P32) →
((P11 ∧ P21) ∨ (P11 ∧ P3... |
db7a9c6c85f4235d325c76639c102e3e7e158058 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /tests/lean/run/array1.lean | e46798992eb18021f158d4c1e9d55ce6d1213971 | [
"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 | 2,377 | lean |
#check @Array.mk
def v : Array Nat := @Array.mk Nat 10 (fun ⟨i, _⟩ => i)
def w : Array Nat :=
(mkArray 9 1).push 3
#check @Array.casesOn
def f : Fin w.sz → Nat :=
@Array.casesOn _ (fun w => Fin w.sz → Nat) w (fun _ f => f)
def arraySum (a : Array Nat) : Nat :=
a.foldl Nat.add 0
#eval mkArray 4 1
#eval Array.map... |
f353595545bc985465186a958d0fa0a6b3dc8951 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/data/fintype/basic.lean | 478b716abc36d0458ea84db85c9bb77f64e675a4 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 42,441 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset
import data.array.lemmas
universes u v
variables {α : Type*} {β : Type*} {γ : Type*}
/-- `fintype α` means that `α` is finite, i.e.... |
8c88cdefaf61b2ad1f2a6ec992755d0fac7a67b3 | 44023683920a51f2416cf51eeab3fc51c3ff0765 | /leanpkg/leanpkg/resolve.lean | 4f0489a6f59cd13e4d07315a0410ebb0d983acc3 | [
"Apache-2.0"
] | permissive | pirocks/lean | e6e3e3fd20c5e7877f7efc3b50e5e20271e8d0cf | 368f17d0b1392a5a72c9eb974f15b14462cc1475 | refs/heads/master | 1,620,671,385,768 | 1,516,152,564,000 | 1,516,152,564,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,894 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import leanpkg.manifest system.io leanpkg.proc leanpkg.git
variable [io.interface]
namespace leanpkg
def assignment := list (string × string)
namespace assign... |
143b1c5e3634e51a40bd34a11cf1266b90a80b91 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/list/basic.lean | 7b6478fd8c85a7e4111343a6275f649561ac41d0 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 204,483 | lean | /-
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, Mario Carneiro
-/
import control.monad.basic
import data.nat.basic
import order.rel_classes
import algebra.group... |
c145fbb8fb5898a10810bb738058777d4c3bd585 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/part.lean | b3c27269773cfbcc8969233479537875abf3ccc0 | [
"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 | 24,369 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Jeremy Avigad, Simon Hudon
-/
import data.set.basic
import logic.equiv.basic
/-!
# Partial values of a type
This file defines `part α`, the partial values of a type.
... |
e633bcd1b0a5d832fd26fc11547a8ea6126390a4 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/Modularity.lean | 8cebfde74c7dbcda44f3e007326c1d92bb977ebf | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,705 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section Modularity
structure Modularity (A : Type) : Type :=
(times : (A → (A → A)))
(plus : (A → (A → A)))
(leftModular_times_plus : (∀ {x y z : A} , (plus (tim... |
612c653a3bac098db2bdad4622d4b83268560a24 | e0b0b1648286e442507eb62344760d5cd8d13f2d | /src/Lean/Parser/Term.lean | 2dd3ac4847540fad8c4c782e93477f9aa829136f | [
"Apache-2.0"
] | permissive | MULXCODE/lean4 | 743ed389e05e26e09c6a11d24607ad5a697db39b | 4675817a9e89824eca37192364cd47a4027c6437 | refs/heads/master | 1,682,231,879,857 | 1,620,423,501,000 | 1,620,423,501,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,482 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Attr
import Lean.Parser.Level
namespace Lean
namespace Parser
namespace Command
def commentBody : Parser :=
{ fn := ... |
25b8e816f5a67ab322eea5ba255d4ffd208efd84 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/analysis/calculus/tangent_cone.lean | 71b072e7da9ecb664cbc22c59c3353125e7f663c | [
"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 | 18,631 | 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
In this file, we define two predicates `unique_diff_within_at 𝕜 s x` and `unique_diff_on 𝕜 s`
ensuring that, if a function has two derivatives, then they have t... |
1447c958370819a4ef40d4386f27ef2ac016c5a6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/meta.lean | b2451c565095d1273a3b7857238a81a8fcff6a32 | [
"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,766 | lean | import Lean
open Lean
open Meta
def execShow (x : MetaM Expr) : MetaM Unit := do
let e ← x
IO.println (← ppExpr e)
/-
The `MetaM` has an ambient local context.
The local context contains the types of the free variables.
-/
def mkLam1 : MetaM Expr :=
/- The following `withLocalDecl` extends the local context w... |
92994b25423d9e1dfa2e75c2df517cb10feeffdd | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/real/pi.lean | cb3714e1218006c94ed0fcdda3ad556649cf3f86 | [
"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 | 19,467 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Benjamin Davidson
-/
import analysis.special_functions.integrals
/-!
# Pi
This file contains lemmas which establish bounds on or approximations of `real.pi`. Notab... |
5d51dbbce9cbcdb3ff6090121f6d9ef48bf18ce4 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /stage0/src/Lean/Elab.lean | 5f5495ee352f9ef230f335460049619c43864af6 | [
"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 | 872 | 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
-/
import Lean.Elab.Import
import Lean.Elab.Exception
import Lean.Elab.Command
import Lean.Elab.Term
import Lean.Elab.App
import Lean.Elab.Binders
import Lean.... |
4feb55c7aa8cf116d5d2b4c5d972713f1dffc4f6 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/rat/order.lean | 808c809b3295febc446e43db0ef2e49650e03606 | [
"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 | 8,730 | 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.basic
/-!
# Order for Rational Numbers
## Summary
We define the order on `ℚ`, prove that `ℚ` is a discrete, linearly ordered field,... |
e214c0286ce42d76129a7238fbc6ccb9b3543fb1 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/group_theory/perm/cycles.lean | 69af662e1938342a4775c93e14092408906fb8e1 | [
"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 | 58,404 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.nat.parity
import data.equiv.fintype
import group_theory.perm.sign
import data.finset.noncomm_prod
/-!
# Cyclic permutations
## Main definitions
In the foll... |
59b1b0f7b9c59555f2f79826dc8de0c62dec4b08 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/algebra/floor.lean | 825e20b3083e8b56814584c12b30d7a0103f73d8 | [
"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 | 9,747 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Kappelmann
-/
import tactic.linarith
import tactic.abel
/-!
# Floor and Ceil
## Summary
We define `floor`, `ceil`, and `nat_ceil` functions on linear ordered ri... |
602a6f08004f926f4e4ccd2492ecff162d5f7af6 | 26753ee5c24fdf1d3ec0573c2d872888ba40ef02 | /tests/examplefiles/lean/test.lean | 2c8b135888a5ab52987fa13d0c7e28f913f23a24 | [
"BSD-2-Clause"
] | permissive | kirito330824/pygments | 6df5e3dfb1e970e5852910b8018899ccd13054f9 | e71a4b85ed629a2ffccba8ee2a2846c2b5f145c9 | refs/heads/668 | 1,682,652,792,198 | 1,621,599,051,000 | 1,621,599,051,000 | 350,882,964 | 2 | 1 | BSD-2-Clause | 1,620,611,012,000 | 1,616,541,018,000 | Python | UTF-8 | Lean | false | false | 8,611 | 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
Zorn's lemmas.
Ported from Isabelle/HOL (written by Jacques D. Fleuriot, Tobias Nipkow, and Christian Sternagel).
-/
import data.set.lattice
noncomputable theory
univ... |
7919178df659cea28d21017a9deeddf5afec1c41 | 00d2363f9655e2a7618f6b94dda7e2c4e5cf8d19 | /lean_modifications/interactive_base_modifications.lean | c1d1023dfde7150c612fb6d3bcdafc5d0933a8cd | [
"Apache-2.0"
] | permissive | devjuice1/lean_proof_recording | 927e276e2ab8fb1288f51d9146dcfbf0d6444a87 | bf7c527315deccd35363fa7ca89d97d7b9cb6ac1 | refs/heads/master | 1,692,914,925,585 | 1,633,018,872,000 | 1,633,018,872,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,171 | lean | /- This is a staging area for code which will be inserted
into a Lean file.
The code to be inserted is between the line comments
`PR BEGIN MODIFICATION` and `PR END MODIFICATION`
It will be inserted by `insert_proof_recording_code.py`.
Insert info:
- file: `_target/lean/library/init/meta/interactive_base.lean`
... |
fe704e332a6c74ae8f25c54741a33e1e39f6c30b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/constructions/borel_space.lean | 53284c77942ba42f040d95791b7a0d35825aa6ec | [
"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 | 93,803 | 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, Yury Kudryashov
-/
import analysis.complex.basic
import analysis.normed_space.finite_dimension
import measure_theory.function.ae_measurable_sequence
import measure_theo... |
6f7c11db0cd87982515a8ade4412233145bea965 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/group_theory/group_action/prod.lean | b51322ab9e2f14a0a1b8970c5b8726bc670355a5 | [
"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,275 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot, Eric Wieser
-/
import algebra.group.prod
/-!
# Prod instances for additive and multiplicative actions
This file defines instances for binary product of addi... |
17ea5078b84981322dbe16e748877a6646fa432f | 6e4b1527dfc11d1b56419f0d747c66d3b258260b | /src/parsing/core.lean | fcc88dfd645bf070069981197c9794b4a5f8a3bb | [
"Apache-2.0"
] | permissive | jroesch/parsing | 7860046a3b96dd3695f25e274034de518a2da7c6 | 8ac39e59498d33b674fda526bfef44af66ca9df8 | refs/heads/master | 1,626,501,031,276 | 1,508,386,101,000 | 1,508,386,101,000 | 107,495,434 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,450 | lean | import data.buffer data.dlist
instance (α : Type) [has_to_string α] : has_to_string (buffer α) :=
⟨ fun b, to_string $ b.to_list ⟩
universes u v
inductive parse_result (α : Type u)
| done (pos : ℕ) (result : α) : parse_result
| fail (pos : ℕ) (expected : dlist string) : parse_result
def parser (elem : Type v) (α : ... |
44489e4bef1e649031233bdf558f0c4a99ddd555 | 3863d2564418bccb1859e057bf5a4ef240e75fd7 | /hott/init/path.hlean | 6406a00b108697e501469e1cb1a1ac2198deffbd | [
"Apache-2.0"
] | permissive | JacobGross/lean | 118bbb067ff4d4af48a266face2c7eb9868fa91c | eb26087df940c54337cb807b4bc6d345d1fc1085 | refs/heads/master | 1,582,735,011,532 | 1,462,557,826,000 | 1,462,557,826,000 | 46,451,196 | 0 | 0 | null | 1,462,557,826,000 | 1,447,885,161,000 | C++ | UTF-8 | Lean | false | false | 28,476 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Jakob von Raumer, Floris van Doorn
Ported from Coq HoTT
-/
prelude
import .function .tactic
open function eq
/- Path equality -/
namespace eq
variables {A ... |
e1014432ecfb3bdfd49ec9bc0f11d85eae71cce3 | 3aad12fe82645d2d3173fbedc2e5c2ba945a4d75 | /src/data/serial/medium.lean | aa440e30bc655f3f76f9a3b2c97076b70eed1463 | [] | no_license | seanpm2001/LeanProver-Community_MathLIB-Nursery | 4f88d539cb18d73a94af983092896b851e6640b5 | 0479b31fa5b4d39f41e89b8584c9f5bf5271e8ec | refs/heads/master | 1,688,730,786,645 | 1,572,070,026,000 | 1,572,070,026,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,442 | lean |
import tactic
import logic.basic
import category.nursery
import category.liftable
universes u v w
namespace medium
variables w : Type
inductive put_m' (w : Type) (α : Type u)
| pure {} : α → put_m'
| write : w → (unit → put_m') → put_m'
abbreviation put_m : Type → Type u := λ w, put_m' w punit
variables {w}
def... |
5d3dbb2cecc6f6046190f1b4e53b6d5794dca3b8 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Elab/Term.lean | 8321f112adeb873e97137a16c705a4ca93498ab5 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 72,143 | 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
-/
import Lean.ResolveName
import Lean.Util.Sorry
import Lean.Util.ReplaceExpr
import Lean.Structure
import Lean.Meta.ExprDefEq
import Lean.Meta.AppBuilder
imp... |
7ab666d4b3e5cff52d3ca51fde63ac91b9c43b8c | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/convex/star.lean | 9701796bbe1c735ba2d54187acceb21a224d7d66 | [
"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 | 16,724 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import analysis.convex.basic
/-!
# Star-convex sets
This files defines star-convex sets (aka star domains, star-shaped set, radially convex set).
A set is star-convex ... |
9bde3476fab7a01b7e2df4c1697d86771fb9415d | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/native/config.lean | 92aa0f6c592bce4040f321dd766cc45b5e50233e | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 293 | lean | /-
Copyright (c) 2016 Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch
-/
prelude
import init.data.bool.basic
namespace native
-- eventually expose all the options here
record config :=
(debug : bool)
end native
|
d3a35d469637d5c99e0ffe90c88ba2b1f6d2720c | 19e80d9dcdc050ba32a44257170460f6eb2f174b | /euler_old.lean | a454fe8e1b86e369c87add2afdb87211e8f95bb3 | [] | no_license | petersonbill64/lean | d36d7d93d0f1e4e5618f1426d41567e33a0da6fc | 07b7b69e15785c75ebba6629be4fad92799fd7de | refs/heads/master | 1,609,627,927,456 | 1,438,537,533,000 | 1,438,537,533,000 | 40,084,227 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,489 | lean | import data.nat.div data.nat.gcd data.nat.sub data.set tools.fake_simplifier logic
open nat set eq.ops well_founded decidable fake_simplifier prod bool
check decidable
private definition sum_cond_map.F (P : ℕ → ℕ → Prop) (H: ∀ p q : ℕ, decidable (P p q)) (T : ℕ → ℕ) (n : ℕ) (m : ℕ) : (Π m₁ : ℕ, m₁ < m → ℕ) ... |
1c875534f61a8f0b73e0a1c05b46b0ab95646b70 | 217bb195841a8be2d1b4edd2084d6b69ccd62f50 | /library/init/data/rbtree/basic.lean | 0c124fe7350200b6cfe96738870d29793fdce727 | [
"Apache-2.0"
] | permissive | frank-lesser/lean4 | 717f56c9bacd5bf3a67542d2f5cea721d4743a30 | 79e2abe33f73162f773ea731265e456dbfe822f9 | refs/heads/master | 1,589,741,267,933 | 1,556,424,200,000 | 1,556,424,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,726 | lean | /-
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.rbmap.basic
universes u v w
def RBTree (α : Type u) (lt : α → α → Bool) : Type u :=
RBMap α Unit lt
@[inline] def mkRBTree (α : T... |
cddc95fc27c7c44624ecd9aebdb98c95cd15fc88 | ccb7cdf8ebc2d015a000e8e7904952a36b910425 | /src/prop.lean | 74e86c84a2ca8ff533b2ef22dec8af58521ab0f4 | [] | no_license | cipher1024/lean-pl | f7258bda55606b75e3e39deaf7ce8928ed177d66 | 829680605ac17e91038d793c0188e9614353ca25 | refs/heads/master | 1,592,558,951,987 | 1,565,043,356,000 | 1,565,043,531,000 | 196,661,367 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 41,311 | lean |
import heap.lemmas misc
import tactic.monotonicity
import tactic.library_search
import logic.basic
namespace separation
open memory finmap
variables value : Type
def hProp := heap value → Prop
variables {value}
include value
local notation `heap` := heap value
local notation `hProp` := hProp value
local notation ... |
a9448f7a5d35a687d0d21fd3ae3fff1db3dfda05 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/dfinsupp/interval.lean | 990341f78ec32685fe012f223d65131d996a00b1 | [
"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 | 7,154 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.finset.locally_finite
import data.finset.pointwise
import data.fintype.big_operators
import data.dfinsupp.order
/-!
# Finite intervals of finitely supported ... |
44787d5a3cfa4c4ea5513a3d1f1d3f0bd0dfef0d | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/equiv/denumerable.lean | a848052ea8816b8c1d4bf2ad40ad430d8024c545 | [
"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 | 9,046 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Denumerable (countably infinite) types, as a typeclass extending
encodable. This is used to provide explicit encode/decode functions
from nat, where the functions are kn... |
8189e7cdc2f00d2bd3cda35171063519c29a2ac6 | bb31430994044506fa42fd667e2d556327e18dfe | /src/analysis/calculus/uniform_limits_deriv.lean | 0e1a612cfc5330c716c02eae7729498ae2085a41 | [
"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 | 30,135 | lean | /-
Copyright (c) 2022 Kevin H. Wilson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin H. Wilson
-/
import analysis.calculus.mean_value
import analysis.normed_space.is_R_or_C
import order.filter.curry
/-!
# Swapping limits and derivatives via uniform convergence
... |
b854a0e80131152093ad2fcc49123281efe13702 | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/tactic/ring.lean | 5df202cae74416c9a03f7457c171988b30af06a3 | [
"Apache-2.0"
] | permissive | aceg00/mathlib | 5e15e79a8af87ff7eb8c17e2629c442ef24e746b | 8786ea6d6d46d6969ac9a869eb818bf100802882 | refs/heads/master | 1,649,202,698,930 | 1,580,924,783,000 | 1,580,924,783,000 | 149,197,272 | 0 | 0 | Apache-2.0 | 1,537,224,208,000 | 1,537,224,207,000 | null | UTF-8 | Lean | false | false | 21,173 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Evaluate expressions in the language of commutative (semi)rings.
Based on <http://www.cs.ru.nl/~freek/courses/tt-2014/read/10.1.1.61.3041.pdf> .
-/
import algebra.group... |
6746eb6d5c8b0e2efc0504be2b57fb3b384a6ef1 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Syntax.lean | 27fa4d21fb7912950970c086b56c64195016defb | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 15,545 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
-/
import Lean.Data.Name
import Lean.Data.Format
namespace Lean
def SourceInfo.updateTrailing (trailing : Substring) : SourceInfo → SourceI... |
55413ce793f64f0420b9721719b6fdba24913ea4 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/analysis/calculus/times_cont_diff.lean | 2d2ee22d9126ab0b5b99bf85e8ae40e82633adfc | [
"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 | 119,341 | 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.calculus.mean_value
/-!
# Higher differentiability
A function is `C^1` on a domain if it is differentiable there, and its derivative is contin... |
d0de7e89f3b672103840d1713350b8007aa7b7ff | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Lean/Elab/Deriving/Util.lean | 95e71dc5518cac8e86010d09e661c9aa0d06d409 | [
"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 | 5,762 | 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.Parser.Term
import Lean.Elab.Term
namespace Lean.Elab.Deriving
open Meta
def implicitBinderF := Parser.Term.implicitBinder
def instBinderF ... |
ab80db68bc63848512aec18cd0bf0a622a71786c | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/geometry/manifold/smooth_manifold_with_corners.lean | b7519147c110ed209753a8fcdeb17bb03d6ee0ef | [
"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 | 40,735 | 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.calculus.times_cont_diff
import geometry.manifold.charted_space
/-!
# Smooth manifolds (possibly with boundary or corners)
A smooth manifold i... |
3688eb4abe970fa0d6add556a1c15fd044602335 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/matrix/nonsingular_inverse.lean | 8a13e1a7fa31add8e8fa3475d12c11aee72b08ff | [
"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 | 24,838 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baanen, Lu-Ming Zhang
-/
import data.matrix.invertible
import linear_algebra.matrix.adjugate
/-!
# Nonsingular inverses
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to th... |
af3ee625c087de030fdfff8482d072a14bc33162 | ce89339993655da64b6ccb555c837ce6c10f9ef4 | /na4zagin3/sec-4.6.lean | 87d56a69dd40c46fe02f387508e18a97de6f39d4 | [] | no_license | zeptometer/LearnLean | ef32dc36a22119f18d843f548d0bb42f907bff5d | bb84d5dbe521127ba134d4dbf9559b294a80b9f7 | refs/heads/master | 1,625,710,824,322 | 1,601,382,570,000 | 1,601,382,570,000 | 195,228,870 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,360 | lean | section sec_4_6_1
variables (α : Type) (p q : α → Prop)
example : (∀ x, p x ∧ q x) ↔ (∀ x, p x) ∧ (∀ x, q x) :=
have (∀ x, p x ∧ q x) → (∀ x, p x) ∧ (∀ x, q x),
from assume h: (∀ x, p x ∧ q x),
have (∀ x, p x), from assume x, (h x).left,
have (∀ x, q x), from assume x, (h x).right,
by from and.intro ... |
04a2e52b563ebec8bf4cc48b0cb6ceee6f358f3d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/sites/sieves.lean | 8c5e0a2c05d018b37917ad86aa39410f9206b39b | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 16,963 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, E. W. Ayers
-/
import category_theory.over
import category_theory.limits.shapes.finite_limits
import category_theory.yoneda
import order.complete_lattice
import data.set.l... |
c43f3f13b8eec27ed4662f95002bd9b7aef70c4f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/category/Mon/basic.lean | 1b0427ed01b56fdc98f0bb1fc6efcbc7007c3dfa | [
"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 | 7,920 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.elementwise
import category_theory.concrete_category.bundled_hom
import algebra.punit_instances
import category_theory.reflects_isomorphisms
/-!
# Cate... |
bdae8b9e9a81d159ff80e93612363ea3a54b1e5a | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/category_theory/over.lean | 305195cc58101e2a25a2510c5bb377fd350e3a14 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,144 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Bhavik Mehta
-/
import category_theory.comma
import category_theory.punit
import category_theory.reflects_isomorphisms
import category_theory.epi_mono
/-!
# Over and u... |
f9ffbabbf0214ecdda241ede2262cec55a6636f0 | 4a894698f2ae3f991490c25af3c13ea4435dac48 | /src/instructor/ignore_this/relations.lean | 5b98b6bd845ce5fcb4eb72b61947d448fcae23e8 | [] | no_license | gnujey/cs2120f21 | 8a33f636346d59ade049dcc1726634f434ac1955 | 138d43446c443c1d15cd2f17fb607c4f0dff702f | refs/heads/main | 1,690,598,880,775 | 1,631,132,566,000 | 1,631,132,566,000 | 405,182,739 | 1 | 0 | null | 1,631,299,824,000 | 1,631,299,823,000 | null | UTF-8 | Lean | false | false | 5,030 | lean | /-
To make sense of this you need to know about *relations*, for which you need these concepts:
- set/type (e.g., ℕ, ℝ, ℚ, etc, but also bool, string etc.)
- products of sets/types: a set/type of ordered pairs of objects of the given types
- the big one: a *binary relation* is any subset of a product two sets/types: R ... |
8745501ccfde2dcac73d363fa1841cf6dd470e7b | 90edd5cdcf93124fe15627f7304069fdce3442dd | /stage0/src/Lean/Aesop/Tracing.lean | 3102c8d0e1b5834cca30d44e26f97d43c05ecab2 | [
"Apache-2.0"
] | permissive | JLimperg/lean4-aesop | 8a9d9cd3ee484a8e67fda2dd9822d76708098712 | 5c4b9a3e05c32f69a4357c3047c274f4b94f9c71 | refs/heads/master | 1,689,415,944,104 | 1,627,383,284,000 | 1,627,383,284,000 | 377,536,770 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,046 | lean | /-
Copyright (c) 2021 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
-- TODO Instead of tracing, I think we want to construct a couple of big
-- messages at the end: one with the ruleset, one with the final search tree,
-- one with th... |
56911160900cdfa4e54fd8e444ab9d4757f3f90b | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/measure_theory/lebesgue_measure.lean | 6b020ba96aeff5e42381b547b654631b226c7140 | [
"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 | 12,246 | 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
Lebesgue measure on the real line
-/
import measure_theory.measure_space measure_theory.borel_space
noncomputable theory
open classical set filter
open nnreal (of_real)... |
e7b05ae04c6945be64ff7341e52f2d60dab5301e | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/num/lemmas.lean | 44f0033acdb5b0dcec434b752a95dade327b083f | [
"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 | 49,312 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Properties of the binary representation of integers.
-/
import data.num.basic data.num.bitwise algebra.ordered_ring
tactic.interactive data.int.basic data.... |
c8ee944df63b55b052613a5a4f7fb6a49eae3624 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/ring_theory/trace.lean | 4650912c1abe8226a6751f3631e67fb25be594ea | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,306 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import linear_algebra.bilinear_form
import linear_algebra.char_poly.coeff
import linear_algebra.trace
import field_theory.adjoin
import field_theory.algebraic_closure
impo... |
10953a406a4bffb848af941adc2b0a28156c6950 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/set/default.lean | 65d90a7540cfbdcc2fbd801ac5c5efe40fd42163 | [] | 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 | 177 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.set.finite
import Mathlib.data.set.intervals.default
import Mathlib.PostPort
namespace Mathlib
|
d0fbeefdc91e0d016e7cb5fe970441a505221742 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Util/FoldConsts.lean | 4a00f0a3a10262e5cfa4a9b6f3c85126cf89bbe0 | [
"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 | 2,668 | 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
structure State where
... |
7269b19ce33d62dda51989b97b4db2bf26522258 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/linear_algebra/matrix/charpoly/minpoly.lean | 797e0cd6d565d29d8d61e454af55ad4a0ac10662 | [
"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 | 1,838 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark
-/
import linear_algebra.matrix.charpoly.coeff
import linear_algebra.matrix.to_lin
import ring_theory.power_basis
/-!
# The minimal polynomia... |
0f5fcb52c65254136ed8e44f453c50e8bf67cd74 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/meta_level1.lean | 2831a8a9f378fa9267c50834b630e0355a933058 | [
"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 | 950 | lean | import system.io
open io
#eval do pp (level.max (level.succ level.zero) (level.param `foo)), put_str "\n"
#eval level.normalize (level.succ (level.max (level.max level.zero (level.succ level.zero)) (level.param `l₁)))
#eval level.imax (level.mvar `m) (level.of_nat 10)
#eval if level.zero = level.zero then "eq" else... |
3f86c0a732adb1d79e10ecd8b411cf8770116045 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /stage0/src/Lean/Elab/Term.lean | 74be18515961edbed55cb16db3b20d67be408807 | [
"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 | 62,568 | 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
-/
import Lean.ResolveName
import Lean.Util.Sorry
import Lean.Structure
import Lean.Meta.ExprDefEq
import Lean.Meta.AppBuilder
import Lean.Meta.SynthInstance
i... |
b3f0372fca4c5adec6321ed32b3a3e3ffdc4c3eb | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/omega_complete_partial_order.lean | 459c12e0598f3a193b030136696d2b3db19f7845 | [
"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 | 5,217 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import topology.basic
import order.omega_complete_partial_order
/-!
# Scott Topological Spaces
A type of topological spaces whose notion
of continuity is equivalent to con... |
842fd560b53895825abe32c82a6a02678b49a17f | c777c32c8e484e195053731103c5e52af26a25d1 | /src/topology/dense_embedding.lean | 3e768af19cd82a72379637f42acca7dd2f537476 | [
"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 | 15,567 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import topology.separation
import topology.bases
/-!
# Dense embeddings
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to thi... |
0ff70687ef82b278542b57ab0c8cd5eada28df69 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/order.lean | 8ceb8536a921aec92d9b27f8afe546a139c64ecc | [
"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 | 37,838 | 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.tactic
/-!
# Ordering on topologies and (co)induced topologies
Topologies on a fixed type `α` are ordered, by reverse inclusion.
Tha... |
69dcb20fcb7b690c82fe86f6dccc5ed8f5e835dc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed_space/pointwise.lean | adb409acbb1516d381bdb9fad4f0ccaf8d7176a0 | [
"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 | 18,617 | 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, Yaël Dillies
-/
import analysis.normed.group.add_torsor
import analysis.normed.group.pointwise
import analysis.normed_space.basic
/-!
# Properties of pointwise s... |
758a1afa37a9df78439982ceefb7223b7a2e254f | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /tests/lean/run/match2.lean | 8ef703405cc83030eecaafc30fe90c79181d7560 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 276 | lean | inductive imf (f : nat → nat) : nat → Type
| mk1 : ∀ (a : nat), imf (f a)
| mk2 : imf (f 0 + 1)
definition inv_2 (f : nat → nat) : ∀ (b : nat), imf f b → {x : nat // x > b} → nat
| .(f a) (imf.mk1 .f a) x := a
| .(f 0 + 1) (imf.mk2 .f) x := subtype.val x
|
6c87a52f4db479a2913ac1faedba5f0f6040afdf | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/logic/equiv/fintype.lean | 989c0e6d0760194c452c0eec4fc6a86682d699f7 | [
"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,519 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.fintype.basic
import group_theory.perm.sign
import logic.equiv.defs
/-! # Equivalence between fintypes
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> A... |
99abecbbfc161325ce1e07ae17a7d4ba51f38a87 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/category/Module/products.lean | 96b8558b7a776076474973a2779b93020844e428 | [
"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 | 2,059 | 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 linear_algebra.pi
import algebra.category.Module.basic
/-!
# The concrete products in the category of modules are products in the categorical sense.
> THIS F... |
218f88730afccdf385a6d5a68817fd57f03a8305 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/complex/basic.lean | ee6c02c4604afebd3c9e93c1e2275cc8c1fe0bae | [
"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 | 12,661 | lean | /-
Copyright (c) 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 data.complex.determinant
import data.complex.is_R_or_C
/-!
# Normed space structure on `ℂ`.
This file gathers basic facts on complex numbers of an analytic ... |
a425736b7f2756088c6aa483fddeef99bf60f58a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/field_theory/mv_polynomial.lean | fbe21e471a266eab602518eb09e88d4ed35c9761 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,553 | 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
-/
import data.mv_polynomial.comm_ring
import ring_theory.mv_polynomial.basic
/-!
# Multivariate polynomials over fields
This file contains basic facts about multivar... |
0f94b054849e05b7c7983ded41e0cc48ceb11f1d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/zmod/algebra.lean | 7646d996b20cd876b2a9512c36f93a8d3359e211 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,078 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.zmod.basic
import algebra.algebra.basic
/-!
# The `zmod n`-algebra structure on rings whose characteristic divides `n`
-/
namespace zmod
variables (R ... |
7f5ea6e0d843847378b2c2e8202ec88c0679938c | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/number_theory/padics/ring_homs.lean | 564f06fb34e54250ad0120956f5c8104640560c4 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,467 | lean | /-
Copyright (c) 2020 Johan Commelin, Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import number_theory.padics.padic_integers
/-!
# Relating `ℤ_[p]` to `zmod (p ^ n)`
In this file we establish connections betwee... |
7543e325b623a03d3469ed3385589e5757041d40 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/metric_space/closeds.lean | 4a4eb20912112d1e986d85b5ca0542894e65b146 | [
"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 | 21,103 | 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 topology.metric_space.hausdorff_distance
import topology.compacts
import analysis.specific_limits
/-!
# Closed subsets
This file defines the metric and... |
955c180b7b47fe1cfff32c87c78fabc0f02a9d1a | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/number_theory/prime_counting.lean | 7e497e005a2952a128bb4bf0d28d20c43904ab8a | [
"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,105 | 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 data.nat.prime
import data.nat.totient
import algebra.periodic
import data.finset.locally_finite
import data.nat.count
/-!
# The Prime Counting Function
In t... |
9cc613fa15f053d7214f7158da572c3d5e975223 | 6fbf10071e62af7238f2de8f9aa83d55d8763907 | /answers/hw3b.lean | a75073d65e20aa0de63ca293c02f4582f2ab46be | [] | no_license | HasanMukati/uva-cs-dm-s19 | ee5aad4568a3ca330c2738ed579c30e1308b03b0 | 3e7177682acdb56a2d16914e0344c10335583dcf | refs/heads/master | 1,596,946,213,130 | 1,568,221,949,000 | 1,568,221,949,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,847 | lean | /-
CS 2102 Spring 2019 Homework #3b
The first part of your homework this week is to make
a new copy of the *blank* homework #2 assignment in
your "work" directory, now called "hw3a.lean", then
complete the questions that you did *not* complete
last week. To rename the file after copying it, click
on the file name, hi... |
a6907b730a88c50dc939369cef89262af5e50dc5 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Compiler/LCNF/Simp/InlineProj.lean | 4a04a6ba681fef66935fcb345e49bd17f38d0b07 | [
"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 | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 3,359 | 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.Compiler.LCNF.Simp.SimpM
namespace Lean.Compiler.LCNF
namespace Simp
/--
Auxiliary function for projecting "type class dictionary access".
Tha... |
cbc23148fb091f230354ecbff418ce3f8a8da19e | df561f413cfe0a88b1056655515399c546ff32a5 | /5-advanced-proposition-world/l3.lean | e9d62ffae95df514850aa1fd018034d20327278e | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 114 | lean | lemma and_symm (P Q : Prop) : P ∧ Q → Q ∧ P :=
begin
intro h,
cases h with p q,
split,
exact q,
exact p,
end |
770d8f187031c5f9cb5a6d27419c8504a95567a8 | 93b17e1ec33b7fd9fb0d8f958cdc9f2214b131a2 | /src/extralib.lean | 14828935c89e03fd4b16a2f5b949a8da2bd7a266 | [] | no_license | intoverflow/timesink | 93f8535cd504bc128ba1b57ce1eda4efc74e5136 | c25be4a2edb866ad0a9a87ee79e209afad6ab303 | refs/heads/master | 1,620,033,920,087 | 1,524,995,105,000 | 1,524,995,105,000 | 120,576,102 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,930 | lean |
universes ℓ ℓ₁ ℓ₂ ℓ₃ ℓ₄
namespace set
def sInter {A : Type.{ℓ}} : set (set A) → set A
:= λ X a, ∀ X₀ ∈ X, a ∈ X₀
def in_append {A : Type.{ℓ}} {L₁ L₂ : list A}
: ∀ {x}, x ∈ list.append L₁ L₂ → x ∈ L₁ ∨ x ∈ L₂
:= begin
intros x Hx,
induction L₁ with l₁ L₁,
{ induction L₂ with l₂ L₂,
{ ex... |
38ba2042b9f32ad53669762e0a9fdd003d33ce46 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/linear_algebra/affine_space/combination.lean | 37b2d82b4c0b31ea179f093692b96f4a1843031b | [
"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 | 31,938 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import algebra.invertible
import data.indicator_function
import linear_algebra.affine_space.affine_map
import linear_algebra.affine_space.affine_subspace
import linear_al... |
d255dc15f576f02d0db82426468e3ac47d1a2a14 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Compiler/NameMangling.lean | 8f5c475e3d6acfc481eb238f6f84d34cacee1105 | [
"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 | 1,637 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Lean.Data.Name
namespace Lean
private def String.mangleAux : Nat → String.Iterator → String → String
| 0, it, r => r
| i+1, it, r =>
let c := it.... |
1702430b61fcc2f016f01b251fb12db24eb9aa72 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Init/Data/ByteArray/Basic.lean | 1052a8b4a30c8520a1c8ab5fc38a171fe6e0dcfa | [
"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 | 2,771 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.Array.Basic
import Init.Data.UInt
import Init.Data.Option.Basic
universes u
structure ByteArray :=
(data : Array UInt8)
attribute ... |
fc713aabcd3d88e32b92e917def369ac21c7d807 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/finset/card.lean | 201d264b54d1b152b0fcb4ecda8fd40424c10251 | [
"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 | 24,015 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
import data.finset.basic
import tactic.by_contra
/-!
# Cardinality of a finite set
This defines the cardinality of a `finset` and provides ... |
08ec19f744c4c8e88ec5ab698a94e76d84f0a5ed | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/dynamics/circle/rotation_number/translation_number.lean | ab0842600e84d71ee7c1f3cd00214ce087c8cbd9 | [
"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 | 28,247 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import analysis.specific_limits
import order.iterate
import algebra.iterate_hom
/-!
# Translation number of a monotone real map that commutes with `x ↦ x + 1`... |
9542650e0b489035c4ca79d304a47fa9357673d3 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Meta/CongrTheorems.lean | caa5aa31fb7cedc0314d6fb9c9258239e981aaeb | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,597 | 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.AppBuilder
namespace Lean.Meta
inductive CongrArgKind where
| /-- It is a parameter for the congruence theorem, the parameter occurs in... |
cfa511e3708baf71de57eb29196b8efb01b43831 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /src/Init/Lean/Parser/Parser.lean | 3d4dd04cab453fc6417bbade2d32e091018c76c2 | [
"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 | 70,802 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Lean.Data.Trie
import Init.Lean.Data.Position
import Init.Lean.Syntax
import Init.Lean.ToExpr
import Init.Lean.Enviro... |
98ab9d3758a67cb1ee1c9f3c487ca48ab65f87d2 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Lean/KeyedDeclsAttribute.lean | 28060870d63d13387f8e041ec9bfe87e976d7002 | [
"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 | 6,796 | 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 Lean.Attributes
import Lean.Compiler.InitAttr
import Lean.ToExpr
/-!
A builder for attributes that are applied to declarations of... |
9f8891699d4869315f06d09bb541ba0a031ac2bf | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Parser/Extra.lean | 48efe40aa5b09f1d8e546ec29c093c4cacb0f0db | [
"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 | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 9,778 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Extension
-- necessary for auto-generation
import Lean.PrettyPrinter.Parenthesizer
import Lean.PrettyPrinter.Formatter... |
153fccf016d22880b6d6a54ae5ea242b459831ad | 35960c5b117752aca7e3e7767c0b393e4dbd72a7 | /src/exp/subst_open.lean | 828dcaf5bf0b53602191beb446ff28673f3cc855 | [
"Apache-2.0"
] | permissive | spl/tts | 461dc76b83df8db47e4660d0941dc97e6d4fd7d1 | b65298fea68ce47c8ed3ba3dbce71c1a20dd3481 | refs/heads/master | 1,541,049,198,347 | 1,537,967,023,000 | 1,537,967,029,000 | 119,653,145 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,264 | lean | import exp.open
import .lc
import .subst
namespace tts ------------------------------------------------------------------
namespace exp ------------------------------------------------------------------
variables {V : Type} [decidable_eq V] -- Type of variable names
variables {v : V} -- Variable names
variables {k i :... |
cd81118179d7dd151fde0616886ea66c2c403790 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/data/subtype.lean | ead03779380f13b13e0d00907e06723dd421b1b3 | [
"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 | 1,263 | 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
import logic.inhabited logic.eq logic.decidable
open decidable
structure subtype {A : Type} (P : A → Prop) :=
tag :: (elt_of : A) (has_p... |
90018b68c6370ad2e80665e424848df3debca642 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/urysohns_lemma.lean | 6420b098ed30a30e6da297698c4443acbd547dce | [
"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 | 12,670 | 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 analysis.normed_space.add_torsor
import linear_algebra.affine_space.ordered
import topology.continuous_function.basic
/-!
# Urysohn's lemma
In this f... |
e0e8ae9ef6fb71b810826676e312bad7e0b73cfd | f1a12d4db0f46eee317d703e3336d33950a2fe7e | /common/nat.lean | aa392bcd66ead0d60a30df9e07a599949d22365c | [
"Apache-2.0"
] | permissive | avigad/qelim | bce89b79c717b7649860d41a41a37e37c982624f | b7d22864f1f0a2d21adad0f4fb3fc7ba665f8e60 | refs/heads/master | 1,584,548,938,232 | 1,526,773,708,000 | 1,526,773,708,000 | 134,967,693 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,579 | lean | import .list ...mathlib.data.nat.gcd
namespace nat
def divides (m n : nat) : Prop := ∃ k, m * k = n
lemma divisor_le (m n) : divides m n → n ≠ 0 → m ≤ n :=
begin
intros h hn, cases h with k hk, cases k with k,
exfalso, apply hn, rewrite mul_zero at hk, rewrite hk,
rewrite eq.symm hk, rewrite nat.mul_succ,
... |
a631e7f2cb7ca8e5165cd743feeeaef813180d16 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/specific_limits_auto.lean | 73ca5832094e102bdce53abe19f2885dc3abaec9 | [] | 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 | 25,194 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.geom_sum
import Mathlib.order.filter.archimedean
import Mathlib.order.iterate
impor... |
90bc586fa724d1b3fe821dd018d8b595bc1a6746 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/complex/basic_auto.lean | 9b3b9f9649c9576f1f594a9b2599c7c688e790b9 | [] | 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,633 | lean | /-
Copyright (c) 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.normed_space.finite_dimension
import Mathlib.data.complex.module
import Mathlib.d... |
d42763983ba4bae55f9ef43e3208e54abd1c4840 | dfd42d30132c2867977fefe7edae98b6dc703aeb | /src/liouville_new.lean | 59db78acab7675bb3a1bbb2d01bef4af6ae3995e | [] | no_license | justadzr/lean-2021 | 1e42057ac75c794c94b8f148a27a24150c685f68 | dfc6b30de2f27bdba5fbc51183e2b84e73a920d1 | refs/heads/master | 1,689,652,366,522 | 1,630,313,809,000 | 1,630,313,809,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,840 | lean | import analysis.calculus.times_cont_diff
import analysis.calculus.fderiv_symmetric
import analysis.calculus.conformal
import similarity
import data.matrix.notation
noncomputable theory
open conformal_at submodule set continuous_linear_map
open_locale classical real_inner_product_space filter topological_space
lemma ... |
5952e3a6910cdca87b1b3c2deba2b246350cf538 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/bitvec/basic.lean | abc0d961fc3cd1fd562bacc3b4ae5ad73fdf652a | [
"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 | 3,649 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.bitvec.core
import data.fin.basic
import tactic.monotonicity
import tactic.norm_num
namespace bitvec
instance (n : ℕ) : preorder (bitvec n) :=
preorder.lift b... |
0c1358e26cd932d2a6ad880a7400b9f3dcb39fcd | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/ring_theory/multiplicity.lean | d6381fc82dd5437e81f0559ef0d861eb1c60c1e8 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 17,534 | 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, Chris Hughes
-/
import algebra.associated
import data.int.gcd
import algebra.big_operators.basic
import data.nat.enat
variables {α : Type*}
open nat roption
open_l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.