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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa980d3207fb197b05aab18c33e61bd353b61511 | 367134ba5a65885e863bdc4507601606690974c1 | /src/control/lawful_fix.lean | 02e31140c00c22709adc517189bebbe4859e2189 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 7,818 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import tactic.apply
import control.fix
import order.omega_complete_partial_order
/-!
# Lawful fixed point operators
This module defines the laws required of a `has_fix` i... |
d971688c1652db58a029119e25491b179ab6536a | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/inst.lean | 6f20b2a9804d1618a3f02d8a88e3b34faf637cd0 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 500 | lean | import Init.Lean.Expr
open Lean
def tst : IO Unit :=
do
let f := mkConst `f;
let x := mkBVar 0;
let y := mkBVar 1;
let t := mkApp (mkApp (mkApp f x) y) x;
let a := mkConst `a;
let b := mkApp f (mkConst `b);
let c := mkConst `c;
IO.println t;
IO.println (t.instantiate #[a, b]);
IO.println (t.instantiateRange 0 2 #[a, b... |
9a1d8d0d85efa6fce48aeb9ac824c838c4ebd6cb | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Syntax/Translate/Tactic/Mathlib/Hint.lean | 1627e5f0740b7c0dc8b9175e711ed5c6a3170fba | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 743 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Mathport.Syntax.Translate.Tactic.Basic
open Lean
namespace Mathport.Translate.Tactic
open AST3 Parser
-- # tactic.hint
@[tr_user_attr hint_tactic] d... |
47dfbe1962ead286ef9ef469e220a0ce3d662a8e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/number_theory/function_field.lean | d2424fdcc35816d41de8aa712bb3c35a4f684e00 | [
"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 | 4,290 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Ashvni Narayanan
-/
import field_theory.ratfunc
import ring_theory.algebraic
import ring_theory.dedekind_domain
import ring_theory.integrally_closed
/-!
# Function fields
T... |
bd12fa7cd29df6a3c24cf0eb2bd16f09adbdb68b | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/data/array.lean | 78873cc8ad44b5d3035a9fc7157b8a713d9228d1 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,729 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.nat
universes u w
structure array (α : Type u) (n : nat) :=
(data : fin n → α)
def mk_array {α} (n) (v : α) : array α n :=
{data ... |
bab67c022940dfc0f51933a4d45c908d4affdd29 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/let2.lean | 07535a5b0586f3029b0383d51ebb39183452c8d7 | [
"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 | 451 | lean | definition b :=
let a := true ∧ true,
a := a ∧ a,
a := a ∧ a,
a := a ∧ a,
a := a ∧ a,
a := a ∧ a,
a := a ∧ a,
a := a ∧ a,
a := a ∧ a,
a := a ∧ a,
a := a ∧ a,
a := a ∧ a,
a := a ∧ a,
a ... |
9ae1eca2c464464dd99c340f31db8c2545387a56 | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/measure_theory/probability_mass_function.lean | 7682dc2b0378113e2ca0aebe5c19f0489e0f0050 | [
"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 | 4,784 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Probability mass function -- discrete probability measures
-/
import topology.instances.nnreal topology.instances.ennreal topology.algebra.infinite_sum
noncomputable the... |
1c87e2ea317d8c45d81998e7ec8e234dde0d12c5 | 5a5e1bb8063d7934afac91f30aa17c715821040b | /lean3SOS/src/float/div.lean | bd3646734ec5ecd4d97b176c7b0dc02f11645161 | [] | no_license | ramonfmir/leanSOS | 1883392d73710db5c6e291a2abd03a6c5b44a42b | 14b50713dc887f6d408b7b2bce1f8af5bb619958 | refs/heads/main | 1,683,348,826,105 | 1,622,056,982,000 | 1,622,056,982,000 | 341,232,766 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,023 | lean | import float.basic
import float.round
open float
variable (prec : ℕ)
def divl (x y : 𝔽) : 𝔽 :=
round_down prec (eval x / eval y)
def divr (x y : 𝔽) : 𝔽 :=
round_up prec (eval x / eval y)
meta def div_rat' (x y : 𝔽) : ℚ :=
let x' := quot.unquot x, y' := quot.unquot y in
if x'.e ≤ y'.e
then rat.mk (x'.m) (y'.m... |
e829bfd342c927f6cbfd5bd74f515c9a65669333 | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/data/int/basic.lean | f549ef27ea858f364baaee69e0f3a2b7d014c92e | [
"Apache-2.0"
] | permissive | gbaz/lean | a7835c4e3006fbbb079e8f8ffe18aacc45adebfb | a501c308be3acaa50a2c0610ce2e0d71becf8032 | refs/heads/master | 1,611,198,791,433 | 1,451,339,111,000 | 1,451,339,111,000 | 48,713,797 | 0 | 0 | null | 1,451,338,939,000 | 1,451,338,939,000 | null | UTF-8 | Lean | false | false | 25,859 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jeremy Avigad
The integers, with addition, multiplication, and subtraction. The representation of the integers is
chosen to compute efficiently.
To faciliate prov... |
0a8e9c31603e31a25090890eb654c1787df3e318 | d5ff69c5608a867046609101d89910f1257aaf8c | /src/2020/functions/two_sided_inverse.lean | c2f0948f240a4e23d4057aa18ea961e0aa4dfc11 | [] | no_license | jiaminglimjm/M40001_lean | c299ff574a22d3a636a2b9720dc9b5e853a3bab0 | c8bd8922f37f3e10e2d448f226798ebd0a2af232 | refs/heads/master | 1,672,312,761,737 | 1,603,095,035,000 | 1,603,095,035,000 | 304,831,347 | 0 | 0 | null | 1,603,094,893,000 | 1,602,922,986,000 | null | UTF-8 | Lean | false | false | 895 | lean | import tactic
/-! # Two-sided inverses
We define two-sided inverses, and prove that a function
is a bijection if and only if it has a two-sided inverse.
-/
-- let X and Y be types, and let f be a function.
variables {X Y : Type} (f : X → Y)
-- two-sided inverse
structure tsi (f : X → Y) :=
(g : Y → X)
(hX : ∀ x ... |
b2a103e9b71b0b6e7f0f18888788f9820f8d45b9 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world6/level8.lean | 621a6b6ff2f7313bcb5826a0b6a1a637ca8a8cfc | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 1,457 | lean | /- Axiom : not_iff_imp_false (P : Prop) :
¬ P ↔ P → false
-/
lemma not_iff_imp_false (P : Prop) : ¬ P ↔ P → false := iff.rfl -- hide
/-
# Proposition world.
## Level 8 : `(P → Q) → (¬ Q → ¬ P)`
There is a false proposition `false`, with no proof. It is
easy to check that $\lnot Q$ is equivalent to $Q\implies {\tt f... |
3b6251bf374c1265e5dd657653673d860f79c3f1 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/dep_cases_clear_hyp.lean | 213683281265e6a0b6aedb22e6022a3ac503853b | [
"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 | 588 | lean | universes u v
inductive tree (α : Type u)
| leaf {} : tree
| node (l : tree) (v : α) (r : tree) : tree
namespace tree
variables {α : Type u}
inductive is_searchable (lt : α → α → Prop) : tree α → α → α → Prop
| leaf_s {lo hi} : lt lo hi → is_searchable leaf lo hi
| node_s {l r v lo hi} (hs₁ : is_searchable l... |
0720430900ccd8b747e5a79719ca0a00aa414ec2 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Server/Completion.lean | 1ff495962a67f296db33013f72059de5c4709a21 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 11,892 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Environment
import Lean.Parser.Term
import Lean.Data.Lsp.LanguageFeatures
import Lean.Meta.Tactic.Apply
import Lean.Meta.Match.MatcherInfo
impor... |
8217079c76921b470402c85a65f8d34f9df7c263 | 1b8f093752ba748c5ca0083afef2959aaa7dace5 | /src/category_theory/presheaves.lean | aa2d8ed2ed5c67a26737e2644c5cf9a5f7fc6f40 | [] | no_license | khoek/lean-category-theory | 7ec4cda9cc64a5a4ffeb84712ac7d020dbbba386 | 63dcb598e9270a3e8b56d1769eb4f825a177cd95 | refs/heads/master | 1,585,251,725,759 | 1,539,344,445,000 | 1,539,344,445,000 | 145,281,070 | 0 | 0 | null | 1,534,662,376,000 | 1,534,662,376,000 | null | UTF-8 | Lean | false | false | 4,790 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison, Mario Carneiro, Reid Barton
import category_theory.examples.topological_spaces
import category_theory.functor_category
import category_theory.functor_categories.... |
f3ba2a0e7a0f01e1441b2bcfc703cd2d6f2c0e47 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/concrete_category/bundled_hom.lean | df097a786d24e2dc2bea40b4014519098a6d0cea | [
"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,740 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Yury Kudryashov
-/
import category_theory.concrete_category.basic
import category_theory.concrete_category.bundled
/-!
# Category instances for algebraic structures th... |
78f6bf6f05da393553dd4d0d7c445fed033dbe65 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/combinatorial_lemma/partition.lean | 5a25cbc4b1e8582717bf1a13b8fe7ac60c9c3aab | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,865 | lean | import data.real.nnreal
import topology.algebra.infinite_sum
import topology.instances.ennreal
import topology.algebra.monoid
open_locale nnreal big_operators
open finset
/-!
# A technical lemma on the way to `lem98`
The purpose of this file is to prove the following lemma:
```
lemma exists_partition (N : ℕ) (hN : ... |
4ea06176a9b70e134809f2558eef8151dd7a9389 | e30ff3aabdac29f8ea40ad76887544d0f9be9018 | /ircbot/default.lean | 5bfcd1631438680532ef5197d596b6ed323b2634 | [] | no_license | forked-from-1kasper/leanbot | bdef0efa3e4d0eb75b06c1707fb4e35086bb57fa | c61c8c7fdad7b05877e0d232719ce23d2999557f | refs/heads/master | 1,651,846,081,986 | 1,646,404,009,000 | 1,646,404,009,000 | 127,132,795 | 12 | 1 | null | 1,605,183,650,000 | 1,522,237,998,000 | Lean | UTF-8 | Lean | false | false | 79 | lean | import ircbot.types ircbot.effects ircbot.support ircbot.login ircbot.datetime
|
3cb131dbfd0ee5e5f57fcd5a314fbda19662bc68 | 80162757f50b09d3cad5564907e4c9b00742e045 | /quot.lean | 3395f1ca084e421e0992a1696055bda036baa3b8 | [] | no_license | EdAyers/edlib | cc30d0a54fed347a85b6df6045f68e6b48bc71a3 | 78b8c5d91f023f939c102837d748868e2f3ed27d | refs/heads/master | 1,586,459,758,216 | 1,571,322,179,000 | 1,571,322,179,000 | 160,538,917 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19 | lean | #check quot.lift_on |
28cfcb9471f56ca9a01748f68b91344051f4ac84 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/qpf/multivariate/constructions/fix.lean | 381e335d8faffbed5a11680c88d1b0282df6b609 | [] | 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 | 11,674 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.pfunctor.multivariate.W
import Mathlib.data.qpf.multivariate.basic
import Ma... |
cd679d7e2c37b46aaae8dc5c98a299a44de07ba3 | 1437b3495ef9020d5413178aa33c0a625f15f15f | /category_theory/limits/cones.lean | f3da03f2aee450f5a50565fbe1d616cfeea7eece | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,795 | 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.natural_isomorphism
import category_theory.whiskering
import category_theory.const
import category_theory.opposites
import ... |
74b283bfda94d6cae8c93fc679b525ff4edf1036 | 1717bcbca047a0d25d687e7e9cd482fba00d058f | /src/analysis/special_functions/trigonometric.lean | 0eb1d02abfb1ae5c110fc20b01cec5ad3c410f62 | [
"Apache-2.0"
] | permissive | swapnilkapoor22/mathlib | 51ad5804e6a0635ed5c7611cee73e089ab271060 | 3e7efd4ecd5d379932a89212eebd362beb01309e | refs/heads/master | 1,676,467,741,465 | 1,610,301,556,000 | 1,610,301,556,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 118,803 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Benjamin Davidson
-/
import analysis.special_functions.exp_log
import data.set.intervals.infinite
import algebra.quadratic_d... |
b806765c40efb0fd441aba590d113fedca35f9af | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/list.lean | 5f4fef4fe0861cfcd03babb460ca62d2bcc5d640 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,900 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.constructions
import Mathlib.topology.algebra.group
import Mathlib.PostPort
universe... |
0867834d31ff6db5b812edc32cea9e8c082a5af0 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/meta/interactive_base.lean | 8dbe3e2c0ba1db582dba1c18e573ba79c7b47c08 | [
"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 | 9,034 | 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.data.option.basic
import init.meta.lean.parser init.meta.tactic init.meta.has_reflect
open lean
open lean.parser
local postfix `?`:900... |
2095241a11da2a468e38bfa39ccbe0cfd4f156a0 | 1dd482be3f611941db7801003235dc84147ec60a | /src/linear_algebra/multivariate_polynomial.lean | e22e8a75737ebc58b0da4287f28ded01dc8c4611 | [
"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 | 15,242 | 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, Johan Commelin, Mario Carneiro
Multivariate Polynomial
-/
import data.finsupp linear_algebra.basic algebra.ring
open set function finsupp lattice
universes u v w x
v... |
6951fa853b5d01534248ac888956edf9f76bdb08 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/subst1.lean | 6fada4e88ec7472bc9dc88cab632de8ac00bf07f | [
"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 | 660 | lean | new_frontend
set_option trace.Meta.Tactic.subst true
theorem tst1 (x y z : Nat) : y = z → x = x → x = y → x = z :=
by {
intros h1 h2 h3;
subst x;
assumption
}
theorem tst2 (x y z : Nat) : y = z → x = z + y → x = z + z :=
by {
intros h1 h2;
subst h1;
subst h2;
exact rfl
}
def BV (n : Nat) : Type := Uni... |
4b1cf470d11277b76a16e254efb94ba760fb9372 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/upper_lower/locally_finite.lean | 87855c6b90aa02f25756e9b7f8cf14688540c232 | [
"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 | 953 | lean | /-
Copyright (c) 2023 Yaël Dillies, Sara Rousta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.locally_finite
import order.upper_lower.basic
/-!
# Upper and lower sets in a locally finite order
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
... |
35dd8c01743817607829c809023b7af66f19d793 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Elab/PreDefinition/WF/Main.lean | 36de5cca13c0ff42e39d3d6fb261c51063d6b533 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 5,520 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.PreDefinition.Basic
import Lean.Elab.PreDefinition.WF.TerminationHint
import Lean.Elab.PreDefinition.WF.PackDomain
import Lean.Elab.PreDefi... |
0f0f1f602d7edbf7da1f26135639e5e24400fa97 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/measure_theory/outer_measure.lean | 5e9dc29e9d0071bac42da4911b5b83fed8b90717 | [
"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 | 35,355 | 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 analysis.specific_limits
import measure_theory.measurable_space
import topology.algebra.infinite_sum
/-!
# Outer Measures
An outer measure is... |
721d1c1a6c93a99d959c791976edba6d22aea1d4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/sheaves/stalks.lean | f0b24e3cd2a9ce5f4bb0b3aab0905660a14f9dd4 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,694 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.category.Top.open_nhds
import Mathlib.topology.sheaves.presheaf
import Mathlib.cat... |
d3d7c94a114794c89e91156d1b145c1aebfbbcff | 87fd6b43d22688237c02b87c30d2a524f53bab24 | /src/game/sets/sets_level05.lean | 6981e19951a8322917d6b00b648fb2a4670432e2 | [
"Apache-2.0"
] | permissive | grthomson/real-number-game | 66142fedf0987db90f66daed52f9c8b42b70f909 | 8ddc15fdddc241c246653f7bb341df36e4e880a8 | refs/heads/master | 1,668,059,330,605 | 1,592,873,454,000 | 1,592,873,454,000 | 262,025,764 | 0 | 0 | null | 1,588,849,107,000 | 1,588,849,106,000 | null | UTF-8 | Lean | false | false | 1,180 | lean | import game.sets.sets_level04 -- hide
namespace xena -- hide
open_locale classical -- hide
variable X : Type --hide
/-
# Chapter 1 : Sets
## Level 5
-/
/-
If `h : ∀ (x : X), x ∈ A → x ∈ B` then `h` is a function which takes
an element of x as input, and a proof that `x ∈ A`, and outputs a proof
that `x ∈ B`. If ... |
f978822e10da54a7ba641fda561ba793251b5d86 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/buffer/basic.lean | c5f0b084a399afe87e4a33782734738e5aa2353d | [
"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,346 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
General utility functions for buffers.
-/
import data.buffer
import data.array.lemmas
import control.traversable.instances
namespace buffer
open function
variables {α : Ty... |
d0b031990c36b0c5d7d1ff899df740dfba51a230 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/number_theory/sum_four_squares.lean | 5c36439501b47587428512e3c4caa3d840143faa | [
"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 | 11,841 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.group_power.identities
import data.zmod.basic
import field_theory.finite.basic
import data.int.parity
import data.fintype.card
/-!
# Lagrange's four squa... |
9a9b83f127f7c1108579d334b8866dad4afb7e7e | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/finset/noncomm_prod.lean | 5cef6169bb93bfad108f303891256cd0e37fa24d | [
"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 | 15,370 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import algebra.big_operators.basic
/-!
# Products (respectively, sums) over a finset or a multiset.
The regular `finset.prod` and `multiset.prod` require `[comm_... |
5d2f68260e29473214da61c9cb3016c980fe7548 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/classBadOutParam.lean | 5f3b9c725049b778a9675a7ccf244bcf4e6d4135 | [
"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 | 203 | lean |
class C1 (x : outParam Nat) (y : { n : Nat // n > x }) (α : Type) := -- should fail
(val : α)
class C2 (x : outParam Nat) (y : outParam { n : Nat // n > x }) (α : Type) := -- should work
(val : α)
|
1e25231529f72b80acd7f26c100d63929b3c5d8d | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/core.lean | 8e5476ca4cea88ff0e3f7705600810aebaab8ef6 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 2,364 | lean | /-
Copyright (c) 2019 Scott Morrison All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.groupoid
import category_theory.whiskering
import category.equiv_functor
import category_theory.types
namespace category_theory
universes v₁ ... |
efd486e3b9e485258475f691f174182718d5d281 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/nat/neg_elim_auto.lean | 652cebe37c4e70679faa75768ea213f4c3639411 | [] | 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,834 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.omega.nat.form
import Mathlib.PostPort
namespace Mathlib
/-
Negation elimination.
-/
namespa... |
c5cdb2ec8b738de448acb139c473dba31cd72625 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/is_limit.lean | 9b220c75b965ffca12fe7c7ed9998141054ce782 | [
"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 | 38,205 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Mario Carneiro, Scott Morrison, Floris van Doorn
-/
import category_theory.adjunction.basic
import category_theory.limits.cones
/-!
# Limits and colimits
We set up the g... |
e21e4352f9697d84fd33362690ccdc61c60672b4 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/compiler/print_error.lean | 4e2e6b2005b29f78210154105eddb23b5ddbeb18 | [
"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 | 137 | lean | #lang lean4
prelude
import Init.System.IO
def main : IO Unit :=
throw $ IO.Error.noFileOrDirectory "file.ext" 13 "this is some context"
|
4c4bfd72c6978642f10f9567973d64a8a9d89843 | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/field_theory/finite/polynomial.lean | 1c25a562a4db45395b2491ab9e79dc381ee68272 | [
"Apache-2.0"
] | permissive | AbdulMajeedkhurasani/mathlib | 835f8a5c5cf3075b250b3737172043ab4fa1edf6 | 79bc7323b164aebd000524ebafd198eb0e17f956 | refs/heads/master | 1,688,003,895,660 | 1,627,788,521,000 | 1,627,788,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,721 | 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 field_theory.finite.basic
import field_theory.mv_polynomial
import data.mv_polynomial.expand
import linear_algebra.basic
import linear_algebra.finite_dimensio... |
66f71c118e0fc576598c1c66c70e039cbc10d3bc | 37a833c924892ee3ecb911484775a6d6ebb8984d | /src/category_theory/idempotent_completion.lean | 752abc7adb32684526c002f197edd3e41327c4f1 | [] | no_license | silky/lean-category-theory | 28126e80564a1f99e9c322d86b3f7d750da0afa1 | 0f029a2364975f56ac727d31d867a18c95c22fd8 | refs/heads/master | 1,589,555,811,646 | 1,554,673,665,000 | 1,554,673,665,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,523 | 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.equivalence
namespace category_theory
universes v₁ v₂ u₁ u₂
structure idempotent (C : Type u₁) [category.{v₁} C] :=
(X :... |
125b32db214d3b25dd9956a7de91a3bfc6c2d93b | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/data/nat/fact.lean | 8e5c4d43b972c0243f0bdcf21b0e50f91a84b919 | [
"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 | 1,423 | 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
Factorial
-/
import data.nat.div
namespace nat
definition fact : nat → nat
| 0 := 1
| (succ n) := (succ n) * fact n
lemma fact_zero : fact 0 = 1 :=
r... |
b13f7d5bc93f6c0ee2b8113af56ff09176b74a1f | 9cb9db9d79fad57d80ca53543dc07efb7c4f3838 | /src/locally_constant/Vhat.lean | 4dbe3a0c65752c2faf100b7085a6b502b6d94616 | [] | no_license | mr-infty/lean-liquid | 3ff89d1f66244b434654c59bdbd6b77cb7de0109 | a8db559073d2101173775ccbd85729d3a4f1ed4d | refs/heads/master | 1,678,465,145,334 | 1,614,565,310,000 | 1,614,565,310,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,806 | lean | import category_theory.currying
import category_theory.abelian.additive_functor
import topology.category.Profinite
import topology.algebra.normed_group
import topology.algebra.group_completion
import topology.metric_space.completion
import locally_constant.NormedGroup
import normed_group.normed_with_aut
noncomputable... |
65d32ccc95bdd073a3f50153311d7ee4618e480b | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /library/data/quotient/classical.lean | 5f00ad1fda765772d40bdff30d25a7a813a5c535 | [
"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,086 | lean | -- 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
import algebra.relation data.subtype logic.axioms.classical logic.axioms.hilbert logic.axioms.funext
import .basic
namespace quotient
open relation nonempty ... |
b3632898b6c6c706f1437469cc8bb8884f12306e | 70f8755415fa7a17f87402cde4651e9f4db1b5bb | /src/pfunctor/basic.lean | 39b12c75859361ed31d85286f4a9fe82c6201c82 | [
"Apache-2.0"
] | permissive | shingarov/qpf | ab935dc2298db12c87ac011a2e4d2c27e0bdef4b | debe2eacb8cf46b21aba2eaf3f2e20940da0263b | refs/heads/master | 1,653,705,576,607 | 1,570,136,035,000 | 1,570,136,035,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,552 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Polynomial functors. Also expresses the W-type construction as a polynomial functor.
(For the M-type construction, see Mtype.lean.)
-/
import tactic.interactive data.multi... |
5b5c2c26301f45238f25ff28f175f4fc878af4cd | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/analysis/seminorm.lean | 0397981b9c25729287e7b5b33cb85be2c620ea99 | [
"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 | 6,922 | 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 algebra.pointwise
import analysis.normed_space.basic
/-!
# Seminorms and Local Convexity
This file introduces the following notions, defined for a vector space
over a nor... |
2aaceb074dc84fc84d71b327c810a3527d37365f | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib/SetNotation.lean | f987d25b411ceb22308ce902c9e94c7f15d5b819 | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 983 | lean | class Mem (α : outParam $ Type u) (γ : Type v) where
mem : α → γ → Prop
infix:50 " ∈ " => Mem.mem
notation:50 x " ∉ " s => ¬ x ∈ s
class Subset (α : Type u) where
subset : α → α → Prop
infix:50 " ⊆ " => Subset.subset
class Union (α : Type u) where
union : α → α → α
infixl:65 " ∪ " => Union.union
class Inte... |
d03648c3312fce1fe0374e2ef1afb7807538fee8 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/qpf/multivariate/constructions/quot.lean | d85cbbf011d4241fa0cc8e4db15c5ea9abd3ef90 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,289 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Simon Hudon
-/
import data.qpf.multivariate.basic
/-!
# The quotient of QPF is itself a QPF
The quotients are here defined using a surjective function and
its right in... |
9acd525e930d4b75ebfd4398d6aa6a822ab37283 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_theory/unnamed_583.lean | 2948aa6be39c00a103b47f41019ecc8d0fa07e79 | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 309 | lean | variables p q r : Prop
-- BEGIN
example (h₁ : p → q) (h₂ : q → r) (h₃ : p) : r :=
begin
have h₄ : q, from h₁ h₃, -- We have `h₄ : q`, by implication elimination on `h₁` and `h₃`.
show r, from h₂ h₄ -- We show `r` by implication elimination on `h₂` and `h₄`.
end
-- END |
d6e823a23e1446c99568d764f301b4e438c556ac | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/perm/sign.lean | e89ae7400e6c3545c5313dc98f2fe71e35d70df0 | [
"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 | 31,327 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.perm.support
import group_theory.order_of_element
import data.finset.fin
import data.int.order.units
/-!
# Sign of a permutation
The main definition... |
0ea98b7def06ff3caee982a3164f7b12fee11c2f | 42c01158c2730cc6ac3e058c1339c18cb90366e2 | /M1F/2017-18/Example_Sheet_01/Question_06/question6.lean | c97615b432702e2067d5fcfab2407942cdc87eea | [] | no_license | ChrisHughes24/xena | c80d94355d0c2ae8deddda9d01e6d31bc21c30ae | 337a0d7c9f0e255e08d6d0a383e303c080c6ec0c | refs/heads/master | 1,631,059,898,392 | 1,511,200,551,000 | 1,511,200,551,000 | 111,468,589 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,541 | lean | -- ignore this part: we are building the notion of a set
-- go to line 36
inductive zfc : Type
| empty : zfc
| insert : zfc → zfc → zfc
instance : has_emptyc zfc := ⟨zfc.empty⟩
instance : has_insert zfc zfc := ⟨zfc.insert⟩
instance : has_zero zfc := ⟨{}⟩
instance : has_one zfc := ⟨{0}⟩
def succ (a : zfc) : zfc := ... |
fd61f153ebbed1813760f40bd16d47a9ae8e0ce4 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/hit/quotient_functor.hlean | 9cda7fa9b986911ae30a73a320f11d93bcf0e592 | [
"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 | 5,387 | hlean | /-
Copyright (c) 2015 Ulrik Buchholtz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ulrik Buchholtz
Functoriality of quotients and a condition for when an equivalence is induced.
-/
import types.sigma .quotient
open eq is_equiv equiv prod prod.ops sigma sigma.ops
... |
62c15ce8b009205bfaff452ac4b933018d56b2d1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/default.lean | 7f29154ed7d9c05402ab9bc281b23d6879b88aa4 | [] | 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 | 140 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.linear_algebra.basic
import Mathlib.PostPort
namespace Mathlib
|
ac6ba1cc4c55d17aee848c22085f554f9731b4e4 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/lvl1.lean | 0228d2673f3320e784e4b8c6de205024d517153a | [
"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 | 1,333 | lean | import Lean.Level
namespace Lean
namespace Level
def mkMax (xs : Array Level) : Level :=
xs.foldlFrom mkLevelMax (xs.get! 0) 1
#eval toString $ normalize $ mkLevelSucc $ mkLevelSucc $ mkMax #[levelZero, mkLevelParam `w, mkLevelSucc (mkLevelSucc (mkLevelSucc (mkLevelParam `z))), levelOne, mkLevelSucc (mkLevelSucc (mk... |
02b41a58e39b265e34622480a107ccd2dfd3c6f7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/appParserIssue.lean | 9b0c0b90060bc9d2a6c8f7498395f07646585091 | [
"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 | 323 | lean |
def f (x : Nat) (g : Nat → Nat) := g x
#check f 1 fun x => x -- should work
#check f 1 (fun x => x) -- should work
#check f 1 $ fun x => x -- should work
syntax "foo" term:max term:max : term
macro_rules | `(foo $x $y) => `(f $x $y)
#check foo 1 (fun x => x) -- should work
#check foo 1 fun x => x -- should work... |
022460fd7771319799f7d1c8b2a83349bab71bbd | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/connected.lean | f129f71ba83883cb113670eb4ac93b8e747c0d0b | [
"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 | 46,087 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
-/
import topology.subset_properties
/-!
# Connected subsets of topological spaces
In this file we define connected subsets of a topol... |
4abfaaa91e1da586460edba17545332578edae73 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/set/basic.lean | 691553b839f9067b0d3d15adf474a1c8719cff39 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 35,498 | 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 tactic.finish data.sigma
open function
namespace set
universes u v w x
variables {α : Type u} {β : Type v} {γ : Type w} {ι : Sort x} {a : α} {... |
6ec843f5a2479a434214e373aa0fb71dbc06ab2d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/integral_closure.lean | 792ee40e4076ed01e7c68ea7496922ddb78346d5 | [
"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 | 39,838 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import linear_algebra.finite_dimensional
import ring_theory.adjoin.fg
import ring_theory.polynomial.scale_roots
import ring_theory.polynomial.tower
import linear_algebra.matrix... |
77ec997217a799fc8270a6c8138c5cbe44e014c3 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/measure_theory/interval_integral.lean | 3f79f3759b9e9d42d17655831056ec8c103229a1 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 74,389 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import measure_theory.set_integral
import measure_theory.lebesgue_measure
import analysis.calculus.fderiv_measurable
import analysis.calculus.mean_value
/-!
#... |
62d6093f5d979e9247aded8d35cf90d2b2868c76 | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /tests/lean/run/quote1.lean | d13b11bf401c05aa8da430ecc065f0d546656057 | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 304 | lean | open tactic list
meta definition foo (a : pexpr) : pexpr :=
`(%%a + %%a + %%a + b)
example (a b : nat) : a = a :=
by do
a ← get_local `a,
t1 ← mk_app `add [a, a],
t2 ← to_expr (foo (to_pexpr t1)),
trace t2,
r ← mk_app (`eq.refl) [a],
exact r
private def f := unit
#check ``f
|
93b3ba257287b43f02b4a4c8902d1adcaaf132a1 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/limits/cones.lean | 2563271c400421cbb7493c1c0f9064c85da652f8 | [
"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 | 14,518 | 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, Floris van Doorn
-/
import category_theory.const
import category_theory.yoneda
import category_theory.concrete_category.bundled_hom
import category_theo... |
fa19a96ae8b080a02435812375cd77065640d801 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/multilinear/basis.lean | 14f7477bac1da6f740f79f8912ffcddd0ea3a924 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,345 | lean | /-
Copyright (c) 2021 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import linear_algebra.basis
import linear_algebra.multilinear.basic
/-!
# Multilinear maps in relation to bases.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any change... |
f31d9282773d63d96b30713cac9023fc904f2b4f | 76df16d6c3760cb415f1294caee997cc4736e09b | /lean/src/interp/lang/defs.lean | dcabd170cff8f58f063287eb2dee1d247d914ceb | [
"MIT"
] | permissive | uw-unsat/leanette-popl22-artifact | 70409d9cbd8921d794d27b7992bf1d9a4087e9fe | 80fea2519e61b45a283fbf7903acdf6d5528dbe7 | refs/heads/master | 1,681,592,449,670 | 1,637,037,431,000 | 1,637,037,431,000 | 414,331,908 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,649 | lean | import ...cs.lang
namespace interp
open lang
open lang.result
open lang.exp
open lang.val
section interp
variables
{D O : Type}
(op : O → list (val D O) → lang.result D O)
-- The concrete interpreter:
-- `interpC` consumes a `fuel`, an program `e`, a concrete environment `ε`, and
-- returns either
-- - `non... |
84a9d8bd540e4aedacc35cc600e3231bc37f4cf2 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/groupoid/basic.lean | edcd548ec99a54386b64b193374efabff7585528 | [
"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,110 | lean | /-
Copyright (c) 2022 Rémi Bottinelli. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémi Bottinelli
-/
import category_theory.groupoid
import combinatorics.quiver.basic
/-!
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding... |
6341e4d2dd60790e8ef831699d42bc4fae241c6b | 618003631150032a5676f229d13a079ac875ff77 | /test/library_search/ordered_ring.lean | 4a9ce1c292da26a3c485bca6230401254be702b7 | [
"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 | 449 | 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 algebra.ordered_ring
import init_.data.nat.lemmas
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace.silence_library_search ... |
d49bd59fe95019f5c6c209b78a1ad0a123ce7020 | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world10/level15.lean | d12ea12ed5a73a75da22b37d91faaf8d0831b062 | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 248 | lean | lemma lt_aux_one (a b : mynat) : a ≤ b ∧ ¬ (b ≤ a) → succ a ≤ b :=
begin
intro h,
cases h with h1 h2,
cases h1 with d hd,
cases d,
exfalso,
apply h2,
rw hd,
rw add_zero,
exact le_refl a,
use d,
rw hd,
rw add_succ,
rw succ_add,
refl,
end
|
33de919af690d504e57e1d9d09c880c2dc11b849 | 7da5ceac20aaab989eeb795a4be9639982e7b35a | /src/ring_theory/algebra2.lean | 6ff5e5e21d73356338cb6c22cf9e3cc61b4334e2 | [
"MIT"
] | permissive | formalabstracts/formalabstracts | 46c2f1b3a172e62ca6ffeb46fbbdf1705718af49 | b0173da1af45421239d44492eeecd54bf65ee0f6 | refs/heads/master | 1,606,896,370,374 | 1,572,988,776,000 | 1,572,988,776,000 | 96,763,004 | 165 | 28 | null | 1,555,709,319,000 | 1,499,680,948,000 | Lean | UTF-8 | Lean | false | false | 11,038 | lean | import ..basic
ring_theory.algebra
linear_algebra.tensor_product
ring_theory.ideal_operations
category_theory.concrete_category
open set
universes u v w
/- move to ideal-/
namespace ideal
namespace quotient
variables {α : Type*} {β : Type*} [comm_ring α] [comm_ring β] {S : ideal α} {T : id... |
c6dfcb90c363be623f213a6b5222c9c74b6195e3 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/function/strongly_measurable/inner.lean | 07954268931251e37958f8fc5f707c255b5de7fe | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,748 | 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, Sébastien Gouëzel
-/
import measure_theory.function.strongly_measurable.basic
import analysis.inner_product_space.basic
/-!
# Inner products of strongly measurable functio... |
4872966c444fd641e00d701265e90d967fdf0d3a | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/init/data/nat/lemmas.lean | 41130779af9945533c0769841a1df53c9543c4a6 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,813 | 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, Jeremy Avigad
-/
prelude
import init.data.nat.basic init.meta init.algebra
namespace nat
protected lemma zero_add : ∀ n : ℕ, 0 + n = n
| 0 := rfl
| (n+1... |
0382358f5809584d1173d223b278c14a8990845f | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/meta/smt/ematch.lean | 6f2994a909c72cde99d226c453d6f3660205d38c | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,198 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.smt.congruence_closure
import init.meta.attribute init.meta.simp_tactic
open tactic
/- Heuristic instantiation lemma -/
meta const... |
400fb6f23b818d1f85f49fa8d2e2a05794b1640a | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/t3.lean | cec25fd9db6271fbb76d66e64ba81e342b3b2adc | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 359 | lean | prelude
constant int : Type.{1}
constant nat : Type.{1}
namespace int
constant plus : int → int → int
end int
namespace nat
constant plus : nat → nat → nat
end nat
open int nat
constants a b : int
check plus a b
constant f : int → int → int
constant g : nat → nat → int
notation A `+`:65 B:65 := f A (g B B)
consta... |
68f95693a1311562de05b002e3c63f9ea4f3687c | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/group_theory/subgroup/basic.lean | 37e094f8af23cda7b081985f96b12aa67e2b3b88 | [
"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 | 98,676 | 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 group_theory.submonoid.pointwise
import group_theory.submonoid.membership
import group_theory.submonoid.center
import algebra.group.conj
import order.atoms
/-!
# Su... |
ddec9ff2f8679ac9e3f6be88440261246813fefb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/covering/one_dim.lean | 851314e77b0cac8aefd70c4437690ed882b36757 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,447 | lean | /-
Copyright (c) 2022 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import measure_theory.covering.density_theorem
import measure_theory.measure.lebesgue.eq_haar
/-!
# Covering theorems for Lebesgue measure in one dimension
> ... |
0968098e282f998ceb46106f0ff5cceb643cea81 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Data/Lsp/LanguageFeatures.lean | d5c02a452dff191fc85ebfe526d5724b9544ee51 | [
"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 | 5,701 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Data.Json
import Lean.Data.Lsp.Basic
namespace Lean
namespace Lsp
open Json
structure CompletionOptions where
triggerCharacters? : Option (A... |
9560646e426bfd45c00baebd0caa019932a6c4e3 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/algebra/big_operators/finprod.lean | bb7054f915206737674307af19c58e591292117d | [
"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 | 38,818 | lean | /-
Copyright (c) 2020 Kexing Ying and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying, Kevin Buzzard, Yury Kudryashov
-/
import algebra.big_operators.order
import algebra.indicator_function
import data.set.pairwise
/-!
# Finite products and s... |
b07e72394e00e8c3c84b1664e3ccb3b70c7f4ea5 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /test/mk_iff_of_inductive.lean | 6404716a242a1d04e089ecc3d32a7f874371b3c0 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 723 | lean | import tactic.mk_iff_of_inductive_prop
import data.list data.list.perm data.multiset
mk_iff_of_inductive_prop list.chain test.chain_iff
mk_iff_of_inductive_prop false test.false_iff
mk_iff_of_inductive_prop true test.true_iff
mk_iff_of_inductive_prop nonempty test.non_empty_iff
mk_iff_of_inductive_prop and... |
584896455789e915fff64dcccf7e0d779c220787 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/group/action.lean | 3e2e8da96d5ff52760371b52f7a4ca1d897246d3 | [
"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,454 | 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... |
6a16dc4441c4b053ef6e249790f4500714c8b80b | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Server/FileWorker/RequestHandling.lean | 69206d0a00023a9820fa939164106db67cc5e7ba | [
"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 | 15,896 | 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.FileWorker.Utils
import Lean.Server.Requests
import... |
6b530ff57f33e6839ca10ee9591cb6df77af3a3c | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/algebra/monotone.lean | 79e0378c2172b4590d8645daf7f4ab5e9d867882 | [
"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 | 20,688 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Weak and strict order preserving maps.
TODO: we will probably eventually want versions restricted to smaller domains,
"nondecreasing_on" etc. Maybe we can do this with su... |
69f8bbd2a43de729a66be82a940d681ab3a23790 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/normed_space/multilinear_auto.lean | 297e27084ac44093b8390dee8f58ea27a1b23544 | [] | 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 | 69,593 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.normed_space.operator_norm
import Mathlib.topology.algebra.multilinear
impor... |
d12521a5d6c71bab317c461a345728872ab38435 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/model_theory/fraisse.lean | 2f372ad156a27b60f36167cbf4bda9414b7f2bab | [
"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,617 | 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 model_theory.finitely_generated
import model_theory.direct_limit
import model_theory.bundled
/-!
# Fraïssé Classes and Fraïssé Limits
> THIS FILE IS SYNCHRO... |
4ec2225b679c173566148fdf8fd7d65c0da26951 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/nat.lean | 3888f8aa160b4b763755a68a6941fa36d3b5cde1 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 12,747 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import init.relation init.num
notation `ℕ` := nat
namespace nat
protected theorem zero_add : ∀ n : ℕ, 0 + n = n
| 0 := r... |
87a42ef722bd562fd6f92d8507e09b631380d63a | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/Lean/Meta/AppBuilder.lean | e1855a547534991cefb944ce08febd59a5a17267 | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,957 | 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.Util.Recognizers
import Init.Lean.Meta.SynthInstance
namespace Lean
namespace Meta
/-- Given `e` s.t. `inferType e` is definition... |
92a9d50862581574a0971950e0613ad7e3b3b030 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/ideal/operations_auto.lean | 13c83e56069fddf1518efab2feb32474234ce109 | [] | 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 | 46,114 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.choose.sum
import Mathlib.data.equiv.ring
import Mathlib.algebra.algebra.operations
import M... |
6224205fae6cc946af3465d3cb70301833574b14 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/bornology/hom.lean | 021cac114f084ed3d0b83752d8fb1bcec594a460 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,359 | 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 topology.bornology.basic
/-!
# Locally bounded maps
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.... |
dc26f84486b488296ee52db4aa3ceb254420d018 | b2e508d02500f1512e1618150413e6be69d9db10 | /src/data/equiv/denumerable.lean | 3a320844798d07087bebc52db149314ee62e0a38 | [
"Apache-2.0"
] | permissive | callum-sutton/mathlib | c3788f90216e9cd43eeffcb9f8c9f959b3b01771 | afd623825a3ac6bfbcc675a9b023edad3f069e89 | refs/heads/master | 1,591,371,888,053 | 1,560,990,690,000 | 1,560,990,690,000 | 192,476,045 | 0 | 0 | Apache-2.0 | 1,568,941,843,000 | 1,560,837,965,000 | Lean | UTF-8 | Lean | false | false | 8,754 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Denumerable (countably infinite) types, as a typeclass extending
encodable. This is used to provide explicit encode/decode functions
from nat, where the functions are kn... |
96dd521bd3441178089a687215593f546c5d6e7e | 54ce0561cebde424526f41d45f490ed56be2bd0c | /src/game/ch3_Set_Theory/5_Cartesian_Products.lean | 9eb9744e48e665bb9dbafa442e1092d4855d9721 | [] | no_license | melembroucarlitos/Tao_Analysis-LEAN | cf7b3298d317891a09e4bf21cfe7c7ffcb57b9a9 | 3f4fc7e090d96b6cef64896492fba4bef124794b | refs/heads/master | 1,692,952,385,694 | 1,636,287,522,000 | 1,636,287,522,000 | 400,630,166 | 3 | 0 | null | 1,635,910,807,000 | 1,630,096,823,000 | Lean | UTF-8 | Lean | false | false | 169 | lean | -- Level name : Cartesian Products
/-
# Hey yall
## This is just to a placeholder to make sure all is working
these are some words
and these are some other words
-/
|
082d88b79ce197d94d1e6ca80a68f3068900a039 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/461a.lean | 2032ca404d64d16997781b86caf8ab500788ac89 | [
"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 | 298 | lean | structure FooS where
x : Nat
y : Nat
h : x = y := by rfl
#print FooS.mk
def f1 (x : Nat) : FooS :=
{ x := x, y := x }
structure BooS where
x : Nat
y : Nat
h (aux1 : True) (aux2 : x > 2) : x = y := by { intros; rfl }
#print BooS.mk
def f2 (x : Nat) : BooS :=
{ x := x, y := x }
|
0d42424eb0a60c324dce6bdc25a6b2d8549c74ea | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/algebra/category/Group/colimits.lean | fc815e2bd8813216aa89f3cbba855ae76dd8bb1a | [
"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 | 9,170 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Group.preadditive
import group_theory.quotient_group
import category_theory.limits.limits
import category_theory.limits.concrete_category
impo... |
0b370ec0a5fb54402bc05d837ad21eb2dc789b29 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/conv.lean | 3438cf8db2083af012ae73858edf47a9e42a2a7a | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 512 | lean | import Int.
definition id (A : Type) : (Type U) := A.
variable p : (Int -> Int) -> Bool.
check fun (x : id Int), x.
variable f : (id Int) -> (id Int).
check p f.
definition c (A : (Type 3)) : (Type 3) := (Type 1).
variable g : (c (Type 2)) -> Bool.
variable a : (c (Type 1)).
check g a.
definition c2 {T : Type} (A : (... |
79ac86563fb3a556c3544cbf2dbb5fff8d28e10c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/order/lattice_group.lean | ee56e6beaf7504aed387f597cd955dcda7318478 | [
"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 | 18,890 | lean | /-
Copyright (c) 2021 Christopher Hoskin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christopher Hoskin
-/
import algebra.group_power.basic -- Needed for squares
import algebra.order.group
import tactic.nth_rewrite
/-!
# Lattice ordered groups
Lattice ordered gro... |
a0e73c29700dd4f3b7565a22f8413e19049007be | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/double_coset.lean | f7a35dcafbaee65819335c4f5fbce1d80a1080cf | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,717 | lean | /-
Copyright (c) 2021 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck
-/
import data.setoid.basic
import group_theory.subgroup.basic
import group_theory.coset
import group_theory.subgroup.pointwise
import data.set.basic
import tactic.group... |
b216101f7c7e6b2cccb5e6330377f1a5331c42dd | 842b7df4a999c5c50bbd215b8617dd705e43c2e1 | /nat_num_game/src/Advanced_Addition_World/adv_add_wrld11.lean | b6c4472c6f51390ba2fd470b3300c3b91fa581b4 | [] | no_license | Samyak-Surti/LeanCode | 1c245631f74b00057d20483c8ac75916e8643b14 | 944eac3e5f43e2614ed246083b97fbdf24181d83 | refs/heads/master | 1,669,023,730,828 | 1,595,534,784,000 | 1,595,534,784,000 | 282,037,186 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 191 | lean | lemma add_right_eq_zero {a b : ℕ} : a + b = 0 → a = 0 :=
begin
intro H,
cases a with d,
refl,
rw nat.succ_add at H,
exfalso,
apply nat.succ_ne_zero (d + b) H,
end |
11601cdf83f39c9dc09758a0b6a4ec21c184bcc7 | 70146ae0f22e89882c6c6fe6db4b2f0122ccbfe2 | /BalanceCar.lean | 5001b0425c48b368cf5c8bac0c4e779a2a0a229a | [] | no_license | zeta1999/lean4-balance-car | 333b1e797d1c7724a908cd942d7c0e6c928a39f8 | 1fe9c469c37bbd74cf2de1f3175e64344a6d1786 | refs/heads/main | 1,679,429,742,377 | 1,616,018,798,000 | 1,616,018,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,743 | lean | -- The control portion of the code is more-or-less a functional port of balance car code
-- that was distributed with the balance car kit we purchased on Amazon:
-- Yahboom Coding Robot Car Balance Robot Electronics Programmable Kit for Adult Support C Language (UNO R3 Include)
-- It appears an _updated_ version of th... |
df309d7f88507a296d17bf940fe345ea39b6be18 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/field_theory/splitting_field.lean | 61d7a28a2b0ff9970031cc278fab64c2474e1d83 | [
"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 | 37,503 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import ring_theory.adjoin_root
import ring_theory.algebra_tower
import ring_theory.algebraic
import ring_theory.polynomial
import field_theory.minpoly
import linear_algeb... |
2a1674ce0d2f4cd5d8665a9d16f5e14827643640 | cbcb0199842f03e7606d4e43666573fc15dd07a5 | /src/topology/algebra/group.lean | e7b3fea9524987c298102b03ed94298bfaa1f4bd | [
"Apache-2.0"
] | permissive | truonghoangle/mathlib | a6a7c14b3767ec71156239d8ea97f6921fe79627 | 673bae584febcd830c2c9256eb7e7a81e27ed303 | refs/heads/master | 1,590,347,998,944 | 1,559,728,860,000 | 1,559,728,860,000 | 187,431,971 | 0 | 0 | null | 1,558,238,525,000 | 1,558,238,525,000 | null | UTF-8 | Lean | false | false | 13,631 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Theory of topological groups.
-/
import data.equiv.algebra
import group_theory.quotient_group
import topology.algebra.monoid topology.o... |
4b26f6a0300aa0ff2d94f8da4eccbf03f14c19ed | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/meta/expr.lean | dabec7d15947762e8dd8b3ecb63636fd5da86521 | [
"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 | 26,176 | lean | /-
Copyright (c) 2019 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek, Robert Y. Lewis
-/
import data.string.defs
/-!
# Additional operations on expr and related types
This file defines basic op... |
fb84359e0399870f713d32252a3d8e538e0eea0d | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/big_operators/finsupp.lean | ac144b4c7695fa6e7812b1e9f367208a59b05928 | [
"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,245 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.big_operators.pi
import data.finsupp
/-!
# Big operators for finsupps
This file contains theorems relevant to big operators in finitely supported functions.
-... |
249fca363fbc6a8c18ae9468adba2aefb19ab496 | 38ee9024fb5974f555fb578fcf5a5a7b71e669b5 | /Mathlib/Tactic/Core.lean | 904b65953b623ce248d049733308e3c09954079d | [
"Apache-2.0"
] | permissive | denayd/mathlib4 | 750e0dcd106554640a1ac701e51517501a574715 | 7f40a5c514066801ab3c6d431e9f405baa9b9c58 | refs/heads/master | 1,693,743,991,894 | 1,636,618,048,000 | 1,636,618,048,000 | 373,926,241 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 899 | lean | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Aurélien Saue
-/
import Lean.Expr
namespace Lean.Parser.Tactic
-- syntax simpArg := simpStar <|> simpErase <|> simpLemma
def simpArg := simpStar.binary `orelse (simp... |
f51e240b3f8bd6ab9af6f524914c8ffd392445c7 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_theory/unnamed_2495.lean | 428841cc4f9259c66937d8b4853cbf81a37e0f9f | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 826 | lean | variables {p q : Prop}
-- BEGIN
local attribute [instance] classical.prop_decidable
theorem not_or_not_of_not_and : ¬(p ∧ q) → ¬p ∨ ¬q :=
begin
assume h₁ : ¬(p ∧ q), -- Assume `h₁ : ¬(p ∧ q)`. It suffices to prove `¬p ∨ ¬q`.
-- Via proof by cases, it suffices to prove we can derive `¬p ∨ ¬q` 1. assuming `h₂ : p... |
6cd3fd2aaffe393615370e1015d94f9cbbee0ce7 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/mk_constructor_fresh_names.lean | 2e699043731f065b20328a666e5bbed35a5f5045 | [
"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 | 519 | lean | open tactic
example (fst fst_1 : nat) : fst = fst :=
by do
ns ← mk_constructors_fresh_names `prod,
trace ns, -- [[fst_2, snd]]
constructor
example (a : nat) : a = a :=
by do
ns ← mk_constructors_fresh_names `acc,
trace ns, -- [[x, a_1]
constructor
inductive Foo
| mk₁ (a b c : nat) : Foo
| mk₂ (d e : boo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.