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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
291ae258320132f5450045eb3a35bc0d6a997e62 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/calc.lean | 0a312687d2ef2c257e08870d17b5fc8208adb117 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 372 | lean | import data.num
namespace foo
constant le : num → num → Prop
axiom le_trans {a b c : num} : le a b → le b c → le a c
calc_trans le_trans
infix `≤` := le
end foo
namespace foo
theorem T {a b c d : num} : a ≤ b → b ≤ c → c ≤ d → a ≤ d
:= assume H1 H2 H3,
calc a ≤ b : H1
... ≤ c : H2
... |
913cd7ac99c75bd352133c47cf041bdea3983e08 | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /test/out/script/value.lean | 7cb6e7ab18facbccabd536f374ed6163b7aa1193 | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 272 | lean | import Papyrus.Script.Value
open Papyrus Script
#check show ModuleM PUnit from do
let x ← llvm false
let x ← llvm true
let x ← llvm i32 0
let x ← llvm i64 -1
let x ← llvm "hello"*
let x ← llvm "hello" addrspace(5) *
let x ← llvm %x
pure ()
|
31c6e9aacf584af6b08dfbae4266f24be0cc88f3 | b2c4bd81ed12cc14c20704365f094339d4c894a2 | /src/tree.lean | 30f1944c3824ee8ca9a0ca859265e2ecc143d11e | [] | no_license | agusakov/graph_theory_2020 | 711639d9d9b25fd83899620da11ae1753d11d48b | 83a8afc31aa28dbec39a768d6042d3cb515f7a16 | refs/heads/master | 1,669,901,277,114 | 1,596,931,643,000 | 1,596,931,643,000 | 285,154,458 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,347 | lean | import path
import graph_induction
-- from math 688 notes, lec-19
universe u
variables (V : Type u)
-- TO DO:
-- define components (they are used twice here), give them some lemmas
-- prove that removing a vertex from a tree results in a graph whose components are trees with smaller size
-- concrete deve... |
40b8357b9635e70be255c77eb686d22102acd428 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/data/prod.lean | 87141cbb385caf0067d8232b6357c3f0edea0d59 | [
"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 | 1,664 | 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.eq
open inhabited decidable eq.ops
namespace prod
variables {A B : Type} {a₁ a₂ : A} {b₁ b₂ : B} {u : A × B}
theorem pair_e... |
6e29a9fa44215ad8630d83edc264b4b0ecd37b1e | 874a8d2247ab9a4516052498f80da2e32d0e3a48 | /Stephaniev2.lean | 5073db666c443b7e2316b8235a4d30b6402e548c | [] | no_license | AlexKontorovich/Spring2020Math492 | 378b36c643ee029f5ab91c1677889baa591f5e85 | 659108c5d864ff5c75b9b3b13b847aa5cff4348a | refs/heads/master | 1,610,780,595,457 | 1,588,174,859,000 | 1,588,174,859,000 | 243,017,788 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 6,185 | lean | import analysis.normed_space.basic
import topology.instances.ennreal
import analysis.normed_space.basic
import topology.instances.ennreal
import algebra.archimedean algebra.geom_sum
import data.nat.choose data.complex.basic
import tactic.linarith
import analysis.calculus.deriv
import data.complex.exponential
open fins... |
0b449d4f640628fb38b1c83a54e7fff28ce5ee7d | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/assignments/assignment_2/assignment_2.lean | 410e6d838aa44dbba353f9b98a2ab3564a209c04 | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 4,893 | lean | namespace hw2
/-
In this assignment, use Lean's version
of basic data types, e.g., nat, prod α
β, etc. You don't need to import from
our type library.
-/
/-
1.[25 points] Syntax and semantics
Formalize the syntax of the following
language, SalmonTrout, as an inductive
data type definition.
The SalmonTrout langua... |
95205abfb07d8efc1f664fde6f720f0ebc842c83 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Elab/PreDefinition/Structural/Main.lean | 7a778c44e151312830489f3f0556e23babe9a2ae | [
"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 | 4,509 | 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.Elab.PreDefinition.Structural.Basic
import Lean.Elab.PreDefinition.Structural.FindRecArg
import Lean.Elab.PreDefinition.Structural.Preprocess
im... |
68c697ecc9be5a928a4a9f39acf2825564102fcd | 367134ba5a65885e863bdc4507601606690974c1 | /src/ring_theory/discrete_valuation_ring.lean | 971174ac2f227c352beee0cb5c545094553d1f84 | [
"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 | 17,222 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import ring_theory.principal_ideal_domain
import order.conditionally_complete_lattice
import ring_theory.multiplicity
import ring_theory.valuation.basic
/-!
# Discret... |
2ce1e6cf8512a8632a69df9d6c1beb4e4c0e3f06 | f57749ca63d6416f807b770f67559503fdb21001 | /hott/types/fiber.hlean | 18e4ea142dd82c7cb4a31eab0b7653f408f48ee5 | [
"Apache-2.0"
] | permissive | aliassaf/lean | bd54e85bed07b1ff6f01396551867b2677cbc6ac | f9b069b6a50756588b309b3d716c447004203152 | refs/heads/master | 1,610,982,152,948 | 1,438,916,029,000 | 1,438,916,029,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,232 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Ported from Coq HoTT
Theorems about fibers
-/
import .sigma .eq
structure fiber {A B : Type} (f : A → B) (b : B) :=
(point : A)
(point_eq : f point = b)
open ... |
0f12379380f7536f55d1083494f9e40bd7890fbe | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/number_theory/pythagorean_triples.lean | 4e893fdabc52de354fe75f78dae13214ff21ecca | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,547 | lean | /-
Copyright (c) 2020 Paul van Wamelen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Paul van Wamelen.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.field
import Mathlib.ring_theory.int.basic
import Mathlib.algebra.group_with_ze... |
c2999c244c7ce511980f5260658e14449044a2eb | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/algebra/field.lean | b2198b93550bedce2b8d3210d0f5e9c4de6bef1c | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 10,006 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura, Johannes Hölzl, Mario Carneiro
-/
import algebra.ring
import algebra.group_with_zero
open set
set_option default_priority 100 -- see Note [default prior... |
377f3fca324852d9387de89b4fe0dabbcbe5f29d | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/subsemigroup/basic.lean | 82c6b7322538fbb1fe98a1bc3c8918cfb80c7b76 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 16,722 | 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, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov, Yakov Pechersky
-/
import data.set.lattice
import data.set_like.basic
/-!... |
3fa1f013365532ef0e1d5d149fff40630936522c | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/ring_theory/matrix_algebra.lean | 152cbce751f6ac96a6c4091f85c2c9449a244fdb | [
"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 | 6,062 | 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 data.matrix.basic
import ring_theory.tensor_product
/-!
We show `matrix n n A ≃ₐ[R] (A ⊗[R] matrix n n R)`.
-/
universes u v w
open_locale tensor_product
op... |
6aebd4df11537b3fdbc7616f5795b2704cb6f372 | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/topology/maps.lean | e224b90f1ee9ca57687d1d702db6ef6c3da7c135 | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,266 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import topology.order
/-!
# Specific classes of maps between topological spaces
This file introduces the following properties of a m... |
dac76830be374ced1043105bc6740799ce9a8047 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/logic/equiv/list.lean | f0a46309606e76b6975b1a3de5346f0140406823 | [
"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 | 14,413 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.array.lemmas
import data.finset.sort
import logic.denumerable
/-!
# Equivalences involving `list`-like types
This file defines some additional construct... |
9fedcff2890552f6c0721bf1bb1e251857b2dc31 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/nestedrec.lean | a25567d3d6eeb68452a504bbb4b63ea67d2c4624 | [
"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 | 273 | lean | #lang lean4
def f : Nat → Nat → Nat
| 0, b => b+1
| a+1, b => f a (f a b)
theorem ex1 (b) : f 0 b = b+1 := rfl
theorem ex2 (b) : f 1 b = (b+1)+1 := rfl
theorem ex3 (b) : f 2 b = b+1+1+1+1 := rfl
theorem ex4 (a b) : f (a+1) b = f a (f a b) := rfl
#eval f 2 5
|
45cc81fcf7a9affbb289f3d5c78bf47c5627e02d | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/change1.lean | bed5ea272bfcad9041927630b98f14dbd696e7d4 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 554 | lean | open tactic nat expr option
attribute [simp]
lemma succ_eq_add (n : nat) : succ n = n + 1 :=
rfl
example (a b : nat) : a = b → succ (succ a) = succ (b + 1) :=
by do intro `Heq,
t ← target,
trace_state,
s ← simp_lemmas.mk_default,
t' ← s^.dsimplify t,
change t',
trace "---- after c... |
0eac258319ba58a24a9e6a5bdde34799f190dd36 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/smodeq.lean | edba4d40fa9ee0cc0aea8804b722b2cec285d83b | [
"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,069 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.polynomial.eval
import ring_theory.ideal.quotient
/-!
# modular equivalence for submodule
-/
open submodule
open_locale polynomial
variables {R : Type*} [ring R... |
c8e149b759fd6e2d8180a96a86df6f2c4b97eb9a | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/InvolutiveRing.lean | 673d3e4146ff39d1851de09ec96157aa866d9979 | [] | 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 | 19,373 | 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 InvolutiveRing
structure InvolutiveRing (A : Type) : Type :=
(times : (A → (A → A)))
(plus : (A → (A → A)))
(one : A)
(leftDistributive_times_plus... |
502cd699db0351e0ca7388ef75b8650ddc1b86a1 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/types/sum_type_shapes.lean | e677e452fcdb9eac6f904d732d991baf51008748 | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,081 | lean | /-
We define a simple example of a shape library
of the kind that might be used in a computer
graphics or gaming application.
-/
/-
Each pixel on the screen is represented by a
set of 2-D coordinates, which are rerally just
ordered pairs of natural numbers. (0,0) is the
pixel in the upper left of the screen. The "x... |
009b10c5709d947e92589035d9bdb22fe7cbf170 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/basis.lean | 977783020dc124eb15e36cc11b7d671307cf15fd | [
"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 | 47,429 | 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 algebra.big_operators.finsupp
import algebra.big_operators.finprod
import data.fintype.card
import linear_algebra.finsupp
i... |
21c61b921dfd69091150a9a83142b4b4429dd1d6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/217.lean | 6bf8c6d52e6ec566f720526a71a1edc34593dee0 | [
"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 | 87 | lean | import Lean
open Lean
#eval show CoreM Unit from do
(← getEnv).constants.fold _ _
|
470af242fc650cecb97e7d25ac829bd9b75dc087 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/ring_theory/witt_vector/is_poly.lean | 6f461d1f009fbc81723a08e278f02055d82ff080 | [
"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 | 23,186 | 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 algebra.ring.ulift
import ring_theory.witt_vector.basic
import data.mv_polynomial.funext
/-!
# The `is_poly` predicate
`witt_vector.is_poly... |
7108821b4ce79575355be60f362a9e5559667b44 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category/monad/basic.lean | c1039291b25c1bf2d19517970bb85c7de0f50042 | [
"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 | 1,300 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Simon Hudon
-/
import tactic.basic
/-!
# Monad
## Attributes
* ext
* functor_norm
* monad_norm
## Implementation Details
Set of rewrite rules and automation for monads in gener... |
e391d5dbabf71a0af5b0f12febdcd50637618aed | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/continued_fractions/computation/approximations.lean | 2503237b415b13b5eee917aee56b636e05bf56aa | [
"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 | 29,865 | lean | /-
Copyright (c) 2020 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.computation.correctness_terminating
import data.nat.fib
import tactic.solve_by_elim
/-!
# Approximations for Continued Fraction... |
5bf8e88a0b2781951689d21d496dccdcfb8ef8c9 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_2365.lean | 7019a1967c1e5285b3d43192e2463171323ef4eb | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 550 | lean | import data.real.basic
def converges_to (s : ℕ → ℝ) (a : ℝ) :=
∀ ε > 0, ∃ N, ∀ n ≥ N, abs (s n - a) < ε
theorem converges_to_const (a : ℝ) : converges_to (λ x : ℕ, a) a :=
sorry
variables {s : ℕ → ℝ} {a : ℝ}
-- BEGIN
theorem converges_to_mul_const
{c : ℝ} (cs : converges_to s a) :
converges_to (λ n, c * s n) ... |
e08ca21b36bc6438ed519e649fb232289fede888 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/linear_algebra/basic.lean | bc144be727716abcddf3b44ec25344e217b75b61 | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 57,494 | 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, Kevin Buzzard
Basics of linear algebra. This sets up the "categorical/lattice structure" of
modules, submodules, and linear maps.
-/
import algebra.pi... |
d2029dceed3160aa9fe6f1fc7459e129681b4982 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/ind4.lean | e99f0c3a2854eb8141b4376ecf51605cdaf73fdb | [
"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 | 370 | lean | section
variable A : Type
inductive list : Type :=
nil : list,
cons : A → list → list
end
check list.{1}
check list.cons.{1}
section
variable A : Type
inductive tree : Type :=
node : A → forest → tree
with forest : Type :=
fnil : forest,
fcons : tree → forest → forest
check tree
check forest... |
daaefb2d2d1c177d918740b4a4cc7cb98282bf69 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/erased.lean | b9ffd5bbde2eb0da9207ac8e6891bd66dc321617 | [
"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,754 | 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 logic.equiv.defs
/-!
# A type for VM-erased data
This file defines a type `erased α` which is classically isomorphic to `α`,
but erased in the VM. That is, a... |
1c4c4f9a7aed0ff35d94a8743843131202c9fd2b | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/measure_theory/function/l2_space.lean | d0e6e45fcac938cf30013a163a7dbb39de4187df | [
"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,205 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import analysis.normed_space.inner_product
import measure_theory.integral.set_integral
/-! # `L^2` space
If `E` is an inner product space over `𝕜` (`ℝ` or `ℂ`), then `... |
769502ad1351d749c3afc1b23a4970628fcb3363 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/special_functions/trigonometric/complex_deriv.lean | 917f7f2455a885efee1ed3969f455ccee337e9f4 | [
"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 | 2,659 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Benjamin Davidson
-/
import analysis.special_functions.trigonometric.complex
import analysis.special_functions.trigonometric... |
590e45d6a30cd42863b2c1570e6ec1c4334c877b | d450724ba99f5b50b57d244eb41fef9f6789db81 | /src/mywork/lectures/lecture_18.lean | a28bddcfd6284d43a154ed707184834dc9011916 | [] | no_license | jakekauff/CS2120F21 | 4f009adeb4ce4a148442b562196d66cc6c04530c | e69529ec6f5d47a554291c4241a3d8ec4fe8f5ad | refs/heads/main | 1,693,841,880,030 | 1,637,604,848,000 | 1,637,604,848,000 | 399,946,698 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,700 | lean | import data.set
/-
Up to now we have mostly used our
intuition to understand operations
on, and special values (empty and
complete) of sets. Now, to prepare
to state and prove theorems about
sets, we will see how to formalize
these ideas in predicate logic. We
isolate our own definitions in a
namespace so as not to c... |
0051446e7af3b3b1922b8ea9858d6d4c948eca5c | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/measure_theory/integral/lebesgue.lean | e2124baa1d4ef9a925f019c8bdf3fd26e36e47eb | [
"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 | 100,350 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
-/
import measure_theory.measure.measure_space
import measure_theory.constructions.borel_space
import algebra.indicator_function
import algebra.support
... |
354b90e85e38ac3f09278a8deaf04490267b70d2 | f20db13587f4dd28a4b1fbd31953afd491691fa0 | /library/init/meta/has_reflect.lean | 9fd5e0ef0d06639c59d8f3eaa8f3a0e3f46299a1 | [
"Apache-2.0"
] | permissive | AHartNtkn/lean | 9a971edfc6857c63edcbf96bea6841b9a84cf916 | 0d83a74b26541421fc1aa33044c35b03759710ed | refs/heads/master | 1,620,592,591,236 | 1,516,749,881,000 | 1,516,749,881,000 | 118,697,288 | 1 | 0 | null | 1,516,759,470,000 | 1,516,759,470,000 | null | UTF-8 | Lean | false | false | 1,252 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
prelude
import init.meta.expr init.util
@[reducible] meta def {u} has_reflect (α : Sort u) := Π a : α, reflected a
section
local attribute [semireducible]... |
3bfe0d0899a810dd86773bff59dcc4e0db83216b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/group/prod.lean | a9056a026776ad5f5d05726f5e66c94baa45379e | [
"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 | 21,637 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot, Yury Kudryashov
-/
import algebra.group.opposite
/-!
# Monoid, group etc structures on `M × N`
In this file we define one-binop (`monoid`, `group` etc) ... |
4a57d017a1c04339fac5e6e2625b0d2e3805503b | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/algebra/ordered_field.lean | 372f9cbad7c12816ae5be7c1b2c8ddb8d25b69cf | [
"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 | 20,465 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura, Mario Carneiro, Floris van Doorn
-/
import algebra.ordered_ring
import algebra.field
/-!
### Linear ordered fields
A linear ordered field is a field ... |
3ea9d08a63599beb2412d9c81a4683b94acdc841 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/meta/set_get_option_tactics.lean | 1c1bc0588ee6c64d7db2460027a1fcde046438e7 | [
"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 | 1,203 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic
namespace tactic
meta def set_bool_option (n : name) (v : bool) : tactic unit :=
do s ← read,
write $ tactic_state.set_o... |
d1b67c5f136ecae157b5fecb154d40db43f44bf4 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/group/order_iso.lean | b62e0e97920514f3b999a23df484034d91e56f31 | [
"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 | 2,557 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.order.group.defs
import algebra.hom.equiv.units.basic
/-!
# Inverse and multiplication as order isomo... |
699ec8c9892b52075b4bc64799bf4c2286713902 | 49bd2218ae088932d847f9030c8dbff1c5607bb7 | /src/data/real/ennreal.lean | d0f2a2f9fcf54009a2430902cb2ed43f3fbfd204 | [
"Apache-2.0"
] | permissive | FredericLeRoux/mathlib | e8f696421dd3e4edc8c7edb3369421c8463d7bac | 3645bf8fb426757e0a20af110d1fdded281d286e | refs/heads/master | 1,607,062,870,732 | 1,578,513,186,000 | 1,578,513,186,000 | 231,653,181 | 0 | 0 | Apache-2.0 | 1,578,080,327,000 | 1,578,080,326,000 | null | UTF-8 | Lean | false | false | 39,549 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl, Yury Kudryashov
Extended non-negative reals
-/
import data.real.nnreal order.bounds data.set.intervals tactic.norm_num
noncomputable theory
open classical set lattice
... |
6d295d2aa3577dabdd243af6b3d97b2b525d4f6c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Eval.lean | 84db675133457e635cfdd91ea5949527c76b4ee6 | [
"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 | 861 | 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.Environment
namespace Lean
universe u
/--
`Eval` extension that gives access to the current environment & options.
The bas... |
a5916b15e3bf07f08a908b7d5d3abdd75d4c9b82 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/category/Twop.lean | e5563cc371214d1791d328c36f40eb24dfc877b5 | [
"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,229 | 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 category_theory.category.Bipointed
import data.two_pointing
/-!
# The category of two-pointed types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to t... |
04888c358f87080813ba28945a102411e5bfd97f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/hom/equiv/type_tags.lean | e08dd40f9a4fecb18696857eceaaeac14f1ffd34 | [
"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 | 3,346 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Callum Sutton, Yury Kudryashov
-/
import algebra.hom.equiv.basic
import algebra.group.type_tags
/-!
# Additive and multiplicative equivalences associated to `multiplic... |
54d8dbd2c3154428f31f24a9be90ee4a5cd807e7 | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/lean/run/rc_tests.lean | d841bf9d1ee6807a087b02e1bd6fe5405bb835f5 | [
"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 | 1,114 | lean | universes u v
-- setOption pp.binderTypes False
set_option pp.implicit true
set_option trace.compiler.llnf true
-- set_option trace.compiler.boxed true
namespace x1
def f (x : Bool) (y z : Nat) : Nat :=
match x with
| true => y
| false => z + y + y
end x1
namespace x2
def f (x : Nat) : Nat := x
end x2
namespa... |
49973b4eb542b94a1c54d0b5dfcf31d1131b4390 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/ring_theory/subsemiring.lean | 1480140f08ed532f811d3ef35b58339d40909e3c | [
"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 | 26,120 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.ring.prod
import group_theory.submonoid
import data.equiv.ring
/-!
# Bundled subsemirings
We define bundled subsemirings and some standard construc... |
f7f3a4e939f55ce807f81327599447873d73c346 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/manifold/vector_bundle/tangent.lean | 491f7107ff786353b891d7c6c36ddc3902d474ac | [
"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 | 17,437 | lean | /-
Copyright (c) 2022 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Heather Macbeth
-/
import geometry.manifold.vector_bundle.basic
/-! # Tangent bundles
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requi... |
f51a40dbc20b7b55ae1450ade94c79bd50cac073 | bb31430994044506fa42fd667e2d556327e18dfe | /src/measure_theory/integral/set_integral.lean | 1ad13b8d3bbbc210cab4c02939d2631d8fcef8e6 | [
"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 | 51,772 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import measure_theory.integral.integrable_on
import measure_theory.integral.bochner
import order.filter.indicator_function
import topology.metric_space... |
eedf79f1f8cbff38c7d14bea40e3952fb43261e0 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/number_theory/bernoulli.lean | cc9354843da79754ead2092e3b20f78e29d560d8 | [
"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 | 16,966 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kevin Buzzard
-/
import data.rat
import data.fintype.card
import algebra.big_operators.nat_antidiagonal
import ring_theory.power_series.well_known
/-!
# Bernoulli numb... |
c9534e1ee49b79d57ccdabe3eef8535848f01d66 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/mathd-numbertheory-3.lean | 460486c2681d380f4414169d1c10e648bce52a45 | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 338 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import algebra.big_operators.basic
import data.real.basic
import data.finset.basic
open_locale big_operators
example : ( ∑ x in finset.range 10, ((x + 1) ^ 2) ) % 10 = 5 :=
be... |
00dfd180c152cdd70baf2c0ed87838ec2836a66c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/group_action/defs.lean | 00aa045ea0f592e4f474365de1679231f6bc3b2e | [
"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 | 39,927 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Yury Kudryashov
-/
import algebra.group.type_tags
import algebra.group.commute
import algebra.hom.group
import algebra.opposites
import logic.embedding.basic
/-!
# Definit... |
cb8e08e7688fc65e573959319f32fd780c2e1cea | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/constructions/epi_mono.lean | 4461c6edfc9755977f998fa7437893ba8466c8ca | [
"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 | 2,226 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.pullbacks
import category_theory.limits.shapes.binary_products
import category_theory.limits.preserves.shapes.pullbacks
/-!
# Relati... |
5d38d59277ee8cb77e9d3d5b0490a2bb95ef97d5 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/LeftAbsorptionOp.lean | 73b7fc12826bd50939e1ae62dbb03bd1c0bda5c2 | [] | 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 | 9,104 | 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 LeftAbsorptionOp
structure LeftAbsorptionOp (A : Type) : Type :=
(times : (A → (A → A)))
(plus : (A → (A → A)))
(leftAbsorp_plus_times : (∀ {x y : A} , (... |
36ccb0c4ac3fd025c9a30564a11b59c2c2980d19 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/subtype/default_auto.lean | e7c81f8c5dbacc2d5963fb0b89a95e89b189957f | [] | 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 | 332 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.subtype.basic
import Mathlib.Lean3Lib.init.data.subtype.instances
namespace Mathlib
... |
73fe79fd810c06796750d163b989973689d3fdd1 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/bad5.lean | 97df31599d42fa702346e02cc4445b5e5234c9d2 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 195 | lean | import Int.
variable g {A : Type} (a : A) : A
variable a : Int
variable b : Int
axiom H1 : a = b
axiom H2 : (g a) > 0
theorem T1 : (g b) > 0 := substp (λ x, (g x) > 0) H2 H1
print environment 2
|
4b8260a892fb4158d0b96b136458a7042fc4e410 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/polynomial/div.lean | ddf260c7c06915577de441caa6d025f073522c91 | [
"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 | 20,836 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.monic
import ring_theory.multiplicity
/-!
# Division of univariate polynomials
The main defs are ... |
fac48cd21b2b6c9afa5de3deb256c5a66deffdb5 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/big_operators/associated.lean | 206c06a55e4ae14ad24379ee22681812389c6b8a | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 6,541 | 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, Anne Baanen
-/
import algebra.associated
import algebra.big_operators.basic
import data.finsupp.basic
/-!
# Products of associated, prime, and irreduc... |
26ea0bd78f3f10c9085e0ba09a93b2c1d85e2f1d | 856e2e1615a12f95b551ed48fa5b03b245abba44 | /src/linear_algebra/basis.lean | 9cbf6f8db34d22f5c623ead489febe79c4c026d9 | [
"Apache-2.0"
] | permissive | pimsp/mathlib | 8b77e1ccfab21703ba8fbe65988c7de7765aa0e5 | 913318ca9d6979686996e8d9b5ebf7e74aae1c63 | refs/heads/master | 1,669,812,465,182 | 1,597,133,610,000 | 1,597,133,610,000 | 281,890,685 | 1 | 0 | null | 1,595,491,577,000 | 1,595,491,576,000 | null | UTF-8 | Lean | false | false | 55,076 | 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
import data.finset.order... |
ee6254479bb4c5ec25ea2c4e7f1c0fa72ef87f1d | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/finset/basic.lean | 5b0a622bb4aee4b2cc5ec720b84f3ee6420e7d90 | [
"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 | 98,633 | 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, Minchao Wu, Mario Carneiro
-/
import data.multiset.finset_ops
import tactic.monotonicity
import tactic.apply
import tactic.nth_rewrite
/-!
# F... |
99050be2820eb5f66bfdce49b184c21177fe674c | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/local_homeomorph.lean | c6af0aefa22cf8a29d89cb2b85b4a03e76696680 | [
"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 | 39,332 | 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 data.equiv.local_equiv
import topology.opens
/-!
# Local homeomorphisms
This file defines homeomorphisms between open subsets of topological spaces. An... |
0e4f7824a572dd5495c38234e8ffd07406508d02 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/special_functions/exp_log_auto.lean | c8ff1b8d21111990bc33729b11f6894cc240618d | [] | 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 | 31,067 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.complex.exponential
import Mathlib.analysi... |
60233314b840b27dc2a6dcc61db201e24ecb3c15 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/equiv/encodable/small.lean | 7c816a9e8bba1bab9bedd1c5bbaada11f8eb80f1 | [
"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 | 475 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.equiv.encodable.basic
import logic.small
/-!
# All encodable types are small.
That is, any encodable type is equivalent to a type in any universe.
-/
u... |
1b1f7e77db0fddc0ac90879842ad41265dbb30db | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1230.lean | 61ab14a5f35ef741ee39aa32a4460a09dc5c965c | [
"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 | 65 | lean | example: ∀ {t}, 0 ≤ t := by
have : True := trivial
sorry
|
ef1b888938863643b035e4672d2bcf57f6d1c5bd | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/exit_comment.lean | 4f4e2790899d9218428db9a211e4521f96f6c4e6 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 8 | lean | #exit
/- |
5a52f49103f91984ce74d9b5d3d28ae851e5d2a2 | ba4794a0deca1d2aaa68914cd285d77880907b5c | /src/game/world8/level7.lean | c6d731479636a623917e3528a7ffbbcd2880ffe6 | [
"Apache-2.0"
] | permissive | ChrisHughes24/natural_number_game | c7c00aa1f6a95004286fd456ed13cf6e113159ce | 9d09925424da9f6275e6cfe427c8bcf12bb0944f | refs/heads/master | 1,600,715,773,528 | 1,573,910,462,000 | 1,573,910,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 739 | lean | import game.world8.level6 -- hide
namespace mynat -- hide
/-
# Advanced Addition World
## Level 7: `add_right_cancel_iff`
It's sometimes convenient to have the "if and only if" version
of theorems like `add_right_cancel`. Remember that you can use `split`
to split an `↔` goal into the `→` goal and the `←` goal.
##... |
31ab550c31776ef8b56b4262f3be0c4a1868a502 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/group_theory/coset.lean | 4fc6768478138675a734777591e23638a697a279 | [
"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 | 11,581 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import group_theory.subgroup
open set function
variable {α : Type*}
/-- The left coset `a*s` corresponding to an element `a : α` and a subset `s ... |
f51c2b2d5749c33489fb37a2bf6aab4c6217782b | 29cc89d6158dd3b90acbdbcab4d2c7eb9a7dbf0f | /11_lecture.lean | 3cd5352181d2ae51d05f73218a2c512e54293eee | [] | no_license | KjellZijlemaker/Logical_Verification_VU | ced0ba95316a30e3c94ba8eebd58ea004fa6f53b | 4578b93bf1615466996157bb333c84122b201d99 | refs/heads/master | 1,585,966,086,108 | 1,549,187,704,000 | 1,549,187,704,000 | 155,690,284 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,336 | lean | /- Lecture 1.1: Basics — Specifications -/
/- Natural numbers -/
namespace my_nat
inductive nat
| zero : nat
| succ : nat → nat
#check nat
#check nat.zero
#check nat.succ
#print nat
def add : nat → nat → nat
| m nat.zero := m
| m (nat.succ n) := nat.succ (add m n)
#reduce add (nat.succ nat.zero) (nat.succ na... |
8967a1223560983836878dbf08014308c5ec7348 | f68c8823d8ddc719de8a4513815174aa7408ac4a | /lean_resolutions/PUZ134_1.lean | ca61a52a567f4ae631449a67e72941133b5fabf0 | [] | no_license | FredsoNerd/tptp-lean-puzzles | e7ea66a0de9aa3cb7cc7480299f01adf885440a6 | 43d4d77524e797a4ac7a62b2cfaf8df08b409815 | refs/heads/master | 1,606,359,611,765 | 1,576,824,274,000 | 1,576,824,274,000 | 228,945,807 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,277 | lean | --------------------------------------------------------------------------------
-- File : PUZ134_1 : TPTP v7.3.0. Released v5.1.0.
-- Domain : Puzzles
-- Problem : The Knowheyan Job Puzzle - Jobs
-- Version : Especial.
-- English : Five Knowheyans, A, B, C, D, and E, work in Metropolisas Airfoil
-- ... |
ad4faa937402e58d650fb1128ade0b913184ba71 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Compiler/Util.lean | 469fbede2711deb83f2709b96f975e2041c32526 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 2,962 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Environment
namespace Lean
namespace Compiler
def neutralExpr : Expr := mkConst `_neutral
def unreachableExpr : Expr := m... |
2a1ff6b88ed2f1df8f61a7afb2b9c603f74cae76 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Elab/PreDefinition/Structural/Eqns.lean | d778e65155ad822140add9b7908c45a276e69cb3 | [
"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 | 8,892 | 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.Eqns
import Lean.Meta.Tactic.Split
import Lean.Meta.Tactic.Apply
import Lean.Elab.PreDefinition.Basic
import Lean.Elab.PreDefinition.Struct... |
04f29ccb1ae57b5512293f05af81f2eec48a8812 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/monotone.lean | f861ca81b1682ff9bbc8a272adc2f57705c235cb | [
"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 | 1,653 | lean | class Preorder (α : Type u) extends HasLessEq α where
le_refl (a : α) : a ≤ a
le_trans {a b c : α} : a ≤ b → b ≤ c → a ≤ c
instance {α : Type u} {β : α → Type v} [(a : α) → Preorder (β a)] : Preorder ((a : α) → β a) where
LessEq f g := ∀ a, f a ≤ g a
le_refl f := fun a => Preorder.le_refl (f a)
le_trans ... |
813c4b6924be657ad3a3d177c15852a414d55703 | 2a8b9c9fb34993732e24b7934050207f28675948 | /lua/tests/fixtures/example-lean3-project/src/bar/baz.lean | ade2c2e2290a87287e6ffc34b6d871fa458db141 | [
"MIT"
] | permissive | jcommelin/lean.nvim | 471b8c2c16f47e76dfc36dc85d1e9cf6938b58e6 | b10a525f65cd2fda1c2e629d4b68f241caf67d64 | refs/heads/main | 1,691,387,304,436 | 1,633,447,198,000 | 1,633,447,198,000 | 413,898,327 | 0 | 0 | MIT | 1,633,451,737,000 | 1,633,451,737,000 | null | UTF-8 | Lean | false | false | 248 | lean | import foo
def test1 : nat := test
theorem test2 {p : Prop} {q : Prop} : p ∨ q → q ∨ p :=
begin
intro h,
cases h with h1 h2,
apply or.inr,
exact h1,
apply or.inl,
assumption,
end
def new_test : bool := by
exact false
|
05cf694442689126e52ff5322c6de42161c050ff | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/mv_polynomial/supported.lean | e1f5a2998ad54057db9e2162270654cb070de553 | [
"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,232 | lean | /-
Copyright (c) 2021 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.mv_polynomial.variables
/-!
# Polynomials supported by a set of variables
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a co... |
642c52061a32e5ec69ec211618ee78fb61477390 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/int/basic.lean | bb877bd01a4cf1d0ebdab66b482c8d559875bfa0 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 53,710 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
import algebra.char_zero
import init_.data.int.order
import algebra.ring
import data.list.range
open nat
... |
226522c2cbe13e5f047185c94ea8d1296abc3ad1 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /test/norm_swap.lean | 104f0d8988203791c94995c19aadb648ccd0027f | [
"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 | 4,287 | lean | import logic.equiv.basic
import tactic.norm_swap
open equiv tactic
/--
To properly test that norm_swap works without the help of the simplifier,
we turn off the simp lemmas that simplify swaps of the form
`swap x y x = y` and `swap x y y = x`.
-/
local attribute [-simp] swap_apply_left
local attribute [-simp] swap_a... |
a6c1450fd29a45e6c8187ea293b7e2b848d118e0 | 785b41b0993f39cbfa9b02fe0940ce3f2f51a57d | /conf/xmac2100.lean | 66c279fe5b158f4d95b044f9248b6d6a53cf28e7 | [
"MIT"
] | permissive | loso3000/OpenWrt-DIY-1 | 75b0d70314d703203508218a29acefc3b914d32d | 5858be81ee44199908cbaa1a752b17505c9834e8 | refs/heads/main | 1,690,532,461,283 | 1,631,008,241,000 | 1,631,008,241,000 | 354,817,508 | 1 | 0 | MIT | 1,617,623,493,000 | 1,617,623,492,000 | null | UTF-8 | Lean | false | false | 5,346 | lean | CONFIG_TARGET_ramips=y
CONFIG_TARGET_ramips_mt7621=y
CONFIG_TARGET_ramips_mt7621_DEVICE_xiaomi_redmi-router-ac2100=y
# 不压缩efi
# CONFIG_TARGET_IMAGES_GZIP is not set
CONFIG_EFI_IMAGES=y
CONFIG_TARGET_ROOTFS_TARGZ=n
# CONFIG_VMDK_IMAGES is not set
# ipv6
CONFIG_PACKAGE_ipv6helper=y
CONFIG_PACKAGE_dnsmasq_full_dhcpv6=y
# ... |
9e0effef3f7c0b19fe82b2c3fcb242f57a198b63 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/eq16.lean | 394b151f8e787100b995f445054777b4cd4da5c8 | [
"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 | 388 | lean | open list
variable {A : Type}
set_option pp.implicit true
definition app : list A → list A → list A
| nil l := l
| (h :: t) l := h :: (app t l)
theorem app_nil (l : list A) : app nil l = l :=
rfl
theorem app_cons (h : A) (t l : list A) : app (h :: t) l = h :: (app t l) :=
rfl
example : app ((1:num) :: 2 :: ni... |
32a7cbfd969a2c9bbde65ef09506db329e807e28 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/thunk_overload.lean | 5e012de4ae89ef1718dce4631744789005e89883 | [
"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 | 515 | lean | /- Thunk gadget works with overloaded functions -/
namespace foo
def f (a : nat) (b : thunk nat) : nat :=
a + b ()
end foo
namespace boo
def f (a : bool) (b : bool) : bool :=
a && b
end boo
namespace bla
def f (a : bool) (b : thunk nat) : nat :=
if a then b() else 42
end bla
open foo boo bla
example : f 10 10... |
c36a7598dca27ceac491f8a1676c5a6850d6868c | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/print_cmd.lean | 53e2a497921e043c42242f0e361a0d9ae2e90a39 | [
"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 | 289 | lean | new_frontend
#print Nat
private def foo (x : Nat) : Nat := x + 1
#print "hello"
#print id
#print propext
#print arbitrary
#print ReaderT.read
#print Prod
#print Prod.mk
#print Nat
#print Nat.succ
#print Nat.rec
#print Nat.casesOn
#print foo
#print Quot.mk
#print Quot.ind
#print Quot.mk
|
b7e6a62bdb29f59db0e7b7b9067572adb5aaf18d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/ordmap/ordnode.lean | 3f03aeca204232c3f1713b0432f6ba037619c5ff | [
"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 | 42,088 | 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 order.compare
import data.list.defs
import data.nat.psub
/-!
# Ordered sets
This file defines a data structure for ordered sets, supporting a
variety of usef... |
1af055e43237fcaafa194890beb69b50498ca8a7 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /data/complex/exponential.lean | c3d11657747780c5a36e1b125a63e6c00d0cea67 | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 46,730 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.archimedean
import data.nat.choose data.complex.basic
import tactic.linarith
local attribute [instance, priority 0] classical.prop_decidable
loc... |
b25e6014dd1d982b0984f259f4fd62963cafb455 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/abelian/exact.lean | bb203f8df4f95a0ad3644ad0e45b5e2094c2b852 | [
"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 | 5,368 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.abelian.basic
import algebra.homology.exact
import tactic.tfae
/-!
# Exact sequences in abelian categories
In an abelian category, we get sever... |
d220ba44aeca03f0d079d8da61d16ba2445b8db6 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/ring_theory/integral_closure.lean | 85d938b181da850a03d2c3ef39e9c88f5d1550cb | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 16,017 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import ring_theory.algebra_tower
/-!
# Integral closure of a subring.
-/
universes u v w
open_locale classical
open polynomial submodule
section
variables (R : Type u) {A : ... |
04be034cb1ca3c2168aec00b207bd3438d45d1f3 | 6dacdff2020860f2468bb8dacf344e6b043d6a78 | /love/src/demo_suggest_using.lean | 73f32ca63ce68ff92ae66360ed72b116e6cbe095 | [] | no_license | alexjbest/talks | 514ca57af312a14cf68c30efa1c7228294edc190 | 84976b4329ea768c754da72cc15d5ce29332466d | refs/heads/master | 1,686,993,465,308 | 1,686,315,975,000 | 1,686,315,975,000 | 16,347,963 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 337 | lean | import data.list.basic
variables {α : Type*} [ring α]
lemma ex (l : list α) (h : l ≠ []) : ∃ a k, l = k ++ [a] :=
begin
split,
swap,
-- library_search,
-- split,
-- swap,
-- let d := l.length - 1,
-- suggest using d,
end
lemma a : true :=
have 1 = 1 := rfl,
trivial
lemma b : true :=
(λ h : 1 = 1, triv... |
49021b1e826a41bfd7381f85c651e13d9ffdcc22 | dc253be9829b840f15d96d986e0c13520b085033 | /homotopy/pushout.hlean | 40182b39fd9da101cf5e39a085439427d36b7fd6 | [
"Apache-2.0"
] | permissive | cmu-phil/Spectral | 4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea | 3b078f5f1de251637decf04bd3fc8aa01930a6b3 | refs/heads/master | 1,685,119,195,535 | 1,684,169,772,000 | 1,684,169,772,000 | 46,450,197 | 42 | 13 | null | 1,505,516,767,000 | 1,447,883,921,000 | Lean | UTF-8 | Lean | false | false | 41,263 | hlean |
import ..algebra.exactness homotopy.cofiber homotopy.wedge homotopy.smash
open eq function is_trunc sigma prod lift is_equiv equiv pointed sum unit bool cofiber
namespace pushout
section
variables {TL BL TR : Type*} {f : TL →* BL} {g : TL →* TR}
{TL' BL' TR' : Type*} {f' : TL' →* BL'} {g' : TL' ... |
252f85bf773e20b12865a45d3e1e5a37f42269db | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/holor.lean | eafbe803b7dd37ea2547a8213e6549c78dad14ab | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,765 | lean | /-
Copyright (c) 2018 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp
-/
import algebra.module.pi
import algebra.big_operators.basic
/-!
# Basic properties of holors
Holors are indexed collections of tensor coefficients. Confusin... |
67fea63667ab0044a7d9ee76140169eaccfa0bea | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/nat/prime.lean | e1163b21a4c3d63522d5a824c1f9397d24c5d38d | [
"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 | 30,457 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import data.nat.sqrt
import data.nat.gcd
import algebra.group_power
import tactic.wlog
import tactic.norm_num
/-!
# Prime n... |
30f0f60ebdfcde92adce25eae6954ca223e30676 | 618003631150032a5676f229d13a079ac875ff77 | /src/control/monad/cont.lean | 36203a3dbb530cb2b8beb00a964351f115f48bac | [
"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 | 8,867 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Monad encapsulating continuation passing programming style, similar to
Haskell's `Cont`, `ContT` and `MonadCont`:
<http://hackage.haskell.org/package/mtl-2.2.2/docs/Control-Mo... |
543e9436f7d610aa597e296948be9ac1d7bc5f23 | 6b02ce66658141f3e0aa3dfa88cd30bbbb24d17b | /src/Lean/Elab/Tactic/Induction.lean | ae128f47ba4960ee3a1c3c3f9048e6b1a44bfa21 | [
"Apache-2.0"
] | permissive | pbrinkmeier/lean4 | d31991fd64095e64490cb7157bcc6803f9c48af4 | 32fd82efc2eaf1232299e930ec16624b370eac39 | refs/heads/master | 1,681,364,001,662 | 1,618,425,427,000 | 1,618,425,427,000 | 358,314,562 | 0 | 0 | Apache-2.0 | 1,618,504,558,000 | 1,618,501,999,000 | null | UTF-8 | Lean | false | false | 20,526 | 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.Util.CollectFVars
import Lean.Parser.Term
import Lean.Meta.RecursorInfo
import Lean.Meta.CollectMVars
import Lean.Meta.Tactic... |
461f4f46b44f1aef64daaa6365e80848584031a6 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/field_theory/splitting_field.lean | 53c6ea6b9f2ab29b46671db319a8bcd8cdf54abc | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,188 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
Definition of splitting fields, and definition of homomorphism into any field that splits
-/
import ring_theory.adjoin_root
import ring_theory.algebra_tower
import ring_the... |
c38ae752fd3cd7ebd1aff4eadb300ddc20e609e5 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world6/level6.lean | 42b9af3dfb322bb0b0630bf687448d30b51417f6 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 1,341 | lean | /-
# Proposition world.
## Level 6: `(P → (Q → R)) → ((P → Q) → (P → R))`.
You can solve this level completely just using `intro`, `apply` and `exact`,
but if you want to argue forwards instead of backwards then don't forget
that you can do things like `have j : Q → R := f p` if `f : P → (Q → R)`
and `p : P`. I reco... |
77abdb806d84716842877b36d1040873ce860a6e | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/algebra/valued_field.lean | 374f3030c88b745511a925d762ac2b07b73eacdc | [
"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 | 14,911 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.algebra.valuation
import topology.algebra.with_zero_topology
import topology.algebra.uniform_field
/-!
# Valued fields and their completions
In thi... |
15e2d4bb600c6e579a648ece18ce292a9386653f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/group_theory/subgroup.lean | fc00dc4e60ee79138816abeae228e16e7a48b530 | [] | 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 | 51,388 | lean | /-
Copyright (c) 2020 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.group_theory.submonoid.default
import Mathlib.algebra.group.conj
import Mathlib.order.modular_lat... |
9edf34589f587fe05cce0bd53822d9ac2737be7b | e967488e2008f07b0aa7b6b18d4398d02c7460e2 | /src/game/limits/L01defs.lean | 549388193fe53731e890b882f6eaf0db4d2fdb3a | [] | no_license | thyrgle/real-number-game | 5c53eefaa815051f3d70ca5782e41d2adb76fd6e | a420eecef62209b729c910c2170d1dd27b74bc9f | refs/heads/master | 1,606,405,407,612 | 1,574,956,743,000 | 1,574,956,743,000 | 229,126,103 | 0 | 0 | null | 1,576,784,273,000 | 1,576,784,272,000 | null | UTF-8 | Lean | false | false | 2,161 | lean | import game.sup_inf.L01defs
import tactic.linarith
namespace xena -- hide
notation `|` x `|` := abs x -- hide
lemma zero_of_abs_lt_all (x : ℝ) (h : ∀ ε > 0, |x| < ε) : x = 0 :=
eq_zero_of_abs_eq_zero $ eq_of_le_of_forall_le_of_dense (abs_nonneg x) $ λ ε ε_pos, le_of_lt (h ε ε_pos)
-- The next few things should be hi... |
c310747cb9508a289c7c0042548f64b1e384d0f9 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/monoidal/Mon_.lean | a8cfa6aca7e6eeb3c9a554fcecd36f756cb76910 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 9,388 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monoidal.discrete
import category_theory.limits.shapes.terminal
import algebra.punit_instances
/-!
# The category of monoids in a monoidal cat... |
9adfe2a298dbf414af44f846fdd68b6defab08f6 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/new_inductive.lean | 1283e04f63037e33566e5d173abd3d2821712969 | [
"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 | 2,096 | lean | universe u v
inductive myList (α : Type u)
| nil : myList α
| cons : α → myList α → myList α
inductive myPair (α : Type u) (β : Type v)
| mk : α → β → myPair α β
mutual
variable (α : Type u) (m : α → Type v)
inductive bla : Nat → Type (max u v)
| mk₁ (n : Nat) : α → boo n → bla (n+1)
| mk₂ (a : α) : m a → String ... |
f4a121050913c9c5a2632632ce79f63defdd4143 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/shapes/biproducts.lean | 1419e01df9a83e00e23b5e827ee082431b77685e | [
"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 | 66,682 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Jakob von Raumer
-/
import category_theory.limits.shapes.finite_products
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.kerne... |
b8eedc6312d59b8af5eb0eaa55293be7dea90935 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/pkg/user_ext/UserExt/Tst2.lean | c7743d2044b769e05019d30a12bc32fe9bbf9563 | [
"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 | 92 | lean | import UserExt.BlaExt
import UserExt.FooExt
insert_foo test
insert_bla defg
insert_bla hij
|
099869b56e1b00c6e9122f15c594e3625c4bdb15 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/algebra/ordered_auto.lean | 3bba3638ea833b91989066785d803b3a2e1200dc | [] | 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 | 165,065 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.linarith.default
import Mathlib.tactic.tfae
import ... |
3325686837c4b4b74cba5d1b83b5f6ea2784e1ce | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/full_subcategory.lean | 670bd5a7ac42c4adfca964ea47da0bb24ba3b497 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 3,387 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton
-/
import category_theory.fully_faithful
import category_theory.groupoid
namespace category_theory
universes v u₁ u₂ -- declare the `v`'s first; see `cate... |
a3b67564e7fdc282c53581f855dae657117cfc7f | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/category_theory/limits/lattice.lean | 6aee1dae5ffa4a95f3386fd0189a45918280adb9 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 2,529 | 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.limits
import category_theory.limits.shapes.finite_products
import order.complete_lattice
universes u
open category_theory
namespace ... |
47ef0aeee969ae2b84806ad5f03bf80637551a6b | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean/deps/galois_stdlib/src/galois/data/nat/default.lean | ae93cefd2b88d82c1562c1a12fcc24936d5fff6b | [
"Apache-2.0"
] | permissive | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 1,081 | lean | import data.buffer
import .basic
import .repr_lemmas
namespace nat
section rendering
def to_digits_buffer.f {base : ℕ} (base_pos : base > 1)
(n:ℕ) (rec : Π(m:ℕ), m < n → buffer ℕ → buffer ℕ) (prev:buffer ℕ) : buffer ℕ :=
if h : n < base then
prev.push_back n
else
let n_pos : n > 0 :=
ca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.