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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa1a979b9e44387fd3b6aeeb56d1400f53704226 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/order/positive/ring.lean | 3a8990a88684fbe7ccf072038171581a9932d82c | [
"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,576 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.order.ring
/-!
# Algebraic structures on the set of positive numbers
In this file we define various instances (`add_semigroup`, `ordered_comm_monoi... |
4877cd0ab482355ff215c7138540f5ecbccb2019 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/linear_algebra/alternating.lean | c0a8d6b0ad1645f8b9410d8148c1c788d53c0093 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,460 | lean | /-
Copyright (c) 2020 Zhangir Azerbayev. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Zhangir Azerbayev
-/
import linear_algebra.multilinear.tensor_product
import linear_algebra.linear_independent
import group_theory.perm.sign
import group_theory.perm.s... |
33f55e93e30782bd9961ada99ad5045d34f05fb1 | c76cc4eaee3c806716844e49b5175747d1aa170a | /src/solutions_sheet_four.lean | 7574098867cbdf89dc0cce34331188bdbc197835 | [] | no_license | ImperialCollegeLondon/M40002 | 0fb55848adbb0d8bc4a65ca5d7ed6edd18764c28 | a499db70323bd5ccae954c680ec9afbf15ffacca | refs/heads/master | 1,674,878,059,748 | 1,607,624,828,000 | 1,607,624,828,000 | 309,696,750 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,786 | lean | import tactic
import data.real.basic
import data.pnat.basic
local notation `|` x `|` := abs x
def is_limit (a : ℕ+ → ℝ) (l : ℝ) : Prop :=
∀ ε > 0, ∃ N, ∀ n ≥ N, | a n - l | < ε
def is_convergent (a : ℕ+ → ℝ) : Prop :=
∃ l : ℝ, is_limit a l
/-
1. Consider the following properties of a sequence of real numbers (a n ... |
9aa65ea80f57255c0f1a914783e14f055889a318 | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/order/conditionally_complete_lattice.lean | f553f650d701339aa598687c1705d4799ee66464 | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 35,644 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
Adapted from the corresponding theory for complete lattices.
Theory of conditionally complete lattices.
A conditionally complete lattice is a lattice in which ev... |
9016a674c2d7148971b566472dfcdfa31af805de | 46125763b4dbf50619e8846a1371029346f4c3db | /src/group_theory/free_group.lean | 5a61dc728f5225dd1eac86c45ab84a390371bf33 | [
"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 | 30,875 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Free groups as a quotient over the reduction relation `a * x * x⁻¹ * b = a * b`.
First we introduce the one step reduction relation
`free_group.red.step`: w * x * x⁻¹ * v ~... |
1c7a77fc76468c53bccf3daa118fdcdf4fde62d8 | a11f4536efad51bc2b648123619720f3b9318c0f | /src/limit_of_seq1.lean | d00121e9a7a3bef757a519c9ce052648cffa22fe | [] | no_license | ezrasitorus/codewars_lean | 909471d43f5130669a90b8e11afc37aec2f21d8f | 6d1abcc1253403511f4cfd767c645596175e4fd3 | refs/heads/master | 1,672,659,589,352 | 1,603,281,507,000 | 1,603,281,507,000 | 288,579,451 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,101 | lean | import data.real.basic
open classical
open tactic
attribute [instance] prop_decidable
/-
Rigorous definition of a limit
For a sequence x_n, we say that \lim_{n \to \infty} x_n = l if
∀ ε > 0, ∃ N, n ≥ N → |x_n - l| < ε
-/
def lim_to_inf (x : ℕ → ℝ) (l : ℝ) :=
∀ ε > 0, ∃ N, ∀ n ≥ N, abs (x n - l) < ε
theore... |
d2cd505e8e09b46b8b215fb3796a31f9ef3c76ff | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /08_Building_Theories_and_Proofs.org.24.lean | 717bf1b5ed0b405cdb6b81a67c62a3445d82a4ce | [] | 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 | 341 | lean | import standard
example (p q r : Prop) : p ∧ q ∧ r → q ∧ p :=
assume Hpqr : p ∧ q ∧ r,
have Hp : p, from and.elim_left Hpqr,
have Hqr : q ∧ r, from and.elim_right Hpqr,
assert Hq : q, from and.elim_left Hqr,
show q ∧ p, using Hp, from
proof
-- Hp is visible here because of =using Hp=
and.intro Hq Hp... |
4c7bad4917b48a35d25bb7d731bdd102b0e288b0 | e0b0b1648286e442507eb62344760d5cd8d13f2d | /src/Init/Prelude.lean | 2bd1798890cf8047ec7f14c1cf5df048cbbf0cef | [
"Apache-2.0"
] | permissive | MULXCODE/lean4 | 743ed389e05e26e09c6a11d24607ad5a697db39b | 4675817a9e89824eca37192364cd47a4027c6437 | refs/heads/master | 1,682,231,879,857 | 1,620,423,501,000 | 1,620,423,501,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 74,306 | 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
-/
prelude
universes u v w
@[inline] def id {α : Sort u} (a : α) : α := a
/- `idRhs` is an auxiliary declaration used to implement "smart unfolding". It is ... |
a5bc77efedd45daedb34f3b22832fe6286b3145b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/injection.lean | fca7cf494d7fc15147082edab31e2d6e144fb441 | [
"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 | 44 | lean | inductive term
| abs : tt → term → term
|
f2f6f4d8f6ea750fd37deabdf9e514152a6674f2 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebraic_geometry/AffineScheme.lean | 916bf40550d9d143a0dff4e307ebf567e6d3c385 | [
"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 | 32,143 | 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.Gamma_Spec_adjunction
import algebraic_geometry.open_immersion
import category_theory.limits.opposites
import ring_theory.localization.inv_submono... |
21c7662dd17b8bb3316bad27a62986b91d1d2ca6 | 680b0d1592ce164979dab866b232f6fa743f2cc8 | /library/data/nat/power.lean | f6b9bab2877612d7147aae87fbef9c864c6c43dd | [
"Apache-2.0"
] | permissive | syohex/lean | 657428ab520f8277fc18cf04bea2ad200dbae782 | 081ad1212b686780f3ff8a6d0e5f8a1d29a7d8bc | refs/heads/master | 1,611,274,838,635 | 1,452,668,188,000 | 1,452,668,188,000 | 49,562,028 | 0 | 0 | null | 1,452,675,604,000 | 1,452,675,602,000 | null | UTF-8 | Lean | false | false | 4,641 | 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
The power function on the natural numbers.
-/
import data.nat.basic data.nat.order data.nat.div data.nat.gcd algebra.ring_power
namespace nat
... |
247f99c3a5eb8734d985676f7e3e24ce9e443504 | 9cba98daa30c0804090f963f9024147a50292fa0 | /time/time_test.lean | 4b5ebd97be2da1d896193f7134ef2ced0b36c7c3 | [] | no_license | kevinsullivan/phys | dcb192f7b3033797541b980f0b4a7e75d84cea1a | ebc2df3779d3605ff7a9b47eeda25c2a551e011f | refs/heads/master | 1,637,490,575,500 | 1,629,899,064,000 | 1,629,899,064,000 | 168,012,884 | 0 | 3 | null | 1,629,644,436,000 | 1,548,699,832,000 | Lean | UTF-8 | Lean | false | false | 3,527 | lean | import data.real.basic
import .time
/-
Outstanding problems:
- render C++ physics to clean physically type-checked expressions in Lean
- need MVP for "time" as an affine space with arbitrary affine coordinate space overlays
- need general library supporting (1-D) affine space API, used to implement physical t... |
835f6f40dee7813c47c151d4dfef4cea77d34129 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /test/general_recursion.lean | e013e197669997653c1bc40fbf3997dc006685b6 | [
"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 | 10,561 | 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... |
17de8a7cee4deafa56035b5a92d90d5f46c9b047 | 0147f2031b9326cd40515c0735bc7b3217048388 | /library/init/meta/interactive.lean | cd87145cbb15c55c79586358ab102e432649e87d | [
"Apache-2.0"
] | permissive | fpvandoorn/lean | d69aa9b497e6b689d499720ec88c8875744e4e2f | d457329969c7a18854a3cefdb3837306f43c2355 | refs/heads/master | 1,608,866,639,885 | 1,596,723,870,000 | 1,596,723,870,000 | 285,647,903 | 0 | 0 | Apache-2.0 | 1,596,740,075,000 | 1,596,740,074,000 | null | UTF-8 | Lean | false | false | 71,221 | 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, Jannis Limperg
-/
prelude
import init.meta.tactic init.meta.rewrite_tactic init.meta.simp_tactic
import init.meta.smt.congruence_closure init.control.combinat... |
9f988eacbf5489cae88d064f5e1605a88932c94e | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebraic_topology/fundamental_groupoid/product.lean | 93618dacc69ef0f4192b2fd7f612e1812ec0bcaa | [
"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 | 7,483 | lean | /-
Copyright (c) 2022 Praneeth Kolichala. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Praneeth Kolichala
-/
import category_theory.groupoid
import algebraic_topology.fundamental_groupoid.basic
import topology.category.Top.limits
import topology.homotopy.product
imp... |
d640e2159c71043baf6ba23acaac73856ee1006a | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Parser/Term.lean | e45a4c0dcbbb861758fad4863b9f75041fb10aa1 | [
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 31,818 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Attr
import Lean.Parser.Level
namespace Lean
namespace Parser
namespace Command
def commentBody : Parser :=
{ fn := ... |
608844ddae0b07ba18a0424e36cf04b1ee20cb3d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/convert.lean | 0e8f4ae2cf95b639b558ce63fe21b50fb04c0c02 | [
"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 | 642 | 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 data.set.basic
import tactic.interactive
open set
variables {α β : Type}
@[simp] lemma singleton_inter_singleton_eq_empty {x y : α} :
({x} ∩ {y} = (∅ : set α)) ↔... |
c8ef999faa8e2f65992c52e2fc2b438641479eaf | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/group/integration.lean | fee69426abdf34454e9d8296406e28a1392d43ec | [
"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 | 8,424 | 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
-/
import measure_theory.integral.bochner
import measure_theory.group.measure
import measure_theory.group.action
/-!
# Integration on Groups
We develop properties ... |
5365e734030d6f49bd10e542993ee9ccbcc3151b | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/advanced_multiplication/1.lean | 940721090dd40cc51df9b390c5941a0f46c3e1f0 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 212 | lean | theorem mul_pos (a b : mynat) : a ≠ 0 → b ≠ 0 → a * b ≠ 0 :=
begin
intros ha hb h,
cases a with n,
cc,
cases b with m,
cc,
rw succ_mul at h,
exact succ_ne_zero _ (add_left_eq_zero h),
end
|
65da06725f3ab3bf643618f0ffee24384039ee33 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/sigma/basic.lean | 86b1aa656890dbac7fdf314ff26cf92ec083c830 | [
"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 | 7,385 | 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 tactic.lint
import tactic.ext
section sigma
variables {α α₁ α₂ : Type*} {β : α → Type*} {β₁ : α₁ → Type*} {β₂ : α₂ → Type*}
namespace sigma
instance [inhabi... |
d30da2c9127832601d3c175fde7d59d2609806fe | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/analysis/normed_space/linear_isometry.lean | 92043961e250b16ef99b04721872389075a71936 | [
"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 | 12,569 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import topology.metric_space.isometry
/-!
# Linear isometries
In this file we define `linear_isometry R E F` (notation: `E →ₗᵢ[R] F`) to be a linear isometric
emb... |
ab293d855de377cd0c017abc0092f5d153798710 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/measure_theory/bochner_integration.lean | 084b2f3a777498e56306f66acc28a3fa6a5b424e | [
"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 | 64,424 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov, Sébastien Gouëzel
-/
import measure_theory.simple_func_dense
import analysis.normed_space.bounded_linear_maps
import measure_theory.l1_space
import measu... |
4fc67aed43dcb8dce946a930aee0bfbbe4db4bc4 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Compiler/LCNF/Bind.lean | 734f5b6fc522cfa45b4794e96fa26bc93fe4818b | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 5,312 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.LCNF.InferType
namespace Lean.Compiler.LCNF
/-- Helper class for lifting `CompilerM.codeBind` -/
class MonadCodeBind (m : Type → Type... |
8ed4489bdd7a1b1e91b9fef95ee2fa911864fcbf | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/analysis/analytic/composition.lean | 07798ef40156d7216cc2acc3f09939f56b9ac785 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 56,614 | 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, Johan Commelin
-/
import analysis.analytic.basic
import combinatorics.composition
/-!
# Composition of analytic functions
in this file we prove that the composi... |
f45648bc53ae892ad3ea1b21aad97ba880057358 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/smt/arith.lean | 0de2ca05e904b6cef55cb5ae51261be22dd13dc2 | [] | 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 | 429 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
namespace Mathlib
axiom real instance real.has_zero : HasZero realinstance real.has_one : HasOne realinstance real.has_add : Add realinstance real.has_mul : Mul realinstance real.has_sub : Sub realinstance real.has_neg : Neg realinstance real.has_div : Div... |
9adff885735accefbe061ed4d6b56337dd2d6951 | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /old/imperative_DSL/environment.lean | 96c59343d9430cea7b8e48b7aff75a75aa012562 | [] | no_license | kevinsullivan/lang | d3e526ba363dc1ddf5ff1c2f36607d7f891806a7 | e9d869bff94fb13ad9262222a6f3c4aafba82d5e | refs/heads/master | 1,687,840,064,795 | 1,628,047,969,000 | 1,628,047,969,000 | 282,210,749 | 0 | 1 | null | 1,608,153,830,000 | 1,595,592,637,000 | Lean | UTF-8 | Lean | false | false | 1,361 | lean | import ..expressions.classical_geometry
import ..expressions.classical_time
import ..expressions.classical_hertz
import ..expressions.classical_luminous_intensity
--import ..expressions.classical_velocity
import ..expressions.boolean
import ..expressions.measurementSystem
import ..expressions.axis_orientation
--import ... |
62d744fce723811259c335d6961637e5c056eb9a | ac89c256db07448984849346288e0eeffe8b20d0 | /src/Lean/Meta/Basic.lean | d27ca62a7951c1bb7fe15e628725bf33e3d95e41 | [
"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,911 | 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... |
a59ab10dc21fadcf55150378804a7992edb590a8 | 68edd1be2a3aa8d65c41ee33748461dcdc3598a1 | /espaces-metriques/src/metric.lean | 26c2d0165d8c6fd77ab2f25336632cdf19e06f55 | [
"MIT"
] | permissive | Maryem-HAJJI/projet-maths-lean | 4278285b7be64313e98b6363817814e55cb13244 | eecedcd9fc8827c2cbf49cd8d25ffb9451548988 | refs/heads/master | 1,618,745,952,719 | 1,584,910,771,000 | 1,584,910,771,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,006 | lean | import tactic
import data.real.basic
import data.real.cau_seq
import data.set
import order.bounds
import order.complete_lattice
import topology.algebra.ordered
noncomputable theory
-- Ce fichier prolonge un travail de Frédéric Le Roux qui a traité --
-- des propriétés topologiques des espaces métriques --
---------... |
d4210f71fca54444f17b3626503c9e7d9980dc66 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/protected_test.lean | d97d0363b50276c231f01b1b52236e0ac6ada6b4 | [
"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 | 250 | lean | namespace nat
check induction_on -- ERROR
check rec_on -- ERROR
check nat.induction_on
check lt.rec_on -- OK
check nat.lt.rec_on
namespace lt
check rec_on -- ERROR
check lt.rec_on
end lt
end nat
|
a1bce601d75464ae203f4b74fd7b07a8b066e042 | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /stage0/src/Lean/Elab/LetRec.lean | 55aed7c1867cc50bb550fcdfeba71d42418dbf6a | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,727 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Attributes
import Lean.Elab.Binders
import Lean.Elab.DeclModifiers
import Lean.Elab.SyntheticMVars
namespace Lean.Elab.Term
open Meta
str... |
7f38ac8f95eeaca35b4a584410d4eb7080bc8bee | dd4e652c749fea9ac77e404005cb3470e5f75469 | /src/prove_psd.lean | c930852868c5298a1a8c21825618f3993dd00c47 | [] | no_license | skbaek/cvx | e32822ad5943541539966a37dee162b0a5495f55 | c50c790c9116f9fac8dfe742903a62bdd7292c15 | refs/heads/master | 1,623,803,010,339 | 1,618,058,958,000 | 1,618,058,958,000 | 176,293,135 | 3 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 2,485 | lean | import .LDLT .mat
variables {α β : Type}
variables {k m n : nat}
open mat tactic
meta instance int.has_reflect : has_reflect ℤ :=
by tactic.mk_has_reflect_instance
meta def rat.to_expr : rat → expr
| ⟨i,n,_,_⟩ := `(rat.mk %%`(i) (int.of_nat %%`(n)))
def array₂.to_mat [ring α] (A : array₂ m n α) : mat α m n := A.... |
86c9fda98e4dbb832ad4c416c60768094bb31a01 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/skeletal.lean | 7411364ac96e5f8eb66738eeca2cb97d6b4532ff | [
"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,984 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.adjunction.basic
import category_theory.category.preorder
import category_theory.isomorphism_classes
import category_theory.thin
/-!
# Skeleton of... |
c98c75ba327653105efb1b75f43c5ebfb20cabfd | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/homology/exact.lean | a38897e0d7adaf8efd5a8a483598f6138997ef2e | [
"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 | 13,027 | 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 algebra.homology.image_to_kernel
/-!
# Exact sequences
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to math... |
64a4b11649b5ddf8320fd799ae00e7b95aeb4ae0 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/project_1_a_decrire/foncteur/sous_foncteur_droite affine/sous_foncteur.lean | efca1acaa081a3de288e5b49d293360c14612397 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,565 | lean | import algebra.category.CommRing.basic
import algebra.ring
import tactic
import data.polynomial
import algebra.ring
import category_theory.types
import data.int.basic
universes v u
open CommRing
open is_ring_hom
open category_theory
open polynomial
open int
/--
## The goal is study the set of solution of polynomial eq... |
70cae7c58ec882f9d15ac7f00757888044828b0a | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/ring_theory/subring/basic.lean | 865b5371541186179c266b329efb2c930508b348 | [
"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 | 46,835 | lean | /-
Copyright (c) 2020 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ashvni Narayanan
-/
import group_theory.subgroup.basic
import ring_theory.subsemiring.basic
/-!
# Subrings
Let `R` be a ring. This file defines the "bundled" subring type `subring... |
c9a9150f261c56ad9626cbb508bf7d5ad7677218 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/higherOrderFunctions/list_mapTest.lean | da8fe2a922e4d97b4dad0a580dc716e83d42cc79 | [] | 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 | 55 | lean | import .list_map
#eval list_map nat.succ [1,2,3,4,5,6] |
40c416b50469c0eb9fea299b2ff7c08bdb5ad75d | 626e312b5c1cb2d88fca108f5933076012633192 | /src/measure_theory/integral/bochner.lean | d452717c4181efcef68747389b6dd178b176f00d | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 64,693 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov, Sébastien Gouëzel
-/
import measure_theory.function.simple_func_dense
import measure_theory.function.l1_space
import measure_theory.group.basic
import an... |
6087c672de5ebba400cb87f21ade159c32e16395 | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/order/boolean_algebra.lean | c641b77316912bbbd7eec6e17370de05ce773e4a | [
"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 | 3,916 | 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
Type class hierarchy for Boolean algebras.
-/
import order.bounded_lattice
set_option old_structure_cmd true
universes u v
variables {α : Type u} {w x y z : α}
/-- S... |
dd57613c33165c76ed60698b82f78049459042bb | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/limits/preserves/filtered.lean | 173ea53be9670e68e1b6b148eb8bc00c53026dfc | [
"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,631 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Justus Springer
-/
import category_theory.limits.preserves.basic
import category_theory.filtered
/-!
# Preservation of filtered colimits and cofiltered limits.
Typical... |
a77fb291cc6f996a36678675949ae316d52b9d5e | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/tactic/lint/type_classes.lean | 910c8a93aa486c4a97727b16aacf49218d2d39f6 | [
"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 | 17,977 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Robert Y. Lewis, Gabriel Ebner
-/
import tactic.lint.basic
/-!
# Linters about type classes
This file defines several linters checking the correct usage of type c... |
12f84063bec2b7e749e00cf614c30829b7705e54 | 2c1ae42b7676ac4a573a53b902feb68be1ea98f7 | /src/quanteq.lean | 264dfe9198e6eb01c006b897bfa26fe0bf5f8ddf | [] | no_license | rodrigogribeiro/lean-tutorial | 67d9793fdfba1ddd418ec5c29c30564ff3f4987a | 564254d582181d08eedf241781ab5a4c9ce8d832 | refs/heads/master | 1,610,252,605,463 | 1,447,618,793,000 | 1,447,618,793,000 | 43,224,821 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 851 | lean | import data.nat
variables (A : Type) (p q : A → Prop)
example : (∀ x : A, p x ∧ q x) → ∀ y : A, p y :=
assume H : ∀ x : A, p x ∧ q x,
take y : A,
show p y, from and.left (H y)
variables (a b c d : A)
premises (Hab : a = b)(Hbc : b = c)(Hcd : c = d)
open eq
open eq.ops
example : a = d := Hab ⬝ Hbc ⬝ Hcd
... |
3a148c8461724912fb1a4ed8cf0d3088425fbe1f | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/path_connected.lean | b751dc4ea436d131176d0dc6aa3c4ec25e4eea2d | [
"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 | 40,987 | lean | /-
Copyright (c) 2020 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.algebra.order.proj_Icc
import topology.continuous_function.basic
import topology.unit_interval
/-!
# Path connectedness
## Main definitions
In the ... |
48d750a829af174de18b234fc2a32da47bf0afac | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/group/prod.lean | 4a56d2187d91845851bc9c879ae3eaf4b9441936 | [
"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 | 21,630 | 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) ... |
c25c7f1777ebbfff38c9c9a3f7906ad3b7b99084 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/unicode.lean | 082f988591add3670e1121a5063706e720df52f5 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 141 | lean | import logic
constant N : Type
constant α : N
constant β₁ : N
check β₁
constant δ : N
check δ
constant δ₁₁ : N
check δ₁₁
|
2f83f41f770c28daadca19906b584b072d33e70e | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/specialize.lean | 2680b883115afff42b16ef79e6fd5a79f87d4495 | [
"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 | 3,772 | 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.attributes
import init.lean.compiler.util
namespace Lean
namespace Compiler
inductive SpecializeAttributeKind
| specialize | nosp... |
ba3717d766f2fdfac5855edcbcd314469549458e | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/algebra/big_operators.lean | a92d5488c96fa862e7b3f02ae47b856b468a7c56 | [
"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 | 67,132 | 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 algebra.opposites
import algebra.group.anti_hom
import data.finset.intervals
import data.finset.fold
import data.finset.powerset
import data.finset.pi
import ... |
d97548b2fced2d84285824691374ea35fdeca211 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/data/list/dedup.lean | 2bfdd74a3ad168a281bc8d3ffec6b3964ad13ba4 | [
"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 | 4,182 | 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.list.nodup
/-!
# Erasure of duplicates in a list
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mat... |
8d5d6c2d29330f7265137ba45f62e0c77cad67e8 | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/algebra/module/multilinear.lean | 3d3976403f62bbb88e0ac43c4dcb635c748844da | [
"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 | 21,923 | 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 topology.algebra.module.basic
import linear_algebra.multilinear.basic
/-!
# Continuous multilinear maps
We define continuous multilinear maps as maps f... |
7bfad3b9fe19d9ba6eb29ad639a21598b3c64098 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/model_theory/encoding.lean | 133e6badd613ae6abe8e532ec97e94880cc50ae5 | [
"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 | 14,150 | lean | /-
Copyright (c) 2022 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import computability.encoding
import model_theory.syntax
import set_theory.cardinal.ordinal
/-! # Encodings and Cardinality of First-Order Syntax
## Main Definitio... |
de8d92ad8911d797dcb6278482bda4e5df5e6b02 | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Init/Prelude.lean | 95de6a774e3125aab2aa64470c031fd6509abb35 | [
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 174,696 | 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, Mario Carneiro
-/
prelude -- Don't import Init, because we're in Init itself
set_option linter.missingDocs true -- keep it documented
/-!
# Init.Prelude
Thi... |
a956ef6566bcd2f23c7e406510d6904aa1695460 | 412362c0a9df529d619b14e4fc9431dec4a08a79 | /src/test_lean_mathlib.lean | a1e4bc17f24a853a13967a585825d0f8a2e6f6a5 | [] | no_license | mching2/TMDE-test | 23622286fef4a40c2de3b864b4e5e8b96105f98e | 9e738141fecdc69f0c3c55b66ac8e1edd8f7242e | refs/heads/main | 1,690,603,212,472 | 1,631,282,508,000 | 1,631,282,508,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 234 | lean | /-
Am I green?
Look below!
Is import blue?
No red squiggles?
Good to go!
-/
import algebra.add_torsor
/-
Otherwise something is wrong with your Lean
or mathlib installation. In that case, please
seek help from your instructor.
-/
|
81a1bd78eb1e2e48c9bcbd368d5df0ce45cca9fa | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/measure_theory/measure/regular.lean | 23b696ce4736a28f41f5fd02d20a51fd356150f3 | [
"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 | 37,460 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris Van Doorn
-/
import measure_theory.constructions.borel_space
/-!
# Regular measures
A measure is `regular` if it satisfies the following properties:
* it is finite on comp... |
402dd7886b3dd65f1b6ffb128843521a71aa02be | e39f04f6ff425fe3b3f5e26a8998b817d1dba80f | /algebra/order_functions.lean | 4427ce0bffee38e3ffd9603e582e8297c138dbf3 | [
"Apache-2.0"
] | permissive | kristychoi/mathlib | c504b5e8f84e272ea1d8966693c42de7523bf0ec | 257fd84fe98927ff4a5ffe044f68c4e9d235cc75 | refs/heads/master | 1,586,520,722,896 | 1,544,030,145,000 | 1,544,031,933,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,052 | 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 algebra.ordered_group order.lattice
open lattice
universes u v
variables {α : Type u} {β : Type v}
attribute [simp] max_eq_left max_eq_right min_eq_left min... |
6b328c3aeb7a40a555fda89400ab4a17985f306e | 94e33a31faa76775069b071adea97e86e218a8ee | /src/ring_theory/witt_vector/defs.lean | 61a2f2b150848014c6e9b7848be3a27f82cd8b04 | [
"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,231 | 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 ring_theory.witt_vector.structure_polynomial
/-!
# Witt vectors
In this file we define the type of `p`-typical Witt vectors and ring operat... |
2481078b7f1d3cf584b6c46e5396afde86b9e8c6 | 66a6486e19b71391cc438afee5f081a4257564ec | /homology/basic.hlean | 0ead27ece1fbeed55c1b525cd112f958ebd0a234 | [
"Apache-2.0"
] | permissive | spiceghello/Spectral | c8ccd1e32d4b6a9132ccee20fcba44b477cd0331 | 20023aa3de27c22ab9f9b4a177f5a1efdec2b19f | refs/heads/master | 1,611,263,374,078 | 1,523,349,717,000 | 1,523,349,717,000 | 92,312,239 | 0 | 0 | null | 1,495,642,470,000 | 1,495,642,470,000 | null | UTF-8 | Lean | false | false | 11,238 | hlean | /-
Copyright (c) 2017 Yuri Sulyma, Favonia
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yuri Sulyma, Favonia, Floris van Doorn
Reduced homology theories
-/
import ..spectrum.smash ..homotopy.wedge
open eq spectrum int pointed group algebra sphere nat equiv susp is_trunc
function ... |
0f85f1a6dd9f0e1fcaee6887f114e7cc37f7393c | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/complex/basic.lean | 967ed67415ec02b572256e32cb72aa09a8919dc2 | [
"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 | 9,900 | lean | /-
Copyright (c) Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import data.complex.module
import data.complex.is_R_or_C
/-!
# Normed space structure on `ℂ`.
This file gathers basic facts on complex numbers of an analytic natur... |
eb1abf848baad13993a94b1fe4e03321c2406626 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/simplifier7.lean | bbf7e9645f0c9e951bc9abdcbcf279c28d01fab0 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 436 | lean | -- Simplifying the operator with a user-defined congruence
import logic.connectives
constants (P1 Q1 P2 Q2 P3 Q3 : Prop) (H1 : P1 ↔ Q1) (H2 : P2 ↔ Q2) (H3 : P3 ↔ Q3)
constants (f g : Prop → Prop → Prop)
constants (Hf : and = f) (Hg : f = g)
attribute H1 [simp]
attribute H2 [simp]
attribute H3 [simp]
attribute Hf [sim... |
098af72e8a90183ac6d23abe4c08ff8d3c680cbc | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/tactic/rename_var.lean | c23d1ee3b1274353379e22fa9ad924898f005902 | [
"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 | 2,772 | 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 tactic.interactive
/-!
# Rename bound variable tactic
This files defines a tactic `rename_var` whose main purpose is to teach
renaming of bound variables.
... |
cff402c7fd3df6ddfb8d3cf660a7ce93665807e2 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /02_Dependent_Type_Theory.org.33.lean | 2f5aa00e4392c54d4d50d92af1fa8cc571d67c84 | [] | 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 | 488 | lean | /- page 28 -/
import standard
import data.sigma
open sigma
variable A : Type
variable B : A → Type
variable a : A
variable b : B a
check sigma.mk a b -- Σ (a : A), B a
check ⟨a, b⟩ -- Σ (a : A), B a
check pr1 ⟨a, b⟩ -- A
check pr₁ ⟨a, b⟩ -- alternative notation; use \_1 for the subscript
check pr2 ⟨... |
b3bed2b07b22b4e2073a1b700a09d427508f9f58 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/int/range.lean | b1ac777d29ca4b05f44d61eb2edeb98ab4d95858 | [
"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 | 1,753 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro and Kenny Lau
-/
import data.int.basic
import data.list.range
namespace int
/-- List enumerating `[m, n)`. -/
def range (m n : ℤ) : list ℤ :=
(list.range (to_nat (n-m))).ma... |
60f423e6ba2b38cf8179b6c928061a1e1d4c38ef | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/multiset/basic.lean | fa42d8704637d97f35c02ce81b5069131942292f | [
"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 | 82,175 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.list.perm
import algebra.group_power
/-!
# Multisets
These are implemented as the quotient of a list by permutations.
-/
open list subtype nat
v... |
9aadfaec45a5ed711fde20e39b3c6f13c356589c | 6065973b1fa7bbacba932011c9e2f32bf7bdd6c1 | /src/analysis/normed_space/inner_product.lean | d15547bfd6e5699b4be23ec38a352ae7cd7a2d00 | [
"Apache-2.0"
] | permissive | khmacdonald/mathlib | 90a0fa2222369fa69ed2fbfb841b74d2bdfd66cb | 3669cb35c578441812ad30fd967d21a94b6f387e | refs/heads/master | 1,675,863,801,090 | 1,609,761,876,000 | 1,609,761,876,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 84,212 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Sébastien Gouëzel, Frédéric Dupuis
-/
import linear_algebra.bilinear_form
import linear_algebra.sesquilinear_form
import analysis.special_functions.pow
import topology.m... |
eb39f3b1f8cd02b220f9a2d811b796403ec12e25 | e514e8b939af519a1d5e9b30a850769d058df4e9 | /src/lib_unused/num.lean | cdeab4a0e3fe5a90adb7a093dd3830ceb44b6db4 | [] | no_license | semorrison/lean-rewrite-search | dca317c5a52e170fb6ffc87c5ab767afb5e3e51a | e804b8f2753366b8957be839908230ee73f9e89f | refs/heads/master | 1,624,051,754,485 | 1,614,160,817,000 | 1,614,160,817,000 | 162,660,605 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 502 | lean | import data.pnat.basic
import lib.num
lemma pnat.succ_pred (n : ℕ+) : nat.succ (nat.pred n) = n :=
begin
cases n with n h,
cases n,
have := lt_irrefl _ h ; contradiction,
simp
end
def fin.with_max' (n : ℕ) (m : ℕ+) : fin m :=
⟨ min n (m-1), begin
have p := min_le_right n (nat.pred m),
... |
c28e2bbcc444200b402ed4fc3cc5c75a44b9d4d8 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/normed_space/bounded_linear_maps.lean | 230e612efb9184a4db28993d5e65411a9d529d69 | [
"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 | 20,324 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Continuous linear functions -- functions between normed vector spaces which are bounded and linear.
-/
import analysis.normed_space.multilinear
noncomp... |
b4fcc49e20c00025ce3bd1bfe309590bd306553f | 48eee836fdb5c613d9a20741c17db44c8e12e61c | /src/util/meta/ind_utils.lean | a44984c03598d43a8e23b7fb8797a355b8f84b73 | [
"Apache-2.0"
] | permissive | fgdorais/lean-universal | 06430443a4abe51e303e602684c2977d1f5c0834 | 9259b0f7fb3aa83a9e0a7a3eaa44c262e42cc9b1 | refs/heads/master | 1,592,479,744,136 | 1,589,473,399,000 | 1,589,473,399,000 | 196,287,552 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 10,273 | lean | -- Copyright © 2019 François G. Dorais. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
import .expr_ctx
meta structure inductive_declaration :=
(to_name : name)
(univ_params : list name)
(type : expr)
(num_params : nat)
(num_indices : nat)
(recursor : option name)
(constru... |
1758d4803f236a73ce071abce00fc80a0a588f2f | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/reduce3.lean | 2acf980457e0f35da185734b5c8bdf8e0d5c5b2b | [
"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 | 774 | lean | #lang lean4
def fact : Nat → Nat
| 0 => 1
| (n+1) => (n+1)*fact n
#check fact 6
#eval fact 10
-- set_option pp.all true
theorem tst1 : 100000000000 + 200000000000 = 300000000000 :=
rfl
theorem tst2 : 100000000000 * 200000000000 = 20000000000000000000000 :=
rfl
theorem tst3 : fact 7 = 5040 :=
rfl
theorem tst4... |
b1e5d17d492b76602d0ff6960664f035b1618253 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/compiler/phashmap3.lean | b968f8f229c720c419eff403729b17d10910960a | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,815 | lean | import Std.Data.PersistentHashMap
import Lean.Data.Format
open Lean Std Std.PersistentHashMap
abbrev Map := PersistentHashMap Nat Nat
partial def formatMap : Node Nat Nat → Format
| Node.collision keys vals _ => Format.sbracket $
keys.size.fold
(fun i fmt =>
let k := keys.get! i;
let v := vals.get... |
caf3aeeeb1830412b724ee6c5148a415b5794a3a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/order/filter/n_ary.lean | 398dfa3bab70c3706e8a95b0e0bec12c55406dca | [
"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 | 17,520 | 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 order.filter.basic
/-!
# N-ary maps of filter
This file defines the binary and ternary maps of filters. This is mostly useful to define pointwise
operations on f... |
eeeade72508a8684b1cd457545cbdb59272bf207 | 0e175f34f8dca5ea099671777e8d7446d7d74227 | /library/init/meta/default.lean | 1abaeb8baa1188dfb0c66bc57a57d058c34154e8 | [
"Apache-2.0"
] | permissive | utensil-contrib/lean | b31266738071c654d96dac8b35d9ccffc8172fda | a28b9c8f78d982a4e82b1e4f7ce7988d87183ae8 | refs/heads/master | 1,670,045,564,075 | 1,597,397,599,000 | 1,597,397,599,000 | 287,528,503 | 0 | 0 | Apache-2.0 | 1,597,408,338,000 | 1,597,408,337,000 | null | UTF-8 | Lean | false | false | 1,105 | 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.name init.meta.options init.meta.format init.meta.rb_map
import init.meta.level init.meta.expr init.meta.environment init.meta.attr... |
928ca966420b711e977c89c8e08c00b6293db9ae | 94e33a31faa76775069b071adea97e86e218a8ee | /src/field_theory/finite/basic.lean | 4411ccf3054e05b45c15b664841a2f4f1f1946e3 | [
"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 | 20,335 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Joey van Langen, Casper Putz
-/
import tactic.apply_fun
import algebra.ring.equiv
import data.zmod.algebra
import linear_algebra.finite_dimensional
import ring_theory.integ... |
65854b4dbce14b105c42b891ce2e316ad08710bf | 35677d2df3f081738fa6b08138e03ee36bc33cad | /archive/imo1988_q6.lean | 16fd424194dc86da0403d349242317f05a24261d | [
"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 | 13,818 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.rat.basic
import tactic
/-!
# IMO1988 Q6 and constant descent Vieta jumping
Question 6 of IMO1988 is somewhat (in)famous. Several expert problem solver... |
28f42d2f037152287cfcb65f134a82c045e548a5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/optParam.lean | efaf7b3d00273d78b69a99961034753cdbc1457a | [
"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 | 319 | lean | def p (x : Nat := 0) : Nat × Nat :=
(x, x)
theorem ex1 : p.1 = 0 :=
rfl
theorem ex2 : (p (x := 1) |>.2) = 1 :=
rfl
def c {α : Type} [Inhabited α] : α × α :=
(default, default)
theorem ex3 {α} [Inhabited α] : c.1 = default (α := α) :=
rfl
theorem ex4 {α} [Inhabited α] : c.2 = default (α := α) :=
rfl
|
cda39bcad72c71d2ebc04e2b0c0e34b4d761f98d | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/data/set/basic.lean | ba389f6002a6b3fb23bb7ffaec9f22104334dd90 | [
"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 | 13,733 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Leonardo de Moura
-/
import logic.connectives logic.identities algebra.binary
open eq.ops binary
definition set [reducible] (X : Type) := X → Prop
namespace set
variabl... |
d77bf66709283f1bb32ace0b0aa4fe795fe5b62a | abd677583c7e4d55daf9487b82da11b7c5498d8d | /src/arith_exp.lean | c2f8a8adaaaee796156c6031abb41cd48a3b35cb | [
"Apache-2.0"
] | permissive | jesse-michael-han/embed | e9c346918ad58e03933bdaa057a571c0cc4a7641 | c2fc188328e871e18e0dcb8258c6d0462c70a8c9 | refs/heads/master | 1,584,677,705,005 | 1,528,451,877,000 | 1,528,451,877,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,845 | lean | inductive exp
| var {} : nat → exp
-- | mvar : name → exp
| const {} : string → exp
| local_const : string → exp → exp
| app : exp → exp → exp
| lam : string → exp → exp → exp
instance : inhabited exp :=
⟨exp.const "foo"⟩
namespace exp
def mk_var (n : nat) : exp := var n
instance : de... |
81ca6e6da5a6fd3b9c165284a6f341a2bb128c02 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/topology/algebra/uniform_group.lean | 45ecd6620c8a93b72690bbd48be1eca08f8df9d7 | [
"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 | 16,764 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import topology.uniform_space.uniform_embedding
import topology.uniform_space.complete_separated
import topology.algebra.group
import tactic.abel
/-!... |
a63d7c97846ffc245b9a5d5fecfc091def74ec8d | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/term_app2.lean | 45922f8d097123e52fc7675cd1a28fd9c0bd19ae | [
"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 | 2,211 | lean | lemma nat.lt_add_of_lt {a b c : nat} : a < b → a < c + b :=
begin
intro h,
note aux₁ := nat.le_add_right b c,
note aux₂ := lt_of_lt_of_le h aux₁,
rwa [add_comm] at aux₂
end
lemma nat.lt_one_add_of_lt {a b : nat} : a < b → a < 1 + b :=
begin
intro h,
note aux := lt.trans h (nat.lt_succ_self _),
rwa [-nat.... |
f2b206e05d50d9a963703ce8be250c6ae1549699 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /tactic/norm_num.lean | 273b7395a4464ff3e58bf1ff828b6581c4d24574 | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 18,336 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
Evaluating arithmetic expressions including *, +, -, ^, ≤
-/
import algebra.group_power data.rat tactic.interactive data.nat.prime
universes u v w
namespace... |
d5fcb2e0dce917170ece481ae606abccc9da461e | 297c4ceafbbaed2a59b6215504d09e6bf201a2ee | /kruskal.lean | 0a38675ac72e53661faaec581a02c723d6fe2a47 | [] | no_license | minchaowu/Kruskal.lean3 | 559c91b82033ce44ea61593adcec9cfff725c88d | a14516f47b21e636e9df914fc6ebe64cbe5cd38d | refs/heads/master | 1,611,010,001,429 | 1,497,935,421,000 | 1,497,935,421,000 | 82,000,982 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,187 | lean | import data.list tools.super .library_dev.data.list.comb .library_dev.data.list.set
open nat function tactic
-- lemmas of list
namespace list
variables {A B: Type}
private theorem mem_cons (x : A) (l : list A) : x ∈ x :: l :=
or.inl rfl
-- def upto : ℕ → list ℕ
-- | 0 := []
-- | (succ n) := n :: upto n
-- ... |
7bafaa8edaa1a6905aeef7563a5402337029d1de | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/tactic/lean_core_docs.lean | c3fb0113a428cb40bbad167cabdb96691d8b05ce | [
"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 | 22,704 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Bryan Gin-ge Chen, Robert Y. Lewis, Scott Morrison
-/
import tactic.doc_commands
/-!
# Core tactic documentation
This file adds the majority of the interactive tactics... |
971b02086266cf49a6742973820072e505dd432f | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/ring_theory/dedekind_domain.lean | 3ba00ccfac8615ddefc0e28a4de154f28992dabd | [
"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 | 26,591 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import ring_theory.discrete_valuation_ring
import ring_theory.fractional_ideal
import ring_theory.ideal.over
/-!
# Dedekind domain... |
8133d1aafc4450cf3ccc25ec197dbdb06a56cafb | b561a44b48979a98df50ade0789a21c79ee31288 | /src/Lean/Server/Requests.lean | f95deaf452fdcdc614016bb5ef0481d462234dd1 | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,648 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.DeclarationRange
import Lean.Data.Json
import Lean.Data.Lsp
import Lean.Server.FileSource
import Lean.Server.FileWorker.Utils
imp... |
c4ed5aa9ef1476b5717bc0fb292ec4387b91b7c0 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/limits/shapes/constructions/over/default.lean | aaf423724db3bc87d9ca65fc87d645632f69ed3a | [
"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 | 1,947 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Bhavik Mehta
-/
import category_theory.limits.shapes.constructions.over.products
import category_theory.limits.shapes.constructions.over.connected
import c... |
887eb7344003b3503e4fe569b51367bd2896de59 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/measure/probability_measure.lean | 0e0388c03b3170f878d7a0bbdea0a9c496047057 | [
"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 | 20,841 | lean | /-
Copyright (c) 2021 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
import measure_theory.measure.finite_measure
import measure_theory.integral.average
import probability.conditional_probability
/-!
# Probability measures
This file defi... |
e2fa302fcc319595127e53be492214f17f6b96e9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/module/equiv.lean | 2dadf157e6a6eccb89bebeff37a26526da37c24e | [
"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 | 23,231 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro, Anne Baanen,
Frédéric Dupuis, Heather Macbeth
-/
import algebra.module.linear_map
/-!
# (Semi)linear equivalences
In t... |
50be4bf4ec06617002daf1321319d525e7afc1d1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed_space/star/multiplier.lean | 5c3efde31d567d9d12487f8901e7a070f02cc93c | [
"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 | 26,051 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux, Jon Bannon
-/
import algebra.star.star_alg_hom
import analysis.normed_space.star.basic
import analysis.normed_space.operator_norm
import analysis.special_functions.pow.n... |
09529273b4bfcc2013dfd669744f846f9dbd02db | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/data/char/classes.lean | e79658655ac0df34315bab58faa27ecff21f0a8a | [
"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,646 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
prelude
import init.data.char.basic init.data.char.lemmas init.meta init.data.int
namespace char
def is_whitespace (c : char) : Prop :=
c ∈ [' ', '\t', '\n']
... |
2b34b49baf0cf54fed1c692438e43e28320341a4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/category/Groupoid.lean | 34ac3f8647229218934247db7e35d306d84a6951 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,905 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.single_obj
import Mathlib.PostPort
universes v u u_1 u_2
namespace Mat... |
77b34894ca2375f39a714dd2d651660b92630ef4 | 1dd482be3f611941db7801003235dc84147ec60a | /src/ring_theory/localization.lean | 2320d2b43caab55cd193bed62a5d885007bccbdc | [
"Apache-2.0"
] | permissive | sanderdahmen/mathlib | 479039302bd66434bb5672c2a4cecf8d69981458 | 8f0eae75cd2d8b7a083cf935666fcce4565df076 | refs/heads/master | 1,587,491,322,775 | 1,549,672,060,000 | 1,549,672,060,000 | 169,748,224 | 0 | 0 | Apache-2.0 | 1,549,636,694,000 | 1,549,636,694,000 | null | UTF-8 | Lean | false | false | 9,383 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro
-/
import tactic.ring data.quot ring_theory.ideals group_theory.submonoid
universe u
namespace localization
variables (α : Type u) [comm_ring α] (S : set α) [is... |
95d1622f01354869d05adafa175f37fdbdc8b1ea | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/ring_theory/tensor_product.lean | 4f8783757ac235d7fcf279747709b821850ccb75 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,790 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin
-/
import linear_algebra.tensor_product
import algebra.algebra.tower
/-!
# The tensor product of R-algebras
Let `R` be a (semi)ring and `A` an `R`-alg... |
bd8038045c2153379569e0b65e89aea231e7a72c | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/types/prod.hlean | d9dc2dd7024459d025d78175071bdd745ceb3e84 | [
"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 | 7,603 | 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 products
-/
open eq equiv is_equiv is_trunc prod prod.ops unit equiv.ops
variables {A A' B B' C D : Type} {P Q : A → Type}
... |
178a0da9dacbee9fa8e7a8fa95307c33697fcdb6 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_cc_heq1.lean | c817f76b49dc8955757ad63c6c1f20259e23f078 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 847 | lean | set_option blast.strategy "cc"
set_option blast.cc.heq true -- make sure heterogeneous congruence lemmas are enabled
example (a b c : Prop) : a = b → b = c → (a ↔ c) :=
by blast
example (a b c : Prop) : a = b → b == c → (a ↔ c) :=
by blast
example (a b c : nat) : a == b → b = c → a == c :=
by blast
example (a b c :... |
9c4262d5558f6e1d8fd5eeaf0839996961da96dc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/tensor_product/matrix.lean | 9b97cdba602342fa60eba77efd66b1ba57a62612 | [
"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,711 | lean | /-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import data.matrix.kronecker
import linear_algebra.matrix.to_lin
import linear_algebra.tensor_product_basis
/-!
# Connections between `tensor_product` and `matrix`
> THI... |
698c3aed79f6a9e175996584cef6be148d61b9b7 | a0a027e4a00cdb315527e8922122f2a4411fd01c | /6.6-generalizations.lean | bcb2a17a20f9f07f8f38753e2fe62074698ee76b | [] | no_license | spl/lean-tutorial | 96a1ef321d06b9b28d044eeb6bf1ff9a86761a6e | 35c0250004d75d8ae58f6192b649744545116022 | refs/heads/master | 1,610,250,012,890 | 1,454,259,122,000 | 1,454,259,122,000 | 49,971,362 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 498 | lean | namespace hide
inductive eq {A : Type} (a : A) : A → Prop :=
refl : eq a a
theorem subst {A : Type} {a b : A} {P : A → Prop} (H₁ : eq a b) (H₂ : P a) : P b :=
eq.rec H₂ H₁
theorem symm {A : Type} {a b : A} (H : eq a b) : eq b a :=
subst H (eq.refl a)
theorem trans {A : Type} {a b c : A} (H₁ : eq a b) (H₂ : eq... |
ee27cb9669fd6f3a768d5d07d0b469aff433b034 | 6ae186a0c6ab366b39397ec9250541c9d5aeb023 | /src/category_theory/products/bifunctors.lean | 6e922eed2b35fcb6df30424e6911bc3dcc81c5b6 | [] | no_license | ThanhPhamPhuong/lean-category-theory | 0d5c4fe1137866b4fe29ec2753d99aa0d0667881 | 968a29fe7c0b20e10d8a27e120aca8ddc184e1ea | refs/heads/master | 1,587,206,682,489 | 1,544,045,056,000 | 1,544,045,056,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,203 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import category_theory.products
import category_theory.tactics.obviously
open category_theory
namespace category_theory.ProductCategory
univers... |
0c9eecb51464ef0645ed18606114adf5bc3d9825 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/order/filter/cofinite.lean | 5486cb7b92e1e286d77d7cf5639f5088c34a3ea1 | [
"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 | 2,302 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jeremy Avigad, Yury Kudryashov
-/
import order.filter.at_top_bot
/-!
# The cofinite filter
In this file we define
`cofinite`: the filter of sets with finite compleme... |
231856dc12d959852f82f23997757a7672b4791b | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Compiler/IR/Basic.lean | fff3039ed3c8e126124f6f2df108efc06c5ecd87 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 26,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
-/
import Lean.Data.KVMap
import Lean.Data.Name
import Lean.Data.Format
import Lean.Compiler.ExternAttr
/-!
Implements (extended) λPure and λRc proposed in the... |
1af69f97e3f7aa466ba023ff4dabe39f1ea3e3b0 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/polynomial/mirror.lean | eb62e2ff43639fad2904b124275a1269dd4d771e | [
"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 | 8,533 | lean | /-
Copyright (c) 2020 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import algebra.big_operators.nat_antidiagonal
import data.polynomial.ring_division
/-!
# "Mirror" of a univariate polynomial
In this file we define `polynomial.m... |
39cdcab9bb58d81f81e6cda0856c1ec209bb415b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/simp_result.lean | b849b70c3d1d79207f53ec605df7c28a2d0c4098 | [
"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,514 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Scott Morrison
-/
import tactic.core
/-!
# simp_result
`dsimp_result` and `simp_result` are a pair of tactics for
applying `dsimp` or `simp` to the result produced by ... |
69b5f72f9ea89c754250733da7bdc17bf9096160 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/algebra/category/constructions/terminal.hlean | 4449a1b82cc80a8ce072dbded1bc577cc7714202 | [
"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,790 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Terminal category
-/
import .indiscrete
open functor is_trunc unit eq
namespace category
definition terminal_precategory [constructor] : precategory unit :=
... |
f56d6a9b707dcc41a288fea97c5d22678cb0e7d0 | bb31430994044506fa42fd667e2d556327e18dfe | /src/group_theory/subgroup/basic.lean | a5c2c2982e21d3e77379a974bc6a9e5c96ba2258 | [
"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 | 130,060 | 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 algebra.group.conj
import algebra.module.basic
import algebra.order.group.inj_surj
import data.countable.basic
import data.set.finite
import group_theory.submonoid.c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.