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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f6b003dc69acde2e8852b448f1d2a6b7f67d0cd | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/algebra/basic.lean | 1b2127603a6e8e6bbd82190ef3018991e790b4c6 | [
"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 | 59,803 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.module.basic
import algebra.ring.aut
import linear_algebra.span
import tactic.abel
/-!
# Algebras over commutative semirings
In this file we d... |
9de299289d0e5ccee61b4f3f7202f7725d80c188 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/continued_fractions/computation/basic.lean | a8a7cbf956561e29f8560bef4b839e81f299f094 | [
"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 | 7,941 | 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.order.floor
import algebra.continued_fractions.basic
/-!
# Computable Continued Fractions
## Summary
We formalise the standard computation of (r... |
7547a9bb0a850bb14b441b057e16c1de93d4facf | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/analysis/normed_space/riesz_lemma.lean | d698b6c01b087f70a7f52c3495e46b183847f34d | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 1,898 | lean | /-
Copyright (c) 2019 Jean Lo. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jean Lo
-/
import analysis.normed_space.basic
import topology.metric_space.hausdorff_distance
/-!
# Riesz's lemma
Riesz's lemma, stated for a normed space over a normed field: for any
clos... |
b107b8334e6933faeef2efccfadd9ed37ad90744 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/algebra/ring.lean | 6b30d15a6bf11af76c389a27b0fcfdeb6b3287b2 | [
"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 | 40,881 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Amelia Livingston, Yury Kudryashov,
Neil Strickland
-/
import algebra.group.hom
import algebra.group.units
import tactic.alias
import... |
d6628ea3122d469a85a69de45cc8df4d036b55a3 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/convex/basic.lean | 6825f1007898157d2c56661b615592c1352ca7d6 | [
"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 | 21,880 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov, Yaël Dillies
-/
import algebra.order.module
import analysis.convex.star
import linear_algebra.affine_space.affine_subspace
/-!
# Convex sets a... |
6178812d6721d9d5cef8bbc28a3e14b1a2170c6f | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/covariant_and_contravariant.lean | ffb87739958df59cb3122f91c5ad73c48618f477 | [
"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,014 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebra.group.defs
import order.basic
/-!
# Covariants and contravariants
This file contains general lemmas and instances to work with the interactions betwe... |
5db9733860314b337b41feaee2c4ad1939e1bc1c | ac89c256db07448984849346288e0eeffe8b20d0 | /stage0/src/Lean/Meta/Basic.lean | 512e6a5be7455b285bec80cac27e2207a7ef171d | [
"Apache-2.0"
] | permissive | chepinzhang/lean4 | 002cc667f35417a418f0ebc9cb4a44559bb0ccac | 24fe2875c68549b5481f07c57eab4ad4a0ae5305 | refs/heads/master | 1,688,942,838,326 | 1,628,801,942,000 | 1,628,801,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 47,875 | 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.Data.LOption
import Lean.Environment
import Lean.Class
import Lean.ReducibilityAttrs
import Lean.Util.Trace
import Lean.Util.RecDepth
import Lea... |
4b5d1ecadff5218251ac70bf41cf1cc5a413589e | 46125763b4dbf50619e8846a1371029346f4c3db | /src/algebra/direct_limit.lean | b83ee758a0387673fc6c1e84823ffaa59cbb8305 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 24,984 | lean | /-
Copyright (c) 2019 Kenny Lau, Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes
Direct limit of modules, abelian groups, rings, and fields.
See Atiyah-Macdonald PP.32-33, Matsumura PP.269-270
Generalizes the notion of "union", o... |
c4a6a5fba336327516e1be1b7a242a83bedb83e5 | 56af0912bd25910f5caae91d6dd0603b0c032989 | /kb_solutions/field.lean | 2fe04cf722a5afa60c17d3eaa7efd30ab4c0581f | [
"Apache-2.0"
] | permissive | isabella232/complex-number-game | ae36e0b1df9761d9df07049ca29c91ae44dbdc2d | 3d767f14041f9002e435bed3a3527fdd297c166d | refs/heads/master | 1,679,305,953,116 | 1,606,397,567,000 | 1,606,397,567,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,298 | lean | /-
Copyright (c) 2020 The Xena project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard.
Thanks: Imperial College London, leanprover-community
-/
import complex.kb_solutions.Level_04_norm_sq -- solutions to levels 1 to 4
noncomputable theory
namespace c... |
8ba19ced04f0176c04518a4cb717c0f9d1ac1d89 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/smt_ematch_alg_issue.lean | e549ca7c4dee51cfd7734ffa0655fb47dfb46f54 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 294 | lean | lemma {u} ring_add_comm {α : Type u} [ring α] : ∀ (a b : α), (: a + b :) = b + a :=
add_comm
open smt_tactic
meta def no_ac : smt_config :=
{ cc_cfg := { ac := ff }}
lemma ex {α : Type} [field α] (a b : α) : a + b = b + a :=
begin [smt] with no_ac,
ematch_using [ring_add_comm]
end
|
12347257b63f717140647eec7e6249e43dc6a1ca | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/tactic.lean | 55bccc36e39fb6ddaa6d090d6205059f69efaf67 | [
"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 | 6,709 | 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 measure_theory.measure.measure_space_def
import tactic.auto_cases
import tactic.tidy
import tactic.with_local_reducibility
/-!
# Tactics for measure theory
Curren... |
1723bd88d949520e9fc4d6a5d1df7ae2692fee06 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/logic/embedding.lean | e50a21c07f34369b0c21570c98bca1f09941695e | [
"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 | 9,772 | 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 data.equiv.basic
/-!
# Injective functions
-/
universes u v w x
namespace function
/-- `α ↪ β` is a bundled injective function. -/
structur... |
4ea6f245f76fc2b58deb63f458938cc10a4f93db | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/algebra/category/Mon/basic.lean | 869717a2415fe3183e5abe820c168878f6a62e85 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,851 | 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 category_theory.concrete_category
import algebra.group.hom
import data.equiv.mul_add
import algebra.punit_instances
/-!
# Category instances for monoid, add_... |
d59fcea26c3cab61e4ba414047463ccedc9d25ee | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/bicategory/strict.lean | 692dd0374e06c5f9404d2abfd1d1bc017f66bcb0 | [
"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,146 | lean | /-
Copyright (c) 2022 Yuma Mizuno. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yuma Mizuno
-/
import category_theory.eq_to_hom
import category_theory.bicategory.basic
/-!
# Strict bicategories
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file r... |
6d4211a58ee4761edd14b616823d91c17e6d318c | 5c4a0908390c4938ae21bc616ff2a969ce62fd76 | /library/theories/topology/basic.lean | 4a022d044795f58c5f21106de5de7b2a579d5521 | [
"Apache-2.0"
] | permissive | Bpalkmim/lean | 968be8a73a06fa6db19073cd463d2093464dc0f6 | 994815bc7793f5765beb693c82341cf01d20d807 | refs/heads/master | 1,610,964,748,106 | 1,455,564,675,000 | 1,455,564,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,842 | lean | /-
Copyright (c) 2015 Jacob Gross. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jacob Gross, Jeremy Avigad
Open and closed sets, seperation axioms and generated topologies.
-/
import data.set data.nat
open algebra eq.ops set nat
structure topology [class] (X : Type... |
6449fd788dd7e2a0495f993eb78aed46317a3e23 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /hott/algebra/binary.hlean | 2c9f3d93fdb3cf14f615d208c889e1156249d180 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,251 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.binary
Authors: Leonardo de Moura, Jeremy Avigad
General properties of binary operations.
-/
open eq
namespace binary
section
variable {A : Type}
variables ... |
74ca4cd734efe45d723c0efca2b98b9234c64012 | 6b2a480f27775cba4f3ae191b1c1387a29de586e | /group_rep1/basis.lean | 80a61610c5747c77fff03aa21c28b4f730275c20 | [] | no_license | Or7ando/group_representation | a681de2e19d1930a1e1be573d6735a2f0b8356cb | 9b576984f17764ebf26c8caa2a542d248f1b50d2 | refs/heads/master | 1,662,413,107,324 | 1,590,302,389,000 | 1,590,302,389,000 | 258,130,829 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,526 | lean | import linear_algebra.basic
import linear_algebra.basis
import algebra.big_operators
universes u v w
variables (X : Type u)(R : Type v)[comm_ring R][decidable_eq X][fintype X]
def ε (x : X) : (X → R) := λ y, if x = y then 1 else 0
variables ( x y : X)
#check ε X R x
lemma test1 (g : X → R)(s : finset X) : (λ (i : X... |
975a258dde7d8f37d2e11a14af6098facea2a8e3 | 50b3917f95cf9fe84639812ea0461b38f8f0dbe1 | /canonical_isomorphism/canonical.lean | ae84bbb574f96c37683917a45d79580525b68df3 | [] | no_license | roro47/xena | 6389bcd7dcf395656a2c85cfc90a4366e9b825bb | 237910190de38d6ff43694ffe3a9b68f79363e6c | refs/heads/master | 1,598,570,061,948 | 1,570,052,567,000 | 1,570,052,567,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,682 | lean | import data.equiv.basic
--import analysis.topology.topological_structures
universes u v w
-- Scott's basic class.
class transportable (f : Type u → Type v) :=
(on_equiv : Π {α β : Type u} (e : equiv α β), equiv (f α) (f β))
(on_refl : Π (α : Type u), on_equiv (equiv.refl α) = equiv.refl (f α))
(on_trans : Π {α β γ : ... |
d43471eac31c756500cf9667d005459058a02c9f | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /data/int/basic.lean | 8c0167012424510a966f9601c09cf322b5f829e8 | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 45,273 | 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 data.nat.basic algebra.char_zero algebra.order_functions
open nat
namespace int
instance : inhab... |
8462b2196e29c59ebe6644947a0837eba5d8a88b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/operator_norm.lean | cdc5fddc547ac053cf3bbbd52072510b1cc596fe | [
"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 | 93,789 | lean | /-
Copyright (c) 2019 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
-/
import algebra.algebra.tower
import analysis.asymptotics.asymptotics
import analysis.normed_space.linear_isometry
import topology.al... |
cfda1784e6685a8dd0327bbd3f9ea6605705ec2e | 32a2d1642d7519c99693bc1d3b24069e4853dd1f | /algebra/pi_instances.lean | 2fdf211a7ad9be374d0cb03571574a7ef36029db | [
"Apache-2.0"
] | permissive | Cedric0099/mathlib | 7edb81d5d68e280b4d21f6c0377dad1f9b8c0d71 | a97101d2df5d186848075a2d0452f6a04d8a13eb | refs/heads/master | 1,584,201,847,599 | 1,524,979,632,000 | 1,524,979,632,000 | 131,690,350 | 0 | 0 | null | 1,525,162,341,000 | 1,525,162,341,000 | null | UTF-8 | Lean | false | false | 4,043 | 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
Pi instances for algebraic structures.
-/
import algebra.module
namespace tactic
open interactive interactive.types lean.parser
open functor has_seq list n... |
152316b52e5e01e4881f6c008cdbf8102a3b1697 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/PrettyPrinter/Parenthesizer.lean | b007273b652bcd7243e21fc3b99c587c8499b013 | [
"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 | 28,177 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Parser.Extension
import Lean.Parser.StrInterpolation
import Lean.ParserCompiler.Attribute
import Lean.PrettyPrinter.Basic
/-!
The parenthesizer in... |
19ed9047ff87f780cd2b2553dadbc103e864f1f1 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/dynamics/fixed_points/topology.lean | 56a1979f1862c9051ab230f5bb795fab8ff11a27 | [
"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 | 1,270 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Johannes Hölzl
-/
import dynamics.fixed_points.basic
import topology.separation
/-!
# Topological properties of fixed points
Currently this file contains two lemmas... |
41edf7ad9331193579876cd1d46ab383a52937cd | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/converter/interactive.lean | 7c06dfeaccf0c85485f0015c29785acacb51c91f | [
"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 | 4,291 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen, Keeley Hoek, Leonardo de Moura
Converter monad for building simplifiers.
-/
import tactic.core tactic.converter.old_conv
namespace old_conv
meta def save_info (p ... |
6f0a4cf062c89ceaba2539e9d8f4948eb1e57a1c | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/ring_theory/polynomial/cyclotomic/basic.lean | 2aba39c26b744d206683b5a18b493ca84bc9c573 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 48,192 | lean | /-
Copyright (c) 2020 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import algebra.polynomial.big_operators
import analysis.complex.roots_of_unity
import data.polynomial.lifts
import field_theory.separable
import field_theory.split... |
d743527bdb336ba2aa1688392aa5ae3dfb3051ad | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/algebra/category/CommRing/basic.lean | 440ff3a019611515c4cf26102fae468c38ec0276 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 6,639 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Yury Kudryashov
-/
import algebra.category.Group
import category_theory.fully_faithful
import algebra.ring
import data.int.basic
import data.equiv.ring... |
974a97dd1966e313f39222450af4a6c2bb105596 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/linear_algebra/char_poly/coeff.lean | fd317d6741f49409ec12ad607ffdb1e1ce5037e8 | [
"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 | 10,667 | 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 algebra.polynomial.big_operators
import data.matrix.char_p
import field_theory.finite.basic
import group_theory.perm.cycles
import l... |
87ac7ebabe76f811f718b7e89e6a346589201ac7 | aa2345b30d710f7e75f13157a35845ee6d48c017 | /category_theory/embedding.lean | 9e69a58c167c0787baa7858344905c0ae3732a14 | [
"Apache-2.0"
] | permissive | CohenCyril/mathlib | 5241b20a3fd0ac0133e48e618a5fb7761ca7dcbe | a12d5a192f5923016752f638d19fc1a51610f163 | refs/heads/master | 1,586,031,957,957 | 1,541,432,824,000 | 1,541,432,824,000 | 156,246,337 | 0 | 0 | Apache-2.0 | 1,541,434,514,000 | 1,541,434,513,000 | null | UTF-8 | Lean | false | false | 2,664 | 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 category_theory.isomorphism
universes u₁ v₁ u₂ v₂ u₃ v₃
namespace category_theory
variables {C : Type u₁} [𝒞 : category.{u₁ v₁} C] {D : Type u₂} [𝒟 : ... |
81eadadb28d41cb4a650798bfb0a325f2e576d3f | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world8/level9.lean | 0714b3eacbdf3d0b495858c3a0e4341e0410df88 | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 1,608 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world8.level8 -- hide
namespace mynat -- hide
/- Axiom : zero_ne_succ (a : mynat) :
0 ≠ succ(a)
-/
/- Tactic : symmetry
## Summary
`symmetry` turns goals of the form `⊢ A = B` to `⊢ B = A`.
Also works with `≠`. Also works on hypotheses: if `h : a ... |
439112bb37573d1f5eda335e94c717debf9129ac | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/measure_theory/measure_space.lean | 2942e61b7a979c2151fb0f09a3f1db0b506d0838 | [
"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 | 84,644 | 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 measure_theory.outer_measure
import order.filter.countable_Inter
import data.set.accumulate
/-!
# Measure spaces
Given a measurable space `α`... |
4374d608f9057111b0c210f2cee1363667e1b846 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/uniform_space/compare_reals.lean | 3cd39634023f57baea64ea4f6e07f6746df157b2 | [
"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 | 4,752 | lean | /-
Copyright (c) 2019 Patrick MAssot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.uniform_space.absolute_value
import topology.instances.real
import topology.uniform_space.completion
/-!
# Comparison of Cauchy reals and Bourbaki r... |
e24e80567503387ef12b1491f2101da7125f463a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/calculus/affine_map.lean | 8aee84800f4ce2415711665e93688492efcbff84 | [
"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 | 894 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import analysis.normed_space.continuous_affine_map
import analysis.calculus.cont_diff
/-!
# Smooth affine maps
This file contains results about smoothness of affine maps.... |
8d529da59fb76f963387c2b0f5cbc9fa64aeb4ae | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/ring/inj_surj.lean | d52b98aed2d53cbf09cf55ff5288e5296ef6513f | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 22,091 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Yury Kudryashov, Neil Strickland
-/
import algebra.ring.defs
import algebra.opposites
import algebra.group_with_zero.inj_surj
/-!
# ... |
0f64f36d4466e9c1ba27aa5ac5f1a70902ddd89f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/measure_theory/group/action.lean | 380b5ada642ecf50cf39e4f1f0ee773901fc2eba | [
"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 | 8,222 | 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 measure_theory.group.measurable_equiv
import measure_theory.measure.regular
import dynamics.ergodic.measure_preserving
import dynamics.minimal
/-!
# M... |
cc6d1f9173553e5544d3cc78c19c5e961cdd2bf5 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/data/list/basic.lean | 90d6b9ee9db35d20197c939695847714b94e2849 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,905 | 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
Basic properties of lists.
-/
import logic tools.helper_tactics data.nat.order
open eq.ops helper_tactics nat prod function option... |
e68d8b5a5a5ebdbabae26ec6391fa958428af2bd | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/e5.lean | 393a87015492c7f0cae7f0b99cd5178cfbdaeba9 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,510 | lean | definition Prop [inline] := Type.{0}
definition false : Prop := ∀x : Prop, x
check false
theorem false_elim (C : Prop) (H : false) : C
:= H C
definition eq {A : Type} (a b : A)
:= ∀ P : A → Prop, P a → P b
check eq
infix `=`:50 := eq
theorem refl {A : Type} (a : A) : a = a
:= λ P H, H
definition true : Prop
:= f... |
d11cf26012d9539f3377c8a9d7afe67dc586bd02 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/set_theory/cofinality.lean | cfe8356ee9dc56118a75277e96ad3290ee7ac3c9 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 22,018 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import set_theory.ordinal
/-!
# Cofinality on ordinals, regular cardinals
-/
noncomputable theory
open function cardinal set
open_locale classical
universes u v w
va... |
b2cb98e8b205b9df519181a9d1cb1b6f444530b6 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/induniv.lean | 62314313394b57ba2c0193d656d90bc534561fa2 | [
"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,015 | lean | inductive list (A : Type) : Type :=
nil {} : list A,
cons : A → list A → list A
section
variable A : Type
inductive list2 : Type :=
nil2 {} : list2,
cons2 : A → list2 → list2
end
constant num : Type.{1}
namespace Tree
inductive tree (A : Type) : Type :=
node : A → forest A → tree A
with forest : Type :=
... |
18488874fa2a539c05bd055a2085224a12930b53 | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/topology/hausdorff.lean | ac56513847e517545723a0e16970b726aea6fc26 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,809 | lean | import data.real.basic
--begin hide
namespace xena
def neighborhood1 (a : ℝ) (ε : ℝ) (h : ε > 0) := { x : ℝ | abs(a - x) < ε}
/-
To be technically correct, the definition below should include
the hypothesis that ε > 0, see the one above.
But that does raise some issues which I don't know how to handle
when using... |
3bd377709538d10fc1aab41f33eef7af9a037147 | bb31430994044506fa42fd667e2d556327e18dfe | /src/order/with_bot.lean | 93d3cd2093e2c86012698d716c195f23142c3fa8 | [
"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 | 37,476 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import order.bounded_order
/-!
# `with_bot`, `with_top`
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4... |
bbd6cc8ee993f0c235772b9c13ebccc567f39659 | c9e78e68dc955b2325401aec3a6d3240cd8b83f4 | /src/property_catalogue/LTL/sat/precedes.lean | 57783cf4b0287d3221020e13b5da416dface9fee | [] | no_license | loganrjmurphy/lean-strategies | 4b8dd54771bb421c929a8bcb93a528ce6c1a70f1 | 832ea28077701b977b4fc59ed9a8ce6911654e59 | refs/heads/master | 1,682,732,168,860 | 1,621,444,295,000 | 1,621,444,295,000 | 278,458,841 | 3 | 0 | null | 1,613,755,728,000 | 1,594,324,763,000 | Lean | UTF-8 | Lean | false | false | 3,643 | lean | import LTS property_catalogue.LTL.patterns tactic
open tactic
variable {M : LTS}
namespace precedes
namespace globally
-- Proof 1 : Because S never happens
lemma vacuous (P S : formula M) (π : path M) :
(sat (absent.globally S) π) → sat (precedes.globally P S) π
:= λ s, or.inl s
-- Proof 2 : P precedes S ... |
2643561f9b34303c07a17952e2537c3081a45a19 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/data/zmod/basic.lean | 337750d8d00ad61f9913063918cfec64b44b854a | [
"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 | 14,121 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
-/
import data.int.modeq data.int.gcd data.fintype data.pnat
open nat nat.modeq int
def zmod (n : ℕ+) := fin n
namespace zmod
instance (n : ℕ+) : has_neg (zmod n) :=
⟨λ a... |
0cb9d9b7a22438ad23f1a35b5cb4dde86bd49ddc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/general_recursion.lean | a32b2bda52580459fa6955fb077ed8b757df0aa5 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 10,562 | 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 tactic.norm_num
import tactic.linarith
import tactic.omega
import control.lawful_fix
import order.category.omega_complete_partial_order
import data.nat.basic
unive... |
9bc56e288ee296e13bdc79f540e2c26ddf5bf9f6 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/linear_algebra/affine_space/affine_map.lean | 4e4179277adf0f259a9cba34daf28fd4e9c5faef | [
"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 | 19,861 | 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 linear_algebra.affine_space.basic
import linear_algebra.tensor_product
import linear_algebra.prod
import linear_algebra.pi
import data.set.intervals.unordered_inte... |
1aad99b96c42268f9aab1edf8f88e224b8a91ec7 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/field_theory/galois.lean | 5b42690ea8dc0940a4b11396d11f3629272c54a8 | [
"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 | 18,247 | lean | /-
Copyright (c) 2020 Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Patrick Lutz
-/
import field_theory.normal
import field_theory.primitive_element
import field_theory.fixed
import ring_theory.power_basis
/-!
# Galois... |
a7d45fe557123dff654dad18eff26808ed6f3cfc | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world10/level18_old.txt | 32f56434d5498bff66ceff77358862b61f9f82a3 | [
"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 | 887 | txt | import game.world10.level17 -- hide
namespace mynat -- hide
/-
# Inequality world.
## Level 18: lt_of_add_lt_add_left
Two collectibles for the price of one: after the below lemma
we can deduce both that the naturals are an ordered commutative
monoid and a canonically-ordered monoid ("canonical" here means
that $a\... |
6e821144cb89915bb0a5b5cc9d555a520a611830 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/finset/basic.lean | a9ae63f87c23f1c7b51c78644f6f0b844c2e38b1 | [
"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 | 132,028 | 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.int.order.basic
import data.multiset.finset_ops
import algebra.hom.embedding
import tactic.apply
impo... |
418f3f1422a8cf1d1e64e800646ed6d0721fe4d0 | e4def7044cdf5942eed78db25d2daa58d80eed64 | /_target/deps/mathlib/src/analysis/normed_space/basic.lean | 53f84c8cfd7161f73e3b71536ab24287f3a9d915 | [
"Apache-2.0"
] | permissive | kevinsullivan/dm.s20.old | 3f8f736b9a792cca8dd44a73a98ade0b534ed084 | a240be0a53961ac25b5f4426fe7bc8d4dbe7013f | refs/heads/master | 1,607,522,498,471 | 1,579,058,084,000 | 1,579,058,084,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,788 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Normed spaces.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.pi_instances
import linear_algebra.basic
import topology.instances.nnreal topology.instances.complex
import topology.a... |
beec659a5b2d918eab59b8f1db2f2c7238f35bbd | a46270e2f76a375564f3b3e9c1bf7b635edc1f2c | /5.8.1-3.7.lean | 00d00cd388839f229d739a0e0d02b2d056a71023 | [
"CC0-1.0"
] | permissive | wudcscheme/lean-exercise | 88ea2506714eac343de2a294d1132ee8ee6d3a20 | 5b23b9be3d361fff5e981d5be3a0a1175504b9f6 | refs/heads/master | 1,678,958,930,293 | 1,583,197,205,000 | 1,583,197,205,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,774 | lean | variables p q r : Prop
-- commutativity of ∧ and ∨
example : p ∧ q ↔ q ∧ p := begin
apply iff.intro, all_goals {intro h, exact ⟨h.2, h.1⟩ }
end
example : p ∨ q ↔ q ∨ p := begin
apply iff.intro, all_goals {intro h, cases h, {right, assumption}, {left, assumption} }
end
-- associativity of ∧ and ∨
example : ... |
a5fe55b0086bad2a6c296a7c83664a8635f96bda | 947b78d97130d56365ae2ec264df196ce769371a | /tests/compiler/float_cases_bug.lean | 14eb1fe19ba6cd7867d11368a30059a039bd2d0f | [
"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 | 914 | lean | inductive Term : Type
| const : Nat -> Term
| app : List Term -> Term
namespace Term
instance : Inhabited Term := ⟨Term.const 0⟩
partial def hasToString : Term -> String | const n => "CONST(" ++ toString n ++ ")" | app ts => "APP"
instance : HasToString Term := ⟨hasToString⟩
end Term
open Term
structure MySta... |
a01929c19eb3c3ccaaced6958dd037c2c0877099 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/limits/shapes/multiequalizer.lean | 5cc5edaf285dbfbc1b7d38249f8085ed6d5fd3bf | [
"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 | 26,576 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.limits.shapes.products
import category_theory.limits.shapes.equalizers
import category_theory.limits.cone_category
import category_theory.adjunction
/... |
5fd4cbd3c91a836cb51d85dc32d564c927a91dcf | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/tactic/omega/nat/main.lean | f006f1385f30784096cb4f2954840e49ab963662 | [
"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,978 | lean | /- Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Main procedure for linear natural number arithmetic. -/
import tactic.omega.prove_unsats
import tactic.omega.nat.dnf
import tactic.omega.nat.neg_elim
import tactic.omega.nat.sub_e... |
eaf4445f64f823d38ba1f96f366e6670cd0a5d57 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/ideal/idempotent_fg.lean | 61bdcf8506b19748382b54ec20980581fb94094f | [
"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,700 | lean | /-
Copyright (c) 2018 Mario Carneiro, Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import algebra.ring.idempotents
import ring_theory.finiteness
/-!
## Lemmas on idempotent finitely generated ideals
> THIS FILE IS SYN... |
f11aea8d0a4c01a0aad07d8784d4677bb901971f | 6b10c15e653d49d146378acda9f3692e9b5b1950 | /examples/logic/unnamed_505.lean | 93bd5c626fc08e1aad1a66fb736e89a27e0f6f77 | [] | no_license | gebner/mathematics_in_lean | 3cf7f18767208ea6c3307ec3a67c7ac266d8514d | 6d1462bba46d66a9b948fc1aef2714fd265cde0b | refs/heads/master | 1,655,301,945,565 | 1,588,697,505,000 | 1,588,697,505,000 | 261,523,603 | 0 | 0 | null | 1,588,695,611,000 | 1,588,695,610,000 | null | UTF-8 | Lean | false | false | 200 | lean | variables A B : Prop
-- BEGIN
example : false → A :=
by { intro h, cases h }
example : false → A :=
by { intro h, contradiction }
example (h₁ : B) (h₂ : ¬ B) : A :=
by contradiction
-- END |
8c26b920a1a29e5e1d6fe977b2403891a80a4ec9 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /test/differentiable.lean | 0b325a44c1feb36a6b26b0c45101bcfc2a2e153f | [
"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 | 2,467 | lean | import analysis.special_functions.trigonometric.basic
import analysis.special_functions.log_deriv
namespace real
example : differentiable ℝ (λ (x : ℝ), exp x) :=
by simp
example : differentiable ℝ (λ (x : ℝ), exp ((sin x)^2) - exp (exp (cos (x - 3)))) :=
by simp
example (x : ℝ) : deriv (λ (x : ℝ), (cos x)^2 + 1 + (... |
bdc52f7b7d673e7b4ef90b6d69b8ca14a21cd306 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/measure_theory/integral/set_integral.lean | da19fbe0accbe87b750b50637680a6e9b9bb8ece | [
"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 | 44,871 | 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
/-!
# Set integral
In this... |
c109513dc60d97c40bc1ec4e14210279c966418d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/fun.lean | d265e0baa8832ce0fbcdc58810939c00826b4e48 | [
"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 | 265 | lean | open Function Bool
opaque f : Nat → Bool := default
opaque g : Nat → Nat := default
#check f ∘ g ∘ g
#check (id : Nat → Nat)
opaque h : Nat → Bool → Nat := default
opaque f1 : Nat → Nat → Bool := default
opaque f2 : Bool → Nat := default
|
b2981987e090b97eb019f98e7fe8d2e591f85704 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/computability/halting.lean | fb1dd251662da93b51fd5ba8adafee7435f7b1e9 | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 11,716 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
More partial recursive functions using a universal program;
Rice's theorem and the halting problem.
-/
import computability.partrec_code
open encodable denumerable
nam... |
9fdbd6536355679a2a52a4f5c3998a31f179c78a | a1179fa077c09acc49e4fbc8d67084ba89ac4f4c | /sublattice/odd_submonoid.lean | 537ae9086b59106a1918e2d14859343d3bf6a2a1 | [] | no_license | Seeram/Lean-proof-assistant | 11ca0ca0e0446bacdd1773c4c481a3653b2f1074 | e672d46e0e5f39d8de2933ad4f4cac095ca6094f | refs/heads/master | 1,682,754,224,366 | 1,620,959,431,000 | 1,620,959,431,000 | 299,000,950 | 0 | 1 | null | 1,620,680,462,000 | 1,601,200,258,000 | Lean | UTF-8 | Lean | false | false | 5,525 | lean | import tactic
-- monoidy a submonoidy : prvy den experimentov
-- ignoroval som vacsinu toho co uz je implementovane
-- skusil som spravit z konkretneho submonoidu neparnych cisel subtyp
-- monoidu (nat,*,1) a potom som na nom implementoval monoidovu strukturu
-- monoid je mnozina vybavena binarnou operaciou, ktora j... |
81dbd990dcb631cef875d1111c6309dd15482a00 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/control/equiv_functor/instances.lean | 5f3324e9789d43ced26ca9f7e459ad9e44477ad6 | [
"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 | 794 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison
-/
import data.finset.basic
import control.equiv_functor
/-!
# `equiv_functor` instances
We derive some `equiv_functor` instances, to enable `equiv_rw` to rewrite under... |
f7afccc930895466d61fc2068482a1d86ca047a0 | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/algebra/inf_group.hlean | e2ccb70a0764c0197bd548fd7ea57e7bea21feaf | [
"Apache-2.0"
] | permissive | ia0/lean2 | c20d8da69657f94b1d161f9590a4c635f8dc87f3 | d86284da630acb78fa5dc3b0b106153c50ffccd0 | refs/heads/master | 1,611,399,322,751 | 1,495,751,007,000 | 1,495,751,007,000 | 93,104,167 | 0 | 0 | null | 1,496,355,488,000 | 1,496,355,487,000 | null | UTF-8 | Lean | false | false | 26,588 | hlean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
import algebra.binary algebra.priority
open eq eq.ops -- note: ⁻¹ will be overloaded
open binary algebra is_trunc
set_option class.force_new tru... |
083ba078fd3a68b17cb184c7d987626efb254e0a | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/finset/basic.lean | ca66bb09004a4de6d73674ba1769c9b4c8961ee6 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 130,608 | 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.apply
import tactic.monotonicity
import tactic.nth_rewrite
/-!
# F... |
1bd30d0f3e0264deac9e946240d0aafd15e3a9aa | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/mutwf2.lean | 1ceb7ce867b9e1c3fb2a56837c616214cf2c8d41 | [
"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 | 347 | lean | mutual
def isEven : Nat → Bool
| 0 => true
| n+1 => isOdd n
def isOdd : Nat → Bool
| 0 => false
| n+1 => isEven n
end
termination_by measure fun
| Sum.inl n => n
| Sum.inr n => n
decreasing_by
simp [measure, invImage, InvImage, Nat.lt_wfRel]
apply Nat.lt_succ_self
#print isEven
#print isOdd... |
45d7977e3f25982d0d65e82401289625be96e6db | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/modBug.lean | 5e664c22c7dd3bd431d008edda8b3209f2501195 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 63 | lean | theorem proofOfFalse : False := Nat.zeroNeOne (Nat.mod_zero 1)
|
f6706e939a4460a82a4d12d4f222f8a73b871b2c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/mv_polynomial/symmetric.lean | d3bf7caf12f6b414d0c7374e49a005d3946dc712 | [
"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 | 7,836 | lean | /-
Copyright (c) 2020 Hanting Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Hanting Zhang, Johan Commelin
-/
import data.mv_polynomial.rename
import data.mv_polynomial.comm_ring
import algebra.algebra.subalgebra.basic
/-!
# Symmetric Polynomials and Elementary... |
67044aaa9d910f69115ebdbae6518ea3fd1d7586 | d8820d2c92be8052d13f9c8f8c483a6e15c5f566 | /src/M40002/metric_spaces.lean | 2f7b3e4d4e39915eec9b936bf9222913ee322673 | [] | no_license | JasonKYi/M4000x_LEAN_formalisation | 4a19b84f6d0fe2e214485b8532e21cd34996c4b1 | 6e99793f2fcbe88596e27644f430e46aa2a464df | refs/heads/master | 1,599,755,414,708 | 1,589,494,604,000 | 1,589,494,604,000 | 221,759,483 | 8 | 1 | null | 1,589,494,605,000 | 1,573,755,201,000 | Lean | UTF-8 | Lean | false | false | 1,040 | lean | import data.real.basic
import M40002.M40002_C5
/-
Metric spaces with reference to Chap. 2.15 of Rudin
-/
/-
class has_group_notation (G : Type) extends has_mul G, has_one G, has_inv G
-- definition of the group structure
class group (G : Type) extends has_group_notation G :=
(mul_assoc : ∀ (a b c : G), a * b * c = a... |
e2ba8a4c171f870e153cb8f008b0a6a3587b77fd | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/format.lean | b1c501ee49d8cb4fb1d0182014014a0ee9092d12 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 312 | lean | import system.io
open list
variable [io.interface]
#eval pp ([["aaa", "bbb", "ccc", "dddd", "eeeeee", "ffffff"], ["aaa", "bbb", "ccc", "dddd", "eeeeee", "ffffff"],
["aaa", "bbb", "ccc", "dddd", "eeeeee", "ffffff"], ["aaa", "bbb", "ccc", "dddd", "eeeeee", "ffffff"]],
[(10:nat), 20, 30])
|
3792a44d823b1b61bbb21564103a64bc7bb646ff | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/UnificationHint.lean | 19e7247f02288a1a411cd3d4e79732b562ce4182 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 5,382 | 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.ScopedEnvExtension
import Lean.Util.Recognizers
import Lean.Meta.DiscrTree
import Lean.Meta.SynthInstance
namespace Lean.Meta
abbrev Unificati... |
f7ac2795b791e4a72fdd2dedb1773f9e4cb57314 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /library/init/reserved_notation.lean | a23ca4e2b741e09547e004f5b3ccc8ad39061ca6 | [
"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 | 7,517 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Floris van Doorn
-/
prelude
import init.datatypes
notation `assume` binders `,` r:(scoped f, f) := r
notation `take` binders `,` r:(scoped f... |
70648bd39001c4ba58e5db26503947a42f95fc26 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/finiteness_auto.lean | f2ad7aa2e669c1e03dbb1846a03d8ff4f9f3a7e5 | [] | 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 | 12,955 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.noetherian
import Mathlib.ring_theory.ideal.operations
import Mathlib.ring_theo... |
7d6ea38303719ae322c92b49940e291a9016fe46 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Util/StoreInsts.lean | 03adfbf95587cefe529ba69eaa635790c42f47bb | [
"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 | 915 | lean | /-
Copyright (c) 2022 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
import Lake.Util.DRBMap
import Lake.Util.Family
import Lake.Util.Store
open Lean
namespace Lake
instance [Monad m] [EqOfCmpWrt κ β cmp] : MonadDStore κ β (StateT (DRBMap κ ... |
1de137cff8a5b4267316e2bb6d8cbe2ff3e3504e | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/types/arrow.hlean | 0f1743e1490ba281b069b395b6faa7df536a24bb | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 2,873 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Ported from Coq HoTT
Theorems about arrow types (function spaces)
-/
import types.pi
open eq equiv is_equiv funext pi equiv.ops
namespace pi
variables {A A' : ... |
735f8a2e7936fea9cd4e65e7244b4e9ae898b59d | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/matrix/block.lean | f466dfb81ab24b78f2417c245d39e4d8ec39fa38 | [
"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 | 26,020 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
-/
import data.matrix.basic
/-!
# Block Matrices
## Main definitions
* `matrix.from_blocks`: build a block matrix out... |
cf24889a6a45552e4afc2dff556cf7e170681943 | a3416b394f900e6d43a462113bf00eecea016923 | /src/ack.lean | 0bc038ee1bafad50c279c3af727c6345475849ff | [] | no_license | Nolrai/non-standard | efe17e1e97db75ec1a26aed2623e578ec8881c51 | 2a128217005a0c9eef53e7c24c6637d0edcf3151 | refs/heads/master | 1,682,477,161,430 | 1,604,790,441,000 | 1,604,790,441,000 | 359,366,919 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 128 | lean | import computability.partrec
import computability.partrec_code
import computability.primrec
import computability.tm_to_partrec
|
737b5ef0b54161ae9f31c47711cd6665d7e77464 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/logic/nontrivial.lean | 3a1ac50b4933c978d46ee08568638c95b1c12076 | [
"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 | 10,422 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import data.prod
import data.subtype
import logic.function.basic
import logic.unique
/-!
# Nontrivial types
A type is *nontrivial* if it contains at least two... |
f843f526003472016d149c0fbd8c56e792d137e4 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.48.lean | e38dec0d8375335020ee8196915dc7dc9a832de2 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 352 | lean | /- page 93 -/
import standard
namespace hide
inductive eq {A : Type} (a : A) : A → Prop :=
refl : eq a a
inductive heq {A : Type} (a : A) : Π {B : Type}, B → Prop :=
refl : heq a a
-- BEGIN
theorem hcongr {A : Type} {B : A → Type} {a b : A} (f : Π x : A, B x)
(H : eq a b) : heq (f a) (f b) :=
eq.rec_on H (heq.refl ... |
1916ba5e15724fc7b9d88774f8659026aff8a5f9 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/geometry/euclidean/circumcenter.lean | 41736c1778e66dcf559a4293e3088df0e2d61eea | [
"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 | 44,268 | 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 geometry.euclidean.sphere.basic
import linear_algebra.affine_space.finite_dimensional
import tactic.derive_fintype
/-!
# Circumcenter and circumradius
This file ... |
6971a86999a23d467b4ba35a1aaadb66b4fedc8f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/integration.lean | 1bcdadde7aed59376ac7e41a4a969fa44aac6018 | [
"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,068 | lean | /-
Copyright (c) 2021 Benjamin Davidson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Benjamin Davidson
-/
import analysis.special_functions.integrals
open interval_integral real
open_locale real
/-! ### Simple functions -/
/- constants -/
example : ∫ x : ℝ in 8..... |
98ff4da5793b5ba117b4811141b91628ba6f987b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/linear_algebra/sesquilinear_form.lean | b2e7c5f5bdde05a9595624b317f7f618e7f57153 | [
"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 | 27,291 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andreas Swerdlow
-/
import algebra.module.linear_map
import linear_algebra.bilinear_map
import linear_algebra.matrix.basis
import linear_algebra.linear_pmap
/-!
# Sesquilinear form
... |
62e388d385c969dda5d9913644626e67d28bb0d8 | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/while/Env.lean | f898e4a733c428832f3723d39be9232a3949fe08 | [] | no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 1,692,263,717,723 | 1,691,757,179,000 | 1,691,757,179,000 | 40,361,602 | 3 | 0 | null | 1,679,896,438,000 | 1,438,953,859,000 | Coq | UTF-8 | Lean | false | false | 154 | lean | def Env : Type := string → ℕ
def env : list (string × ℕ) → Env
| [] := λ s, 0
| ((v,n) :: xs) := λ s, if s = v then n else env xs s
|
24341e3bb0b7b8978ec59517c76bc169be30d347 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/sum.lean | 6d4abf963fbc082a4cc7fd7ce1f5a274f3bd1a57 | [
"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 | 9,459 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yury G. Kudryashov
-/
import logic.function.basic
/-!
# More theorems about the sum type
-/
universes u v w x
variables {α : Type u} {α' : Type w} {β : Type v} {β' : ... |
7e2ab04715235cc1a2c17ba084dfa83d21384571 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/ring_theory/witt_vector/mul_coeff.lean | 5a2bed5e2b75c4ce47ca59603e31b1cb4840be98 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 12,748 | lean | /-
Copyright (c) 2022 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Heather Macbeth
-/
import ring_theory.witt_vector.truncated
import data.mv_polynomial.supported
/-!
# Leading terms of Witt vector multiplication
The goal of this ... |
bddff2eebd80ea8e954065a4a792b251db6bd3b7 | ec62863c729b7eedee77b86d974f2c529fa79d25 | /10/a.lean | a9f2747a27a610250784bbb1753f5fdcb23b1a51 | [] | no_license | rwbarton/advent-of-lean-4 | 2ac9b17ba708f66051e3d8cd694b0249bc433b65 | 417c7e2718253ba7148c0279fcb251b6fc291477 | refs/heads/main | 1,675,917,092,057 | 1,609,864,581,000 | 1,609,864,581,000 | 317,700,289 | 24 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 403 | lean | def main : IO Unit := do
let input ← IO.FS.lines "a.in"
let mut vals := (input.map String.toInt!).qsort (· < ·)
vals := vals.push (vals.get! (vals.size - 1) + 3)
let mut diffs : Array Int := Array.mkArray 4 0
let mut prev := 0
for v in vals do
let d : Nat := (v - prev).toNat
diffs := diffs.set! d (d... |
a93ec3e00ded9d2457d5881fd71482bcbf2773a1 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Std/Data/PersistentHashMap.lean | bb880e040f1d976e9f7b1276baea62916540e432 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,400 | 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
-/
namespace Std
universes u v w w'
namespace PersistentHashMap
inductive Entry (α : Type u) (β : Type v) (σ : Type w)
| entry (key : α) (val : β) : Entry
| ... |
7c512d9f111d952c8c5cfa28acee165ef8598e39 | cc104245380aa3287223e0e350a8319e583aba37 | /src/h0.lean | 35783f7c535adc54055972c43fdfe048469f2dd0 | [] | no_license | anca797/group-cohomology | 7d10749d28430d30698e7ec0cc33adbac97fe5e7 | f896dfa5057bd70c6fbb09ee6fdc26a7ffab5e5d | refs/heads/master | 1,591,037,800,699 | 1,561,424,571,000 | 1,561,424,571,000 | 190,891,710 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,108 | lean | import algebra.group -- for is_add_group_hom
import group_theory.subgroup -- for kernels
import algebra.module
class G_module (G : Type*) [group G] (M : Type*) [add_comm_group M]
extends has_scalar G M :=
(id : ∀ m : M, (1 : G) • m = m)
(mul : ∀ g h : G, ∀ m : M, g • (h • m) = (g * h) • m)
(linear : ∀ g : G, ∀ m n ... |
7152e79df86355664ea71fdb637092791e6118ef | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/rcases.lean | 600e64a8d4e40062f5e45415e340e3652b5e0f5f | [
"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 | 9,705 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.rcases
instance {α} : has_inter (set α) := ⟨λ s t, {a | a ∈ s ∧ a ∈ t}⟩
universe u
variables {α β γ : Type u}
example (x : α × β × γ) : true :=
begin
rc... |
34a20cf86efbc06246f6d15b434d1c3129526f28 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/subset/fixpoint.lean | 7d9d7e8de8cc0da171c75b42db12b05e39454aec | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,327 | lean | import .subset
universes u v
namespace subset
section
parameters {A : Type u} {B : Type v} (F : subset A → subset B)
def cocontinuous :=
∀ (Ix : Type) (f : Ix → subset A),
F (union_ix f) = union_ix (F ∘ f)
def cocontinuous_inh :=
∀ (Ix : Type) [inhabited Ix] (f : Ix → subset A),
F (union_ix f) = union... |
4d728b2dd8da998cc04f273f778ca5f193a9992b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/preadditive/schur.lean | 2faa96f55b3955af10110d3b03364676e5c19e1c | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 8,310 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import algebra.group.ext
import category_theory.simple
import category_theory.linear.basic
import category_theory.endomorphism
import algebra.algebra.s... |
ad251b66b18487d2f22e3e2ce605c4923b879880 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebraic_geometry/function_field.lean | a3a3ed90ca9c53391bf336ba92111369f7cec2a6 | [
"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 | 8,164 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import algebraic_geometry.properties
/-!
# Function field of integral schemes
We define the function field of an irreducible scheme as the stalk of the generic point.
Thi... |
e0e52a6b361b296ec6cabf43b79ac533ee7118c4 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/lex.lean | 0bb01d7df3e41f7980a862e1f34f3097b0e42065 | [
"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,960 | lean | import Init.Control.Except
inductive Tok where
| lpar
| rpar
| plus
| minus
| times
| divide
| num : Nat → Tok
deriving Repr
structure Token where
text : String -- Let's avoid parentheses in structures. This is legacy from Lean 3.
tok : Tok
deriving Repr
inductive LexErr where
| unexpected :... |
4569ca04a60ddd405bde059a4a673049d74b4ec0 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/ring_theory/coprime/basic.lean | 81e19a8c3e464c9e36e6e34760189e656c1301d8 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,996 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Ken Lee, Chris Hughes
-/
import tactic.ring
import algebra.ring.basic
/-!
# Coprime elements of a ring
## Main definitions
* `is_coprime x y`: that `x` and `y` are coprime, de... |
091d9b1203b350acd7eb77ca747bf17cd63237bb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/homology/Module.lean | b2a096d7dfe9ecd8988fb9d7f5576942c0a8f3fc | [
"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,996 | 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 algebra.homology.homotopy
import algebra.category.Module.abelian
import algebra.category.Module.subobject
import category_theory.limits.concrete_category
/-!
... |
f339719e85596fe57751215d220b1111304d6d46 | 38193807b9085b93599c814229d2b0dacb64ba22 | /benchmarks/list-ident/ListIdent.lean | 3ff67e89d63d3cf4a53323541295ab61e07a7664 | [] | no_license | zgrannan/rest-old | d650363e403a9d5322fb44ee892b743aec558e1b | 6a6974641b25259cb8701af4302169db22b33b6b | refs/heads/master | 1,670,816,037,466 | 1,599,571,928,000 | 1,599,571,928,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 90 | lean | variable { α : Type}
theorem listIdent (xs : list α): xs = (xs ++ []) ++ [] := by simp
|
b85e6f8f64d5fb3d8d769b402460c92a2e2db99d | a047a4718edfa935d17231e9e6ecec8c7b701e05 | /src/data/dfinsupp.lean | 581f8767f47fc9e382e4f3f5a738079350cf8cb1 | [
"Apache-2.0"
] | permissive | utensil-contrib/mathlib | bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767 | b91909e77e219098a2f8cc031f89d595fe274bd2 | refs/heads/master | 1,668,048,976,965 | 1,592,442,701,000 | 1,592,442,701,000 | 273,197,855 | 0 | 0 | null | 1,592,472,812,000 | 1,592,472,811,000 | null | UTF-8 | Lean | false | false | 32,973 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau
-/
import algebra.pi_instances
/-!
# Dependent functions with finite support
For a non-dependent version see `data/finsupp.lean`.
-/
universes u u₁ u₂ v v₁ v₂ v... |
99ff62b692d1a7cf397619944090e686aa1c1e31 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/omega/main.lean | 353ae30833ca159b11efe5a3f7a8bf359630fcab | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 5,666 | lean | /- Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
A tactic for discharging linear integer & natural
number arithmetic goals using the Omega test. -/
import tactic.omega.int.main
import tactic.omega.nat.main
namespace omega
open... |
79f710541c90f979139f44c4a205ff736a138817 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/std_basis.lean | c3c5560c3960a1c2b7464761256b80dc3ffd1b2e | [
"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 | 10,778 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.matrix.basis
import linear_algebra.basis
import linear_algebra.pi
/-!
# The standard basis
This file defines the standard basis `pi.basis (s : ∀ j, basi... |
144eea6b3bc98852ba817603b376beacb77a8353 | 92b13ae5cb04d78dd215ae736d93f5353e0e8e87 | /broken/C.lean | e062aaf0722997f7569e4f0476a522b6483dce25 | [] | no_license | jroesch/exp-compiler | f2dec4f17e769e7f3b41429c41ece1f004a3f209 | 6efd4512c80df947361bdada12415bc166db5e7f | refs/heads/master | 1,585,267,520,150 | 1,469,047,597,000 | 1,469,047,597,000 | 63,471,055 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,011 | lean | import data.list
inductive stack_lang :=
| push : nat -> stack_lang
| pop : stack_lang
| add : stack_lang
inductive exp :=
| add : exp -> exp -> exp
| literal : nat -> exp
open list
open stack_lang
definition compile : exp → list stack_lang
| compile (exp.literal i) := [ push i ]
| compile (exp.add e1... |
12eb4c153592ee00b4a6863f84cabf3b85fa92b3 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/tactic/basic.lean | 22f7929c3a884db47874451102245414b8f4b65e | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 33,993 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek
-/
import data.dlist.basic category.basic meta.expr meta.rb_map
namespace expr
open tactic
attribute [derive has_reflect] bin... |
3cd76c80e4112a2d13113732519a5eaa244910cd | bb31430994044506fa42fd667e2d556327e18dfe | /src/linear_algebra/affine_space/matrix.lean | b0109bc3f186c3b99819bd896d3977a4dd3efcbb | [
"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 | 6,817 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import linear_algebra.affine_space.basis
import linear_algebra.determinant
/-!
# Matrix results for barycentric co-ordinates
Results about the matrix of barycentric co-or... |
ace7e196d798e6d70b601f395ee32fa6a3ac03a5 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/data/finset/sort.lean | e2d952d077e26f42b6ef5f37484670a10cf77e23 | [
"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 | 8,351 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.finset.lattice
import data.multiset.sort
import data.list.nodup_equiv_fin
/-!
# Construct a sorted list from a finset.
-/
namespace finset
open multise... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.